]> BookStack Code Mirror - bookstack/blobdiff - app/Entities/Tools/NextPreviousContentLocator.php
Fixes for CodeStyle vol.2
[bookstack] / app / Entities / Tools / NextPreviousContentLocator.php
index bfb0f4a9d017791cc5ae9963e303cca18b7e339f..f70abd9b6fb37b40d4522300d32b90b9d3ac3a83 100644 (file)
@@ -1,4 +1,6 @@
-<?php namespace BookStack\Entities\Tools;
+<?php
+
+namespace BookStack\Entities\Tools;
 
 use BookStack\Entities\Models\BookChild;
 use BookStack\Entities\Models\Entity;
@@ -48,6 +50,7 @@ class NextPreviousContentLocator
             return get_class($entity) === get_class($this->relativeBookItem)
                 && $entity->id === $this->relativeBookItem->id;
         });
+
         return $index === false ? null : $index;
     }
 
@@ -64,6 +67,7 @@ class NextPreviousContentLocator
             $childPages = $item->visible_pages ?? [];
             $flatOrdered = $flatOrdered->concat($childPages);
         }
+
         return $flatOrdered;
     }
 }