| @@ -80,7 +80,7 @@ | ||
| 80 | 80 | $transitionNames = $setup['on'] ?? []; | 
| 81 | 81 | $fromStateNames = $setup['from'] ?? []; | 
| 82 | 82 | $toStateNames = $setup['to'] ?? []; | 
| 83 | -                    $do = $setup['do'] ?? function (): void { | |
| 83 | +                    $do = $setup['do'] ?? function(): void { | |
| 84 | 84 | }; | 
| 85 | 85 | |
| 86 | 86 | $transitionEventCollection->add(new TransitionEvent( | 
| @@ -38,7 +38,7 @@ | ||
| 38 | 38 | |
| 39 | 39 | public function fireIfMatches(Event $event): void | 
| 40 | 40 |      { | 
| 41 | -        if (! isset($this->transitionEventsByWhenAndName[$event->when()])) { | |
| 41 | +        if (!isset($this->transitionEventsByWhenAndName[$event->when()])) { | |
| 42 | 42 | return; | 
| 43 | 43 | } | 
| 44 | 44 | |
| @@ -59,6 +59,6 @@ | ||
| 59 | 59 | return false; | 
| 60 | 60 | } | 
| 61 | 61 | |
| 62 | - return ! $this->callback->__invoke($object, $transition, $fromState, $toState); | |
| 62 | + return !$this->callback->__invoke($object, $transition, $fromState, $toState); | |
| 63 | 63 | } | 
| 64 | 64 | } | 
| @@ -33,7 +33,7 @@ | ||
| 33 | 33 | |
| 34 | 34 | public function named(string $name): Transition | 
| 35 | 35 |      { | 
| 36 | -        if (! isset($this->transitionsByName[$name])) { | |
| 36 | +        if (!isset($this->transitionsByName[$name])) { | |
| 37 | 37 |              throw new \RuntimeException(sprintf('No transition named "%s"', $name)); | 
| 38 | 38 | } | 
| 39 | 39 | |
| @@ -31,7 +31,7 @@ | ||
| 31 | 31 | |
| 32 | 32 | public function named(string $name): State | 
| 33 | 33 |      { | 
| 34 | -        if (! isset($this->statesByName[$name])) { | |
| 34 | +        if (!isset($this->statesByName[$name])) { | |
| 35 | 35 |              throw new \RuntimeException(sprintf('No state named "%s"', $name)); | 
| 36 | 36 | } | 
| 37 | 37 | |
| @@ -34,12 +34,12 @@ | ||
| 34 | 34 | $this->graphsByName[$graph->className()][$graph->graph()] = $graph; | 
| 35 | 35 | } | 
| 36 | 36 | |
| 37 | - public function for(object $object, string $graph = 'default'): Graph | |
| 37 | + public function for (object $object, string $graph = 'default'): Graph | |
| 38 | 38 |      { | 
| 39 | 39 | $className = get_class($object); | 
| 40 | 40 | |
| 41 | 41 |          foreach ($this->graphsByName as $classNameForGraph => $graphs) { | 
| 42 | -            if (! $object instanceof $classNameForGraph) { | |
| 42 | +            if (!$object instanceof $classNameForGraph) { | |
| 43 | 43 | continue; | 
| 44 | 44 | } | 
| 45 | 45 | |