Test Setup Failed
Push — master ( 239ff9...5e0470 )
by Php Easy Api
03:53
created
src/resta/Exception/ExceptionManager.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      * @return null
30 30
      *
31 31
      */
32
-    public function accessDeniedHttpException($msg=null)
32
+    public function accessDeniedHttpException($msg = null)
33 33
     {
34 34
         return $this->accessDeniedHttp($msg);
35 35
     }
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      *
40 40
      * @param null|string $msg
41 41
      */
42
-    public function invalidArgument($msg=null)
42
+    public function invalidArgument($msg = null)
43 43
     {
44 44
         throw new InvalidArgumentException($msg);
45 45
     }
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      *
50 50
      * @param null|string $msg
51 51
      */
52
-    public function badFunctionCall($msg=null)
52
+    public function badFunctionCall($msg = null)
53 53
     {
54 54
         throw new BadFunctionCallException($msg);
55 55
     }
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      *
60 60
      * @param null|string $msg
61 61
      */
62
-    public function badMethodCall($msg=null)
62
+    public function badMethodCall($msg = null)
63 63
     {
64 64
         throw new BadMethodCallException($msg);
65 65
     }
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      *
70 70
      * @param null|string $msg
71 71
      */
72
-    public function domain($msg=null)
72
+    public function domain($msg = null)
73 73
     {
74 74
         throw new DomainException($msg);
75 75
     }
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
      *
80 80
      * @param null|string $msg
81 81
      */
82
-    public function length($msg=null)
82
+    public function length($msg = null)
83 83
     {
84 84
         throw new LengthException($msg);
85 85
     }
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
      *
90 90
      * @param null|string $msg
91 91
      */
92
-    public function logic($msg=null)
92
+    public function logic($msg = null)
93 93
     {
94 94
         throw new LogicException($msg);
95 95
     }
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
      * @return null
102 102
      *
103 103
      */
104
-    public function notFoundException($msg=null)
104
+    public function notFoundException($msg = null)
105 105
     {
106 106
         return $this->notFound($msg);
107 107
     }
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
      * @return mixed|void
114 114
      *
115 115
      */
116
-    public function fileNotFoundException($msg=null)
116
+    public function fileNotFoundException($msg = null)
117 117
     {
118 118
         return $this->fileNotFound($msg);
119 119
     }
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
      *
124 124
      * @param null|string $msg
125 125
      */
126
-    public function outOfRange($msg=null)
126
+    public function outOfRange($msg = null)
127 127
     {
128 128
         throw new OutOfRangeException($msg);
129 129
     }
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
      *
134 134
      * @param null|string $msg
135 135
      */
136
-    public function overflow($msg=null)
136
+    public function overflow($msg = null)
137 137
     {
138 138
         throw new OverflowException($msg);
139 139
     }
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
      *
144 144
      * @param null|string $msg
145 145
      */
146
-    public function range($msg=null)
146
+    public function range($msg = null)
147 147
     {
148 148
         throw new RangeException($msg);
149 149
     }
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
      *
154 154
      * @param null|string $msg
155 155
      */
156
-    public function runtime($msg=null)
156
+    public function runtime($msg = null)
157 157
     {
158 158
         throw new RuntimeException($msg);
159 159
     }
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
      *
164 164
      * @param null|string $msg
165 165
      */
166
-    public function underflow($msg=null)
166
+    public function underflow($msg = null)
167 167
     {
168 168
         throw new UnderflowException($msg);
169 169
     }
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
      *
174 174
      * @param null|string $msg
175 175
      */
176
-    public function unexpectedValue($msg=null)
176
+    public function unexpectedValue($msg = null)
177 177
     {
178 178
         throw new UnexpectedValueException($msg);
179 179
     }
Please login to merge, or discard this patch.
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.