INFRA-132 - CRM/Admin - phpcbf
authorTim Otten <totten@civicrm.org>
Tue, 6 Jan 2015 21:09:19 +0000 (13:09 -0800)
committerTim Otten <totten@civicrm.org>
Tue, 6 Jan 2015 23:04:25 +0000 (15:04 -0800)
32 files changed:
CRM/Admin/Form/Extensions.php
CRM/Admin/Form/Job.php
CRM/Admin/Form/MailSettings.php
CRM/Admin/Form/MessageTemplates.php
CRM/Admin/Form/Options.php
CRM/Admin/Form/ParticipantStatusType.php
CRM/Admin/Form/PaymentProcessor.php
CRM/Admin/Form/PaymentProcessorType.php
CRM/Admin/Form/Preferences.php
CRM/Admin/Form/Preferences/Address.php
CRM/Admin/Form/Preferences/Event.php
CRM/Admin/Form/RelationshipType.php
CRM/Admin/Form/ScheduleReminders.php
CRM/Admin/Form/Setting.php
CRM/Admin/Form/Setting/Localization.php
CRM/Admin/Form/Setting/Miscellaneous.php
CRM/Admin/Form/Setting/Path.php
CRM/Admin/Form/Setting/UpdateConfigBackend.php
CRM/Admin/Form/Tag.php
CRM/Admin/Form/WordReplacements.php
CRM/Admin/Page/AJAX.php
CRM/Admin/Page/Admin.php
CRM/Admin/Page/EventTemplate.php
CRM/Admin/Page/Extensions.php
CRM/Admin/Page/ExtensionsUpgrade.php
CRM/Admin/Page/Job.php
CRM/Admin/Page/JobLog.php
CRM/Admin/Page/LabelFormats.php
CRM/Admin/Page/Navigation.php
CRM/Admin/Page/Options.php
CRM/Admin/Page/PaymentProcessor.php
CRM/Admin/Page/Tag.php

index f98dbca62b3f90e10da2fb4fb77e011a041ea452..44889c9687c7101102bcaa0b9fe0764a04134ecc 100644 (file)
@@ -57,7 +57,6 @@ class CRM_Admin_Form_Extensions extends CRM_Admin_Form {
     $this->assign('id', $this->_id);
     $this->assign('key', $this->_key);
 
-
     switch ($this->_action) {
       case CRM_Core_Action::ADD:
       case CRM_Core_Action::DELETE:
index f59350f3d85ba5834eb295137cd45224fa039c9c..2f1a7413823c73b7b9760c494db936105d1071ad 100644 (file)
@@ -207,6 +207,5 @@ class CRM_Admin_Form_Job extends CRM_Admin_Form {
       CRM_Core_Session::setStatus($msg, ts('Warning: Update Greeting job enabled'), 'alert');
     }
 
-
   }
 }
