Completed
Pull Request — master (#6399)
by Morris
17:53
created
apps/files_trashbin/appinfo/app.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -29,13 +29,13 @@
 block discarded – undo
29 29
 \OCA\Files_Trashbin\Trashbin::registerHooks();
30 30
 
31 31
 \OCA\Files\App::getNavigationManager()->add(function () {
32
-	$l = \OC::$server->getL10N('files_trashbin');
33
-	return [
34
-		'id' => 'trashbin',
35
-		'appname' => 'files_trashbin',
36
-		'script' => 'list.php',
37
-		'order' => 50,
38
-		'name' => $l->t('Deleted files'),
39
-		'classes' => 'pinned',
40
-	];
32
+    $l = \OC::$server->getL10N('files_trashbin');
33
+    return [
34
+        'id' => 'trashbin',
35
+        'appname' => 'files_trashbin',
36
+        'script' => 'list.php',
37
+        'order' => 50,
38
+        'name' => $l->t('Deleted files'),
39
+        'classes' => 'pinned',
40
+    ];
41 41
 });
Please login to merge, or discard this patch.
apps/files/templates/appnavigation.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@  discard block
 block discarded – undo
2 2
 	<ul class="with-icon">
3 3
 	<?php $pinned = 0 ?>
4 4
 		<?php foreach ($_['navigationItems'] as $item) {
5
-			strpos($item['classes'], 'pinned')!==false ? $pinned++ : '';
6
-		?>
5
+            strpos($item['classes'], 'pinned')!==false ? $pinned++ : '';
6
+        ?>
7 7
 		<li data-id="<?php p($item['id']) ?>" class="nav-<?php p($item['id']) ?> <?php p($item['classes']) ?> <?php p($pinned===1?'first-pinned':'') ?>">
8 8
 			<a href="<?php p(isset($item['href']) ? $item['href'] : '#') ?>"
9 9
 				class="nav-icon-<?php p($item['icon'] !== '' ? $item['icon'] : $item['id']) ?> svg">
@@ -12,16 +12,16 @@  discard block
 block discarded – undo
12 12
 		</li>
13 13
 		<?php } ?>
14 14
 		<li id="quota" class="section pinned <?php
15
-		if ($_['quota'] !== \OCP\Files\FileInfo::SPACE_UNLIMITED) {
16
-			?>has-tooltip" title="<?php p($_['usage_relative'] . '%');
17
-		} ?>">
15
+        if ($_['quota'] !== \OCP\Files\FileInfo::SPACE_UNLIMITED) {
16
+            ?>has-tooltip" title="<?php p($_['usage_relative'] . '%');
17
+        } ?>">
18 18
 			<a href="#" class="nav-icon-quota svg">
19 19
 				<p id="quotatext"><?php
20
-					if ($_['quota'] !== \OCP\Files\FileInfo::SPACE_UNLIMITED) {
21
-						p($l->t('%s of %s used', [$_['usage'], $_['total_space']]));
22
-					} else {
23
-						p($l->t('%s used', [$_['usage']]));
24
-					} ?></p>
20
+                    if ($_['quota'] !== \OCP\Files\FileInfo::SPACE_UNLIMITED) {
21
+                        p($l->t('%s of %s used', [$_['usage'], $_['total_space']]));
22
+                    } else {
23
+                        p($l->t('%s used', [$_['usage']]));
24
+                    } ?></p>
25 25
 				<div class="quota-container">
26 26
 					<div style="width:<?php p($_['usage_relative']);?>%"
27 27
 						 <?php if($_['usage_relative'] > 80): ?>class="quota-warning"<?php endif; ?>>
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -2,18 +2,18 @@  discard block
 block discarded – undo
2 2
 	<ul class="with-icon">
3 3
 	<?php $pinned = 0 ?>
4 4
 		<?php foreach ($_['navigationItems'] as $item) {
5
-			strpos($item['classes'], 'pinned')!==false ? $pinned++ : '';
5
+			strpos($item['classes'], 'pinned') !== false ? $pinned++ : '';
6 6
 		?>
7
-		<li data-id="<?php p($item['id']) ?>" class="nav-<?php p($item['id']) ?> <?php p($item['classes']) ?> <?php p($pinned===1?'first-pinned':'') ?>">
7
+		<li data-id="<?php p($item['id']) ?>" class="nav-<?php p($item['id']) ?> <?php p($item['classes']) ?> <?php p($pinned === 1 ? 'first-pinned' : '') ?>">
8 8
 			<a href="<?php p(isset($item['href']) ? $item['href'] : '#') ?>"
9 9
 				class="nav-icon-<?php p($item['icon'] !== '' ? $item['icon'] : $item['id']) ?> svg">
10
-				<?php p($item['name']);?>
10
+				<?php p($item['name']); ?>
11 11
 			</a>
12 12
 		</li>
13 13
 		<?php } ?>
14 14
 		<li id="quota" class="section pinned <?php
15 15
 		if ($_['quota'] !== \OCP\Files\FileInfo::SPACE_UNLIMITED) {
16
-			?>has-tooltip" title="<?php p($_['usage_relative'] . '%');
16
+			?>has-tooltip" title="<?php p($_['usage_relative'].'%');
17 17
 		} ?>">
18 18
 			<a href="#" class="nav-icon-quota svg">
19 19
 				<p id="quotatext"><?php
@@ -23,8 +23,8 @@  discard block
 block discarded – undo
23 23
 						p($l->t('%s used', [$_['usage']]));
24 24
 					} ?></p>
25 25
 				<div class="quota-container">
26
-					<div style="width:<?php p($_['usage_relative']);?>%"
27
-						 <?php if($_['usage_relative'] > 80): ?>class="quota-warning"<?php endif; ?>>
26
+					<div style="width:<?php p($_['usage_relative']); ?>%"
27
+						 <?php if ($_['usage_relative'] > 80): ?>class="quota-warning"<?php endif; ?>>
28 28
 					</div>
29 29
 				</div>
30 30
 			</a>
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 	<div id="app-settings">
34 34
 		<div id="app-settings-header">
35 35
 			<button class="settings-button" data-apps-slide-toggle="#app-settings-content">
36
-				<?php p($l->t('Settings'));?>
36
+				<?php p($l->t('Settings')); ?>
37 37
 			</button>
38 38
 		</div>
39 39
 		<div id="app-settings-content">
@@ -41,9 +41,9 @@  discard block
 block discarded – undo
41 41
 				<input class="checkbox" id="showhiddenfilesToggle" checked="checked" type="checkbox">
42 42
 				<label for="showhiddenfilesToggle"><?php p($l->t('Show hidden files')); ?></label>
43 43
 			</div>
44
-			<label for="webdavurl"><?php p($l->t('WebDAV'));?></label>
44
+			<label for="webdavurl"><?php p($l->t('WebDAV')); ?></label>
45 45
 			<input id="webdavurl" type="text" readonly="readonly" value="<?php p(\OCP\Util::linkToRemote('webdav')); ?>" />
46
-			<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>
46
+			<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>
47 47
 		</div>
48 48
 	</div>
49 49
 </div>
Please login to merge, or discard this patch.