Completed
Push — master ( 3e228d...919e81 )
by Iman
06:40
created
src/YouShouldHave.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     {
33 33
         $gate = $this->defineNewGate($gate);
34 34
 
35
-        $this->chain->predicate = function (...$payload) use ($gate, $parameters) {
35
+        $this->chain->predicate = function(...$payload) use ($gate, $parameters) {
36 36
             return Gate::allows($gate, (array_merge($parameters, ...$payload)));
37 37
         };
38 38
 
@@ -46,8 +46,8 @@  discard block
 block discarded – undo
46 46
 
47 47
     public function thisMethodShouldAllow($callback, array $parameters = []): Otherwise
48 48
     {
49
-        $this->chain->predicate = function (...$payload) use ($callback, $parameters) {
50
-            return (bool) app()->call($callback, array_merge($parameters, ...$payload));
49
+        $this->chain->predicate = function(...$payload) use ($callback, $parameters) {
50
+            return (bool)app()->call($callback, array_merge($parameters, ...$payload));
51 51
         };
52 52
 
53 53
         return app(Otherwise::class);
@@ -55,8 +55,8 @@  discard block
 block discarded – undo
55 55
 
56 56
     public function thisValueShouldAllow($value): Otherwise
57 57
     {
58
-        $this->chain->predicate = function () use ($value) {
59
-            return (bool) $value;
58
+        $this->chain->predicate = function() use ($value) {
59
+            return (bool)$value;
60 60
         };
61 61
 
62 62
         return app(Otherwise::class);
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 
65 65
     public function youShouldBeGuest($guard = null): Otherwise
66 66
     {
67
-        $this->chain->predicate = function () use ($guard) {
67
+        $this->chain->predicate = function() use ($guard) {
68 68
             return auth($guard)->guest();
69 69
         };
70 70
 
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 
74 74
     public function sessionShouldHave($key): Otherwise
75 75
     {
76
-        $this->chain->predicate = function () use ($key) {
76
+        $this->chain->predicate = function() use ($key) {
77 77
             return session()->has($key);
78 78
         };
79 79
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 
83 83
     public function youShouldBeLoggedIn($guard = null): Otherwise
84 84
     {
85
-        $this->chain->predicate = function () use ($guard) {
85
+        $this->chain->predicate = function() use ($guard) {
86 86
             return auth($guard)->check();
87 87
         };
88 88
 
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 
92 92
     public function youShouldAlways()
93 93
     {
94
-        $this->chain->predicate = function () {
94
+        $this->chain->predicate = function() {
95 95
             return false;
96 96
         };
97 97
 
Please login to merge, or discard this patch.