No need to return this value by reference
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 14 Oct 2010 17:28:56 +0000 (11:28 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 15 Oct 2010 16:13:55 +0000 (10:13 -0600)
framework/Notification/lib/Horde/Notification/Storage/Interface.php
framework/Notification/lib/Horde/Notification/Storage/Object.php
framework/Notification/lib/Horde/Notification/Storage/Session.php

index cca28ac..573a4c9 100644 (file)
 interface Horde_Notification_Storage_Interface
 {
     /**
-     * Return the given stack by reference from the notification store.
+     * Return the given stack from the notification store.
      *
      * @param string $key  The key for the data.
      *
      * @return mixed  The notification data stored for the given key.
      */
-    public function &get($key);
+    public function get($key);
 
     /**
      * Set the given stack in the notification store.
index 31cecfd..963947b 100644 (file)
@@ -34,13 +34,13 @@ implements Horde_Notification_Storage_Interface
     public $notifications = array();
 
     /**
-     * Return the given stack by reference from the notification store.
+     * Return the given stack from the notification store.
      *
      * @param string $key  The key for the data.
      *
      * @return mixed  The notification data stored for the given key.
      */
-    public function &get($key)
+    public function get($key)
     {
         return $this->notifications[$key];
     }
index 41000b7..7a6e623 100644 (file)
@@ -49,13 +49,13 @@ implements Horde_Notification_Storage_Interface
     }
 
     /**
-     * Return the given stack by reference from the notification store.
+     * Return the given stack from the notification store.
      *
      * @param string $key  The key for the data.
      *
      * @return mixed  The notification data stored for the given key.
      */
-    public function &get($key)
+    public function get($key)
     {
         return $_SESSION[$this->_stack][$key];
     }