Test Setup Failed
Push — master ( 239ff9...5e0470 )
by Php Easy Api
03:53
created
src/resta/Role/Resource/Database/Permission.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
      */
17 17
     public static function roleMake($routeName)
18 18
     {
19
-        return static::where('route_name',$routeName)->where('role_id',auth()->user()->role_id);
19
+        return static::where('route_name', $routeName)->where('role_id', auth()->user()->role_id);
20 20
     }
21 21
 }
22 22
 
Please login to merge, or discard this patch.
src/resta/Role/RoleManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 
61 61
         $routeNames = $permission::roleMake($this->routeName);
62 62
 
63
-        if($routeNames->count()){
63
+        if ($routeNames->count()) {
64 64
             return true;
65 65
         }
66 66
 
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      * @param string $adapter
87 87
      * @return RoleManager
88 88
      */
89
-    public function setAdapter($adapter='Database')
89
+    public function setAdapter($adapter = 'Database')
90 90
     {
91 91
         $this->adapter = $adapter;
92 92
 
Please login to merge, or discard this patch.