Completed
Pull Request — master (#64)
by .
03:42
created
src/Command/DropCollectionCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/Command/AbstractCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,10 +40,10 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Command/DropDatabaseCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/Services/ClientRegistry.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -90,10 +90,10 @@  discard block
 block discarded – undo
90 90
      */
91 91
     private function buildConnectionUri(array $hosts): string
92 92
     {
93
-        return 'mongodb://' . implode(
93
+        return 'mongodb://'.implode(
94 94
             ',',
95 95
             array_map(
96
-                function (array $host) {
96
+                function(array $host) {
97 97
                     return sprintf("%s:%d", $host['host'], $host['port']);
98 98
                 },
99 99
                 $hosts
@@ -128,9 +128,9 @@  discard block
 block discarded – undo
128 128
      */
129 129
     public function getClient(string $name, string $databaseName = null): Client
130 130
     {
131
-        $clientKey = null !== $databaseName ? $name . '.' . $databaseName : $name;
131
+        $clientKey = null !== $databaseName ? $name.'.'.$databaseName : $name;
132 132
 
133
-        if (! isset($this->clients[$clientKey])) {
133
+        if (!isset($this->clients[$clientKey])) {
134 134
             $conf = $this->configurations[$name];
135 135
             $options = array_merge(
136 136
                 [
Please login to merge, or discard this patch.
src/DependencyInjection/Configuration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
                                 ->defaultValue('primaryPreferred')
46 46
                                 ->validate()
47 47
                                     ->ifNotInArray($readPreferenceValidOptions)
48
-                                    ->thenInvalid('Invalid readPreference option %s, must be one of [' . implode(", ", $readPreferenceValidOptions) . ']')
48
+                                    ->thenInvalid('Invalid readPreference option %s, must be one of ['.implode(", ", $readPreferenceValidOptions).']')
49 49
                                 ->end()
50 50
                             ->end()
51 51
                             ->scalarNode('replicaSet')->defaultNull()->end()
Please login to merge, or discard this patch.