Completed
Pull Request — master (#63)
by .
05:38
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   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -98,9 +98,9 @@
 block discarded – undo
98 98
      */
99 99
     public function getClient(string $name, string $databaseName = null): Client
100 100
     {
101
-        $clientKey = null !== $databaseName ? $name . '.' . $databaseName : $name;
101
+        $clientKey = null !== $databaseName ? $name.'.'.$databaseName : $name;
102 102
 
103
-        if (! isset($this->clients[$clientKey])) {
103
+        if (!isset($this->clients[$clientKey])) {
104 104
             $conf = $this->configurations[$name];
105 105
             $options = array_merge(
106 106
                 [
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
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
                             ->defaultValue(null)
38 38
                             ->validate()
39 39
                             ->ifNotInArray($readPreferenceValidOptions)
40
-                                ->thenInvalid('Invalid readPreference option %s, must be one of [' . implode(", ", $readPreferenceValidOptions) . ']')
40
+                                ->thenInvalid('Invalid readPreference option %s, must be one of ['.implode(", ", $readPreferenceValidOptions).']')
41 41
                             ->end()
42 42
                         ->end()
43 43
                         ->scalarNode('replicaSet')->defaultValue(null)->end()
Please login to merge, or discard this patch.