Passed
Push — master ( b9fea2...a6a214 )
by Iman
03:14
created
src/Responder.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      */
48 48
     public function view($view, $data = [], $status = 200, array $headers = [])
49 49
     {
50
-        $this->response = response()->view($view, $data, $status, $headers );
50
+        $this->response = response()->view($view, $data, $status, $headers);
51 51
     }
52 52
 
53 53
     /**
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      */
99 99
     public function streamDownload($callback, $name = null, array $headers = [], $disposition = 'attachment')
100 100
     {
101
-        $this->response = response()->streamDownload($callback, $name, $headers, $disposition );
101
+        $this->response = response()->streamDownload($callback, $name, $headers, $disposition);
102 102
     }
103 103
 
104 104
     /**
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
      */
112 112
     public function download($file, $name = null, array $headers = [], $disposition = 'attachment')
113 113
     {
114
-        $this->response = response()->download($file, $name, $headers, $disposition );
114
+        $this->response = response()->download($file, $name, $headers, $disposition);
115 115
     }
116 116
 
117 117
     /**
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
      */
138 138
     public function redirectToAction($action, $parameters = [], $status = 302, $headers = [])
139 139
     {
140
-        $this->response = response()->redirectToAction($action, $parameters, $status, $headers );
140
+        $this->response = response()->redirectToAction($action, $parameters, $status, $headers);
141 141
     }
142 142
 
143 143
     /**
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
      */
164 164
     public function redirectToIntended($default = '/', $status = 302, $headers = [], $secure = null)
165 165
     {
166
-        $this->response = response()->redirectToIntended($default, $status, $headers, $secure );
166
+        $this->response = response()->redirectToIntended($default, $status, $headers, $secure);
167 167
     }
168 168
 
169 169
     public function send(Response $response)
@@ -181,21 +181,21 @@  discard block
 block discarded – undo
181 181
 
182 182
         if ($this->exception) {
183 183
             $e = $this->exception;
184
-            return function () use ($e, $cb) {
184
+            return function() use ($e, $cb) {
185 185
                 if (!$cb()) {
186 186
                     throw $e;
187 187
                 }
188 188
             };
189 189
         }
190 190
 
191
-        return function () use ($resp, $cb) {
191
+        return function() use ($resp, $cb) {
192 192
             if (!$cb()) {
193 193
                 respondWith($resp);
194 194
             }
195 195
         };
196 196
     }
197 197
 
198
-    public function weThrowNew($exception, $message= '')
198
+    public function weThrowNew($exception, $message = '')
199 199
     {
200 200
         $this->exception = new $exception($message);
201 201
     }
Please login to merge, or discard this patch.
src/YouShouldHave.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
     {
18 18
         $gate = $this->defineNewGate($gate);
19 19
 
20
-        $this->predicate = function () use ($gate, $args) {
20
+        $this->predicate = function() use ($gate, $args) {
21 21
             return Gate::allows($gate, $args);
22 22
         };
23 23
 
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 
32 32
     public function thisMethodShouldAllow($callback, array $parameters = [])
33 33
     {
34
-        $this->predicate = function () use ($callback, $parameters) {
34
+        $this->predicate = function() use ($callback, $parameters) {
35 35
             return (boolean) app()->call($callback, $parameters);
36 36
         };
37 37
 
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 
41 41
     public function thisValueShouldAllow($value)
42 42
     {
43
-        $this->predicate = function () use ($value) {
43
+        $this->predicate = function() use ($value) {
44 44
             return (boolean) $value;
45 45
         };
46 46
         return new Otherwise();
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 
49 49
     public function youShouldBeGuest()
50 50
     {
51
-        $this->predicate = function () {
51
+        $this->predicate = function() {
52 52
             return auth()->guest();
53 53
         };
54 54
 
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 
58 58
     public function youShouldBeLoggedIn()
59 59
     {
60
-        $this->predicate = function () {
60
+        $this->predicate = function() {
61 61
             return auth()->check();
62 62
         };
63 63
 
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 
67 67
     public function immediately()
68 68
     {
69
-        $this->predicate = function () {
69
+        $this->predicate = function() {
70 70
             return false;
71 71
         };
72 72
 
Please login to merge, or discard this patch.