From 388ffbf6c3042fe4b2d70e8dbeafb19b40c2b168 Mon Sep 17 00:00:00 2001 From: monishdeb Date: Fri, 20 Mar 2015 22:10:57 +0530 Subject: [PATCH] formating fixes --- CRM/Mailing/Selector/Event.php | 18 ++++++++---------- tests/phpunit/WebTest/Mailing/MailingTest.php | 4 ++-- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/CRM/Mailing/Selector/Event.php b/CRM/Mailing/Selector/Event.php index 30d5a00ca0..b9678bc906 100644 --- a/CRM/Mailing/Selector/Event.php +++ b/CRM/Mailing/Selector/Event.php @@ -168,8 +168,8 @@ class CRM_Mailing_Selector_Event extends CRM_Core_Selector_Base implements CRM_C break; case 'delivered': - $this->_columnHeaders = array('contact_id' => - array( + $this->_columnHeaders = array( + 'contact_id' => array( 'name' => ts('Internal Contact ID'), 'sort' => $contact . '.id', 'direction' => CRM_Utils_Sort::ASCENDING, @@ -243,15 +243,13 @@ class CRM_Mailing_Selector_Event extends CRM_Core_Selector_Base implements CRM_C return 0; } - $this->_columnHeaders = array_merge($this->_columnHeaders, - array('date' => - array( - 'name' => ts('Date'), - 'sort' => $dateSort, - 'direction' => CRM_Utils_Sort::DESCENDING, + $this->_columnHeaders = array_merge($this->_columnHeaders, array( + 'date' => array( + 'name' => ts('Date'), + 'sort' => $dateSort, + 'direction' => CRM_Utils_Sort::DESCENDING, ), - ) - ); + )); } return $this->_columnHeaders; } diff --git a/tests/phpunit/WebTest/Mailing/MailingTest.php b/tests/phpunit/WebTest/Mailing/MailingTest.php index 9abbc437a9..2c542c7beb 100644 --- a/tests/phpunit/WebTest/Mailing/MailingTest.php +++ b/tests/phpunit/WebTest/Mailing/MailingTest.php @@ -130,7 +130,7 @@ class WebTest_Mailing_MailingTest extends CiviSeleniumTestCase { $this->waitForTextPresent("Mailing $mailingName Webtest"); $this->click("xpath=//div[@class='content']//a[text()='~1 recipient']"); - $this->webtestVerifyTabularData(array("$firstName Mailson"=> "mailino$firstName@mailson.co.in")); + $this->webtestVerifyTabularData(array("$firstName Mailson" => "mailino$firstName@mailson.co.in")); $this->click("xpath=//button[@title='Close']"); $this->waitForTextPresent("(Include: $groupName)"); @@ -380,7 +380,7 @@ class WebTest_Mailing_MailingTest extends CiviSeleniumTestCase { $this->waitForTextPresent("Mailing $mailingName Webtest"); $this->click("xpath=//div[@class='content']//a[text()='~1 recipient']"); - $this->webtestVerifyTabularData(array("$firstName Mailson"=> "mailino$firstName@mailson.co.in")); + $this->webtestVerifyTabularData(array("$firstName Mailson" => "mailino$firstName@mailson.co.in")); $this->click("xpath=//button[@title='Close']"); $this->waitForTextPresent("(Include: $groupName)"); -- 2.25.1