summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2017-10-14 20:49:52 +0200
committerJulius Härtl <jus@bitgrid.net>2017-10-14 20:51:59 +0200
commit79c4538511206c2f64dfdcbe030bbbe166125ae4 (patch)
tree87c1ea15a69e9a079f8c47cbd7f958429211ab3f /apps
parenta829ac787aa2dc56b780b7719f0b023daaaf48b6 (diff)
downloadnextcloud-server-79c4538511206c2f64dfdcbe030bbbe166125ae4.tar.gz
nextcloud-server-79c4538511206c2f64dfdcbe030bbbe166125ae4.zip
Dav: codestyle fixes in PluginManager
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps')
-rw-r--r--apps/dav/lib/AppInfo/PluginManager.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/dav/lib/AppInfo/PluginManager.php b/apps/dav/lib/AppInfo/PluginManager.php
index 411cf73e815..9cdf358c80e 100644
--- a/apps/dav/lib/AppInfo/PluginManager.php
+++ b/apps/dav/lib/AppInfo/PluginManager.php
@@ -71,7 +71,7 @@ class PluginManager {
* @return array
*/
public function getAppPlugins() {
- if (is_null($this->plugins)) {
+ if (null === $this->plugins) {
$this->populate();
}
return $this->plugins;
@@ -83,7 +83,7 @@ class PluginManager {
* @return array
*/
public function getAppCollections() {
- if (is_null($this->collections)) {
+ if (null === $this->collections) {
$this->populate();
}
return $this->collections;
@@ -98,7 +98,7 @@ class PluginManager {
foreach ($this->appManager->getInstalledApps() as $app) {
// load plugins and collections from info.xml
$info = $this->appManager->getAppInfo($app);
- if (!isset($info['types']) || !in_array('dav', $info['types'])) {
+ if (!isset($info['types']) || !in_array('dav', $info['types'], true)) {
continue;
}
// FIXME: switch to public API once available
@@ -109,7 +109,7 @@ class PluginManager {
}
}
- private function extractPluginList($array) {
+ private function extractPluginList(array $array) {
if (isset($array['sabre']) && is_array($array['sabre'])) {
if (isset($array['sabre']['plugins']) && is_array($array['sabre']['plugins'])) {
if (isset($array['sabre']['plugins']['plugin'])) {
@@ -124,7 +124,7 @@ class PluginManager {
return [];
}
- private function extractCollectionList($array) {
+ private function extractCollectionList(array $array) {
if (isset($array['sabre']) && is_array($array['sabre'])) {
if (isset($array['sabre']['collections']) && is_array($array['sabre']['collections'])) {
if (isset($array['sabre']['collections']['collection'])) {
@@ -139,7 +139,7 @@ class PluginManager {
return [];
}
- private function loadSabrePluginsFromInfoXml($plugins) {
+ private function loadSabrePluginsFromInfoXml(array $plugins) {
foreach ($plugins as $plugin) {
try {
$this->plugins[] = $this->container->query($plugin);
@@ -153,7 +153,7 @@ class PluginManager {
}
}
- private function loadSabreCollectionsFromInfoXml($collections) {
+ private function loadSabreCollectionsFromInfoXml(array $collections) {
foreach ($collections as $collection) {
try {
$this->collections[] = $this->container->query($collection);
@@ -164,7 +164,7 @@ class PluginManager {
throw new \Exception("Sabre collection class '$collection' is unknown and could not be loaded");
}
}
- };
+ }
}
}