]> BookStack Code Mirror - bookstack/blobdiff - app/Entities/Chapter.php
Fixed book-tree-gen page visibility issue
[bookstack] / app / Entities / Chapter.php
index 3290afcfa6b90b0b01b653f99dfd7f93598f6556..5f5509efa22843925d218524183726924b2d8cb1 100644 (file)
@@ -5,7 +5,6 @@ use Illuminate\Support\Collection;
 /**
  * Class Chapter
  * @property Collection<Page> $pages
- * @package BookStack\Entities
  */
 class Chapter extends BookChild
 {
@@ -52,15 +51,6 @@ class Chapter extends BookChild
         return mb_strlen($description) > $length ? mb_substr($description, 0, $length-3) . '...' : $description;
     }
 
-    /**
-     * Check if this chapter has any child pages.
-     * @return bool
-     */
-    public function hasChildren()
-    {
-        return count($this->pages) > 0;
-    }
-
     /**
      * Get the visible pages in this chapter.
      */