Skip to content

Commit 278dda9

Browse files
committed
Fix PHPStan
1 parent 5c0c8b6 commit 278dda9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Command/DeployRsyncCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
8585
$command[] = $this->getDirPath($targetPats['path']);
8686
} elseif (preg_match(self::TARGET_SSH_REGEX, $environment['target'], $targetPats)) {
8787
$command[] = '-e';
88-
$command[] = \sprintf('ssh -p%s', (isset($targetPats['port']) && '' !== $targetPats['port']) ? $targetPats['port'] : 22);
88+
$command[] = \sprintf('ssh -p%s', ('' !== $targetPats['port']) ? $targetPats['port'] : 22);
8989
$command[] = $this->getDirPath($this->projetDir);
9090
$command[] = \sprintf('%s@%s:%s', $targetPats['username'], $targetPats['hostname'], $this->getDirPath($targetPats['path']));
9191
} else {

0 commit comments

Comments
 (0)