summaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_external')
-rw-r--r--apps/files_external/lib/Command/Applicable.php2
-rw-r--r--apps/files_external/lib/Command/Backends.php2
-rw-r--r--apps/files_external/lib/Command/Config.php2
-rw-r--r--apps/files_external/lib/Command/Create.php2
-rw-r--r--apps/files_external/lib/Command/Delete.php2
-rw-r--r--apps/files_external/lib/Command/Import.php2
-rw-r--r--apps/files_external/lib/Command/ListCommand.php2
-rw-r--r--apps/files_external/lib/Command/Notify.php2
-rw-r--r--apps/files_external/lib/Command/Verify.php2
-rw-r--r--apps/files_external/lib/Lib/Backend/InvalidBackend.php2
-rw-r--r--apps/files_external/lib/Lib/Storage/SFTPReadStream.php2
-rw-r--r--apps/files_external/lib/Lib/Storage/SFTPWriteStream.php2
-rw-r--r--apps/files_external/tests/Controller/StoragesControllerTest.php2
-rw-r--r--apps/files_external/tests/OwnCloudFunctionsTest.php2
-rw-r--r--apps/files_external/tests/Service/GlobalStoragesServiceTest.php8
15 files changed, 18 insertions, 18 deletions
diff --git a/apps/files_external/lib/Command/Applicable.php b/apps/files_external/lib/Command/Applicable.php
index 8dfbf396a20..0e28d2bf79f 100644
--- a/apps/files_external/lib/Command/Applicable.php
+++ b/apps/files_external/lib/Command/Applicable.php
@@ -51,7 +51,7 @@ class Applicable extends Base {
*/
private $groupManager;
- function __construct(
+ public function __construct(
GlobalStoragesService $globalService,
IUserManager $userManager,
IGroupManager $groupManager
diff --git a/apps/files_external/lib/Command/Backends.php b/apps/files_external/lib/Command/Backends.php
index 5618b3fd16d..3e51f6d3b08 100644
--- a/apps/files_external/lib/Command/Backends.php
+++ b/apps/files_external/lib/Command/Backends.php
@@ -35,7 +35,7 @@ class Backends extends Base {
/** @var BackendService */
private $backendService;
- function __construct(BackendService $backendService
+ public function __construct(BackendService $backendService
) {
parent::__construct();
diff --git a/apps/files_external/lib/Command/Config.php b/apps/files_external/lib/Command/Config.php
index f58b1561e68..a42689ddec1 100644
--- a/apps/files_external/lib/Command/Config.php
+++ b/apps/files_external/lib/Command/Config.php
@@ -38,7 +38,7 @@ class Config extends Base {
*/
protected $globalService;
- function __construct(GlobalStoragesService $globalService) {
+ public function __construct(GlobalStoragesService $globalService) {
parent::__construct();
$this->globalService = $globalService;
}
diff --git a/apps/files_external/lib/Command/Create.php b/apps/files_external/lib/Command/Create.php
index 7926da60b9e..a094ff49572 100644
--- a/apps/files_external/lib/Command/Create.php
+++ b/apps/files_external/lib/Command/Create.php
@@ -64,7 +64,7 @@ class Create extends Base {
/** @var IUserSession */
private $userSession;
- function __construct(GlobalStoragesService $globalService,
+ public function __construct(GlobalStoragesService $globalService,
UserStoragesService $userService,
IUserManager $userManager,
IUserSession $userSession,
diff --git a/apps/files_external/lib/Command/Delete.php b/apps/files_external/lib/Command/Delete.php
index 21f4217445d..f8bef4c79ac 100644
--- a/apps/files_external/lib/Command/Delete.php
+++ b/apps/files_external/lib/Command/Delete.php
@@ -58,7 +58,7 @@ class Delete extends Base {
*/
protected $userManager;
- function __construct(GlobalStoragesService $globalService, UserStoragesService $userService, IUserSession $userSession, IUserManager $userManager) {
+ public function __construct(GlobalStoragesService $globalService, UserStoragesService $userService, IUserSession $userSession, IUserManager $userManager) {
parent::__construct();
$this->globalService = $globalService;
$this->userService = $userService;
diff --git a/apps/files_external/lib/Command/Import.php b/apps/files_external/lib/Command/Import.php
index e006bb9f560..a1f61bd9f1d 100644
--- a/apps/files_external/lib/Command/Import.php
+++ b/apps/files_external/lib/Command/Import.php
@@ -66,7 +66,7 @@ class Import extends Base {
/** @var BackendService */
private $backendService;
- function __construct(GlobalStoragesService $globalService,
+ public function __construct(GlobalStoragesService $globalService,
UserStoragesService $userService,
IUserSession $userSession,
IUserManager $userManager,
diff --git a/apps/files_external/lib/Command/ListCommand.php b/apps/files_external/lib/Command/ListCommand.php
index 6fa493a6598..e7f43ce2a0e 100644
--- a/apps/files_external/lib/Command/ListCommand.php
+++ b/apps/files_external/lib/Command/ListCommand.php
@@ -60,7 +60,7 @@ class ListCommand extends Base {
const ALL = -1;
- function __construct(GlobalStoragesService $globalService, UserStoragesService $userService, IUserSession $userSession, IUserManager $userManager) {
+ public function __construct(GlobalStoragesService $globalService, UserStoragesService $userService, IUserSession $userSession, IUserManager $userManager) {
parent::__construct();
$this->globalService = $globalService;
$this->userService = $userService;
diff --git a/apps/files_external/lib/Command/Notify.php b/apps/files_external/lib/Command/Notify.php
index 6b83c570c67..96b39de6e1e 100644
--- a/apps/files_external/lib/Command/Notify.php
+++ b/apps/files_external/lib/Command/Notify.php
@@ -52,7 +52,7 @@ class Notify extends Base {
/** @var ILogger */
private $logger;
- function __construct(GlobalStoragesService $globalService, IDBConnection $connection, ILogger $logger) {
+ public function __construct(GlobalStoragesService $globalService, IDBConnection $connection, ILogger $logger) {
parent::__construct();
$this->globalService = $globalService;
$this->connection = $connection;
diff --git a/apps/files_external/lib/Command/Verify.php b/apps/files_external/lib/Command/Verify.php
index 062a0c6ea5f..bd80c2267e7 100644
--- a/apps/files_external/lib/Command/Verify.php
+++ b/apps/files_external/lib/Command/Verify.php
@@ -42,7 +42,7 @@ class Verify extends Base {
*/
protected $globalService;
- function __construct(GlobalStoragesService $globalService) {
+ public function __construct(GlobalStoragesService $globalService) {
parent::__construct();
$this->globalService = $globalService;
}
diff --git a/apps/files_external/lib/Lib/Backend/InvalidBackend.php b/apps/files_external/lib/Lib/Backend/InvalidBackend.php
index fc9b0992197..36e033cfc90 100644
--- a/apps/files_external/lib/Lib/Backend/InvalidBackend.php
+++ b/apps/files_external/lib/Lib/Backend/InvalidBackend.php
@@ -43,7 +43,7 @@ class InvalidBackend extends Backend {
*
* @param string $invalidId id of the backend that did not exist
*/
- function __construct($invalidId) {
+ public function __construct($invalidId) {
$this->invalidId = $invalidId;
$this
->setIdentifier($invalidId)
diff --git a/apps/files_external/lib/Lib/Storage/SFTPReadStream.php b/apps/files_external/lib/Lib/Storage/SFTPReadStream.php
index a3023d1a22b..a1e3696a46e 100644
--- a/apps/files_external/lib/Lib/Storage/SFTPReadStream.php
+++ b/apps/files_external/lib/Lib/Storage/SFTPReadStream.php
@@ -50,7 +50,7 @@ class SFTPReadStream implements File {
private $buffer = '';
- static function register($protocol = 'sftpread') {
+ public static function register($protocol = 'sftpread') {
if (in_array($protocol, stream_get_wrappers(), true)) {
return false;
}
diff --git a/apps/files_external/lib/Lib/Storage/SFTPWriteStream.php b/apps/files_external/lib/Lib/Storage/SFTPWriteStream.php
index 50faf8f466c..c817789dad6 100644
--- a/apps/files_external/lib/Lib/Storage/SFTPWriteStream.php
+++ b/apps/files_external/lib/Lib/Storage/SFTPWriteStream.php
@@ -50,7 +50,7 @@ class SFTPWriteStream implements File {
private $buffer = '';
- static function register($protocol = 'sftpwrite') {
+ public static function register($protocol = 'sftpwrite') {
if (in_array($protocol, stream_get_wrappers(), true)) {
return false;
}
diff --git a/apps/files_external/tests/Controller/StoragesControllerTest.php b/apps/files_external/tests/Controller/StoragesControllerTest.php
index 40d0154d992..617ad11c459 100644
--- a/apps/files_external/tests/Controller/StoragesControllerTest.php
+++ b/apps/files_external/tests/Controller/StoragesControllerTest.php
@@ -173,7 +173,7 @@ abstract class StoragesControllerTest extends \Test\TestCase {
$this->assertEquals($storageConfig, $data);
}
- function mountPointNamesProvider() {
+ public function mountPointNamesProvider() {
return [
[''],
['/'],
diff --git a/apps/files_external/tests/OwnCloudFunctionsTest.php b/apps/files_external/tests/OwnCloudFunctionsTest.php
index 7ce72ce62d6..47544312576 100644
--- a/apps/files_external/tests/OwnCloudFunctionsTest.php
+++ b/apps/files_external/tests/OwnCloudFunctionsTest.php
@@ -35,7 +35,7 @@ namespace OCA\Files_External\Tests;
* @package OCA\Files_External\Tests
*/
class OwnCloudFunctionsTest extends \Test\TestCase {
- function configUrlProvider() {
+ public function configUrlProvider() {
return [
[
[
diff --git a/apps/files_external/tests/Service/GlobalStoragesServiceTest.php b/apps/files_external/tests/Service/GlobalStoragesServiceTest.php
index b977a4b3eb6..e35649dacf5 100644
--- a/apps/files_external/tests/Service/GlobalStoragesServiceTest.php
+++ b/apps/files_external/tests/Service/GlobalStoragesServiceTest.php
@@ -63,7 +63,7 @@ class GlobalStoragesServiceTest extends StoragesServiceTest {
]);
}
- function storageDataProvider() {
+ public function storageDataProvider() {
return [
// all users
[
@@ -191,7 +191,7 @@ class GlobalStoragesServiceTest extends StoragesServiceTest {
$this->assertEquals(0, $newStorage->getStatus());
}
- function hooksAddStorageDataProvider() {
+ public function hooksAddStorageDataProvider() {
return [
// applicable all
[
@@ -320,7 +320,7 @@ class GlobalStoragesServiceTest extends StoragesServiceTest {
}
}
- function hooksUpdateStorageDataProvider() {
+ public function hooksUpdateStorageDataProvider() {
return [
[
// nothing to multiple users and groups
@@ -551,7 +551,7 @@ class GlobalStoragesServiceTest extends StoragesServiceTest {
}
}
- function hooksDeleteStorageDataProvider() {
+ public function hooksDeleteStorageDataProvider() {
return [
[
['user1', 'user2'],