@@ -51,7 +51,7 @@ discard block |
||
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 |
||
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 |
@@ -23,7 +23,7 @@ |
||
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 |
@@ -59,7 +59,7 @@ discard block |
||
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 |
||
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 |
||
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 |
@@ -19,7 +19,7 @@ |
||
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; |