diff options
author | Lukas Reschke <lukas@owncloud.com> | 2014-10-22 15:07:16 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2014-10-22 15:09:33 +0200 |
commit | be06937e65495293a97a1d8ada36d7d8f87cfe44 (patch) | |
tree | 0656e221abe05a6a9e1496e2e4cbd0f2a4e414d7 | |
parent | 31e489b44d22bbb7b255a95485a2417760a96c5c (diff) | |
download | nextcloud-server-be06937e65495293a97a1d8ada36d7d8f87cfe44.tar.gz nextcloud-server-be06937e65495293a97a1d8ada36d7d8f87cfe44.zip |
Use mixed as type
Actually query() returns value of the type "mixed" (as is also stated in the interface) - this is purely there to make our IDEs and Scrutinizer happier.
-rw-r--r-- | lib/private/appframework/utility/simplecontainer.php | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/private/appframework/utility/simplecontainer.php b/lib/private/appframework/utility/simplecontainer.php index 1ad06b9ab23..a2d90138dfa 100644 --- a/lib/private/appframework/utility/simplecontainer.php +++ b/lib/private/appframework/utility/simplecontainer.php @@ -11,14 +11,17 @@ class SimpleContainer extends \Pimple implements \OCP\IContainer { /** * @param string $name name of the service to query for - * @return object registered service for the given $name + * @return mixed registered service for the given $name */ public function query($name) { return $this->offsetGet($name); } - function registerParameter($name, $value) - { + /** + * @param string $name + * @param mixed $value + */ + function registerParameter($name, $value) { $this[$name] = $value; } @@ -29,9 +32,9 @@ class SimpleContainer extends \Pimple implements \OCP\IContainer { * * @param string $name name of the service to register another backend for * @param \Closure $closure the closure to be called on service creation + * @param bool $shared */ - function registerService($name, \Closure $closure, $shared = true) - { + function registerService($name, \Closure $closure, $shared = true) { if ($shared) { $this[$name] = \Pimple::share($closure); } else { |