@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace LosRouterOs; |
| 6 | 6 | |
@@ -59,11 +59,11 @@ discard block |
||
| 59 | 59 | $request = new Request($command); |
| 60 | 60 | $this->lastResponse = $this->routerClient->sendSync($request); |
| 61 | 61 | |
| 62 | - $list = []; |
|
| 62 | + $list = [ ]; |
|
| 63 | 63 | /** @var Response $response */ |
| 64 | 64 | foreach ($this->lastResponse as $response) { |
| 65 | 65 | if ($response->getType() == Response::TYPE_DATA) { |
| 66 | - $list[] = $response->getIterator(); |
|
| 66 | + $list[ ] = $response->getIterator(); |
|
| 67 | 67 | } |
| 68 | 68 | } |
| 69 | 69 | |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace LosRouterOs; |
| 6 | 6 | |
@@ -11,8 +11,8 @@ discard block |
||
| 11 | 11 | |
| 12 | 12 | public function __invoke(ContainerInterface $container) |
| 13 | 13 | { |
| 14 | - $options = $container->get('config')['los']['router-os'] ?? []; |
|
| 14 | + $options = $container->get('config')[ 'los' ][ 'router-os' ] ?? [ ]; |
|
| 15 | 15 | |
| 16 | - return new Client($options['host'], $options['username'], $options['password'], $options['port']); |
|
| 16 | + return new Client($options[ 'host' ], $options[ 'username' ], $options[ 'password' ], $options[ 'port' ]); |
|
| 17 | 17 | } |
| 18 | 18 | } |