Code Duplication    Length = 8-8 lines in 2 locations

src/Databases/MySql.php 1 location

@@ 205-212 (lines=8) @@
202
        return implode(PHP_EOL, $contents);
203
    }
204
205
    protected function guardAgainstIncompleteCredentials()
206
    {
207
        foreach (['userName', 'dbName', 'host'] as $requiredProperty) {
208
            if (strlen($this->$requiredProperty) === 0) {
209
                throw CannotStartDump::emptyParameter($requiredProperty);
210
            }
211
        }
212
    }
213
}
214

src/Databases/PostgreSql.php 1 location

@@ 159-166 (lines=8) @@
156
        return implode(' ', $command);
157
    }
158
159
    protected function guardAgainstIncompleteCredentials()
160
    {
161
        foreach (['userName', 'dbName', 'host'] as $requiredProperty) {
162
            if ($this->$requiredProperty == '') {
163
                throw CannotStartDump::emptyParameter($requiredProperty);
164
            }
165
        }
166
    }
167
}
168