Completed
Push — master ( 210a64...050109 )
by Iman
05:21
created
src/Switching/Consider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
      */
57 57
     private function turn($key, callable $closure = null)
58 58
     {
59
-        $key = 'heyman_ignore_'.$key;
59
+        $key = 'heyman_ignore_' . $key;
60 60
 
61 61
         $current = config($key);
62 62
         $this->changeMode($key);
Please login to merge, or discard this patch.
src/helpers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (! function_exists('resolve')) {
3
+if (!function_exists('resolve')) {
4 4
     /**
5 5
      * Resolve a service from the container.
6 6
      *
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.
src/Reactions/ResponderFactory.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -19,14 +19,14 @@  discard block
 block discarded – undo
19 19
 
20 20
     protected function abort($abort): \Closure
21 21
     {
22
-        return function () use ($abort) {
22
+        return function() use ($abort) {
23 23
             abort(...$abort);
24 24
         };
25 25
     }
26 26
 
27 27
     protected function nothing(): \Closure
28 28
     {
29
-        return function () {
29
+        return function() {
30 30
         };
31 31
     }
32 32
 
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      */
38 38
     protected function exception(array $e): \Closure
39 39
     {
40
-        return function () use ($e) {
40
+        return function() use ($e) {
41 41
             $exClass = $e[0];
42 42
             $message = $e[1];
43 43
 
@@ -52,14 +52,14 @@  discard block
 block discarded – undo
52 52
      */
53 53
     protected function response(...$resp): \Closure
54 54
     {
55
-        return function () use ($resp) {
55
+        return function() use ($resp) {
56 56
             $this->sendResponse($resp, response());
57 57
         };
58 58
     }
59 59
 
60 60
     protected function redirect(...$resp): \Closure
61 61
     {
62
-        return function () use ($resp) {
62
+        return function() use ($resp) {
63 63
             $this->sendResponse($resp, redirect());
64 64
         };
65 65
     }
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
      */
74 74
     protected function respondFrom($method): \Closure
75 75
     {
76
-        return function () use ($method) {
76
+        return function() use ($method) {
77 77
             throw new HttpResponseException(app()->call(...$method));
78 78
         };
79 79
     }
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
      */
107 107
     public function validatorCallback($modifier, $rules, array $messages = [], array $customAttributes = []): \Closure
108 108
     {
109
-        $validator = function () use ($modifier, $rules, $messages, $customAttributes) {
109
+        $validator = function() use ($modifier, $rules, $messages, $customAttributes) {
110 110
             if (is_callable($rules)) {
111 111
                 $rules = $rules();
112 112
             }
Please login to merge, or discard this patch.
src/Reactions/Validator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     public function __destruct()
30 30
     {
31 31
         $data = $this->validationData;
32
-        $modifier = $this->modifier ?: function ($d) {
32
+        $modifier = $this->modifier ?: function($d) {
33 33
             return $d;
34 34
         };
35 35
         $chain = resolve('heyman.chain');
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 beGuest($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 loggedIn($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/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 sessionHas($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/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 methodAllows($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 valueAllows($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/Switching/HeyManSwitcher.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,8 +6,8 @@
 block discarded – undo
6 6
 {
7 7
     public function wrapForIgnorance(callable $callback, $key): \Closure
8 8
     {
9
-        return function (...$args) use ($callback, $key) {
10
-            if (! config('heyman_ignore_'.$key, false)) {
9
+        return function(...$args) use ($callback, $key) {
10
+            if (!config('heyman_ignore_' . $key, false)) {
11 11
                 $callback(...$args);
12 12
             }
13 13
         };
Please login to merge, or discard this patch.