Passed
Branch develop (d9d0f6)
by Florian
02:58
created
src/Policy/Result.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,9 +42,9 @@
 block discarded – undo
42 42
      */
43 43
     public function __construct(bool $status, ?string $reason = null)
44 44
     {
45
-        $this->status = (bool)$status;
45
+        $this->status = (bool) $status;
46 46
         if ($reason !== null) {
47
-            $this->reason = (string)$reason;
47
+            $this->reason = (string) $reason;
48 48
         }
49 49
     }
50 50
 
Please login to merge, or discard this patch.
src/AuthorizationService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      */
104 104
     protected function getCanHandler($policy, $action): callable
105 105
     {
106
-        $method = 'can' . ucfirst($action);
106
+        $method = 'can'.ucfirst($action);
107 107
         if (!method_exists($policy, $method) && !method_exists($policy, '__call')) {
108 108
             throw (new MissingMethodException())->setMessageVars([$method, $action, get_class($policy)]);
109 109
         }
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      */
122 122
     protected function getScopeHandler($policy, $action): callable
123 123
     {
124
-        $method = 'scope' . ucfirst($action);
124
+        $method = 'scope'.ucfirst($action);
125 125
         if (!method_exists($policy, $method)) {
126 126
             throw (new MissingMethodException())->setMessageVars([$method, $action, get_class($policy)]);
127 127
         }
Please login to merge, or discard this patch.