@@ -63,38 +63,38 @@ |
||
| 63 | 63 | "{$this->dumpCommandPath}mongodump", |
| 64 | 64 | ]; |
| 65 | 65 | if ($this->isCompress) { |
| 66 | - $options[] = "--archive --gzip"; |
|
| 66 | + $options[ ] = "--archive --gzip"; |
|
| 67 | 67 | } |
| 68 | 68 | if ($this->uri) { |
| 69 | - $options[] = $this->uri; |
|
| 69 | + $options[ ] = $this->uri; |
|
| 70 | 70 | } |
| 71 | 71 | // Database |
| 72 | 72 | if ($this->dbName && !$this->uri) { |
| 73 | - $options[] = "--db {$this->dbName}"; |
|
| 73 | + $options[ ] = "--db {$this->dbName}"; |
|
| 74 | 74 | } |
| 75 | 75 | // Username |
| 76 | 76 | if ($this->username && !$this->uri) { |
| 77 | - $options[] = "--username {$this->username}"; |
|
| 77 | + $options[ ] = "--username {$this->username}"; |
|
| 78 | 78 | } |
| 79 | 79 | //Password |
| 80 | 80 | if ($this->password && !$this->uri) { |
| 81 | - $options[] = "--password {$this->password}"; |
|
| 81 | + $options[ ] = "--password {$this->password}"; |
|
| 82 | 82 | } |
| 83 | 83 | // Host |
| 84 | 84 | if ($this->host && !$this->uri) { |
| 85 | - $options[] = "--host {$this->host}"; |
|
| 85 | + $options[ ] = "--host {$this->host}"; |
|
| 86 | 86 | } |
| 87 | 87 | // Port |
| 88 | 88 | if ($this->port && !$this->uri) { |
| 89 | - $options[] = "--port {$this->port}"; |
|
| 89 | + $options[ ] = "--port {$this->port}"; |
|
| 90 | 90 | } |
| 91 | 91 | // Collection |
| 92 | 92 | if ($this->collection) { |
| 93 | - $options[] = "--collection {$this->collection}"; |
|
| 93 | + $options[ ] = "--collection {$this->collection}"; |
|
| 94 | 94 | } |
| 95 | 95 | // Authentication Database |
| 96 | 96 | if ($this->authenticationDatabase && !$this->uri) { |
| 97 | - $options[] = "--authenticationDatabase {$this->authenticationDatabase}"; |
|
| 97 | + $options[ ] = "--authenticationDatabase {$this->authenticationDatabase}"; |
|
| 98 | 98 | } |
| 99 | 99 | return implode(' ', $options); |
| 100 | 100 | } |