From eefaba689a48ca93d42d39b8e7045d3d8db9f7cb Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Thu, 14 Oct 2010 11:28:56 -0600 Subject: [PATCH] No need to return this value by reference --- framework/Notification/lib/Horde/Notification/Storage/Interface.php | 4 ++-- framework/Notification/lib/Horde/Notification/Storage/Object.php | 4 ++-- framework/Notification/lib/Horde/Notification/Storage/Session.php | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) 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]; } -- 2.11.0