Passed
Push — master ( 65fd24...fc096a )
by Joas
17:08 queued 14s
created
lib/private/legacy/OC_FileChunking.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
 	public function isComplete() {
86 86
 		$prefix = $this->getPrefix();
87 87
 		$cache = $this->getCache();
88
-		$chunkcount = (int)$this->info['chunkcount'];
88
+		$chunkcount = (int) $this->info['chunkcount'];
89 89
 
90 90
 		for ($i = ($chunkcount - 1); $i >= 0; $i--) {
91 91
 			if (!$cache->hasKey($prefix.$i)) {
Please login to merge, or discard this patch.
lib/private/legacy/template/functions.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 function emit_css_tag($href, $opts = '') {
50 50
 	$s = '<link rel="stylesheet"';
51 51
 	if (!empty($href)) {
52
-		$s .= ' href="' . $href .'"';
52
+		$s .= ' href="'.$href.'"';
53 53
 	}
54 54
 	if (!empty($opts)) {
55 55
 		$s .= ' '.$opts;
@@ -77,10 +77,10 @@  discard block
 block discarded – undo
77 77
  */
78 78
 function emit_script_tag($src, $script_content = '') {
79 79
 	$defer_str = ' defer';
80
-	$s = '<script nonce="' . \OC::$server->getContentSecurityPolicyNonceManager()->getNonce() . '"';
80
+	$s = '<script nonce="'.\OC::$server->getContentSecurityPolicyNonceManager()->getNonce().'"';
81 81
 	if (!empty($src)) {
82 82
 		// emit script tag for deferred loading from $src
83
-		$s .= $defer_str.' src="' . $src .'">';
83
+		$s .= $defer_str.' src="'.$src.'">';
84 84
 	} elseif (!empty($script_content)) {
85 85
 		// emit script tag for inline script from $script_content without defer (see MDN)
86 86
 		$s .= ">\n".$script_content."\n";
@@ -196,11 +196,11 @@  discard block
 block discarded – undo
196 196
 function component($app, $file) {
197 197
 	if (is_array($file)) {
198 198
 		foreach ($file as $f) {
199
-			$url = link_to($app, 'component/' . $f . '.html');
199
+			$url = link_to($app, 'component/'.$f.'.html');
200 200
 			OC_Util::addHeader('link', ['rel' => 'import', 'href' => $url]);
201 201
 		}
202 202
 	} else {
203
-		$url = link_to($app, 'component/' . $file . '.html');
203
+		$url = link_to($app, 'component/'.$file.'.html');
204 204
 		OC_Util::addHeader('link', ['rel' => 'import', 'href' => $url]);
205 205
 	}
206 206
 }
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
 function strip_time($timestamp) {
286 286
 	$date = new \DateTime("@{$timestamp}");
287 287
 	$date->setTime(0, 0, 0);
288
-	return (int)$date->format('U');
288
+	return (int) $date->format('U');
289 289
 }
290 290
 
291 291
 /**
@@ -329,7 +329,7 @@  discard block
 block discarded – undo
329 329
 			$label = $label[$label_name];
330 330
 		}
331 331
 		$select = in_array($value, $selected) ? ' selected="selected"' : '';
332
-		$html .= '<option value="' . \OCP\Util::sanitizeHTML($value) . '"' . $select . '>' . \OCP\Util::sanitizeHTML($label) . '</option>'."\n";
332
+		$html .= '<option value="'.\OCP\Util::sanitizeHTML($value).'"'.$select.'>'.\OCP\Util::sanitizeHTML($label).'</option>'."\n";
333 333
 	}
334 334
 	return $html;
335 335
 }
Please login to merge, or discard this patch.
lib/private/legacy/OC_Hook.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@
 block discarded – undo
103 103
 		// Call all slots
104 104
 		foreach (self::$registered[$signalClass][$signalName] as $i) {
105 105
 			try {
106
-				call_user_func([ $i["class"], $i["name"] ], $params);
106
+				call_user_func([$i["class"], $i["name"]], $params);
107 107
 			} catch (Exception $e) {
108 108
 				self::$thrownExceptions[] = $e;
109 109
 				\OC::$server->getLogger()->logException($e);
Please login to merge, or discard this patch.
lib/private/Route/Route.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@
 block discarded – undo
149 149
 	 * @return void
150 150
 	 */
151 151
 	public function actionInclude($file) {
152
-		$function = function ($param) use ($file) {
152
+		$function = function($param) use ($file) {
153 153
 			unset($param["_route"]);
154 154
 			$_GET = array_merge($_GET, $param);
155 155
 			unset($param);
Please login to merge, or discard this patch.
lib/private/DirectEditing/Manager.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 use function in_array;
52 52
 
53 53
 class Manager implements IManager {
54
-	private const TOKEN_CLEANUP_TIME = 12 * 60 * 60 ;
54
+	private const TOKEN_CLEANUP_TIME = 12 * 60 * 60;
55 55
 
56 56
 	public const TABLE_TOKENS = 'direct_edit';
57 57
 
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 					$templates = $creator->getTemplates();
114 114
 				}
115 115
 
116
-				$templates = array_map(function ($template) use ($creator) {
116
+				$templates = array_map(function($template) use ($creator) {
117 117
 					$template['extension'] = $creator->getExtension();
118 118
 					$template['mimetype'] = $creator->getMimetype();
119 119
 					return $template;
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
 				'file_id' => $query->createNamedParameter($file->getId()),
256 256
 				'file_path' => $query->createNamedParameter($filePath),
257 257
 				'user_id' => $query->createNamedParameter($this->userId),
258
-				'share_id' => $query->createNamedParameter($share !== null ? $share->getId(): null),
258
+				'share_id' => $query->createNamedParameter($share !== null ? $share->getId() : null),
259 259
 				'timestamp' => $query->createNamedParameter(time())
260 260
 			]);
261 261
 		$query->execute();
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
 		}
277 277
 		$files = $userFolder->getById($fileId);
278 278
 		if (count($files) === 0) {
279
-			throw new NotFoundException('File nound found by id ' . $fileId);
279
+			throw new NotFoundException('File nound found by id '.$fileId);
280 280
 		}
281 281
 		return $files[0];
282 282
 	}
Please login to merge, or discard this patch.
lib/private/AppFramework/Middleware/Security/SameSiteCookieMiddleware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
 		foreach ($policies as $policy) {
96 96
 			header(
97 97
 				sprintf(
98
-					'Set-Cookie: %snc_sameSiteCookie%s=true; path=%s; httponly;' . $secureCookie . 'expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=%s',
98
+					'Set-Cookie: %snc_sameSiteCookie%s=true; path=%s; httponly;'.$secureCookie.'expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=%s',
99 99
 					$cookiePrefix,
100 100
 					$policy,
101 101
 					$cookieParams['path'],
Please login to merge, or discard this patch.
lib/private/AppFramework/Http.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@
 block discarded – undo
125 125
 			$status = self::STATUS_FOUND;
126 126
 		}
127 127
 
128
-		return $this->protocolVersion . ' ' . $status . ' ' .
128
+		return $this->protocolVersion.' '.$status.' '.
129 129
 			$this->headers[$status];
130 130
 	}
131 131
 }
Please login to merge, or discard this patch.
lib/private/Collaboration/Collaborators/GroupPlugin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 		$result = ['wide' => [], 'exact' => []];
64 64
 
65 65
 		$groups = $this->groupManager->search($search, $limit, $offset);
66
-		$groupIds = array_map(function (IGroup $group) {
66
+		$groupIds = array_map(function(IGroup $group) {
67 67
 			return $group->getGID();
68 68
 		}, $groups);
69 69
 
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 		if (!empty($groups) && ($this->shareWithGroupOnly || $this->shareeEnumerationInGroupOnly)) {
76 76
 			// Intersect all the groups that match with the groups this user is a member of
77 77
 			$userGroups = $this->groupManager->getUserGroups($this->userSession->getUser());
78
-			$userGroups = array_map(function (IGroup $group) {
78
+			$userGroups = array_map(function(IGroup $group) {
79 79
 				return $group->getGID();
80 80
 			}, $userGroups);
81 81
 			$groupIds = array_intersect($groupIds, $userGroups);
Please login to merge, or discard this patch.
lib/public/AppFramework/ApiController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
 		$response = new Response();
87 87
 		$response->addHeader('Access-Control-Allow-Origin', $origin);
88 88
 		$response->addHeader('Access-Control-Allow-Methods', $this->corsMethods);
89
-		$response->addHeader('Access-Control-Max-Age', (string)$this->corsMaxAge);
89
+		$response->addHeader('Access-Control-Max-Age', (string) $this->corsMaxAge);
90 90
 		$response->addHeader('Access-Control-Allow-Headers', $this->corsAllowedHeaders);
91 91
 		$response->addHeader('Access-Control-Allow-Credentials', 'false');
92 92
 		return $response;
Please login to merge, or discard this patch.