Passed
Push — master ( dfcb49...cae849 )
by Joas
11:45 queued 11s
created
lib/public/AppFramework/Http/TemplateResponse.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -62,11 +62,11 @@  discard block
 block discarded – undo
62 62
 	/**
63 63
 	 * @deprecated 20.0.0 use OCP\AppFramework\Http\Events\BeforeTemplateRenderedEvent
64 64
 	 */
65
-	public const EVENT_LOAD_ADDITIONAL_SCRIPTS = self::class . '::loadAdditionalScripts';
65
+	public const EVENT_LOAD_ADDITIONAL_SCRIPTS = self::class.'::loadAdditionalScripts';
66 66
 	/**
67 67
 	 * @deprecated 20.0.0 use OCP\AppFramework\Http\Events\BeforeTemplateRenderedEvent
68 68
 	 */
69
-	public const EVENT_LOAD_ADDITIONAL_SCRIPTS_LOGGEDIN = self::class . '::loadAdditionalScriptsLoggedIn';
69
+	public const EVENT_LOAD_ADDITIONAL_SCRIPTS_LOGGEDIN = self::class.'::loadAdditionalScriptsLoggedIn';
70 70
 
71 71
 	/**
72 72
 	 * name of the template
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 	 * @param string $renderAs how the page should be rendered, defaults to user
102 102
 	 * @since 6.0.0 - parameters $params and $renderAs were added in 7.0.0
103 103
 	 */
104
-	public function __construct($appName, $templateName, array $params=[],
104
+	public function __construct($appName, $templateName, array $params = [],
105 105
 								$renderAs = self::RENDER_AS_USER) {
106 106
 		parent::__construct();
107 107
 
Please login to merge, or discard this patch.
lib/private/TemplateLayout.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 		// Decide which page we show
78 78
 		if ($renderAs === TemplateResponse::RENDER_AS_USER) {
79 79
 			parent::__construct('core', 'layout.user');
80
-			if (in_array(\OC_App::getCurrentApp(), ['settings','admin', 'help']) !== false) {
80
+			if (in_array(\OC_App::getCurrentApp(), ['settings', 'admin', 'help']) !== false) {
81 81
 				$this->assign('bodyid', 'body-settings');
82 82
 			} else {
83 83
 				$this->assign('bodyid', 'body-user');
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
 		foreach ($jsFiles as $info) {
197 197
 			$web = $info[1];
198 198
 			$file = $info[2];
199
-			$this->append('jsfiles', $web.'/'.$file . $this->getVersionHashSuffix());
199
+			$this->append('jsfiles', $web.'/'.$file.$this->getVersionHashSuffix());
200 200
 		}
201 201
 
202 202
 		try {
@@ -229,14 +229,14 @@  discard block
 block discarded – undo
229 229
 			$file = $info[2];
230 230
 
231 231
 			if (substr($file, -strlen('print.css')) === 'print.css') {
232
-				$this->append('printcssfiles', $web.'/'.$file . $this->getVersionHashSuffix());
232
+				$this->append('printcssfiles', $web.'/'.$file.$this->getVersionHashSuffix());
233 233
 			} else {
234 234
 				$suffix = $this->getVersionHashSuffix($web, $file);
235 235
 
236 236
 				if (strpos($file, '?v=') == false) {
237
-					$this->append('cssfiles', $web.'/'.$file . $suffix);
237
+					$this->append('cssfiles', $web.'/'.$file.$suffix);
238 238
 				} else {
239
-					$this->append('cssfiles', $web.'/'.$file . '-' . substr($suffix, 3));
239
+					$this->append('cssfiles', $web.'/'.$file.'-'.substr($suffix, 3));
240 240
 				}
241 241
 			}
242 242
 		}
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
 
262 262
 		if ($this->config->getSystemValue('installed', false)) {
263 263
 			if (\OC::$server->getAppManager()->isInstalled('theming')) {
264
-				$themingSuffix = '-' . $this->config->getAppValue('theming', 'cachebuster', '0');
264
+				$themingSuffix = '-'.$this->config->getAppValue('theming', 'cachebuster', '0');
265 265
 			}
266 266
 			$v = \OC_App::getAppVersions();
267 267
 		}
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
 			$appName = $this->getAppNamefromPath($path);
272 272
 			if (array_key_exists($appName, $v)) {
273 273
 				$appVersion = $v[$appName];
274
-				return '?v=' . substr(md5($appVersion), 0, 8) . $themingSuffix;
274
+				return '?v='.substr(md5($appVersion), 0, 8).$themingSuffix;
275 275
 			}
276 276
 		}
277 277
 		// fallback to the file path instead
@@ -279,11 +279,11 @@  discard block
 block discarded – undo
279 279
 			$appName = $this->getAppNamefromPath($file);
280 280
 			if (array_key_exists($appName, $v)) {
281 281
 				$appVersion = $v[$appName];
282
-				return '?v=' . substr(md5($appVersion), 0, 8) . $themingSuffix;
282
+				return '?v='.substr(md5($appVersion), 0, 8).$themingSuffix;
283 283
 			}
284 284
 		}
285 285
 
286
-		return '?v=' . self::$versionHash . $themingSuffix;
286
+		return '?v='.self::$versionHash.$themingSuffix;
287 287
 	}
288 288
 
289 289
 	/**
@@ -303,8 +303,8 @@  discard block
 block discarded – undo
303 303
 		$locator = new \OC\Template\CSSResourceLocator(
304 304
 			\OC::$server->getLogger(),
305 305
 			$theme,
306
-			[ \OC::$SERVERROOT => \OC::$WEBROOT ],
307
-			[ \OC::$SERVERROOT => \OC::$WEBROOT ],
306
+			[\OC::$SERVERROOT => \OC::$WEBROOT],
307
+			[\OC::$SERVERROOT => \OC::$WEBROOT],
308 308
 			$SCSSCacher
309 309
 		);
310 310
 		$locator->find($styles);
@@ -338,8 +338,8 @@  discard block
 block discarded – undo
338 338
 		$locator = new \OC\Template\JSResourceLocator(
339 339
 			\OC::$server->getLogger(),
340 340
 			$theme,
341
-			[ \OC::$SERVERROOT => \OC::$WEBROOT ],
342
-			[ \OC::$SERVERROOT => \OC::$WEBROOT ],
341
+			[\OC::$SERVERROOT => \OC::$WEBROOT],
342
+			[\OC::$SERVERROOT => \OC::$WEBROOT],
343 343
 			\OC::$server->query(JSCombiner::class)
344 344
 			);
345 345
 		$locator->find($scripts);
Please login to merge, or discard this patch.