Passed
Pull Request — master (#19)
by Yannick
02:27
created
src/StateMachine.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      */
60 60
     public function transit($transitionName, $context, TransitionCallback $callback = null)
61 61
     {
62
-        if (! $callback) {
62
+        if (!$callback) {
63 63
             $callback = new AlwaysThrowExceptionOnFailure();
64 64
         }
65 65
 
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
         $callback->beforeStateChange($context, $this);
74 74
 
75 75
         $newState = $transition->getDestinationState();
76
-        if (! $transition->isAllowed($this->currentState)) {
76
+        if (!$transition->isAllowed($this->currentState)) {
77 77
             $exception = InvalidStateTransitionException::notAllowedTransition(
78 78
                 $transitionName,
79 79
                 $context,
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
     public function isInState($stateName)
110 110
     {
111 111
         Assert::string($stateName);
112
-        if (! $this->states->hasState($stateName)) {
112
+        if (!$this->states->hasState($stateName)) {
113 113
             throw NotFoundException::stateNotFound($stateName);
114 114
         }
115 115
 
Please login to merge, or discard this patch.
src/Port/Symfony/EventDispatcherAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
      */
20 20
     public function __construct(EventDispatcherInterface $dispatcher = null)
21 21
     {
22
-        if (! $dispatcher) {
22
+        if (!$dispatcher) {
23 23
             $dispatcher = new EventDispatcher();
24 24
         }
25 25
         $this->dispatcher = $dispatcher;
Please login to merge, or discard this patch.