CRM-15735 fix - Update payment status for pay-later membership renewal ignores Receiv...
[civicrm-core.git] / CRM / Core / Region.php
index 417b1ecaa1e5d3fde86df153c2242fa553c1b7b9..9db08aa172b053e9a270f583456854fc064dec43 100644 (file)
@@ -15,7 +15,7 @@ class CRM_Core_Region {
    * @return CRM_Core_Region
    */
   public static function &instance($name, $autocreate = TRUE) {
-    if ($autocreate && ! isset(self::$_instances[$name])) {
+    if ($autocreate && !isset(self::$_instances[$name])) {
       self::$_instances[$name] = new CRM_Core_Region($name);
     }
     return self::$_instances[$name];
@@ -84,7 +84,7 @@ class CRM_Core_Region {
    * Note: This function does not perform any extra encoding of markup, script code, or etc. If
    * you're passing in user-data, you must clean it yourself.
    *
-   * @param $snippet
+   * @param array $snippet
    *   Array; keys:.
    *   - type: string (auto-detected for markup, template, callback, script, scriptUrl, jquery, style, styleUrl)
    *   - name: string, optional
@@ -220,7 +220,7 @@ class CRM_Core_Region {
         default:
           require_once 'CRM/Core/Error.php';
           CRM_Core_Error::fatal(ts('Snippet type %1 is unrecognized',
-                     array(1 => $snippet['type'])));
+            array(1 => $snippet['type'])));
       }
     }
     return $html;
@@ -255,14 +255,14 @@ class CRM_Core_Region {
    * @param string $markup
    *   HTML.
    *
-  public function addMarkup($markup) {
-  return $this->add(array(
-  'type' => 'markup',
-  'markup' => $markup,
-  ));
-  }
-
-  /**
+   * public function addMarkup($markup) {
+   * return $this->add(array(
+   * 'type' => 'markup',
+   * 'markup' => $markup,
+   * ));
+   * }
+   *
+   * /**
    * Add a Smarty template file to a region
    *
    * Note: File is not evaluated until the page is rendered
@@ -270,26 +270,27 @@ class CRM_Core_Region {
    * @param string $template
    *   Path to the Smarty template file.
    *
-  public function addTemplate($template) {
-  return $this->add(array(
-  'type' => 'template',
-  'template' => $template,
-  ));
-  }
-
-  /**
+   * public function addTemplate($template) {
+   * return $this->add(array(
+   * 'type' => 'template',
+   * 'template' => $template,
+   * ));
+   * }
+   *
+   * /**
    * Use a callback function to extend a region
    *
    * @param mixed $callback
    * @param array $arguments
    *   Optional, array of parameters for callback; if omitted, the default arguments are ($snippetSpec, $html).
    *
-  public function addCallback($callback, $arguments = FALSE) {
-  return $this->add(array(
-  'type' => 'callback',
-  'callback' => $callback,
-  'arguments' => $arguments,
-  ));
-  }
-  */
+   * public function addCallback($callback, $arguments = FALSE) {
+   * return $this->add(array(
+   * 'type' => 'callback',
+   * 'callback' => $callback,
+   * 'arguments' => $arguments,
+   * ));
+   * }
+   */
+
 }