Passed
Push — master ( 806558...d230a4 )
by Iman
03:38 queued 52s
created
src/WatchingStrategies/Routes/RouteNormalizer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -11,12 +11,12 @@  discard block
 block discarded – undo
11 11
      */
12 12
     public function normalizeAction($actions): array
13 13
     {
14
-        $addNamespace = function ($action) {
14
+        $addNamespace = function($action) {
15 15
             if ($action = ltrim($action, '\\')) {
16 16
                 return $action;
17 17
             }
18 18
 
19
-            return app()->getNamespace().'\\Http\\Controllers\\'.$action;
19
+            return app()->getNamespace() . '\\Http\\Controllers\\' . $action;
20 20
         };
21 21
 
22 22
         return array_map($addNamespace, $actions);
@@ -30,8 +30,8 @@  discard block
 block discarded – undo
30 30
      */
31 31
     public function normalizeUrl($urls, $verb = 'GET'): array
32 32
     {
33
-        $removeSlash = function ($url) use ($verb) {
34
-            return $verb.ltrim($url, '/');
33
+        $removeSlash = function($url) use ($verb) {
34
+            return $verb . ltrim($url, '/');
35 35
         };
36 36
 
37 37
         return array_map($removeSlash, $urls);
Please login to merge, or discard this patch.
src/WatchingStrategies/Routes/RouterEventManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,11 +10,11 @@
 block discarded – undo
10 10
 {
11 11
     public function start()
12 12
     {
13
-        Route::matched(function (RouteMatched $eventObj) {
13
+        Route::matched(function(RouteMatched $eventObj) {
14 14
             $matchedRoute = [
15 15
                 $eventObj->route->getName(),
16 16
                 $eventObj->route->getActionName(),
17
-                $eventObj->request->method().$eventObj->route->uri,
17
+                $eventObj->request->method() . $eventObj->route->uri,
18 18
             ];
19 19
 
20 20
             resolve(RouteMatchListener::class)->execMatchedCallbacks($matchedRoute, $this->data);
Please login to merge, or discard this patch.
src/WatchingStrategies/Events/EventSituations.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,6 +16,6 @@
 block discarded – undo
16 16
 
17 17
     public function whenYouReachCheckPoint($name)
18 18
     {
19
-        $this->whenEventHappens('heyman_checkpoint_'.$name);
19
+        $this->whenEventHappens('heyman_checkpoint_' . $name);
20 20
     }
21 21
 }
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
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
     public function __destruct()
32 32
     {
33 33
         $data = $this->validationData;
34
-        $modifier = $this->modifier ?: function ($d) {
34
+        $modifier = $this->modifier ?: function($d) {
35 35
             return $d;
36 36
         };
37 37
         $chain = resolve(ChainManager::class);
Please login to merge, or discard this patch.
src/Reactions/ReactionFactory.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
         $reaction = $this->makeReaction();
15 15
         $condition = resolve(ChainManager::class)->get('condition');
16 16
 
17
-        return function (...$f) use ($condition, $reaction) {
17
+        return function(...$f) use ($condition, $reaction) {
18 18
             if (!$condition($f)) {
19 19
                 $reaction();
20 20
             }
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 
33 33
         $responder = resolve(ResponderFactory::class)->make();
34 34
 
35
-        return function () use ($beforeReaction, $responder, $debug, $termination) {
35
+        return function() use ($beforeReaction, $responder, $debug, $termination) {
36 36
             if ($termination) {
37 37
                 app()->terminating($termination);
38 38
             }
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     private function makePreResponseActions($chain): \Closure
51 51
     {
52 52
         $tasks = $this->convertToClosures($chain);
53
-        $beforeReaction = function () use ($tasks) {
53
+        $beforeReaction = function() use ($tasks) {
54 54
             foreach ($tasks as $task) {
55 55
                 $task();
56 56
             }
@@ -70,11 +70,11 @@  discard block
 block discarded – undo
70 70
         $r = [];
71 71
         foreach ($tasks as $task) {
72 72
             if ($task[1] == 'event') {
73
-                $r[] = function () use ($task) {
73
+                $r[] = function() use ($task) {
74 74
                     resolve('events')->dispatch(...$task[0]);
75 75
                 };
76 76
             } elseif ($task[1] == 'cb') {
77
-                $r[] = function () use ($task) {
77
+                $r[] = function() use ($task) {
78 78
                     app()->call(...$task[0]);
79 79
                 };
80 80
             }
Please login to merge, or discard this patch.