From baa106f8f341d24fa816d34b7ebc8332bb7792e0 Mon Sep 17 00:00:00 2001 From: kenorb Date: Mon, 26 Mar 2018 12:14:50 +0100 Subject: [PATCH] phpcbf --standard=Drupal --sniffs=Drupal.Array.Array src --- .../Testing/PHPUnit/drupal_test_case.php | 4 +- .../PHPUnit/nt_mink_drupal_test_case.php | 90 +++++++++---------- 2 files changed, 47 insertions(+), 47 deletions(-) diff --git a/src/NT/Drupal/Testing/PHPUnit/drupal_test_case.php b/src/NT/Drupal/Testing/PHPUnit/drupal_test_case.php index f8aa5e0..9c57842 100644 --- a/src/NT/Drupal/Testing/PHPUnit/drupal_test_case.php +++ b/src/NT/Drupal/Testing/PHPUnit/drupal_test_case.php @@ -1322,7 +1322,7 @@ protected function curlExec($curl_options, $redirect = FALSE) { '!method' => !empty($curl_options[CURLOPT_NOBODY]) ? 'HEAD' : (empty($curl_options[CURLOPT_POSTFIELDS]) ? 'GET' : 'POST'), '@url' => isset($original_url) ? $original_url : $url, '@status' => $status, - '!length' => format_size(strlen($this->drupalGetContent())) + '!length' => format_size(strlen($this->drupalGetContent())), ); $message = t('!method @url returned @status (!length).', $message_vars); $this->assertTrue($this->drupalGetContent() !== FALSE, $message, t('Browser')); @@ -1629,7 +1629,7 @@ protected function drupalLogin(stdClass $user) { $edit = array( 'name' => $user->name, - 'pass' => $user->pass_raw + 'pass' => $user->pass_raw, ); $this->drupalPost('user', $edit, t('Log in')); diff --git a/src/NT/Drupal/Testing/PHPUnit/nt_mink_drupal_test_case.php b/src/NT/Drupal/Testing/PHPUnit/nt_mink_drupal_test_case.php index 271017a..aaa7d57 100644 --- a/src/NT/Drupal/Testing/PHPUnit/nt_mink_drupal_test_case.php +++ b/src/NT/Drupal/Testing/PHPUnit/nt_mink_drupal_test_case.php @@ -25,16 +25,16 @@ protected function onNotSuccessfulTest(Exception $e) protected function loadProduction(array $config) { $config += array( - 'title' => '', - 'body' => '', - 'author' => '', - 'image' => '', - 'playwright' => '', - 'company' => '', - 'theatre' => '', - 'originalDate' => '', - 'openingNight' => '', - 'pressNight' => '' + 'title' => '', + 'body' => '', + 'author' => '', + 'image' => '', + 'playwright' => '', + 'company' => '', + 'theatre' => '', + 'originalDate' => '', + 'openingNight' => '', + 'pressNight' => '', ); try { @@ -84,8 +84,8 @@ protected function loadProduction(array $config) { protected function loadTheatre(array $config) { $config += array( - 'title' => '', - 'address' => '' + 'title' => '', + 'address' => '', ); try { @@ -110,7 +110,7 @@ protected function loadTheatre(array $config) { protected function loadCompany(array $config) { $config += array( - 'title' => '' + 'title' => '', ); try { $this->getSession()->visit($this->base_path . '/node/add/company'); @@ -132,19 +132,19 @@ protected function loadCompany(array $config) { protected function loadPlaywright(array $config) { $config += array( - 'title' => '', - 'body' => '', - 'RecordID' => '', - 'Role RecordID' => '', - 'Name RecordID' => '', - 'Person Details' => '', - 'Main Image' => '', - 'production history' => array(), - 'biblio fields' => array(), - 'critical sources' => array(), - 'articles' => array(), - 'videos' => array(), - 'scripts' => array() + 'title' => '', + 'body' => '', + 'RecordID' => '', + 'Role RecordID' => '', + 'Name RecordID' => '', + 'Person Details' => '', + 'Main Image' => '', + 'production history' => array(), + 'biblio fields' => array(), + 'critical sources' => array(), + 'articles' => array(), + 'videos' => array(), + 'scripts' => array(), ); try { $this->getSession()->visit($this->base_path . '/node/add/playwright'); @@ -201,11 +201,11 @@ protected function loadPlaywright(array $config) { protected function loadFeaturedItem(array $config) { $config += array( - 'title' => '', - 'body' => '', - 'item' => '', - 'grouping' => '#edit-bbpa-item-grouping-und-none', - 'weighting' => 40 + 'title' => '', + 'body' => '', + 'item' => '', + 'grouping' => '#edit-bbpa-item-grouping-und-none', + 'weighting' => 40, ); try { $this->getSession()->visit($this->base_path . '/node/add/featured-item'); @@ -240,10 +240,10 @@ protected function loadFeaturedItem(array $config) { protected function loadArticle(array $config) { $config += array( - 'title' => '', - 'body' => '', - 'image' => '', - 'layout' => 'bbpa_article_layout_basic' + 'title' => '', + 'body' => '', + 'image' => '', + 'layout' => 'bbpa_article_layout_basic', ); try { $this->getSession()->visit($this->base_path . '/node/add/bbpa-article'); @@ -274,10 +274,10 @@ protected function loadArticle(array $config) { protected function loadImage(array $config) { $config += array( - 'title' => '', - 'body' => '', - 'dTitle' => '', - 'file' => '' + 'title' => '', + 'body' => '', + 'dTitle' => '', + 'file' => '', ); try { $this->getSession()->visit($this->base_path . '/node/add/image'); @@ -308,12 +308,12 @@ protected function loadImage(array $config) { protected function loadVideo(array $config) { $config += array( - 'title' => '', - 'body' => '', - 'dTitle' => '', - 'file' => '', - 'running_time' => '0.33', - 'thumbnail' => '' + 'title' => '', + 'body' => '', + 'dTitle' => '', + 'file' => '', + 'running_time' => '0.33', + 'thumbnail' => '', ); try { $this->getSession()->visit($this->base_path . '/node/add/video');