Merge pull request #5967 from colemanw/CRM-16632
[civicrm-core.git] / CRM / Core / TemporaryErrorScope.php
index 1873c9088557b56f9f1137b1e0635e83af3b1b0e..ec170a7b71357be83db0e36ed91d9f8f258bfced 100644 (file)
@@ -40,6 +40,8 @@ class CRM_Core_TemporaryErrorScope {
 
   /**
    * @param mixed $callback
+   * @param null $modeException
+   *
    * @return CRM_Core_TemporaryErrorScope
    */
   public static function create($callback, $modeException = NULL) {
@@ -51,6 +53,9 @@ class CRM_Core_TemporaryErrorScope {
     return new CRM_Core_TemporaryErrorScope($newFrame);
   }
 
+  /**
+   * @param $newFrame
+   */
   public function __construct($newFrame) {
     self::$oldFrames[] = self::getActive();
     self::setActive($newFrame);
@@ -67,7 +72,7 @@ class CRM_Core_TemporaryErrorScope {
   public static function getActive() {
     return array(
       '_PEAR_default_error_mode' => $GLOBALS['_PEAR_default_error_mode'],
-      '_PEAR_default_error_options' =>$GLOBALS['_PEAR_default_error_options'],
+      '_PEAR_default_error_options' => $GLOBALS['_PEAR_default_error_options'],
       'modeException' => CRM_Core_Error::$modeException,
     );
   }
@@ -80,4 +85,5 @@ class CRM_Core_TemporaryErrorScope {
     $GLOBALS['_PEAR_default_error_options'] = $frame['_PEAR_default_error_options'];
     CRM_Core_Error::$modeException = $frame['modeException'];
   }
+
 }