Skip to content

Commit

Permalink
fixed tag
Browse files Browse the repository at this point in the history
  • Loading branch information
mirko-pagliai committed Oct 24, 2023
1 parent 51d13f2 commit b421c5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Driver/AbstractDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,11 @@ final public function implementedEvents(): array
*/
private function getExecutable(string $type): string
{
// @codeCoverageIgnoreStart
if (!in_array($type, ['export', 'import'])) {
/** @codeCoverageIgnore */
throw new LogicException(__d('database_backup', '`$type` parameter should be `export` or `import`'));
}
// @codeCoverageIgnoreEnd
$driverName = strtolower($this->getDriverName());
$replacements = [
'{{BINARY}}' => escapeshellarg($this->getBinary(DATABASE_BACKUP_EXECUTABLES[$driverName][$type])),
Expand Down

0 comments on commit b421c5b

Please sign in to comment.