]> BookStack Code Mirror - bookstack/commitdiff
Fix phpcs issues
authorChristopher Wilkinson <redacted>
Wed, 3 Apr 2019 09:26:24 +0000 (10:26 +0100)
committerChristopher Wilkinson <redacted>
Mon, 15 Apr 2019 08:27:17 +0000 (09:27 +0100)
app/Auth/Permissions/PermissionService.php
app/Http/Controllers/BookController.php

index 1e1ee394691891b63f0146c66e2fd3f9ea17b171..7e710edaf4be8f8cdb1c6d58ddb83fbc4e9f67f1 100644 (file)
@@ -577,7 +577,7 @@ class PermissionService
                         $query2->where('has_permission_own', '=', 1)
                             ->where('created_by', '=', $userId);
                     });
                         $query2->where('has_permission_own', '=', 1)
                             ->where('created_by', '=', $userId);
                     });
-        }) ;
+            });
 
         if (!is_null($entityClass)) {
             $entityInstance = app()->make($entityClass);
 
         if (!is_null($entityClass)) {
             $entityInstance = app()->make($entityClass);
index 325fd1ffa856286cbb12087e6184b79089fe86b6..862d2b021a1bc99075604eed72f3c577db8116f1 100644 (file)
@@ -108,7 +108,6 @@ class BookController extends Controller
 
             $shelfBooks = $this->entityRepo->getBookshelfChildren($bookshelf);
             $shelfBookIds = $shelfBooks->pluck('id');
 
             $shelfBooks = $this->entityRepo->getBookshelfChildren($bookshelf);
             $shelfBookIds = $shelfBooks->pluck('id');
-            
         } else {
             $bookshelf = null;
         }
         } else {
             $bookshelf = null;
         }