@@ -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; |