]> BookStack Code Mirror - bookstack/blobdiff - app/Services/PermissionService.php
Fixed formatting via phpcbf
[bookstack] / app / Services / PermissionService.php
index dade68290569d4ad5548cb7607dcaad73d5ff1c0..045824517e3542b21501ad41d465fcb0800c91a3 100644 (file)
@@ -48,10 +48,15 @@ class PermissionService
      * @param Page $page
      */
     public function __construct(
-        JointPermission $jointPermission, EntityPermission $entityPermission, Role $role, Connection $db,
-        Bookshelf $bookshelf, Book $book, Chapter $chapter, Page $page
-    )
-    {
+        JointPermission $jointPermission,
+        EntityPermission $entityPermission,
+        Role $role,
+        Connection $db,
+        Bookshelf $bookshelf,
+        Book $book,
+        Chapter $chapter,
+        Page $page
+    ) {
         $this->db = $db;
         $this->jointPermission = $jointPermission;
         $this->entityPermission = $entityPermission;
@@ -169,8 +174,8 @@ class PermissionService
         // Chunk through all bookshelves
         $this->bookshelf->newQuery()->select(['id', 'restricted', 'created_by'])
             ->chunk(50, function ($shelves) use ($roles) {
-            $this->buildJointPermissionsForShelves($shelves, $roles);
-        });
+                $this->buildJointPermissionsForShelves($shelves, $roles);
+            });
     }
 
     /**