Passed
Pull Request — master (#19)
by Yannick
02:27
created
src/TransitionRegistry.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
             $transition = $this->transitions[$name];
52 52
         }
53 53
 
54
-        if (! $transition) {
54
+        if (!$transition) {
55 55
             throw NotFoundException::transitionNotFound($name);
56 56
         }
57 57
 
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
     public function getState($name)
67 67
     {
68 68
         Assert::string($name);
69
-        if (! $this->hasState($name)) {
69
+        if (!$this->hasState($name)) {
70 70
             throw NotFoundException::stateNotFound($name);
71 71
         }
72 72
 
Please login to merge, or discard this patch.
src/Visitor/AttributeDumper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
      */
24 24
     public function visitState($name, array $attributes)
25 25
     {
26
-        if (! isset($this->structure[$name])) {
26
+        if (!isset($this->structure[$name])) {
27 27
             $this->structure[$name] = [];
28 28
         }
29 29
 
Please login to merge, or discard this patch.
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.