Skip to content

Commit

Permalink
Fix PHPStan
Browse files Browse the repository at this point in the history
  • Loading branch information
hlecorche committed Nov 22, 2024
1 parent 5c0c8b6 commit 278dda9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Command/DeployRsyncCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$command[] = $this->getDirPath($targetPats['path']);
} elseif (preg_match(self::TARGET_SSH_REGEX, $environment['target'], $targetPats)) {
$command[] = '-e';
$command[] = \sprintf('ssh -p%s', (isset($targetPats['port']) && '' !== $targetPats['port']) ? $targetPats['port'] : 22);
$command[] = \sprintf('ssh -p%s', ('' !== $targetPats['port']) ? $targetPats['port'] : 22);
$command[] = $this->getDirPath($this->projetDir);
$command[] = \sprintf('%s@%s:%s', $targetPats['username'], $targetPats['hostname'], $this->getDirPath($targetPats['path']));
} else {
Expand Down

0 comments on commit 278dda9

Please sign in to comment.