Civi\Angular - Docblock improvements.
[civicrm-core.git] / CRM / Utils / Recent.php
index df74201a3ad308859d6e55b7b233c71f7ba41a71..aa66d55454c8da18e66b9a40969ba8b402a5bdea 100644 (file)
@@ -1,5 +1,4 @@
 <?php
-
 /*
  +--------------------------------------------------------------------+
  | CiviCRM version 4.6                                                |
@@ -24,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -50,7 +49,6 @@ class CRM_Utils_Recent {
    * The list of recently viewed items
    *
    * @var array
-   * @static
    */
   static private $_recent = NULL;
 
@@ -58,7 +56,6 @@ class CRM_Utils_Recent {
    * Initialize this class and set the static variables
    *
    * @return void
-   * @static
    */
   public static function initialize() {
     if (!self::$_recent) {
@@ -75,7 +72,6 @@ class CRM_Utils_Recent {
    *
    * @return array
    *   the recently viewed array
-   * @static
    */
   public static function &get() {
     self::initialize();
@@ -97,9 +93,8 @@ class CRM_Utils_Recent {
    * @param array $others
    *
    * @return void
-   * @static
    */
-  static function add(
+  public static function add(
     $title,
     $url,
     $id,
@@ -155,7 +150,6 @@ class CRM_Utils_Recent {
    *   Array of the recent Item to be removed.
    *
    * @return void
-   * @static
    */
   public static function del($recentItem) {
     self::initialize();
@@ -166,8 +160,9 @@ class CRM_Utils_Recent {
     // make sure item is not already present in list
     for ($i = 0; $i < count($tempRecent); $i++) {
       if (!($tempRecent[$i]['id'] == $recentItem['id'] &&
-          $tempRecent[$i]['type'] == $recentItem['type']
-        )) {
+        $tempRecent[$i]['type'] == $recentItem['type']
+      )
+      ) {
         self::$_recent[] = $tempRecent[$i];
       }
     }
@@ -183,7 +178,6 @@ class CRM_Utils_Recent {
    *   Contact id that had to be removed.
    *
    * @return void
-   * @static
    */
   public static function delContact($id) {
     self::initialize();
@@ -204,4 +198,5 @@ class CRM_Utils_Recent {
     $session = CRM_Core_Session::singleton();
     $session->set(self::STORE_NAME, self::$_recent);
   }
+
 }