summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-03-05 18:00:46 +0100
committerJoas Schilling <coding@schilljs.com>2019-03-05 18:01:14 +0100
commita788da6ac22f331ac4789f24e908bb340ce89f6a (patch)
treeffb9a7806f42c29a24efae088e94eeeb5b6764ae /lib
parentc5ab74348c01593e3f0c3a05701b224b019ecd87 (diff)
downloadnextcloud-server-a788da6ac22f331ac4789f24e908bb340ce89f6a.tar.gz
nextcloud-server-a788da6ac22f331ac4789f24e908bb340ce89f6a.zip
Make the file strict
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/ServerContainer.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/private/ServerContainer.php b/lib/private/ServerContainer.php
index 4c8107fe1be..8c2b49bb085 100644
--- a/lib/private/ServerContainer.php
+++ b/lib/private/ServerContainer.php
@@ -1,4 +1,5 @@
<?php
+declare(strict_types=1);
/**
* @copyright Copyright (c) 2016, ownCloud, Inc.
*
@@ -57,7 +58,7 @@ class ServerContainer extends SimpleContainer {
* @param string $appName
* @param string $appNamespace
*/
- public function registerNamespace($appName, $appNamespace) {
+ public function registerNamespace(string $appName, string $appNamespace): void {
// Cut of OCA\ and lowercase
$appNamespace = strtolower(substr($appNamespace, strrpos($appNamespace, '\\') + 1));
$this->namespaces[$appNamespace] = $appName;
@@ -67,7 +68,7 @@ class ServerContainer extends SimpleContainer {
* @param string $appName
* @param DIContainer $container
*/
- public function registerAppContainer($appName, DIContainer $container) {
+ public function registerAppContainer(string $appName, DIContainer $container): void {
$this->appContainers[strtolower(App::buildAppNamespace($appName, ''))] = $container;
}
@@ -76,7 +77,7 @@ class ServerContainer extends SimpleContainer {
* @return DIContainer
* @throws QueryException
*/
- public function getRegisteredAppContainer(string $appName) {
+ public function getRegisteredAppContainer(string $appName): DIContainer {
if (isset($this->appContainers[strtolower(App::buildAppNamespace($appName, ''))])) {
return $this->appContainers[strtolower(App::buildAppNamespace($appName, ''))];
}
@@ -90,7 +91,7 @@ class ServerContainer extends SimpleContainer {
* @return DIContainer
* @throws QueryException
*/
- protected function getAppContainer($namespace, $sensitiveNamespace) {
+ protected function getAppContainer(string $namespace, string $sensitiveNamespace): DIContainer {
if (isset($this->appContainers[$namespace])) {
return $this->appContainers[$namespace];
}