@@ -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 | /** |
@@ -97,7 +97,7 @@ |
||
97 | 97 | return 'mongodb://'.implode( |
98 | 98 | ',', |
99 | 99 | array_map( |
100 | - function (array $host) { |
|
100 | + function(array $host) { |
|
101 | 101 | return sprintf('%s:%d', $host['host'], $host['port']); |
102 | 102 | }, |
103 | 103 | $hosts |
@@ -104,7 +104,7 @@ |
||
104 | 104 | { |
105 | 105 | return array_filter( |
106 | 106 | $options, |
107 | - function ($value) { |
|
107 | + function($value) { |
|
108 | 108 | return !empty($value) || \is_int($value) || \is_bool($value) || \is_float($value); |
109 | 109 | } |
110 | 110 | ); |
@@ -73,7 +73,7 @@ |
||
73 | 73 | ->defaultValue('primaryPreferred') |
74 | 74 | ->validate() |
75 | 75 | ->ifNotInArray(self::READ_PREFERENCE_VALID_OPTIONS) |
76 | - ->thenInvalid('Invalid readPreference option %s, must be one of [' . implode(', ', self::READ_PREFERENCE_VALID_OPTIONS) . ']'); |
|
76 | + ->thenInvalid('Invalid readPreference option %s, must be one of ['.implode(', ', self::READ_PREFERENCE_VALID_OPTIONS).']'); |
|
77 | 77 | |
78 | 78 | $clientsBuilder |
79 | 79 | ->scalarNode('replicaSet') |