]> BookStack Code Mirror - bookstack/blobdiff - app/Entities/Repos/PageRepo.php
Fixed failing test after drawio default url change
[bookstack] / app / Entities / Repos / PageRepo.php
index b914632b5f12629fc30211fca17fe8407e05d44b..828c4572fd100f7355d02077477a85a8728bc216 100644 (file)
@@ -328,7 +328,7 @@ class PageRepo
     public function move(Page $page, string $parentIdentifier): Entity
     {
         $parent = $this->findParentByIdentifier($parentIdentifier);
-        if ($parent === null) {
+        if (is_null($parent)) {
             throw new MoveOperationException('Book or chapter to move page into not found');
         }
 
@@ -347,7 +347,7 @@ class PageRepo
     }
 
     /**
-     * Find a page parent entity via a identifier string in the format:
+     * Find a page parent entity via an identifier string in the format:
      * {type}:{id}
      * Example: (book:5).
      *