]> BookStack Code Mirror - bookstack/blobdiff - app/Entities/Bookshelf.php
Extracted some methods into a BookRepo
[bookstack] / app / Entities / Bookshelf.php
index db6685688b3bcd2e6c449338f7ac9e83eef58803..745611ba782704adc4bd30831081699e4cb6685c 100644 (file)
@@ -100,7 +100,7 @@ class Bookshelf extends Entity
      * @param Book $book
      * @return bool
      */
-    public function contains(Book $book)
+    public function contains(Book $book): bool 
     {
         return $this->books()->where('id', '=', $book->id)->count() > 0;
     }