Passed
Push — master ( 2ec5d2...37782b )
by Morris
66:43 queued 51:42
created
apps/files/templates/list.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
 		<div class="actions creatable hidden">
3 3
 			<div id="uploadprogresswrapper">
4 4
 				<div id="uploadprogressbar">
5
-					<em class="label outer" style="display:none"><span class="desktop"><?php p($l->t('Uploading …'));?></span><span class="mobile"><?php p($l->t('…'));?></span></em>
5
+					<em class="label outer" style="display:none"><span class="desktop"><?php p($l->t('Uploading …')); ?></span><span class="mobile"><?php p($l->t('…')); ?></span></em>
6 6
 				</div>
7 7
 				<button class="stop icon-close" style="display:none">
8 8
 					<span class="hidden-visually"><?php p($l->t('Cancel upload')) ?></span>
@@ -18,14 +18,14 @@  discard block
 block discarded – undo
18 18
 	*/ ?>
19 19
 	<input type="hidden" name="permissions" value="" id="permissions">
20 20
 	<input type="hidden" id="free_space" value="<?php isset($_['freeSpace']) ? p($_['freeSpace']) : '' ?>">
21
-	<?php if(isset($_['dirToken'])):?>
21
+	<?php if (isset($_['dirToken'])):?>
22 22
 	<input type="hidden" id="publicUploadRequestToken" name="requesttoken" value="<?php p($_['requesttoken']) ?>" />
23 23
 	<input type="hidden" id="dirToken" name="dirToken" value="<?php p($_['dirToken']) ?>" />
24
-	<?php endif;?>
24
+	<?php endif; ?>
25 25
 	<input type="hidden" class="max_human_file_size"
26 26
 		   value="(max <?php isset($_['uploadMaxHumanFilesize']) ? p($_['uploadMaxHumanFilesize']) : ''; ?>)">
27 27
 	<input type="checkbox" class="hidden-visually" id="showgridview"
28
-		<?php if($_['showgridview']) { ?>checked="checked" <?php } ?>/>
28
+		<?php if ($_['showgridview']) { ?>checked="checked" <?php } ?>/>
29 29
 	<label id="view-toggle" for="showgridview" class="button <?php p($_['showgridview'] ? 'icon-toggle-filelist' : 'icon-toggle-pictures') ?>"
30 30
 		   title="<?php p($l->t('Toggle grid view'))?>"></label>
31 31
 </div>
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 			<th id='headerName' class="hidden column-name">
55 55
 				<div id="headerName-container">
56 56
 					<a class="name sort columntitle" data-sort="name">
57
-                        <span><?php p($l->t( 'Name' )); ?></span>
57
+                        <span><?php p($l->t('Name')); ?></span>
58 58
                         <span class="sort-indicator"></span>
59 59
 
60 60
                     </a>
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 				<a class="size sort columntitle" data-sort="size"><span><?php p($l->t('Size')); ?></span><span class="sort-indicator"></span></a>
71 71
 			</th>
72 72
 			<th id="headerDate" class="hidden column-mtime">
73
-				<a id="modified" class="columntitle" data-sort="mtime"><span><?php p($l->t( 'Modified' )); ?></span><span class="sort-indicator"></span></a>
73
+				<a id="modified" class="columntitle" data-sort="mtime"><span><?php p($l->t('Modified')); ?></span><span class="sort-indicator"></span></a>
74 74
 			</th>
75 75
 		</tr>
76 76
 	</thead>
@@ -86,6 +86,6 @@  discard block
 block discarded – undo
86 86
 <div id="editor"></div><!-- FIXME Do not use this div in your app! It is deprecated and will be removed in the future! -->
87 87
 <div id="uploadsize-message" title="<?php p($l->t('Upload too large'))?>">
88 88
 	<p>
89
-	<?php p($l->t('The files you are trying to upload exceed the maximum size for file uploads on this server.'));?>
89
+	<?php p($l->t('The files you are trying to upload exceed the maximum size for file uploads on this server.')); ?>
90 90
 	</p>
91 91
 </div>
Please login to merge, or discard this patch.
apps/files/lib/Controller/ApiController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -170,13 +170,13 @@  discard block
 block discarded – undo
170 170
 	 * @return array
171 171
 	 */
172 172
 	private function formatNodes(array $nodes) {
173
-		return array_values(array_map(function (Node $node) {
173
+		return array_values(array_map(function(Node $node) {
174 174
 			/** @var \OC\Files\Node\Node $shareTypes */
175 175
 			$shareTypes = $this->getShareTypes($node);
176 176
 			$file = \OCA\Files\Helper::formatFileInfo($node->getFileInfo());
177 177
 			$parts = explode('/', dirname($node->getPath()), 4);
178 178
 			if (isset($parts[3])) {
179
-				$file['path'] = '/' . $parts[3];
179
+				$file['path'] = '/'.$parts[3];
180 180
 			} else {
181 181
 				$file['path'] = '/';
182 182
 			}
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
 	 * @param bool $show
265 265
 	 */
266 266
 	public function showHiddenFiles($show) {
267
-		$this->config->setUserValue($this->userSession->getUser()->getUID(), 'files', 'show_hidden', (int)$show);
267
+		$this->config->setUserValue($this->userSession->getUser()->getUID(), 'files', 'show_hidden', (int) $show);
268 268
 		return new Response();
269 269
 	}
270 270
 
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
 	 * @param bool $show
277 277
 	 */
278 278
 	public function showGridView($show) {
279
-		$this->config->setUserValue($this->userSession->getUser()->getUID(), 'files', 'show_grid', (int)$show);
279
+		$this->config->setUserValue($this->userSession->getUser()->getUID(), 'files', 'show_grid', (int) $show);
280 280
 		return new Response();
281 281
 	}
282 282
 
@@ -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
 		}
Please login to merge, or discard this patch.