]> BookStack Code Mirror - bookstack/blobdiff - app/Entities/Tools/ShelfContext.php
Fixed OIDC Logout
[bookstack] / app / Entities / Tools / ShelfContext.php
index 0635bce1cbd753569a442f2350f7cae672c47326..50c7047d9e39607c2ba3459fc5e6e845a33dbc13 100644 (file)
@@ -1,7 +1,9 @@
-<?php namespace BookStack\Entities\Tools;
+<?php
 
-use BookStack\Entities\Book;
-use BookStack\Entities\Bookshelf;
+namespace BookStack\Entities\Tools;
+
+use BookStack\Entities\Models\Book;
+use BookStack\Entities\Models\Bookshelf;
 
 class ShelfContext
 {
@@ -18,6 +20,7 @@ class ShelfContext
             return null;
         }
 
+        /** @var Bookshelf $shelf */
         $shelf = Bookshelf::visible()->find($contextBookshelfId);
         $shelfContainsBook = $shelf && $shelf->contains($book);