From: Michael M Slusarz Date: Thu, 14 Oct 2010 17:28:56 +0000 (-0600) Subject: No need to return this value by reference X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=eefaba689a48ca93d42d39b8e7045d3d8db9f7cb;p=horde.git No need to return this value by reference --- diff --git a/framework/Notification/lib/Horde/Notification/Storage/Interface.php b/framework/Notification/lib/Horde/Notification/Storage/Interface.php index cca28acb6..573a4c9e2 100644 --- a/framework/Notification/lib/Horde/Notification/Storage/Interface.php +++ b/framework/Notification/lib/Horde/Notification/Storage/Interface.php @@ -26,13 +26,13 @@ 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. diff --git a/framework/Notification/lib/Horde/Notification/Storage/Object.php b/framework/Notification/lib/Horde/Notification/Storage/Object.php index 31cecfd4d..963947b30 100644 --- a/framework/Notification/lib/Horde/Notification/Storage/Object.php +++ b/framework/Notification/lib/Horde/Notification/Storage/Object.php @@ -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]; } diff --git a/framework/Notification/lib/Horde/Notification/Storage/Session.php b/framework/Notification/lib/Horde/Notification/Storage/Session.php index 41000b7c5..7a6e62392 100644 --- a/framework/Notification/lib/Horde/Notification/Storage/Session.php +++ b/framework/Notification/lib/Horde/Notification/Storage/Session.php @@ -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]; }