@@ -44,10 +44,10 @@ discard block |
||
44 | 44 | $this->assertIsValidCommandStructure($data); |
45 | 45 | |
46 | 46 | $commandNameParts = []; |
47 | - preg_match('~^(\w+):([\w\\.]+)$~', (string)$data['command']['name'], $commandNameParts); |
|
47 | + preg_match('~^(\w+):([\w\\.]+)$~', (string) $data['command']['name'], $commandNameParts); |
|
48 | 48 | if (count($commandNameParts) < 1) { |
49 | 49 | throw new BadCommandRequestException( |
50 | - [sprintf('Command does not have a valid command name %s', (string)$data['command']['name'])], |
|
50 | + [sprintf('Command does not have a valid command name %s', (string) $data['command']['name'])], |
|
51 | 51 | ); |
52 | 52 | } |
53 | 53 | $commandClassName = sprintf( |
@@ -58,10 +58,10 @@ discard block |
||
58 | 58 | |
59 | 59 | /** @var AbstractCommand $command */ |
60 | 60 | $command = new $commandClassName; |
61 | - $command->UUID = (string)$data['command']['uuid']; |
|
61 | + $command->UUID = (string) $data['command']['uuid']; |
|
62 | 62 | |
63 | - foreach ((array)$data['command']['payload'] as $property => $value) { |
|
64 | - $properlyCasedProperty = lcfirst(str_replace(' ', '', ucwords(str_replace('_', ' ', (string)$property)))); |
|
63 | + foreach ((array) $data['command']['payload'] as $property => $value) { |
|
64 | + $properlyCasedProperty = lcfirst(str_replace(' ', '', ucwords(str_replace('_', ' ', (string) $property)))); |
|
65 | 65 | $command->$properlyCasedProperty = $value; |
66 | 66 | } |
67 | 67 |