Completed
Push — master ( 12114f...959a47 )
by Iman
06:16 queued 01:24
created
src/HeyMan.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 
30 30
     public function checkPoint(string $pointName)
31 31
     {
32
-        event('heyman_checkpoint_'.$pointName);
32
+        event('heyman_checkpoint_' . $pointName);
33 33
     }
34 34
 
35 35
     public function aliasCondition(string $currentName, string $newName)
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 
65 65
     private function writeDebugInfo($debugTrace)
66 66
     {
67
-        if (config('app.debug') && ! app()->environment('production')) {
67
+        if (config('app.debug') && !app()->environment('production')) {
68 68
             $info = Arr::only($debugTrace, ['file', 'line', 'args']);
69 69
             resolve('heyman.chain')->set('debugInfo', $info);
70 70
         }
Please login to merge, or discard this patch.
src/Reactions/Validator.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     public function otherwise()
21 21
     {
22 22
         $rules = $this->validationData;
23
-        $modifier = $this->modifier ?: function ($args) {
23
+        $modifier = $this->modifier ?: function($args) {
24 24
             return $args;
25 25
         };
26 26
 
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
     public function validatorCallback($modifier, $rules)
40 40
     {
41
-        $validator = function () use ($modifier, $rules) {
41
+        $validator = function() use ($modifier, $rules) {
42 42
             $this->makeValidator($modifier, $rules)->validate();
43 43
         };
44 44
 
@@ -47,12 +47,12 @@  discard block
 block discarded – undo
47 47
 
48 48
     public function validationPassesCallback($modifier, $rules)
49 49
     {
50
-        $validator = function () use ($modifier, $rules) {
50
+        $validator = function() use ($modifier, $rules) {
51 51
             $v = $this->makeValidator($modifier, $rules);
52 52
 
53 53
             resolve('heyman.chain')->set('condition_meta', $v);
54 54
 
55
-            return ! $v->fails();
55
+            return !$v->fails();
56 56
         };
57 57
 
58 58
         return $this->wrapForIgnore($validator);
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
             }
81 81
 
82 82
             $data = $this->validationData;
83
-            $modifier = $this->modifier ?: function ($args) {
83
+            $modifier = $this->modifier ?: function($args) {
84 84
                 return $args;
85 85
             };
86 86
 
Please login to merge, or discard this patch.
src/Plugins/Reactions/WeRespondFrom.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 
18 18
     public static function respondFrom($method)
19 19
     {
20
-        return function ($meta = null) use ($method) {
20
+        return function($meta = null) use ($method) {
21 21
             array_push($method, [$meta]);
22 22
 
23 23
             if (is_array($method[0])) {
Please login to merge, or discard this patch.
src/Switching/HeyManSwitcher.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,8 +6,8 @@
 block discarded – undo
6 6
 {
7 7
     public function wrapForIgnorance(callable $callback, $key)
8 8
     {
9
-        return function (...$args) use ($callback, $key) {
10
-            if (config('heyman_ignore_'.$key, false)) {
9
+        return function(...$args) use ($callback, $key) {
10
+            if (config('heyman_ignore_' . $key, false)) {
11 11
                 return true;
12 12
             }
13 13
 
Please login to merge, or discard this patch.
src/Core/ReactionFactory.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -11,8 +11,8 @@  discard block
 block discarded – undo
11 11
         $reaction = $this->makeReaction();
12 12
         $condition = resolve('heyman.chain')->get('condition');
13 13
 
14
-        return function (...$f) use ($condition, $reaction) {
15
-            if (! $condition($f)) {
14
+        return function(...$f) use ($condition, $reaction) {
15
+            if (!$condition($f)) {
16 16
                 $conditionMeta = resolve('heyman.chain')->get('condition_meta') ?: null;
17 17
                 $reaction($conditionMeta);
18 18
             }
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
         $responder = resolve(ResponderFactory::class)->make();
32 32
 
33
-        return function ($param = null) use ($beforeReaction, $responder, $debug, $termination) {
33
+        return function($param = null) use ($beforeReaction, $responder, $debug, $termination) {
34 34
             if ($termination) {
35 35
                 app()->terminating($termination);
36 36
             }
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     {
45 45
         $tasks = $chain->get('beforeReaction') ?? [];
46 46
         $tasks = $this->convertToClosures($tasks);
47
-        $beforeReaction = function () use ($tasks) {
47
+        $beforeReaction = function() use ($tasks) {
48 48
             foreach ($tasks as $task) {
49 49
                 $task();
50 50
             }
@@ -55,16 +55,16 @@  discard block
 block discarded – undo
55 55
 
56 56
     private function convertToClosures($tasks)
57 57
     {
58
-        $map = function ($task) {
58
+        $map = function($task) {
59 59
             $params = $task[0];
60 60
 
61 61
             if ($task[1] == 'event') {
62
-                return function () use ($params) {
62
+                return function() use ($params) {
63 63
                     resolve('events')->dispatch(...$params);
64 64
                 };
65 65
             }
66 66
 
67
-            return function () use ($params) {
67
+            return function() use ($params) {
68 68
                 app()->call(...$params);
69 69
             };
70 70
         };
Please login to merge, or discard this patch.