Passed
Push — master ( 8d52a3...b5b8a1 )
by Morris
11:55 queued 10s
created
lib/public/Federation/Exceptions/ActionNotSupportedException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
 	 */
32 32
 	public function __construct($action) {
33 33
 		$l = \OC::$server->getL10N('federation');
34
-		$message = 'Action "' . $action . '" not supported or implemented.';
34
+		$message = 'Action "'.$action.'" not supported or implemented.';
35 35
 		$hint = $l->t('Action "%s" not supported or implemented.', [$action]);
36 36
 		parent::__construct($message, $hint);
37 37
 	}
Please login to merge, or discard this patch.
lib/private/Preview/Watcher.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
 		}
56 56
 
57 57
 		try {
58
-			$folder = $this->appData->getFolder((string)$node->getId());
58
+			$folder = $this->appData->getFolder((string) $node->getId());
59 59
 			$folder->delete();
60 60
 		} catch (NotFoundException $e) {
61 61
 			//Nothing to do
Please login to merge, or discard this patch.
lib/private/Preview/WatcherConnector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
 	public function connectWatcher() {
58 58
 		// Do not connect if we are not setup yet!
59 59
 		if ($this->config->getValue('instanceid', null) !== null) {
60
-			$this->root->listen('\OC\Files', 'postWrite', function (Node $node) {
60
+			$this->root->listen('\OC\Files', 'postWrite', function(Node $node) {
61 61
 				$this->getWatcher()->postWrite($node);
62 62
 			});
63 63
 
Please login to merge, or discard this patch.
lib/private/Authentication/Token/DefaultToken.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -162,7 +162,7 @@
 block discarded – undo
162 162
 		if (\is_array($scope)) {
163 163
 			parent::setScope(json_encode($scope));
164 164
 		} else {
165
-			parent::setScope((string)$scope);
165
+			parent::setScope((string) $scope);
166 166
 		}
167 167
 	}
168 168
 
Please login to merge, or discard this patch.
lib/private/Group/Group.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -226,8 +226,8 @@  discard block
 block discarded – undo
226 226
 	public function count($search = '') {
227 227
 		$users = false;
228 228
 		foreach ($this->backends as $backend) {
229
-			if($backend->implementsActions(\OC\Group\Backend::COUNT_USERS)) {
230
-				if($users === false) {
229
+			if ($backend->implementsActions(\OC\Group\Backend::COUNT_USERS)) {
230
+				if ($users === false) {
231 231
 					//we could directly add to a bool variable, but this would
232 232
 					//be ugly
233 233
 					$users = 0;
@@ -246,8 +246,8 @@  discard block
 block discarded – undo
246 246
 	public function countDisabled() {
247 247
 		$users = false;
248 248
 		foreach ($this->backends as $backend) {
249
-			if($backend instanceOf ICountDisabledInGroup) {
250
-				if($users === false) {
249
+			if ($backend instanceOf ICountDisabledInGroup) {
250
+				if ($users === false) {
251 251
 					//we could directly add to a bool variable, but this would
252 252
 					//be ugly
253 253
 					$users = 0;
Please login to merge, or discard this patch.
lib/private/LargeFileHelper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 	*                           PHP platform.
51 51
 	*/
52 52
 	public function __construct() {
53
-		$pow_2_53 = (float)self::POW_2_53_MINUS_1 + 1.0;
53
+		$pow_2_53 = (float) self::POW_2_53_MINUS_1 + 1.0;
54 54
 		if ($this->formatUnsignedInteger($pow_2_53) !== self::POW_2_53) {
55 55
 			throw new \RuntimeException(
56 56
 				'This class assumes floats to be double precision or "better".'
@@ -188,13 +188,13 @@  discard block
 block discarded – undo
188 188
 		try {
189 189
 			$result = filemtime($fullPath);
190 190
 		} catch (\Exception $e) {
191
-			$result =- 1;
191
+			$result = - 1;
192 192
 		}
193 193
 		if ($result < 0) {
194 194
 			if (\OC_Helper::is_function_enabled('exec')) {
195 195
 				$os = strtolower(php_uname('s'));
196 196
 				if (strpos($os, 'linux') !== false) {
197
-					return $this->exec('stat -c %Y ' . escapeshellarg($fullPath));
197
+					return $this->exec('stat -c %Y '.escapeshellarg($fullPath));
198 198
 				}
199 199
 			}
200 200
 		}
Please login to merge, or discard this patch.
apps/oauth2/lib/Controller/LoginRedirectorController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
 
72 72
 		if ($response_type !== 'code') {
73 73
 			//Fail
74
-			$url = $client->getRedirectUri() . '?error=unsupported_response_type&state=' . $state;
74
+			$url = $client->getRedirectUri().'?error=unsupported_response_type&state='.$state;
75 75
 			return new RedirectResponse($url);
76 76
 		}
77 77
 
Please login to merge, or discard this patch.
apps/oauth2/lib/Controller/OauthApiController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
 		}
99 99
 
100 100
 		// We handle the initial and refresh tokens the same way
101
-		if ($grant_type === 'refresh_token' ) {
101
+		if ($grant_type === 'refresh_token') {
102 102
 			$code = $refresh_token;
103 103
 		}
104 104
 
Please login to merge, or discard this patch.
apps/oauth2/lib/Migration/SetTokenExpiration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
 
62 62
 		$cursor = $qb->execute();
63 63
 
64
-		while($row = $cursor->fetch()) {
64
+		while ($row = $cursor->fetch()) {
65 65
 			$token = AccessToken::fromRow($row);
66 66
 			try {
67 67
 				$appToken = $this->tokenProvider->getTokenById($token->getTokenId());
Please login to merge, or discard this patch.