@@ -93,14 +93,14 @@ |
||
93 | 93 | |
94 | 94 | $transitions = []; |
95 | 95 | $definitionBuilder = new DefinitionBuilder(); |
96 | - $definitionBuilder->addPlaces((array)$config['places']); |
|
96 | + $definitionBuilder->addPlaces((array) $config['places']); |
|
97 | 97 | |
98 | - foreach ((array)$config['transitions'] as $name => $transition) { |
|
98 | + foreach ((array) $config['transitions'] as $name => $transition) { |
|
99 | 99 | if ('workflow' === $config['type']) { |
100 | 100 | $transitions[] = new Transition($name, $transition['from'], $transition['to']); |
101 | 101 | } elseif ('state_machine' === $config['type']) { |
102 | - foreach ((array)$transition['from'] as $from) { |
|
103 | - foreach ((array)$transition['to'] as $to) { |
|
102 | + foreach ((array) $transition['from'] as $from) { |
|
103 | + foreach ((array) $transition['to'] as $to) { |
|
104 | 104 | $transitions[] = new Transition($name, $from, $to); |
105 | 105 | } |
106 | 106 | } |