INFRA-132 - Civi - PHPStorm cleanup
authorTim Otten <totten@civicrm.org>
Sat, 10 Jan 2015 03:51:41 +0000 (19:51 -0800)
committerTim Otten <totten@civicrm.org>
Sat, 10 Jan 2015 03:51:41 +0000 (19:51 -0800)
12 files changed:
Civi/API/Provider/AdhocProvider.php
Civi/API/Provider/ProviderInterface.php
Civi/API/Subscriber/ChainSubscriber.php
Civi/API/Subscriber/PermissionCheck.php
Civi/API/Subscriber/XDebugSubscriber.php
Civi/CCase/SequenceListener.php
Civi/CiUtil/PHPUnitScanner.php
Civi/Core/Container.php
Civi/Core/Transaction/Frame.php
Civi/Core/Transaction/Manager.php
Civi/Install/Requirements.php
Civi/Payment/System.php

index c981ef21d3d72f83bf8b4c297ecf48b844adb754..7bb62be87ffd173c69cbc0b5c670acda2d2e4694 100644 (file)
@@ -26,6 +26,7 @@
 */
 
 namespace Civi\API\Provider;
+
 use Civi\API\Events;
 use Symfony\Component\EventDispatcher\EventSubscriberInterface;
 
index e17ca8c269ffe5b52976cd64d12ada2e35048334..94432c66f7f1789264c4081e7adb9e6e34f51173 100644 (file)
@@ -26,6 +26,7 @@
 */
 
 namespace Civi\API\Provider;
+
 use Civi\API\Events;
 use Symfony\Component\EventDispatcher\EventSubscriberInterface;
 
index 93a2d3454098f9d2af82fc408776a6c2f7b5c402..74488e2d91d6db70482a9946437fd8189e7dd6b7 100644 (file)
@@ -26,6 +26,7 @@
 */
 
 namespace Civi\API\Subscriber;
+
 use Civi\API\Events;
 use Symfony\Component\EventDispatcher\EventSubscriberInterface;
 
index ebd080f56d71708a716f40253309991cf61f5ed2..68485e301fee83fdbdecc2add9389c30457fb2b7 100644 (file)
@@ -26,6 +26,7 @@
 */
 
 namespace Civi\API\Subscriber;
+
 use Civi\API\Events;
 use Symfony\Component\EventDispatcher\EventSubscriberInterface;
 
index 316a4650df583e78310db4bd38250f3a799ea071..2dc1ba6a00aa5e4433528a51c175c56f32375426 100644 (file)
@@ -26,6 +26,7 @@
 */
 
 namespace Civi\API\Subscriber;
+
 use Civi\API\Events;
 use Symfony\Component\EventDispatcher\EventSubscriberInterface;
 
index 7b40e7fbc679604449fdf21fd152686359756f11..7f83ebb6fe75d73afb5d631412003fad2bd432a3 100644 (file)
@@ -58,7 +58,7 @@ class SequenceListener implements CaseChangeListener {
 
     // OK, the activity has completed every step in the sequence!
     civicrm_api3('Case', 'create', array(
-      'id'  => $analyzer->getCaseId(),
+      'id' => $analyzer->getCaseId(),
       'status_id' => 'Closed',
     ));
     $analyzer->flush();
index 45751af58b8b00d66603b4bebc71c262660d76be..6b25edab3705cc7a222c62161dc3b0d78e3aba2e 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace Civi\CiUtil;
+
 use Symfony\Component\Finder\Finder;
 
 /**
index 5d951e19d0ee11a055b4326bb516ae45ba17e238..8c3d7f8405fd9d2e78fa685f4aee0760dfdad4b6 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace Civi\Core;
+
 use Doctrine\Common\Annotations\AnnotationReader;
 use Doctrine\Common\Annotations\AnnotationRegistry;
 use Doctrine\Common\Annotations\FileCacheReader;
@@ -97,7 +98,10 @@ class Container {
     $dispatcher->addListener('DAO::post-insert', array('\CRM_Core_BAO_RecurringEntity', 'triggerInsert'));
     $dispatcher->addListener('DAO::post-update', array('\CRM_Core_BAO_RecurringEntity', 'triggerUpdate'));
     $dispatcher->addListener('DAO::post-delete', array('\CRM_Core_BAO_RecurringEntity', 'triggerDelete'));
-    $dispatcher->addListener('hook_civicrm_unhandled_exception', array('CRM_Core_LegacyErrorHandler', 'handleException'));
+    $dispatcher->addListener('hook_civicrm_unhandled_exception', array(
+        'CRM_Core_LegacyErrorHandler',
+        'handleException'
+      ));
     return $dispatcher;
   }
 
index 0bc95c0527d3ab30b3bae13464c850e8d2aca19a..ea0a8b9e7d9c3247ecdd9adfd6ca656c6b10403c 100644 (file)
@@ -108,7 +108,7 @@ class Frame {
   }
 
   public function setRollbackOnly() {
-    $this->doCommit = false;
+    $this->doCommit = FALSE;
   }
 
   public function begin() {
@@ -163,7 +163,7 @@ class Frame {
    * @param array|NULL $params Optional values to pass to callback.
    *          See php manual call_user_func_array for details.
    */
-  public function addCallback($phase, $callback, $params = null, $id = NULL) {
+  public function addCallback($phase, $callback, $params = NULL, $id = NULL) {
     if ($id) {
       $this->callbacks[$phase][$id] = array(
         'callback' => $callback,
index f7ff620095188daaca57b74a246a25d9a3dd3829..7b2ca2dc64984d12059d965409a1eeaaa9047f98 100644 (file)
@@ -161,8 +161,7 @@ class Manager {
    * @return \Civi\Core\Transaction\Frame
    */
   protected function createBaseFrame() {
-    return new Frame($this->dao, 'BEGIN', 'COMMIT', 'ROLLBACK');
-    ;
+    return new Frame($this->dao, 'BEGIN', 'COMMIT', 'ROLLBACK');;
   }
 
   /**
index 8d4a6af612aeeedfe945dd24c88a6a4e960030a2..3cb0da52e4f4af2eb16de95ae841b0984bdf1774 100644 (file)
@@ -481,7 +481,7 @@ class Requirements {
     $conn = @mysql_connect($db_config['server'], $db_config['username'], $db_config['password']);
     if (!$conn) {
       $results['severity'] = $this::REQUIREMENT_ERROR;
-      $results['details'] =  'Could not connect to database';
+      $results['details'] = 'Could not connect to database';
       return $results;
     }
 
index 18d66651ca582174fe28f60c7aa2212ebacfb846..f72aaab48d7a73662946480ad1449de66adb630f 100644 (file)
@@ -57,6 +57,7 @@ class System {
     }
     return $this->cache[$id];
   }
+
   /**
    * @param integer $id
    * @throws \CiviCRM_API3_Exception