From 7d85bed1fc18af55fa29a3740aacf333273eced2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Juan=20Pablo=20Villaf=C3=A1=C3=B1ez?= Date: Wed, 8 Jun 2016 12:48:33 +0200 Subject: [PATCH] Change the default value to true instead of null --- .../lib/Controller/GlobalStoragesController.php | 2 +- apps/files_external/lib/Controller/StoragesController.php | 4 ++-- .../lib/Controller/UserGlobalStoragesController.php | 4 ++-- apps/files_external/lib/Controller/UserStoragesController.php | 4 ++-- apps/files_external/lib/config.php | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/apps/files_external/lib/Controller/GlobalStoragesController.php b/apps/files_external/lib/Controller/GlobalStoragesController.php index e606bacd8c2..471e3b51593 100644 --- a/apps/files_external/lib/Controller/GlobalStoragesController.php +++ b/apps/files_external/lib/Controller/GlobalStoragesController.php @@ -140,7 +140,7 @@ class GlobalStoragesController extends StoragesController { $applicableUsers, $applicableGroups, $priority, - $testOnly = null + $testOnly = true ) { $storage = $this->createStorage( $mountPoint, diff --git a/apps/files_external/lib/Controller/StoragesController.php b/apps/files_external/lib/Controller/StoragesController.php index 8eb5506d534..e50426f4888 100644 --- a/apps/files_external/lib/Controller/StoragesController.php +++ b/apps/files_external/lib/Controller/StoragesController.php @@ -238,7 +238,7 @@ abstract class StoragesController extends Controller { * * @param StorageConfig $storage storage configuration */ - protected function updateStorageStatus(StorageConfig &$storage, $testOnly = null) { + protected function updateStorageStatus(StorageConfig &$storage, $testOnly = true) { try { $this->manipulateStorageConfig($storage); @@ -294,7 +294,7 @@ abstract class StoragesController extends Controller { * * @return DataResponse */ - public function show($id, $testOnly = null) { + public function show($id, $testOnly = true) { try { $storage = $this->service->getStorage($id); diff --git a/apps/files_external/lib/Controller/UserGlobalStoragesController.php b/apps/files_external/lib/Controller/UserGlobalStoragesController.php index 8376a00559d..f65e578507d 100644 --- a/apps/files_external/lib/Controller/UserGlobalStoragesController.php +++ b/apps/files_external/lib/Controller/UserGlobalStoragesController.php @@ -111,7 +111,7 @@ class UserGlobalStoragesController extends StoragesController { * * @NoAdminRequired */ - public function show($id, $testOnly = null) { + public function show($id, $testOnly = true) { try { $storage = $this->service->getStorage($id); @@ -147,7 +147,7 @@ class UserGlobalStoragesController extends StoragesController { public function update( $id, $backendOptions, - $testOnly = null + $testOnly = true ) { try { $storage = $this->service->getStorage($id); diff --git a/apps/files_external/lib/Controller/UserStoragesController.php b/apps/files_external/lib/Controller/UserStoragesController.php index ca949df8a05..28663090e89 100644 --- a/apps/files_external/lib/Controller/UserStoragesController.php +++ b/apps/files_external/lib/Controller/UserStoragesController.php @@ -101,7 +101,7 @@ class UserStoragesController extends StoragesController { * * {@inheritdoc} */ - public function show($id, $testOnly = null) { + public function show($id, $testOnly = true) { return parent::show($id, $testOnly); } @@ -171,7 +171,7 @@ class UserStoragesController extends StoragesController { $authMechanism, $backendOptions, $mountOptions, - $testOnly = null + $testOnly = true ) { $storage = $this->createStorage( $mountPoint, diff --git a/apps/files_external/lib/config.php b/apps/files_external/lib/config.php index 95220f86cf7..3510b675d4d 100644 --- a/apps/files_external/lib/config.php +++ b/apps/files_external/lib/config.php @@ -215,7 +215,7 @@ class OC_Mount_Config { * @return int see self::STATUS_* * @throws Exception */ - public static function getBackendStatus($class, $options, $isPersonal, $testOnly = null) { + public static function getBackendStatus($class, $options, $isPersonal, $testOnly = true) { if (self::$skipTest) { return StorageNotAvailableException::STATUS_SUCCESS; } -- 2.39.5