Completed
Push — master ( f78db1...a155f8 )
by Morris
34:10 queued 10s
created
lib/private/NavigationManager.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -91,13 +91,13 @@  discard block
 block discarded – undo
91 91
 		}
92 92
 
93 93
 		$entry['active'] = false;
94
-		if(!isset($entry['icon'])) {
94
+		if (!isset($entry['icon'])) {
95 95
 			$entry['icon'] = '';
96 96
 		}
97
-		if(!isset($entry['classes'])) {
97
+		if (!isset($entry['classes'])) {
98 98
 			$entry['classes'] = '';
99 99
 		}
100
-		if(!isset($entry['type'])) {
100
+		if (!isset($entry['type'])) {
101 101
 			$entry['type'] = 'link';
102 102
 		}
103 103
 		$this->entries[$entry['id']] = $entry;
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
 			]);
230 230
 
231 231
 			$logoutUrl = \OC_User::getLogoutUrl($this->urlGenerator);
232
-			if($logoutUrl !== '') {
232
+			if ($logoutUrl !== '') {
233 233
 				// Logout
234 234
 				$this->add([
235 235
 					'type' => 'settings',
Please login to merge, or discard this patch.
apps/files/lib/Controller/ApiController.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -169,13 +169,13 @@  discard block
 block discarded – undo
169 169
 	 * @return array
170 170
 	 */
171 171
 	private function formatNodes(array $nodes) {
172
-		return array_values(array_map(function (Node $node) {
172
+		return array_values(array_map(function(Node $node) {
173 173
 			/** @var \OC\Files\Node\Node $shareTypes */
174 174
 			$shareTypes = $this->getShareTypes($node);
175 175
 			$file = \OCA\Files\Helper::formatFileInfo($node->getFileInfo());
176 176
 			$parts = explode('/', dirname($node->getPath()), 4);
177 177
 			if (isset($parts[3])) {
178
-				$file['path'] = '/' . $parts[3];
178
+				$file['path'] = '/'.$parts[3];
179 179
 			} else {
180 180
 				$file['path'] = '/';
181 181
 			}
@@ -286,7 +286,7 @@  discard block
 block discarded – undo
286 286
 	 * @param bool $show
287 287
 	 */
288 288
 	public function showHiddenFiles($show) {
289
-		$this->config->setUserValue($this->userSession->getUser()->getUID(), 'files', 'show_hidden', (int)$show);
289
+		$this->config->setUserValue($this->userSession->getUser()->getUID(), 'files', 'show_hidden', (int) $show);
290 290
 		return new Response();
291 291
 	}
292 292
 
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
 		foreach ($navItems as $item) {
307 307
 			// check if data is valid
308 308
 			if (($show === 0 || $show === 1) && isset($item['expandedState']) && $key === $item['expandedState']) {
309
-				$this->config->setUserValue($this->userSession->getUser()->getUID(), 'files', $key, (int)$show);
309
+				$this->config->setUserValue($this->userSession->getUser()->getUID(), 'files', $key, (int) $show);
310 310
 				return new Response();
311 311
 			}
312 312
 		}
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
 	 * @return Response
325 325
 	 */
326 326
 	public function setSortingStrategy($strategy) {
327
-		$this->config->setUserValue($this->userSession->getUser()->getUID(), 'files', 'quickaccess_sorting_strategy', (String)$strategy);
327
+		$this->config->setUserValue($this->userSession->getUser()->getUID(), 'files', 'quickaccess_sorting_strategy', (String) $strategy);
328 328
 		return new Response();
329 329
 	}
330 330
 
@@ -348,7 +348,7 @@  discard block
 block discarded – undo
348 348
 	 * @return Response
349 349
 	 */
350 350
 	public function setReverseQuickaccess($reverse) {
351
-		$this->config->setUserValue($this->userSession->getUser()->getUID(), 'files', 'quickaccess_reverse_list', (int)$reverse);
351
+		$this->config->setUserValue($this->userSession->getUser()->getUID(), 'files', 'quickaccess_reverse_list', (int) $reverse);
352 352
 		return new Response();
353 353
 	}
354 354
 
@@ -375,7 +375,7 @@  discard block
 block discarded – undo
375 375
 	 * @return Response
376 376
 	 */
377 377
 	public function setShowQuickaccessSettings($show) {
378
-		$this->config->setUserValue($this->userSession->getUser()->getUID(), 'files', 'quickaccess_show_settings', (int)$show);
378
+		$this->config->setUserValue($this->userSession->getUser()->getUID(), 'files', 'quickaccess_show_settings', (int) $show);
379 379
 		return new Response();
380 380
 	}
381 381
 
@@ -402,7 +402,7 @@  discard block
 block discarded – undo
402 402
 	 * @return Response
403 403
 	 */
404 404
 	public function setSortingOrder($order) {
405
-		$this->config->setUserValue($this->userSession->getUser()->getUID(), 'files', 'quickaccess_custom_sorting_order', (String)$order);
405
+		$this->config->setUserValue($this->userSession->getUser()->getUID(), 'files', 'quickaccess_custom_sorting_order', (String) $order);
406 406
 		return new Response();
407 407
 	}
408 408
 
Please login to merge, or discard this patch.
apps/files/lib/Controller/ViewController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 	protected function renderScript($appName, $scriptName) {
105 105
 		$content    = '';
106 106
 		$appPath    = \OC_App::getAppPath($appName);
107
-		$scriptPath = $appPath . '/' . $scriptName;
107
+		$scriptPath = $appPath.'/'.$scriptName;
108 108
 		if (file_exists($scriptPath)) {
109 109
 			// TODO: sanitize path / script name ?
110 110
 			ob_start();
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
 		$params     = [];
292 292
 
293 293
 		if (empty($files) && $this->appManager->isEnabledForUser('files_trashbin')) {
294
-			$baseFolder     = $this->rootFolder->get($uid . '/files_trashbin/files/');
294
+			$baseFolder     = $this->rootFolder->get($uid.'/files_trashbin/files/');
295 295
 			$files          = $baseFolder->getById($fileId);
296 296
 			$params['view'] = 'trashbin';
297 297
 		}
Please login to merge, or discard this patch.
apps/files/templates/appnavigation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 		<li id="quota"
13 13
 			class="pinned <?php p($pinned === 0 ? 'first-pinned ' : '') ?><?php
14 14
 			if ($_['quota'] !== \OCP\Files\FileInfo::SPACE_UNLIMITED) {
15
-			?>has-tooltip" title="<?php p($_['usage_relative'] . '%');
15
+			?>has-tooltip" title="<?php p($_['usage_relative'].'%');
16 16
 		} ?>">
17 17
 			<a href="#" class="icon-quota svg">
18 18
 				<p id="quotatext"><?php
Please login to merge, or discard this patch.