Completed
Push — master ( fa7559...762c49 )
by Iman
03:40
created
src/helpers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (! function_exists('resolve')) {
3
+if (!function_exists('resolve')) {
4 4
     /**
5 5
      * Resolve a service from the container.
6 6
      *
Please login to merge, or discard this patch.
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 addAfterCall($callback, $parameters)
25 25
     {
26
-        $this->beforeResponse[] = function () use ($callback, $parameters) {
26
+        $this->beforeResponse[] = function() use ($callback, $parameters) {
27 27
             app()->call($callback, $parameters);
28 28
         };
29 29
     }
30 30
 
31 31
     public function eventFire($event, array $payload, bool $halt)
32 32
     {
33
-        $this->beforeResponse[] = function () use ($event, $payload, $halt) {
33
+        $this->beforeResponse[] = 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
         $calls = $this->beforeResponse;
47 47
         $this->beforeResponse = [];
48 48
 
49
-        return function () use ($calls) {
49
+        return function() use ($calls) {
50 50
             foreach ($calls as $call) {
51 51
                 $call();
52 52
             }
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(Chain::class);
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
             }
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
         $beforeResponse = $chain->beforeResponse();
29 29
         $debug = $chain->debugInfo;
30 30
 
31
-        return function () use ($beforeResponse, $responder, $debug) {
31
+        return function() use ($beforeResponse, $responder, $debug) {
32 32
             event('heyman_reaction_is_happening', $debug);
33 33
             $beforeResponse();
34 34
             $responder();
Please login to merge, or discard this patch.