Passed
Push — master ( aad327...03bab6 )
by Daniel
11:57
created
apps/files/templates/appnavigation.php 2 patches
Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -3,25 +3,25 @@  discard block
 block discarded – undo
3 3
 
4 4
 		<?php
5 5
 
6
-		$pinned = 0;
7
-		foreach ($_['navigationItems'] as $item) {
8
-			$pinned = NavigationListElements($item, $l, $pinned);
9
-		}
10
-		?>
6
+        $pinned = 0;
7
+        foreach ($_['navigationItems'] as $item) {
8
+            $pinned = NavigationListElements($item, $l, $pinned);
9
+        }
10
+        ?>
11 11
 
12 12
 		<li id="quota"
13 13
 			class="pinned <?php p($pinned === 0 ? 'first-pinned ' : '') ?><?php
14
-			if ($_['quota'] !== \OCP\Files\FileInfo::SPACE_UNLIMITED) {
15
-			?>has-tooltip" title="<?php p($_['usage_relative'] . '%, ');
16
-			p($l->t('%s of %s used', [$_['usage'], $_['total_space']]));
17
-		} ?>">
14
+            if ($_['quota'] !== \OCP\Files\FileInfo::SPACE_UNLIMITED) {
15
+            ?>has-tooltip" title="<?php p($_['usage_relative'] . '%, ');
16
+            p($l->t('%s of %s used', [$_['usage'], $_['total_space']]));
17
+        } ?>">
18 18
 			<a href="#" class="icon-quota svg">
19 19
 				<p id="quotatext"><?php
20
-					if ($_['quota'] !== \OCP\Files\FileInfo::SPACE_UNLIMITED) {
21
-						p($l->t('%1$s%% of %2$s used', [round($_['usage_relative'], 1), $_['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('%1$s%% of %2$s used', [round($_['usage_relative'], 1), $_['total_space']]));
22
+                    } else {
23
+                        p($l->t('%s used', [$_['usage']]));
24
+                    } ?></p>
25 25
 				<div class="quota-container">
26 26
 					<progress value="<?php p($_['usage_relative']); ?>"
27 27
 							  max="100"
@@ -65,8 +65,8 @@  discard block
 block discarded – undo
65 65
  * @return int Returns the pinned value
66 66
  */
67 67
 function NavigationListElements($item, $l, $pinned) {
68
-	strpos($item['classes'] ?? '', 'pinned') !== false ? $pinned++ : '';
69
-	?>
68
+    strpos($item['classes'] ?? '', 'pinned') !== false ? $pinned++ : '';
69
+    ?>
70 70
 	<li
71 71
 		data-id="<?php p($item['id']) ?>"
72 72
 		<?php if (isset($item['dir'])) { ?> data-dir="<?php p($item['dir']); ?>" <?php } ?>
@@ -83,23 +83,23 @@  discard block
 block discarded – undo
83 83
 
84 84
 
85 85
 		<?php
86
-		NavigationElementMenu($item);
87
-		if (isset($item['sublist'])) {
88
-			?>
86
+        NavigationElementMenu($item);
87
+        if (isset($item['sublist'])) {
88
+            ?>
89 89
 			<button class="collapse app-navigation-noclose" <?php if (sizeof($item['sublist']) == 0) { ?> style="display: none" <?php } ?>></button>
90 90
 			<ul id="sublist-<?php p($item['id']); ?>">
91 91
 				<?php
92
-				foreach ($item['sublist'] as $item) {
93
-					$pinned = NavigationListElements($item, $l, $pinned);
94
-				}
95
-				?>
92
+                foreach ($item['sublist'] as $item) {
93
+                    $pinned = NavigationListElements($item, $l, $pinned);
94
+                }
95
+                ?>
96 96
 			</ul>
97 97
 		<?php } ?>
98 98
 	</li>
99 99
 
100 100
 
101 101
 	<?php
102
-	return $pinned;
102
+    return $pinned;
103 103
 }
104 104
 
105 105
 /**
@@ -110,8 +110,8 @@  discard block
 block discarded – undo
110 110
  * @return void
111 111
  */
112 112
 function NavigationElementMenu($item) {
113
-	if (isset($item['menubuttons']) && $item['menubuttons'] === 'true') {
114
-		?>
113
+    if (isset($item['menubuttons']) && $item['menubuttons'] === 'true') {
114
+        ?>
115 115
 		<div id="dotmenu-<?php p($item['id']); ?>"
116 116
 			 class="app-navigation-entry-utils" <?php if (isset($item['enableMenuButton']) && $item['enableMenuButton'] === 0) { ?> style="display: none"<?php } ?>>
117 117
 			<ul>
Please login to merge, or discard this 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
 			p($l->t('%s of %s used', [$_['usage'], $_['total_space']]));
17 17
 		} ?>">
18 18
 			<a href="#" class="icon-quota svg">
Please login to merge, or discard this patch.