Passed
Push — develop ( 6557e2...c196cd )
by Jens
05:24 queued 02:30
created
src/templates/documents.php 3 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -46,11 +46,11 @@
 block discarded – undo
46 46
         <?php renderDocumentBreadcrumb($path) ?>
47 47
     </tr>
48 48
       <?php
49
-      $parentPath = substr($path, 0, strrpos( $path, '/'));
50
-      if ($path !== '/' && substr_count($path, '/') === 1) {
51
-          $parentPath = '/';
52
-      }
53
-      if (!empty($parentPath)) : ?>
49
+        $parentPath = substr($path, 0, strrpos( $path, '/'));
50
+        if ($path !== '/' && substr_count($path, '/') === 1) {
51
+            $parentPath = '/';
52
+        }
53
+        if (!empty($parentPath)) : ?>
54 54
         <tr>
55 55
           <td class="icon" title="folder">
56 56
             <i class="fa fa-folder-o"></i>
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
         <?php renderDocumentBreadcrumb($path) ?>
47 47
     </tr>
48 48
       <?php
49
-      $parentPath = substr($path, 0, strrpos( $path, '/'));
49
+      $parentPath = substr($path, 0, strrpos($path, '/'));
50 50
       if ($path !== '/' && substr_count($path, '/') === 1) {
51 51
           $parentPath = '/';
52 52
       }
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,8 @@  discard block
 block discarded – undo
20 20
           Search index is no longer in sync with documents.
21 21
           <a href="<?= $request::$subfolders ?><?= $cmsPrefix ?>/search/update-index?returnUrl=<?= urlencode($request::$subfolders . $cmsPrefix . '/documents') ?>" title="Update Index">Update Index</a>
22 22
         </div>
23
-      <?php else : ?>
23
+      <?php else {
24
+    : ?>
24 25
         <div class="message valid">
25 26
           <i class="fa fa-check"></i>
26 27
           Search index is in sync with documents.
@@ -47,6 +48,7 @@  discard block
 block discarded – undo
47 48
     </tr>
48 49
       <?php
49 50
       $parentPath = substr($path, 0, strrpos( $path, '/'));
51
+}
50 52
       if ($path !== '/' && substr_count($path, '/') === 1) {
51 53
           $parentPath = '/';
52 54
       }
Please login to merge, or discard this patch.