index 67465b6cc1df4a306f4bb38034666f840d0ea286..72ffd4ef078238ab1d7b672252165a799dc49f36 100644 (file)
@@ -84,7 +84,8 @@ class CRM_Admin_Form_MailSettings extends CRM_Admin_Form {
 
     $this->add('checkbox', 'is_ssl', ts('Use SSL?'));
 
-    $usedfor = array(1 => ts('Bounce Processing'),
+    $usedfor = array(
+    1 => ts('Bounce Processing'),
       0 => ts('Email-to-Activity Processing'),
     );
     $this->add('select', 'is_default', ts('Used For?'), $usedfor);
index aea941c05818b2243bab1ecf4df2f925a562474e..dc7acc076545527ea991d25c98199c65b33c9922 100644 (file)
@@ -138,7 +138,8 @@ class CRM_Admin_Form_MessageTemplates extends CRM_Admin_Form {
       return;
     }
 
-    $breadCrumb = array(array('title' => ts('Message Templates'),
+    $breadCrumb = array(array(
+    'title' => ts('Message Templates'),
         'url' => CRM_Utils_System::url('civicrm/admin/messageTemplates',
           'action=browse&reset=1'
         ),
@@ -172,7 +173,8 @@ class CRM_Admin_Form_MessageTemplates extends CRM_Admin_Form {
     else {
       $this->addWysiwyg('msg_html', ts('HTML Message'),
         array(
-          'cols' => '80', 'rows' => '8',
+          'cols' => '80',
+      'rows' => '8',
           'onkeyup' => "return verify(this)",
         )
       );
index 770fad68a679d3425c9c3d32cac83249c09e5750..13934263add429a3aeaed5db14ced67bb28684d0 100644 (file)
@@ -101,7 +101,6 @@ class CRM_Admin_Form_Options extends CRM_Admin_Form {
       }
     }
 
-
     $session->pushUserContext(CRM_Utils_System::url($url, $params));
     $this->assign('id', $this->_id);
 
@@ -177,7 +176,8 @@ class CRM_Admin_Form_Options extends CRM_Admin_Form {
     }
 
     if ($this->_gName == 'case_status') {
-      $classes = array('Opened' => ts('Opened'),
+      $classes = array(
+      'Opened' => ts('Opened'),
         'Closed' => ts('Closed'),
       );
 
@@ -295,7 +295,8 @@ class CRM_Admin_Form_Options extends CRM_Admin_Form {
     //get contact type for which user want to create a new greeting/addressee type, CRM-4575
     if (in_array($this->_gName, array(
       'email_greeting', 'postal_greeting', 'addressee')) && !$isReserved) {
-      $values = array(1 => ts('Individual'),
+      $values = array(
+      1 => ts('Individual'),
         2 => ts('Household'),
         3 => ts('Organization'),
         4 => ts('Multiple Contact Merge'),
index 00df3508010bb12024c011abe6929792ed5832fe..cf98aa92fbb094a13d07a26f60dd97b793597945 100644 (file)
@@ -99,7 +99,8 @@ class CRM_Admin_Form_ParticipantStatusType extends CRM_Admin_Form {
     );
 
     // make sure a malicious POST does not change these on reserved statuses
-    if ($this->_isReserved)unset($params['name'], $params['class'], $params['is_active']);
+    if ($this->_isReserved) { unset($params['name'], $params['class'], $params['is_active']);
+    }
 
     if ($this->_action & CRM_Core_Action::UPDATE) {
 
index d4e4e91b154305be0a22c35e175aa5cbcf439e1f..5f44eca512cfe6651b669ed531195da7849bb73f 100644 (file)
@@ -188,7 +188,7 @@ class CRM_Admin_Form_PaymentProcessor extends CRM_Admin_Form {
     );
 
     $types = CRM_Core_PseudoConstant::paymentProcessorType();
-    $this->add( 'select', 'payment_processor_type_id', ts('Payment Processor Type'), $types, true,
+    $this->add( 'select', 'payment_processor_type_id', ts('Payment Processor Type'), $types, TRUE,
       array('onchange' => "reload(true)")
     );
 
@@ -200,13 +200,12 @@ class CRM_Admin_Form_PaymentProcessor extends CRM_Admin_Form {
     }
     $this->add('select', 'financial_account_id', ts('Financial Account'),
       array('' => ts('- select -')) + $financialAccount,
-      true
+      TRUE
     );
     // is this processor active ?
     $this->add('checkbox', 'is_active', ts('Is this Payment Processor active?'));
     $this->add('checkbox', 'is_default', ts('Is this Payment Processor the default?'));
 
-
     foreach ($this->_fields as $field) {
       if (empty($field['label'])) {
         continue;
@@ -290,7 +289,7 @@ class CRM_Admin_Form_PaymentProcessor extends CRM_Admin_Form {
   public function setDefaultValues() {
     $defaults = array();
     if ($this->_ppType) {
-    $defaults['payment_processor_type_id'] = $this->_ppType;
+      $defaults['payment_processor_type_id'] = $this->_ppType;
     }
     if (!$this->_id) {
       $defaults['is_active'] = $defaults['is_default'] = 1;
index a02bfd5842925db6d0b6cf97d43ddb7bbcbf921b..5ad7af3e11634511cc73e1bf27ffd2caf87ca589 100644 (file)
@@ -159,7 +159,7 @@ class CRM_Admin_Form_PaymentProcessorType extends CRM_Admin_Form {
       return;
     }
 
-        $attributes = CRM_Core_DAO::getAttribute( 'CRM_Financial_DAO_PaymentProcessorType' );
+    $attributes = CRM_Core_DAO::getAttribute( 'CRM_Financial_DAO_PaymentProcessorType' );
 
     foreach ($this->_fields as $field) {
       $required = CRM_Utils_Array::value('required', $field, FALSE);
@@ -192,7 +192,7 @@ class CRM_Admin_Form_PaymentProcessorType extends CRM_Admin_Form {
       return $defaults;
     }
 
-        $dao = new CRM_Financial_DAO_PaymentProcessorType( );
+    $dao = new CRM_Financial_DAO_PaymentProcessorType( );
     $dao->id = $this->_id;
 
     if (!$dao->find(TRUE)) {
@@ -226,7 +226,7 @@ UPDATE civicrm_payment_processor SET is_default = 0";
       CRM_Core_DAO::executeQuery($query, CRM_Core_DAO::$_nullArray);
     }
 
-        $dao = new CRM_Financial_DAO_PaymentProcessorType( );
+    $dao = new CRM_Financial_DAO_PaymentProcessorType( );
 
     $dao->id         = $this->_id;
     $dao->is_default = CRM_Utils_Array::value('is_default', $values, 0);
index 26c00a1f715d5f45839db85708c3e75c6e54a48c..44ec82f3487e420e4fa60d1106763c467af16abb 100644 (file)
@@ -146,7 +146,6 @@ class CRM_Admin_Form_Preferences extends CRM_Core_Form {
   public function buildQuickForm() {
     parent::buildQuickForm();
 
-
     if (!empty($this->_varNames)) {
       foreach ($this->_varNames as $groupName => $groupValues) {
         $formName = CRM_Utils_String::titleToVar($groupName);
index 67f916e2f2add709d48f653fbcfc18c6be290e04..b6e447417b64332dce4fab367c2dc88ffb2da315 100644 (file)
@@ -99,7 +99,6 @@ class CRM_Admin_Form_Preferences_Address extends CRM_Admin_Form_Preferences {
     $defaults['address_standardization_userid'] = $this->_config->address_standardization_userid;
     $defaults['address_standardization_url'] = $this->_config->address_standardization_url;
 
-
     $this->addressSequence = isset($newSequence) ? $newSequence : "";
 
     if (empty($this->_config->address_format)) {
@@ -129,7 +128,6 @@ class CRM_Admin_Form_Preferences_Address extends CRM_Admin_Form_Preferences {
       $defaults['mailing_format'] = $this->_config->mailing_format;
     }
 
-
     parent::cbsDefaultValues($defaults);
 
     return $defaults;
@@ -192,7 +190,6 @@ class CRM_Admin_Form_Preferences_Address extends CRM_Admin_Form_Preferences {
 
     $this->_params = $this->controller->exportValues($this->_name);
 
-
     // check if county option has been set
     $options = CRM_Core_OptionGroup::values('address_options', FALSE, FALSE, TRUE);
     foreach ($options as $key => $title) {
index 2fe8529af24c6d7ed6a94bae2c20f1e393080d90..ec63a66969a9221b7a8595847ae06d86b38b4178 100644 (file)
@@ -44,7 +44,7 @@ class CRM_Admin_Form_Preferences_Event extends CRM_Admin_Form_Preferences {
     $docLink = CRM_Utils_System::docURL2("CiviEvent Cart Checkout", NULL, NULL, NULL, NULL, "wiki");
     // build an array containing all selectable option values for show_events
     $optionValues = array();
-    for ($i=10; $i <= 100; $i+=10) {
+    for ($i = 10; $i <= 100; $i += 10) {
       $optionValues[$i] = $i;
     }
     $this->_varNames = array(
index 9c9df7ad121047f0428bfa07603afc1c50612b6f..ec1d851e5e43a1e26492e30b7f0cb4ca5f218418 100644 (file)
@@ -91,7 +91,8 @@ class CRM_Admin_Form_RelationshipType extends CRM_Admin_Form {
     if ($this->_id &&
       CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_RelationshipType', $this->_id, 'is_reserved')
     ) {
-      foreach (array('contactTypeA', 'contactTypeB', 'isActive') as $field)$$field->freeze();
+      foreach (array('contactTypeA', 'contactTypeB', 'isActive') as $field) { $$field->freeze();
+      }
     }
 
     if ($this->_action & CRM_Core_Action::VIEW) {
index f6c63ba8245263a717ac5ee659f99d1f8be878da..9bd699683d4753024e8ac4d79b3badd689be8c80 100644 (file)
@@ -88,12 +88,12 @@ class CRM_Admin_Form_ScheduleReminders extends CRM_Admin_Form {
       }
     }
 
-      if (!empty($_POST) && !empty($_POST['entity']) && empty($this->_context)) {
-        $mappingID = $_POST['entity'][0];
-      }
-      elseif ($this->_mappingID) {
-        $mappingID = $this->_mappingID;
-      }
+    if (!empty($_POST) && !empty($_POST['entity']) && empty($this->_context)) {
+      $mappingID = $_POST['entity'][0];
+    }
+    elseif ($this->_mappingID) {
+      $mappingID = $this->_mappingID;
+    }
 
     $this->add(
       'text',
@@ -182,7 +182,8 @@ class CRM_Admin_Form_ScheduleReminders extends CRM_Admin_Form {
     //reminder_frequency
     $this->add('select', 'start_action_unit', ts('Frequency'), $freqUnitsDisplay, TRUE);
 
-    $condition = array('before' => ts('before'),
+    $condition = array(
+    'before' => ts('before'),
       'after' => ts('after'),
     );
     //reminder_action
@@ -532,7 +533,7 @@ class CRM_Admin_Form_ScheduleReminders extends CRM_Admin_Form {
           $templateParams += array(
             'msg_text' => $params['sms_body_text'],
             'is_sms' => TRUE,
-        );
+          );
         }
         else {
           $templateParams += array(
index 9c4bd5bc0b635a605eccae71c5196be7236293a0..14455159a74f9c2142aac2f721a4916328e93a35 100644 (file)
@@ -215,7 +215,7 @@ class CRM_Admin_Form_Setting extends CRM_Core_Form {
     // save components to be enabled
     if (array_key_exists('enableComponents', $params)) {
       CRM_Core_BAO_Setting::setItem($params['enableComponents'],
-        CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME,'enable_components');
+        CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME, 'enable_components');
 
       // unset params by emptying the values, so while retrieving we can detect and load from settings table
       // instead of config-backend for backward compatibility. We could use unset() in later releases.
index 98a0d57ffad5e85b92f0236064f7ffa83db6c031..ee08eba60a7d5804292b0293a67044b7ad2be1f7 100644 (file)
@@ -303,7 +303,7 @@ class CRM_Admin_Form_Setting_Localization extends CRM_Admin_Form_Setting {
     }
 
     // if we manipulated the language list, return to the localization admin screen
-    $return = (bool)(CRM_Utils_Array::value('makeMultilingual', $values) or CRM_Utils_Array::value('addLanguage', $values));
+    $return = (bool) (CRM_Utils_Array::value('makeMultilingual', $values) or CRM_Utils_Array::value('addLanguage', $values));
 
     // save all the settings
     parent::commonProcess($values);
index 3e7b4b524ce7f70e883d6e01176fd4dcc10ad2e7..bce3279a8145c6c40bb70b3c4bf2ff9b02d3773e 100644 (file)
@@ -80,8 +80,7 @@ class CRM_Admin_Form_Setting_Miscellaneous extends CRM_Admin_Form_Setting {
     // FIXME: for now, disable logging for multilingual sites OR if triggers are not permittted
     $domain = new CRM_Core_DAO_Domain;
     $domain->find(TRUE);
-    $attribs = $domain->locales || !$validTriggerPermission ?
-      array('disabled' => 'disabled') : array();
+    $attribs = $domain->locales || !$validTriggerPermission ? array('disabled' => 'disabled') : array();
 
     $this->assign('validTriggerPermission', $validTriggerPermission);
     $this->addYesNo('logging', ts('Logging'), NULL, NULL, $attribs);
index 8bfc4f9e3a8febe350109879e624eece9201a3a5..fecceb069e7da87c234b95941e6615ba8bb8bc3c 100644 (file)
@@ -47,7 +47,8 @@ class CRM_Admin_Form_Setting_Path extends CRM_Admin_Form_Setting {
   public function buildQuickForm() {
     CRM_Utils_System::setTitle(ts('Settings - Upload Directories'));
 
-    $directories = array('uploadDir' => ts('Temporary Files'),
+    $directories = array(
+    'uploadDir' => ts('Temporary Files'),
       'imageUploadDir' => ts('Images'),
       'customFileUploadDir' => ts('Custom Files'),
       'customTemplateDir' => ts('Custom Templates'),
index e8eec00338e8c3524407dc01afedd77f2a3e53c1..ad18055e9ee5000850e6a3dda87270fb0d08ead0 100644 (file)
@@ -141,7 +141,7 @@ class CRM_Admin_Form_Setting_UpdateConfigBackend extends CRM_Admin_Form_Setting
     //CRM-15365 - Fix BaseURL to avoid wrong trailing slash on Windows installs
     foreach ($params as $name => & $val) {
       if ($val && in_array($name, array('newBaseURL'))) {
-        $val = CRM_Utils_File::addTrailingSlash($val,"/");
+        $val = CRM_Utils_File::addTrailingSlash($val, "/");
       }
     }
 
index bcc1689e2d7e41a71113be26a17f53fb8bc67485..56eea109760f9a7f3af6c6aca1f4aebc6a615f5b 100644 (file)
@@ -80,7 +80,7 @@ class CRM_Admin_Form_Tag extends CRM_Admin_Form {
         $selectable = $this->add('checkbox', 'is_selectable', ts('Selectable?'));
         // Selectable should be checked by default when creating a new tag
         if ($this->_action == CRM_Core_Action::ADD) {
-          $selectable->setValue(1);        
+          $selectable->setValue(1);
         }
 
       }
index a6054baf948a4afe9679d5cfb48f02595e1bd29f..de422b3abdf5ec47bcada114669710fbe9441318 100644 (file)
@@ -51,7 +51,8 @@ class CRM_Admin_Form_WordReplacements extends CRM_Core_Form {
     $breadCrumbUrl = CRM_Utils_System::url('civicrm/admin/options/wordreplacements',
       "reset=1"
     );
-    $breadCrumb = array(array('title' => ts('Word Replacements'),
+    $breadCrumb = array(array(
+    'title' => ts('Word Replacements'),
         'url' => $breadCrumbUrl,
       ));
     CRM_Utils_System::appendBreadCrumb($breadCrumb);
index 3def0e680a052b20633ca8d87d69d4d233c5fa3f..b001414bb081a0ebc25eaf473571188dd4b3229f 100644 (file)
@@ -73,7 +73,7 @@ class CRM_Admin_Page_AJAX {
    * enabling/ disabling various objects
    */
   public static function getStatusMsg() {
-    require_once('api/v3/utils.php');
+    require_once 'api/v3/utils.php';
     $recordID  = CRM_Utils_Type::escape($_GET['id'], 'Integer');
     $entity = CRM_Utils_Type::escape($_GET['entity'], 'String');
     $ret = array();
index 1af54007b7298ce1853a5e13f91e2bcb70bdf96d..e62f83c667fb7b51551f98cae0635e02dc822a46 100644 (file)
@@ -57,7 +57,8 @@ class CRM_Admin_Page_Admin extends CRM_Core_Page {
       CRM_Core_Session::setStatus($errorMessage, ts('Warning'), "alert", array('expires' => 0));
     }
 
-    $groups = array('Customize Data and Screens' => ts('Customize Data and Screens'),
+    $groups = array(
+    'Customize Data and Screens' => ts('Customize Data and Screens'),
       'Communications' => ts('Communications'),
       'Localization' => ts('Localization'),
       'Users and Permissions' => ts('Users and Permissions'),
index df375ba3ac0f291e80008d24f853495c9258b7bd..8cc7a7ee3d33502580d07ebc58642041816a6953 100644 (file)
@@ -116,7 +116,7 @@ class CRM_Admin_Page_EventTemplate extends CRM_Core_Page_Basic {
 
       //get event type.
       if (isset($eventTypes[$eventTemplate->event_type_id])) {
-         $allEventTemplates[$eventTemplate->id]['event_type'] = $eventTypes[$eventTemplate->event_type_id];
+        $allEventTemplates[$eventTemplate->id]['event_type'] = $eventTypes[$eventTemplate->event_type_id];
       }
 
       //form all action links
index c357b1be54d118da06e239921985aec02f91eba7..8edf380a7547f260968e5c65d6c2174ab1ddad60 100644 (file)
@@ -55,11 +55,11 @@ class CRM_Admin_Page_Extensions extends CRM_Core_Page_Basic {
    */
   public function preProcess() {
     CRM_Utils_System::setTitle(ts('CiviCRM Extensions'));
-        $destination = CRM_Utils_System::url( 'civicrm/admin/extensions',
+    $destination = CRM_Utils_System::url( 'civicrm/admin/extensions',
                                               'reset=1' );
 
-        $destination = urlencode( $destination );
-        $this->assign( 'destination', $destination );
+    $destination = urlencode( $destination );
+    $this->assign( 'destination', $destination );
   }
 
   /**
@@ -174,17 +174,21 @@ class CRM_Admin_Page_Extensions extends CRM_Core_Page_Basic {
         case CRM_Extension_Manager::STATUS_UNINSTALLED:
           $action += CRM_Core_Action::ADD;
           break;
+
         case CRM_Extension_Manager::STATUS_DISABLED:
           $action += CRM_Core_Action::ENABLE;
           $action += CRM_Core_Action::DELETE;
           break;
+
         case CRM_Extension_Manager::STATUS_DISABLED_MISSING:
           $action += CRM_Core_Action::DELETE;
           break;
+
         case CRM_Extension_Manager::STATUS_INSTALLED:
         case CRM_Extension_Manager::STATUS_INSTALLED_MISSING:
           $action += CRM_Core_Action::DISABLE;
           break;
+
         default:
       }
       // TODO if extbrowser is enabled and extbrowser has newer version than extcontainer,
@@ -303,18 +307,23 @@ class CRM_Admin_Page_Extensions extends CRM_Core_Page_Basic {
       case CRM_Extension_Manager::STATUS_UNINSTALLED:
         $extensionRow['statusLabel'] = ''; // ts('Uninstalled');
         break;
+
       case CRM_Extension_Manager::STATUS_DISABLED:
         $extensionRow['statusLabel'] = ts('Disabled');
         break;
+
       case CRM_Extension_Manager::STATUS_INSTALLED:
         $extensionRow['statusLabel'] = ts('Enabled'); // ts('Installed');
         break;
+
       case CRM_Extension_Manager::STATUS_DISABLED_MISSING:
         $extensionRow['statusLabel'] = ts('Disabled (Missing)');
         break;
+
       case CRM_Extension_Manager::STATUS_INSTALLED_MISSING:
         $extensionRow['statusLabel'] = ts('Enabled (Missing)'); // ts('Installed');
         break;
+
       default:
         $extensionRow['statusLabel'] = '(' . $extensionRow['status'] . ')';
     }
index bb0931388ad22ef054eaadc82e35431276415116..b8aca70fa3b8b701ce7a790d3be8c4bb7a965c93 100644 (file)
@@ -15,7 +15,7 @@ class CRM_Admin_Page_ExtensionsUpgrade extends CRM_Core_Page {
     $runner = new CRM_Queue_Runner(array(
       'title' => ts('Database Upgrades'),
       'queue' => $queue,
-      'errorMode'=> CRM_Queue_Runner::ERROR_ABORT,
+      'errorMode' => CRM_Queue_Runner::ERROR_ABORT,
       'onEnd' => array('CRM_Admin_Page_ExtensionsUpgrade', 'onEnd'),
       'onEndUrl' => CRM_Utils_System::url(self::END_URL, self::END_PARAMS),
     ));
index 00dce28991a7cd36800375457a847742a38fa8a3..f53dc32e594d2ceabaf6fa92c2e946528ad7820a 100644 (file)
@@ -115,7 +115,8 @@ class CRM_Admin_Page_Job extends CRM_Core_Page_Basic {
   public function run() {
     // set title and breadcrumb
     CRM_Utils_System::setTitle(ts('Settings - Scheduled Jobs'));
-    $breadCrumb = array(array('title' => ts('Scheduled Jobs'),
+    $breadCrumb = array(array(
+    'title' => ts('Scheduled Jobs'),
         'url' => CRM_Utils_System::url('civicrm/admin',
           'reset=1'
         ),
@@ -134,7 +135,6 @@ class CRM_Admin_Page_Job extends CRM_Core_Page_Basic {
       $session->pushUserContext(CRM_Utils_System::url('civicrm/admin/job', 'reset=1'));
     }
 
-
     return parent::run();
   }
 
index e0891b3b7efbc399dc1ec28eb8c786ac1e196dc3..ce697f3adaf303c224e100a818810397cc7c1519 100644 (file)
@@ -77,7 +77,8 @@ class CRM_Admin_Page_JobLog extends CRM_Core_Page_Basic {
   public function run() {
     // set title and breadcrumb
     CRM_Utils_System::setTitle(ts('Settings - Scheduled Jobs Log'));
-    $breadCrumb = array(array('title' => ts('Administration'),
+    $breadCrumb = array(array(
+    'title' => ts('Administration'),
         'url' => CRM_Utils_System::url('civicrm/admin',
           'reset=1'
         ),
@@ -119,7 +120,6 @@ class CRM_Admin_Page_JobLog extends CRM_Core_Page_Basic {
     }
     $dao->find();
 
-
     $rows = array();
     while ($dao->fetch()) {
       unset($row);
index d0701c0e6c6fe90fc0f7249a1162a395478f7c11..bdc26e9637a50baeb8c97337c588f7eb06bcb818 100644 (file)
@@ -130,8 +130,8 @@ class CRM_Admin_Page_LabelFormats extends CRM_Core_Page_Basic {
    */
   public function browse($action = NULL) {
     // Get list of configured Label Formats
-    $labelFormatList= CRM_Core_BAO_LabelFormat::getList();
-    $nameFormatList= CRM_Core_BAO_LabelFormat::getList(false, 'name_badge');
+    $labelFormatList = CRM_Core_BAO_LabelFormat::getList();
+    $nameFormatList = CRM_Core_BAO_LabelFormat::getList(FALSE, 'name_badge');
 
     // Add action links to each of the Label Formats
     foreach ($labelFormatList as & $format) {
index fb6877048c43b7bf539a7d630f62e29088a1be1d..0063f50b63b7cc358ea1c9d2afb8c646a06aca3c 100644 (file)
@@ -60,7 +60,8 @@ class CRM_Admin_Page_Navigation extends CRM_Core_Page_Basic {
    *
    * @return array (reference) of action links
    */
-  public function &links() {}
+  public function &links() {
+  }
 
   /**
    * Get name of edit form
index b733c112f0f9c7a1371d0093f0a9ee0a86d4ce83..67d02fa86c3de265f68bf5095acefe366642b1f2 100644 (file)
@@ -125,7 +125,8 @@ class CRM_Admin_Page_Options extends CRM_Core_Page_Basic {
     if (self::$_gName == 'acl_role') {
       CRM_Utils_System::setTitle(ts('Manage ACL Roles'));
       // set breadcrumb to append to admin/access
-      $breadCrumb = array(array('title' => ts('Access Control'),
+      $breadCrumb = array(array(
+      'title' => ts('Access Control'),
           'url' => CRM_Utils_System::url('civicrm/admin/access',
             'reset=1'
           ),
@@ -247,7 +248,7 @@ class CRM_Admin_Page_Options extends CRM_Core_Page_Basic {
 
     // retrieve financial account name for the payment instrument page
     if ($gName = "payment_instrument") {
-      foreach ($optionValue as  $key => $option) {
+      foreach ($optionValue as $key => $option) {
         $optionValue[$key]['financial_account'] = CRM_Financial_BAO_FinancialTypeAccount::getFinancialAccount($key, 'civicrm_option_value');
       }
     }
index aa4a36b858f860893f0297ff47b4c92df44fa40e..0b366fcc7aced3def247d0b3cfc696ad7a3dffdd 100644 (file)
@@ -106,7 +106,8 @@ class CRM_Admin_Page_PaymentProcessor extends CRM_Core_Page_Basic {
     //CRM-15546
     $paymentProcessorTypes = CRM_Core_PseudoConstant::get('CRM_Financial_DAO_PaymentProcessor', 'payment_processor_type_id', array('labelColumn' => 'name', 'flip' => 1));
     $this->assign('defaultPaymentProcessorType', $paymentProcessorTypes['PayPal']);
-    $breadCrumb = array(array('title' => ts('Administration'),
+    $breadCrumb = array(array(
+    'title' => ts('Administration'),
         'url' => CRM_Utils_System::url('civicrm/admin',
         'reset=1'
         ),
index e4ad61362a51ad1b7fa25a9ef168fdd4893a8550..dd817f2d55792f8e54a5022c8eb2927708c122b9 100644 (file)
@@ -136,7 +136,7 @@ class CRM_Admin_Page_Tag extends CRM_Core_Page_Basic {
 
   /**
    * Override function browse()
-   * 
+   *
    * @param null $action
    * @param null $sort
    */