INFRA-132 - Change "else if" to "elseif"
[civicrm-core.git] / CRM / Core / TemporaryErrorScope.php
index 1873c9088557b56f9f1137b1e0635e83af3b1b0e..6ab382b1d0c136765b60e5d6a7fd8de5632981a0 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,
     );
   }