@@ -20,7 +20,7 @@ |
||
20 | 20 | $this |
21 | 21 | ->setName('mongodb:collection:drop') |
22 | 22 | ->addArgument('collection', InputArgument::REQUIRED, 'collection to drop') |
23 | - ->setDescription('Drops a database');; |
|
23 | + ->setDescription('Drops a database'); ; |
|
24 | 24 | } |
25 | 25 | |
26 | 26 | /** |
@@ -40,10 +40,10 @@ |
||
40 | 40 | $connectionName = 'mongo.connection'; |
41 | 41 | |
42 | 42 | if ($input->getOption('connection')) { |
43 | - $connectionName .= '.' . $input->getOption('connection'); |
|
43 | + $connectionName .= '.'.$input->getOption('connection'); |
|
44 | 44 | } |
45 | 45 | |
46 | - if (! $this->getContainer()->has($connectionName)) { |
|
46 | + if (!$this->getContainer()->has($connectionName)) { |
|
47 | 47 | throw new \LogicException(sprintf('No connection named \'%s\' found', $input->getOption('connection'))); |
48 | 48 | } |
49 | 49 |
@@ -18,7 +18,7 @@ |
||
18 | 18 | parent::configure(); |
19 | 19 | $this |
20 | 20 | ->setName('mongodb:database:drop') |
21 | - ->setDescription('Drops a database');; |
|
21 | + ->setDescription('Drops a database'); ; |
|
22 | 22 | } |
23 | 23 | |
24 | 24 | /** |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | */ |
66 | 66 | private function buildClientConfiguration(array $conf): ClientConfiguration |
67 | 67 | { |
68 | - if (!array_key_exists('options', $conf)) { |
|
68 | + if (!array_key_exists('options', $conf)) { |
|
69 | 69 | $conf['options'] = []; |
70 | 70 | } |
71 | 71 | |
@@ -102,9 +102,9 @@ discard block |
||
102 | 102 | */ |
103 | 103 | public function getClient(string $name, string $databaseName = null): Client |
104 | 104 | { |
105 | - $clientKey = null !== $databaseName ? $name . '.' . $databaseName : $name; |
|
105 | + $clientKey = null !== $databaseName ? $name.'.'.$databaseName : $name; |
|
106 | 106 | |
107 | - if (! isset($this->clients[$clientKey])) { |
|
107 | + if (!isset($this->clients[$clientKey])) { |
|
108 | 108 | $conf = $this->configurations[$name]; |
109 | 109 | $options = array_merge( |
110 | 110 | [ |
@@ -39,7 +39,7 @@ |
||
39 | 39 | ->defaultValue(null) |
40 | 40 | ->validate() |
41 | 41 | ->ifNotInArray($readPreferenceValidOptions) |
42 | - ->thenInvalid('Invalid readPreference option %s, must be one of [' . implode(", ", $readPreferenceValidOptions) . ']') |
|
42 | + ->thenInvalid('Invalid readPreference option %s, must be one of ['.implode(", ", $readPreferenceValidOptions).']') |
|
43 | 43 | ->end() |
44 | 44 | ->end() |
45 | 45 | ->end() |