Passed
Push — master ( bf98f0...c389cf )
by Iman
02:41
created
src/YouShouldHave.php 1 patch
Spacing   +9 added lines, -9 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 (...$payload) use ($gate, $parameters) {
20
+        $this->predicate = function(...$payload) use ($gate, $parameters) {
21 21
             return Gate::allows($gate, (array_merge($parameters, ...$payload)));
22 22
         };
23 23
 
@@ -31,8 +31,8 @@  discard block
 block discarded – undo
31 31
 
32 32
     public function thisMethodShouldAllow($callback, array $parameters = [])
33 33
     {
34
-        $this->predicate = function (...$payload) use ($callback, $parameters) {
35
-            return (bool) app()->call($callback, array_merge($parameters, ...$payload));
34
+        $this->predicate = function(...$payload) use ($callback, $parameters) {
35
+            return (bool)app()->call($callback, array_merge($parameters, ...$payload));
36 36
         };
37 37
 
38 38
         return new Otherwise();
@@ -40,8 +40,8 @@  discard block
 block discarded – undo
40 40
 
41 41
     public function thisValueShouldAllow($value)
42 42
     {
43
-        $this->predicate = function () use ($value) {
44
-            return (bool) $value;
43
+        $this->predicate = function() use ($value) {
44
+            return (bool)$value;
45 45
         };
46 46
 
47 47
         return new Otherwise();
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 
50 50
     public function youShouldBeGuest()
51 51
     {
52
-        $this->predicate = function () {
52
+        $this->predicate = function() {
53 53
             return auth()->guest();
54 54
         };
55 55
 
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 
59 59
     public function sessionShouldHave($key)
60 60
     {
61
-        $this->predicate = function () use ($key) {
61
+        $this->predicate = function() use ($key) {
62 62
             return session()->has($key);
63 63
         };
64 64
 
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 
68 68
     public function youShouldBeLoggedIn()
69 69
     {
70
-        $this->predicate = function () {
70
+        $this->predicate = function() {
71 71
             return auth()->check();
72 72
         };
73 73
 
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 
77 77
     public function immediately()
78 78
     {
79
-        $this->predicate = function () {
79
+        $this->predicate = function() {
80 80
             return false;
81 81
         };
82 82
 
Please login to merge, or discard this patch.