@@ -93,7 +93,7 @@ |
||
| 93 | 93 | { |
| 94 | 94 | $models = array_filter( |
| 95 | 95 | $this->findAllModels(), |
| 96 | - function (CommandInterface $command) use ($input) { |
|
| 96 | + function(CommandInterface $command) use ($input) { |
|
| 97 | 97 | return preg_match(preg_quote($command->getCmd()), $input->text); |
| 98 | 98 | } |
| 99 | 99 | ); |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | */ |
| 38 | 38 | public function __toString() |
| 39 | 39 | { |
| 40 | - return (string)$this->data['text']; |
|
| 40 | + return (string) $this->data['text']; |
|
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | /** |
@@ -129,7 +129,7 @@ |
||
| 129 | 129 | public function handle($payload) |
| 130 | 130 | { |
| 131 | 131 | $data = json_decode($payload, true) ?: []; |
| 132 | - $events = (array)@$data['events']; |
|
| 132 | + $events = (array) @$data['events']; |
|
| 133 | 133 | $results = []; |
| 134 | 134 | |
| 135 | 135 | try { |
@@ -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 | } |