Passed
Push — master ( 10b2ca...773906 )
by Iman
07:56
created
src/Chain.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,14 +23,14 @@  discard block
 block discarded – undo
23 23
 
24 24
     public function addCallbackBeforeReaction($callback, $parameters)
25 25
     {
26
-        $this->beforeReaction[] = function () use ($callback, $parameters) {
26
+        $this->beforeReaction[] = function() use ($callback, $parameters) {
27 27
             app()->call($callback, $parameters);
28 28
         };
29 29
     }
30 30
 
31 31
     public function addEventBeforeReaction($event, array $payload, bool $halt)
32 32
     {
33
-        $this->beforeReaction[] = function () use ($event, $payload, $halt) {
33
+        $this->beforeReaction[] = function() use ($event, $payload, $halt) {
34 34
             resolve('events')->dispatch($event, $payload, $halt);
35 35
         };
36 36
     }
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         $tasks = $this->beforeReaction;
47 47
         $this->beforeReaction = [];
48 48
 
49
-        return function () use ($tasks) {
49
+        return function() use ($tasks) {
50 50
             foreach ($tasks as $task) {
51 51
                 $task();
52 52
             }
Please login to merge, or discard this patch.
src/HeyMan.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,6 +29,6 @@
 block discarded – undo
29 29
 
30 30
     public function checkPoint($pointName)
31 31
     {
32
-        event('heyman_checkpoint_'.$pointName);
32
+        event('heyman_checkpoint_' . $pointName);
33 33
     }
34 34
 }
Please login to merge, or discard this patch.
src/Reactions/ReactionFactory.php 1 patch
Spacing   +2 added lines, -2 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(Chain::class)->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
             }
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
         $responder = resolve(ResponderFactory::class)->make();
32 32
 
33
-        return function () use ($beforeReaction, $responder, $debug, $termination) {
33
+        return function() use ($beforeReaction, $responder, $debug, $termination) {
34 34
             if ($termination) {
35 35
                 app()->terminating($termination);
36 36
             }
Please login to merge, or discard this patch.
src/WatchingStrategies/Views/ViewNormalizer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
      */
12 12
     public function normalizeView(array $views): array
13 13
     {
14
-        array_walk($views, function ($view) {
14
+        array_walk($views, function($view) {
15 15
             $this->checkViewExists($view);
16 16
         });
17 17
 
Please login to merge, or discard this patch.
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.