]> BookStack Code Mirror - bookstack/blobdiff - app/Entities/Tools/ShelfContext.php
Guest create page: name field autofocus
[bookstack] / app / Entities / Tools / ShelfContext.php
index f3849bbb4741e8c075c122bca3274f242f6d0e28..50c7047d9e39607c2ba3459fc5e6e845a33dbc13 100644 (file)
@@ -1,4 +1,6 @@
-<?php namespace BookStack\Entities\Tools;
+<?php
+
+namespace BookStack\Entities\Tools;
 
 use BookStack\Entities\Models\Book;
 use BookStack\Entities\Models\Bookshelf;
@@ -18,6 +20,7 @@ class ShelfContext
             return null;
         }
 
+        /** @var Bookshelf $shelf */
         $shelf = Bookshelf::visible()->find($contextBookshelfId);
         $shelfContainsBook = $shelf && $shelf->contains($book);