Passed
Push — master ( eac9fa...2d6246 )
by Runner
02:20
created
src/Machine.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
             ));
75 75
         }
76 76
 
77
-        $this->dispatchEvent(StateEvents::PRE_TRANSITION . $transitionName, $parameters);
77
+        $this->dispatchEvent(StateEvents::PRE_TRANSITION.$transitionName, $parameters);
78 78
 
79 79
         $transition = $this->blueprint->getTransition($transitionName);
80 80
 
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
             ));
89 89
         }
90 90
 
91
-        $this->dispatchEvent(StateEvents::POST_TRANSITION . $transitionName, $parameters);
91
+        $this->dispatchEvent(StateEvents::POST_TRANSITION.$transitionName, $parameters);
92 92
     }
93 93
 
94 94
     /**
Please login to merge, or discard this patch.
src/Blueprint.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
     protected function addTransition(string $name, $from, string $to, $checker = null): self
104 104
     {
105 105
         $from = (array) $from;
106
-        $fromStates = array_map(function ($state) {
106
+        $fromStates = array_map(function($state) {
107 107
             return $this->getState($state);
108 108
         }, $from);
109 109
         $this->transitions[$name] = new Transition(
@@ -118,14 +118,14 @@  discard block
 block discarded – undo
118 118
 
119 119
         if (method_exists($this, $preMethod)) {
120 120
             $this->dispatcher->addListener(
121
-                StateEvents::PRE_TRANSITION . $name,
121
+                StateEvents::PRE_TRANSITION.$name,
122 122
                 $this->eventListener($preMethod)
123 123
             );
124 124
         }
125 125
 
126 126
         if (method_exists($this, $postMethod)) {
127 127
             $this->dispatcher->addListener(
128
-                StateEvents::POST_TRANSITION . $name,
128
+                StateEvents::POST_TRANSITION.$name,
129 129
                 $this->eventListener($postMethod)
130 130
             );
131 131
         }
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
      */
141 141
     protected function eventListener($method): Closure
142 142
     {
143
-        return function (Event $event) use ($method) {
143
+        return function(Event $event) use ($method) {
144 144
             return call_user_func([$this, $method], $event->getStateful(), $event->getParameters());
145 145
         };
146 146
     }
Please login to merge, or discard this patch.