diff options
author | Juan Pablo Villafáñez <jvillafanez@solidgear.es> | 2016-06-08 12:48:33 +0200 |
---|---|---|
committer | Juan Pablo Villafáñez <jvillafanez@solidgear.es> | 2016-06-08 12:48:33 +0200 |
commit | 7d85bed1fc18af55fa29a3740aacf333273eced2 (patch) | |
tree | a479e1975e24a04d995df70945facd68d9fe9940 /apps/files_external/lib | |
parent | a2b00582bc4708eded399091b4aa3f851cada3a7 (diff) | |
download | nextcloud-server-7d85bed1fc18af55fa29a3740aacf333273eced2.tar.gz nextcloud-server-7d85bed1fc18af55fa29a3740aacf333273eced2.zip |
Change the default value to true instead of null
Diffstat (limited to 'apps/files_external/lib')
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; } |