]> source.dussan.org Git - nextcloud-server.git/commitdiff
Change the default value to true instead of null
authorJuan Pablo Villafáñez <jvillafanez@solidgear.es>
Wed, 8 Jun 2016 10:48:33 +0000 (12:48 +0200)
committerJuan Pablo Villafáñez <jvillafanez@solidgear.es>
Wed, 8 Jun 2016 10:48:33 +0000 (12:48 +0200)
apps/files_external/lib/Controller/GlobalStoragesController.php
apps/files_external/lib/Controller/StoragesController.php
apps/files_external/lib/Controller/UserGlobalStoragesController.php
apps/files_external/lib/Controller/UserStoragesController.php
apps/files_external/lib/config.php

index e606bacd8c28daff62f66ac4ae8f52afd10e0677..471e3b51593b6fc13ba5425acbd9d9188a04d2b8 100644 (file)
@@ -140,7 +140,7 @@ class GlobalStoragesController extends StoragesController {
                $applicableUsers,
                $applicableGroups,
                $priority,
-               $testOnly = null
+               $testOnly = true
        ) {
                $storage = $this->createStorage(
                        $mountPoint,
index 8eb5506d534571f7c72e8412068228e6f50b1290..e50426f488899e8bfec035cf3098d853466ba8a4 100644 (file)
@@ -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);
 
index 8376a00559d6cf97e8a2831ae69730d5bdd352ad..f65e578507d5706897ee6d79b6e33de9851bb4e2 100644 (file)
@@ -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);
index ca949df8a05c4df029361a670fbc10369c7dd5cd..28663090e898c576215bdb3ef68787cfe658b16c 100644 (file)
@@ -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,
index 95220f86cf7fe6bf66fd795b7978629e3204f3fa..3510b675d4d3abfb195d2c0473386a7a0c30d4ae 100644 (file)
@@ -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;
                }