Completed
Push — master ( 466ef0...6510f5 )
by Stephen
03:09 queued 01:00
created
src/z1haze/Acl/Models/Permission.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@
 block discarded – undo
134 134
     {
135 135
         parent::boot();
136 136
 
137
-        static::deleting(function ($permission) {
137
+        static::deleting(function($permission) {
138 138
             $permission->users()->detach();
139 139
             $permission->level()->dissociate()->save();
140 140
         });
Please login to merge, or discard this patch.
src/z1haze/Acl/Traits/UserAndLevel.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
 
366 366
         $permissionObjects = $this->buildPermissionsArray($permissions, $action);
367 367
 
368
-        switch($action) {
368
+        switch ($action) {
369 369
             case 'add':
370 370
                 // Add and negate call the same method
371 371
             case 'negate':
@@ -460,7 +460,7 @@  discard block
 block discarded – undo
460 460
         if (is_a($this, config('laravel-acl.level'))) {
461 461
             $this->clearPermissions();
462 462
 
463
-            config('laravel-acl.permission', Permission::class)::whereIn('id', array_map(function ($permission) {
463
+            config('laravel-acl.permission', Permission::class)::whereIn('id', array_map(function($permission) {
464 464
                 return $permission->id;
465 465
             }, $permissionObjects))
466 466
                 ->update(['level_id' => $this->id]);
Please login to merge, or discard this patch.