src/Databases/MySql.php 1 location
|
@@ 123-130 (lines=8) @@
|
| 120 |
|
return implode(PHP_EOL, $contents); |
| 121 |
|
} |
| 122 |
|
|
| 123 |
|
protected function guardAgainstIncompleteCredentials() |
| 124 |
|
{ |
| 125 |
|
foreach (['userName', 'dbName', 'host'] as $requiredProperty) { |
| 126 |
|
if ($this->$requiredProperty === '') { |
| 127 |
|
throw CannotStartDump::emptyParameter($requiredProperty); |
| 128 |
|
} |
| 129 |
|
} |
| 130 |
|
} |
| 131 |
|
} |
| 132 |
|
|
src/Databases/PostgreSql.php 1 location
|
@@ 150-157 (lines=8) @@
|
| 147 |
|
return implode(' ', $command); |
| 148 |
|
} |
| 149 |
|
|
| 150 |
|
protected function guardAgainstIncompleteCredentials() |
| 151 |
|
{ |
| 152 |
|
foreach (['userName', 'dbName', 'host'] as $requiredProperty) { |
| 153 |
|
if ($this->$requiredProperty === '') { |
| 154 |
|
throw CannotStartDump::emptyParameter($requiredProperty); |
| 155 |
|
} |
| 156 |
|
} |
| 157 |
|
} |
| 158 |
|
} |
| 159 |
|
|