src/Databases/MongoDb.php 1 location
|
@@ 48-52 (lines=5) @@
|
| 45 |
|
*/ |
| 46 |
|
protected function guardAgainstIncompleteCredentials() |
| 47 |
|
{ |
| 48 |
|
foreach (['dbName', 'host'] as $requiredProperty) { |
| 49 |
|
if (strlen($this->$requiredProperty) === 0) { |
| 50 |
|
throw CannotStartDump::emptyParameter($requiredProperty); |
| 51 |
|
} |
| 52 |
|
} |
| 53 |
|
} |
| 54 |
|
|
| 55 |
|
/** |
src/Databases/MySql.php 1 location
|
@@ 304-308 (lines=5) @@
|
| 301 |
|
|
| 302 |
|
protected function guardAgainstIncompleteCredentials() |
| 303 |
|
{ |
| 304 |
|
foreach (['userName', 'host'] as $requiredProperty) { |
| 305 |
|
if (strlen($this->$requiredProperty) === 0) { |
| 306 |
|
throw CannotStartDump::emptyParameter($requiredProperty); |
| 307 |
|
} |
| 308 |
|
} |
| 309 |
|
|
| 310 |
|
if (strlen('dbName') === 0 && ! $this->allDatabasesWasSetAsExtraOption) { |
| 311 |
|
throw CannotStartDump::emptyParameter($requiredProperty); |