@@ -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 |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | public function __construct($currentState, StateRegistry $registry = null) |
39 | 39 | { |
40 | 40 | Assert::string($currentState); |
41 | - if (! $registry) { |
|
41 | + if (!$registry) { |
|
42 | 42 | $registry = new TransitionRegistry(); |
43 | 43 | } |
44 | 44 | |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | { |
60 | 60 | Assert::string($transitionName); |
61 | 61 | $transition = $this->registry->getTransition($transitionName); |
62 | - if (! $transition->isAllowed($this->currentState)) { |
|
62 | + if (!$transition->isAllowed($this->currentState)) { |
|
63 | 63 | $exception = InvalidStateTransitionException::notAllowedTransition( |
64 | 64 | $transitionName, |
65 | 65 | $context, |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | public function isInState($stateName) |
101 | 101 | { |
102 | 102 | Assert::string($stateName); |
103 | - if (! $this->registry->hasState($stateName)) { |
|
103 | + if (!$this->registry->hasState($stateName)) { |
|
104 | 104 | throw NotFoundException::stateNotFound($stateName); |
105 | 105 | } |
106 | 106 |