Completed
Pull Request — master (#5305)
by Lukas
17:36
created
apps/files/templates/appnavigation.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 	<ul class="with-icon">
3 3
 		<li id="quota" class="section <?php
4 4
 		if ($_['quota'] !== \OCP\Files\FileInfo::SPACE_UNLIMITED) {
5
-			?>has-tooltip" title="<?php p($_['usage_relative'] . '%');
5
+			?>has-tooltip" title="<?php p($_['usage_relative'].'%');
6 6
 		} ?>">
7 7
 			<a href="#" class="nav-icon-quota svg">
8 8
 				<p id="quotatext"><?php
@@ -12,8 +12,8 @@  discard block
 block discarded – undo
12 12
 						p($l->t('%s used', [$_['usage']]));
13 13
 					} ?></p>
14 14
 				<div class="quota-container">
15
-					<div style="width:<?php p($_['usage_relative']);?>%"
16
-						 <?php if($_['usage_relative'] > 80): ?>class="quota-warning"<?php endif; ?>>
15
+					<div style="width:<?php p($_['usage_relative']); ?>%"
16
+						 <?php if ($_['usage_relative'] > 80): ?>class="quota-warning"<?php endif; ?>>
17 17
 					</div>
18 18
 				</div>
19 19
 			</a>
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 		<li data-id="<?php p($item['id']) ?>" class="nav-<?php p($item['id']) ?>">
23 23
 			<a href="<?php p(isset($item['href']) ? $item['href'] : '#') ?>"
24 24
 				class="nav-icon-<?php p($item['icon'] !== '' ? $item['icon'] : $item['id']) ?> svg">
25
-				<?php p($item['name']);?>
25
+				<?php p($item['name']); ?>
26 26
 			</a>
27 27
 		</li>
28 28
 		<?php } ?>
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 	<div id="app-settings">
31 31
 		<div id="app-settings-header">
32 32
 			<button class="settings-button" data-apps-slide-toggle="#app-settings-content">
33
-				<?php p($l->t('Settings'));?>
33
+				<?php p($l->t('Settings')); ?>
34 34
 			</button>
35 35
 		</div>
36 36
 		<div id="app-settings-content">
@@ -38,9 +38,9 @@  discard block
 block discarded – undo
38 38
 				<input class="checkbox" id="showhiddenfilesToggle" checked="checked" type="checkbox">
39 39
 				<label for="showhiddenfilesToggle"><?php p($l->t('Show hidden files')); ?></label>
40 40
 			</div>
41
-			<label for="webdavurl"><?php p($l->t('WebDAV'));?></label>
41
+			<label for="webdavurl"><?php p($l->t('WebDAV')); ?></label>
42 42
 			<input id="webdavurl" type="text" readonly="readonly" value="<?php p(\OCP\Util::linkToRemote('webdav')); ?>" />
43
-			<em><?php print_unescaped($l->t('Use this address to <a href="%s" target="_blank" rel="noreferrer">access your Files via WebDAV</a>', array(link_to_docs('user-webdav'))));?></em>
43
+			<em><?php print_unescaped($l->t('Use this address to <a href="%s" target="_blank" rel="noreferrer">access your Files via WebDAV</a>', array(link_to_docs('user-webdav')))); ?></em>
44 44
 		</div>
45 45
 	</div>
46 46
 </div>
Please login to merge, or discard this patch.
apps/files/lib/Controller/ViewController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 	protected function renderScript($appName, $scriptName) {
110 110
 		$content = '';
111 111
 		$appPath = \OC_App::getAppPath($appName);
112
-		$scriptPath = $appPath . '/' . $scriptName;
112
+		$scriptPath = $appPath.'/'.$scriptName;
113 113
 		if (file_exists($scriptPath)) {
114 114
 			// TODO: sanitize path / script name ?
115 115
 			ob_start();
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
 		$this->eventDispatcher->dispatch('OCA\Files::loadAdditionalScripts', $event);
205 205
 
206 206
 		$params = [];
207
-		$params['usedSpacePercent'] = (int)$storageInfo['relative'];
207
+		$params['usedSpacePercent'] = (int) $storageInfo['relative'];
208 208
 		$params['owner'] = $storageInfo['owner'];
209 209
 		$params['ownerDisplayName'] = $storageInfo['ownerDisplayName'];
210 210
 		$params['isPublic'] = false;
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
 		$params = [];
246 246
 
247 247
 		if (empty($files) && $this->appManager->isEnabledForUser('files_trashbin')) {
248
-			$baseFolder = $this->rootFolder->get($uid . '/files_trashbin/files/');
248
+			$baseFolder = $this->rootFolder->get($uid.'/files_trashbin/files/');
249 249
 			$files = $baseFolder->getById($fileId);
250 250
 			$params['view'] = 'trashbin';
251 251
 		}
Please login to merge, or discard this patch.