Completed
Push — master ( 948dd8...416797 )
by Iman
09:03
created
src/Reactions/ResponderFactory.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -29,14 +29,14 @@  discard block
 block discarded – undo
29 29
 
30 30
     protected function abort($abort): \Closure
31 31
     {
32
-        return function () use ($abort) {
32
+        return function() use ($abort) {
33 33
             abort(...$abort);
34 34
         };
35 35
     }
36 36
 
37 37
     protected function nothing(): \Closure
38 38
     {
39
-        return function () {
39
+        return function() {
40 40
         };
41 41
     }
42 42
 
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      */
48 48
     protected function exception(array $e): \Closure
49 49
     {
50
-        return function () use ($e) {
50
+        return function() use ($e) {
51 51
             $exClass = $e[0];
52 52
             $message = $e[1];
53 53
 
@@ -62,21 +62,21 @@  discard block
 block discarded – undo
62 62
      */
63 63
     protected function response(...$resp): \Closure
64 64
     {
65
-        return function () use ($resp) {
65
+        return function() use ($resp) {
66 66
             $this->sendResponse($resp, response());
67 67
         };
68 68
     }
69 69
 
70 70
     protected function redirect(...$resp): \Closure
71 71
     {
72
-        return function () use ($resp) {
72
+        return function() use ($resp) {
73 73
             $this->sendResponse($resp, redirect());
74 74
         };
75 75
     }
76 76
 
77 77
     protected function respondFrom($method): \Closure
78 78
     {
79
-        return function () use ($method) {
79
+        return function() use ($method) {
80 80
             respondWith(app()->call(...$method));
81 81
         };
82 82
     }
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
      */
109 109
     public function validatorCallback($modifier, $rules, array $messages = [], array $customAttributes = []): \Closure
110 110
     {
111
-        $validator = function () use ($modifier, $rules, $messages, $customAttributes) {
111
+        $validator = function() use ($modifier, $rules, $messages, $customAttributes) {
112 112
             if (is_callable($rules)) {
113 113
                 $rules = $rules();
114 114
             }
Please login to merge, or discard this patch.
src/Conditions/Traits/Session.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 {
7 7
     public function sessionShouldHave($key)
8 8
     {
9
-        return function () use ($key) {
9
+        return function() use ($key) {
10 10
             return session()->has($key);
11 11
         };
12 12
     }
Please login to merge, or discard this patch.
src/Conditions/Traits/Authentication.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,14 +6,14 @@
 block discarded – undo
6 6
 {
7 7
     public function youShouldBeGuest($guard = null)
8 8
     {
9
-        return function () use ($guard) {
9
+        return function() use ($guard) {
10 10
             return auth($guard)->guest();
11 11
         };
12 12
     }
13 13
 
14 14
     public function youShouldBeLoggedIn($guard = null)
15 15
     {
16
-        return function () use ($guard) {
16
+        return function() use ($guard) {
17 17
             return auth($guard)->check();
18 18
         };
19 19
     }
Please login to merge, or discard this patch.
src/Conditions/Traits/Callbacks.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -11,15 +11,15 @@
 block discarded – undo
11 11
 
12 12
     public function thisMethodShouldAllow($callback, array $parameters = [])
13 13
     {
14
-        return function (...$payload) use ($callback, $parameters) {
15
-            return (bool) app()->call($callback, array_merge($parameters, ...$payload));
14
+        return function(...$payload) use ($callback, $parameters) {
15
+            return (bool)app()->call($callback, array_merge($parameters, ...$payload));
16 16
         };
17 17
     }
18 18
 
19 19
     public function thisValueShouldAllow($value)
20 20
     {
21
-        return function () use ($value) {
22
-            return (bool) $value;
21
+        return function() use ($value) {
22
+            return (bool)$value;
23 23
         };
24 24
     }
25 25
 }
Please login to merge, or discard this patch.
src/Conditions/Traits/Gate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
     {
11 11
         $gate = $this->defineNewGate($gate);
12 12
 
13
-        return function (...$payload) use ($gate, $parameters) {
13
+        return function(...$payload) use ($gate, $parameters) {
14 14
             return GateFacade::allows($gate, (array_merge($parameters, ...$payload)));
15 15
         };
16 16
     }
Please login to merge, or discard this patch.