Passed
Push — master ( d4c14a...3f9fd3 )
by CodexShaper
13:12
created
src/Drivers/MongoDumper.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -60,57 +60,57 @@
 block discarded – undo
60 60
         ];
61 61
         // Database
62 62
         if (!empty($this->dbName)) {
63
-            $options['database'] = "--db {$this->dbName}";
63
+            $options[ 'database' ] = "--db {$this->dbName}";
64 64
         }
65 65
         // Username
66 66
         if (!empty($this->username)) {
67
-            $options['username'] = "--username {$this->username}";
67
+            $options[ 'username' ] = "--username {$this->username}";
68 68
         }
69 69
         //Password
70 70
         if (!empty($this->password)) {
71
-            $options['password'] = "--password {$this->password}";
71
+            $options[ 'password' ] = "--password {$this->password}";
72 72
         }
73 73
         // Host
74 74
         if (!empty($this->host)) {
75
-            $options['host'] = "--host {$this->host}";
75
+            $options[ 'host' ] = "--host {$this->host}";
76 76
         }
77 77
         // Port
78 78
         if (!empty($this->port)) {
79
-            $options['port'] = "--port {$this->port}";
79
+            $options[ 'port' ] = "--port {$this->port}";
80 80
         }
81 81
         // Collection
82 82
         if (!empty($this->collection)) {
83
-            $options['collection'] = "--collection {$this->collection}";
83
+            $options[ 'collection' ] = "--collection {$this->collection}";
84 84
         }
85 85
         // Authentication Database
86 86
         if (!empty($this->authenticationDatabase)) {
87
-            $options[] = "--authenticationDatabase {$this->authenticationDatabase}";
87
+            $options[ ] = "--authenticationDatabase {$this->authenticationDatabase}";
88 88
         }
89 89
         // Archive
90 90
         if ($this->isCompress) {
91
-            $options['archive'] = "--archive --gzip";
91
+            $options[ 'archive' ] = "--archive --gzip";
92 92
         }
93 93
         // Dump Command
94 94
         $dumpCommand = sprintf(
95 95
             '%smongodump %s %s %s %s %s %s %s %s',
96 96
             $this->dumpCommandPath,
97
-            $options['archive'],
98
-            $options['database'],
99
-            $options['username'],
100
-            $options['password'],
101
-            $options['host'],
102
-            $options['port'],
103
-            $options['collection'],
104
-            $options['authenticationDatabase']
97
+            $options[ 'archive' ],
98
+            $options[ 'database' ],
99
+            $options[ 'username' ],
100
+            $options[ 'password' ],
101
+            $options[ 'host' ],
102
+            $options[ 'port' ],
103
+            $options[ 'collection' ],
104
+            $options[ 'authenticationDatabase' ]
105 105
         );
106 106
         // Generate dump command from uri
107 107
         if ($this->uri) {
108 108
             $dumpCommand = sprintf(
109 109
                 '%smongodump %s --uri %s %s',
110 110
                 $this->dumpCommandPath,
111
-                $options['archive'],
111
+                $options[ 'archive' ],
112 112
                 $this->uri,
113
-                $options['collection']
113
+                $options[ 'collection' ]
114 114
             );
115 115
         }
116 116
 
Please login to merge, or discard this patch.