Test Setup Failed
Push — master ( 5e0470...e8b56d )
by Php Easy Api
03:59
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.
src/resta/Contracts/ClientContract.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
      * @param null $default
21 21
      * @return mixed
22 22
      */
23
-    public function input($key, $default=null);
23
+    public function input($key, $default = null);
24 24
 
25 25
     /**
26 26
      * @param $key
@@ -45,5 +45,5 @@  discard block
 block discarded – undo
45 45
      * @param $value
46 46
      * @return void
47 47
      */
48
-    public function set($key,$value);
48
+    public function set($key, $value);
49 49
 }
50 50
\ No newline at end of file
Please login to merge, or discard this patch.