Ian province abbreviation patch - issue 724
[civicrm-core.git] / Civi / API / Subscriber / TransactionSubscriber.php
index 1dd1b712771983940a82d1c88a9626b6e0e93bb3..ee10ea164780b30becc204bbeec6a9d574bd5d4b 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.6                                                |
+ | CiviCRM version 4.7                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014                                |
+ | Copyright CiviCRM LLC (c) 2004-2015                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 namespace Civi\API\Subscriber;
 
@@ -69,7 +69,7 @@ class TransactionSubscriber implements EventSubscriberInterface {
   private $forceRollback = array();
 
   /**
-   * Determine if an API request should be treated as transactional
+   * Determine if an API request should be treated as transactional.
    *
    * @param \Civi\API\Provider\ProviderInterface $apiProvider
    *   The API provider responsible for this request.
@@ -114,7 +114,8 @@ class TransactionSubscriber implements EventSubscriberInterface {
    *   The API provider responsible for this request.
    * @param array $apiRequest
    *   The full API request.
-   * @return bool True if a new nested transaction is required; false if active tx may be used
+   * @return bool
+   *   True if a new nested transaction is required; false if active tx may be used
    */
   public function isNested($apiProvider, $apiRequest) {
     if ($this->isForceRollback($apiProvider, $apiRequest)) {
@@ -143,7 +144,7 @@ class TransactionSubscriber implements EventSubscriberInterface {
   }
 
   /**
-   * Close any pending transactions
+   * Close any pending transactions.
    *
    * @param \Civi\API\Event\RespondEvent $event
    *   API response event.
@@ -159,7 +160,7 @@ class TransactionSubscriber implements EventSubscriberInterface {
   }
 
   /**
-   * Rollback the pending transaction
+   * Rollback the pending transaction.
    *
    * @param \Civi\API\Event\ExceptionEvent $event
    *   API exception event.
@@ -171,4 +172,5 @@ class TransactionSubscriber implements EventSubscriberInterface {
       unset($this->transactions[$apiRequest['id']]);
     }
   }
+
 }