Passed
Push — master ( 354cb3...72815c )
by Jens
03:33
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.
src/templates/documents/function.renderDocument.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,17 +35,17 @@
 block discarded – undo
35 35
         <tr>
36 36
           <th>Created</th>
37 37
           <td title="<?= date('d-m-Y H:i:s',
38
-              $document->creationDate) ?>"><?= \CloudControl\Cms\util\StringUtil::timeElapsedString($document->creationDate) ?></td>
38
+                $document->creationDate) ?>"><?= \CloudControl\Cms\util\StringUtil::timeElapsedString($document->creationDate) ?></td>
39 39
           <th>Last Modified</th>
40 40
           <td title="<?= date('d-m-Y H:i:s',
41
-              $document->lastModificationDate) ?>"><?= \CloudControl\Cms\util\StringUtil::timeElapsedString($document->lastModificationDate) ?></td>
41
+                $document->lastModificationDate) ?>"><?= \CloudControl\Cms\util\StringUtil::timeElapsedString($document->lastModificationDate) ?></td>
42 42
         </tr>
43 43
         <tr>
44 44
           <td colspan="2">&nbsp;</td>
45 45
           <th>Published</th>
46 46
             <?php if ($document->state === 'published') : ?>
47 47
               <td title="<?= date('d-m-Y H:i:s',
48
-                  $document->publicationDate) ?>"><?= \CloudControl\Cms\util\StringUtil::timeElapsedString($document->publicationDate) ?></td>
48
+                    $document->publicationDate) ?>"><?= \CloudControl\Cms\util\StringUtil::timeElapsedString($document->publicationDate) ?></td>
49 49
             <?php else : ?>
50 50
               <td>Not yet</td>
51 51
             <?php endif ?>
Please login to merge, or discard this patch.