Completed
Pull Request — master (#5462)
by Thomas
49:55 queued 34:15
created
apps/files_external/lib/Lib/Auth/OpenStack/Rackspace.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -31,17 +31,17 @@
 block discarded – undo
31 31
  */
32 32
 class Rackspace extends AuthMechanism {
33 33
 
34
-	public function __construct(IL10N $l) {
35
-		$this
36
-			->setIdentifier('openstack::rackspace')
37
-			->setScheme(self::SCHEME_OPENSTACK)
38
-			->setText($l->t('Rackspace'))
39
-			->addParameters([
40
-				(new DefinitionParameter('user', $l->t('Username'))),
41
-				(new DefinitionParameter('key', $l->t('API key')))
42
-					->setType(DefinitionParameter::VALUE_PASSWORD),
43
-			])
44
-		;
45
-	}
34
+    public function __construct(IL10N $l) {
35
+        $this
36
+            ->setIdentifier('openstack::rackspace')
37
+            ->setScheme(self::SCHEME_OPENSTACK)
38
+            ->setText($l->t('Rackspace'))
39
+            ->addParameters([
40
+                (new DefinitionParameter('user', $l->t('Username'))),
41
+                (new DefinitionParameter('key', $l->t('API key')))
42
+                    ->setType(DefinitionParameter::VALUE_PASSWORD),
43
+            ])
44
+        ;
45
+    }
46 46
 
47 47
 }
Please login to merge, or discard this patch.
apps/files_external/lib/Lib/Auth/OpenStack/OpenStack.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -31,19 +31,19 @@
 block discarded – undo
31 31
  */
32 32
 class OpenStack extends AuthMechanism {
33 33
 
34
-	public function __construct(IL10N $l) {
35
-		$this
36
-			->setIdentifier('openstack::openstack')
37
-			->setScheme(self::SCHEME_OPENSTACK)
38
-			->setText($l->t('OpenStack'))
39
-			->addParameters([
40
-				(new DefinitionParameter('user', $l->t('Username'))),
41
-				(new DefinitionParameter('password', $l->t('Password')))
42
-					->setType(DefinitionParameter::VALUE_PASSWORD),
43
-				(new DefinitionParameter('tenant', $l->t('Tenant name'))),
44
-				(new DefinitionParameter('url', $l->t('Identity endpoint URL'))),
45
-			])
46
-		;
47
-	}
34
+    public function __construct(IL10N $l) {
35
+        $this
36
+            ->setIdentifier('openstack::openstack')
37
+            ->setScheme(self::SCHEME_OPENSTACK)
38
+            ->setText($l->t('OpenStack'))
39
+            ->addParameters([
40
+                (new DefinitionParameter('user', $l->t('Username'))),
41
+                (new DefinitionParameter('password', $l->t('Password')))
42
+                    ->setType(DefinitionParameter::VALUE_PASSWORD),
43
+                (new DefinitionParameter('tenant', $l->t('Tenant name'))),
44
+                (new DefinitionParameter('url', $l->t('Identity endpoint URL'))),
45
+            ])
46
+        ;
47
+    }
48 48
 
49 49
 }
Please login to merge, or discard this patch.
apps/files_external/lib/Lib/Auth/Builtin.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -29,12 +29,12 @@
 block discarded – undo
29 29
  */
30 30
 class Builtin extends AuthMechanism {
31 31
 
32
-	public function __construct(IL10N $l) {
33
-		$this
34
-			->setIdentifier('builtin::builtin')
35
-			->setScheme(self::SCHEME_BUILTIN)
36
-			->setText($l->t('Builtin'))
37
-		;
38
-	}
32
+    public function __construct(IL10N $l) {
33
+        $this
34
+            ->setIdentifier('builtin::builtin')
35
+            ->setScheme(self::SCHEME_BUILTIN)
36
+            ->setText($l->t('Builtin'))
37
+        ;
38
+    }
39 39
 
40 40
 }
Please login to merge, or discard this patch.
apps/files_external/lib/Lib/Auth/AuthMechanism.php 1 patch
Indentation   +57 added lines, -57 removed lines patch added patch discarded remove patch
@@ -51,71 +51,71 @@
 block discarded – undo
51 51
  */
52 52
 class AuthMechanism implements \JsonSerializable {
53 53
 
54
-	/** Standard authentication schemes */
55
-	const SCHEME_NULL = 'null';
56
-	const SCHEME_BUILTIN = 'builtin';
57
-	const SCHEME_PASSWORD = 'password';
58
-	const SCHEME_OAUTH1 = 'oauth1';
59
-	const SCHEME_OAUTH2 = 'oauth2';
60
-	const SCHEME_PUBLICKEY = 'publickey';
61
-	const SCHEME_OPENSTACK = 'openstack';
54
+    /** Standard authentication schemes */
55
+    const SCHEME_NULL = 'null';
56
+    const SCHEME_BUILTIN = 'builtin';
57
+    const SCHEME_PASSWORD = 'password';
58
+    const SCHEME_OAUTH1 = 'oauth1';
59
+    const SCHEME_OAUTH2 = 'oauth2';
60
+    const SCHEME_PUBLICKEY = 'publickey';
61
+    const SCHEME_OPENSTACK = 'openstack';
62 62
 
63
-	use VisibilityTrait;
64
-	use FrontendDefinitionTrait;
65
-	use StorageModifierTrait;
66
-	use IdentifierTrait;
63
+    use VisibilityTrait;
64
+    use FrontendDefinitionTrait;
65
+    use StorageModifierTrait;
66
+    use IdentifierTrait;
67 67
 
68
-	/** @var string */
69
-	protected $scheme;
68
+    /** @var string */
69
+    protected $scheme;
70 70
 
71
-	/**
72
-	 * Get the authentication scheme implemented
73
-	 * See self::SCHEME_* constants
74
-	 *
75
-	 * @return string
76
-	 */
77
-	public function getScheme() {
78
-		return $this->scheme;
79
-	}
71
+    /**
72
+     * Get the authentication scheme implemented
73
+     * See self::SCHEME_* constants
74
+     *
75
+     * @return string
76
+     */
77
+    public function getScheme() {
78
+        return $this->scheme;
79
+    }
80 80
 
81
-	/**
82
-	 * @param string $scheme
83
-	 * @return self
84
-	 */
85
-	public function setScheme($scheme) {
86
-		$this->scheme = $scheme;
87
-		return $this;
88
-	}
81
+    /**
82
+     * @param string $scheme
83
+     * @return self
84
+     */
85
+    public function setScheme($scheme) {
86
+        $this->scheme = $scheme;
87
+        return $this;
88
+    }
89 89
 
90
-	/**
91
-	 * Serialize into JSON for client-side JS
92
-	 *
93
-	 * @return array
94
-	 */
95
-	public function jsonSerialize() {
96
-		$data = $this->jsonSerializeDefinition();
97
-		$data += $this->jsonSerializeIdentifier();
90
+    /**
91
+     * Serialize into JSON for client-side JS
92
+     *
93
+     * @return array
94
+     */
95
+    public function jsonSerialize() {
96
+        $data = $this->jsonSerializeDefinition();
97
+        $data += $this->jsonSerializeIdentifier();
98 98
 
99
-		$data['scheme'] = $this->getScheme();
100
-		$data['visibility'] = $this->getVisibility();
99
+        $data['scheme'] = $this->getScheme();
100
+        $data['visibility'] = $this->getVisibility();
101 101
 
102
-		return $data;
103
-	}
102
+        return $data;
103
+    }
104 104
 
105
-	/**
106
-	 * Check if parameters are satisfied in a StorageConfig
107
-	 *
108
-	 * @param StorageConfig $storage
109
-	 * @return bool
110
-	 */
111
-	public function validateStorage(StorageConfig $storage) {
112
-		// does the backend actually support this scheme
113
-		$supportedSchemes = $storage->getBackend()->getAuthSchemes();
114
-		if (!isset($supportedSchemes[$this->getScheme()])) {
115
-			return false;
116
-		}
105
+    /**
106
+     * Check if parameters are satisfied in a StorageConfig
107
+     *
108
+     * @param StorageConfig $storage
109
+     * @return bool
110
+     */
111
+    public function validateStorage(StorageConfig $storage) {
112
+        // does the backend actually support this scheme
113
+        $supportedSchemes = $storage->getBackend()->getAuthSchemes();
114
+        if (!isset($supportedSchemes[$this->getScheme()])) {
115
+            return false;
116
+        }
117 117
 
118
-		return $this->validateStorageDefinition($storage);
119
-	}
118
+        return $this->validateStorageDefinition($storage);
119
+    }
120 120
 
121 121
 }
Please login to merge, or discard this patch.
apps/files_external/lib/Lib/Auth/NullMechanism.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -29,12 +29,12 @@
 block discarded – undo
29 29
  */
30 30
 class NullMechanism extends AuthMechanism {
31 31
 
32
-	public function __construct(IL10N $l) {
33
-		$this
34
-			->setIdentifier('null::null')
35
-			->setScheme(self::SCHEME_NULL)
36
-			->setText($l->t('None'))
37
-		;
38
-	}
32
+    public function __construct(IL10N $l) {
33
+        $this
34
+            ->setIdentifier('null::null')
35
+            ->setScheme(self::SCHEME_NULL)
36
+            ->setText($l->t('None'))
37
+        ;
38
+    }
39 39
 
40 40
 }
Please login to merge, or discard this patch.
apps/files_external/lib/Lib/PriorityTrait.php 1 patch
Indentation   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -29,33 +29,33 @@
 block discarded – undo
29 29
  */
30 30
 trait PriorityTrait {
31 31
 
32
-	/** @var int initial priority */
33
-	protected $priority = BackendService::PRIORITY_DEFAULT;
34
-
35
-	/**
36
-	 * @return int
37
-	 */
38
-	public function getPriority() {
39
-		return $this->priority;
40
-	}
41
-
42
-	/**
43
-	 * @param int $priority
44
-	 * @return self
45
-	 */
46
-	public function setPriority($priority) {
47
-		$this->priority = $priority;
48
-		return $this;
49
-	}
50
-
51
-	/**
52
-	 * @param PriorityTrait $a
53
-	 * @param PriorityTrait $b
54
-	 * @return int
55
-	 */
56
-	public static function priorityCompare(PriorityTrait $a, PriorityTrait $b) {
57
-		return ($a->getPriority() - $b->getPriority());
58
-	}
32
+    /** @var int initial priority */
33
+    protected $priority = BackendService::PRIORITY_DEFAULT;
34
+
35
+    /**
36
+     * @return int
37
+     */
38
+    public function getPriority() {
39
+        return $this->priority;
40
+    }
41
+
42
+    /**
43
+     * @param int $priority
44
+     * @return self
45
+     */
46
+    public function setPriority($priority) {
47
+        $this->priority = $priority;
48
+        return $this;
49
+    }
50
+
51
+    /**
52
+     * @param PriorityTrait $a
53
+     * @param PriorityTrait $b
54
+     * @return int
55
+     */
56
+    public static function priorityCompare(PriorityTrait $a, PriorityTrait $b) {
57
+        return ($a->getPriority() - $b->getPriority());
58
+    }
59 59
 
60 60
 }
61 61
 
Please login to merge, or discard this patch.
apps/files_external/lib/Lib/Config/IBackendProvider.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -30,10 +30,10 @@
 block discarded – undo
30 30
  */
31 31
 interface IBackendProvider {
32 32
 
33
-	/**
34
-	 * @since 9.1.0
35
-	 * @return Backend[]
36
-	 */
37
-	public function getBackends();
33
+    /**
34
+     * @since 9.1.0
35
+     * @return Backend[]
36
+     */
37
+    public function getBackends();
38 38
 
39 39
 }
Please login to merge, or discard this patch.
apps/files_external/lib/Lib/Config/IAuthMechanismProvider.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -30,10 +30,10 @@
 block discarded – undo
30 30
  */
31 31
 interface IAuthMechanismProvider {
32 32
 
33
-	/**
34
-	 * @since 9.1.0
35
-	 * @return AuthMechanism[]
36
-	 */
37
-	public function getAuthMechanisms();
33
+    /**
34
+     * @since 9.1.0
35
+     * @return AuthMechanism[]
36
+     */
37
+    public function getAuthMechanisms();
38 38
 
39 39
 }
Please login to merge, or discard this patch.
apps/files_external/lib/Lib/SessionStorageWrapper.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -31,14 +31,14 @@
 block discarded – undo
31 31
  */
32 32
 class SessionStorageWrapper extends PermissionsMask {
33 33
 
34
-	/**
35
-	 * @param array $arguments ['storage' => $storage]
36
-	 */
37
-	public function __construct($arguments) {
38
-		// disable sharing permission
39
-		$arguments['mask'] = Constants::PERMISSION_ALL & ~Constants::PERMISSION_SHARE;
40
-		parent::__construct($arguments);
41
-	}
34
+    /**
35
+     * @param array $arguments ['storage' => $storage]
36
+     */
37
+    public function __construct($arguments) {
38
+        // disable sharing permission
39
+        $arguments['mask'] = Constants::PERMISSION_ALL & ~Constants::PERMISSION_SHARE;
40
+        parent::__construct($arguments);
41
+    }
42 42
 
43 43
 }
44 44
 
Please login to merge, or discard this patch.