Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

Commit

Permalink
static fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Jan 8, 2020
1 parent 8cdfa58 commit 6736f00
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ protected function addMessage(

$message = count($data) > 0 ? vsprintf($message, $data) : $message;

if ($isFixable === true) {
if ($isFixable) {
return $isFixable;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,10 @@ protected function execute(InputInterface $input, OutputInterface $output): int
{
$this->repositoryGuard->ensureIsRepositoryDirectory($this->rootDirectory);

$maxProcesses = $input->getOption(Option::MAX_PROCESSES) ? intval(
$maxProcesses = $input->getOption(Option::MAX_PROCESSES) ? (int)
$input->getOption(Option::MAX_PROCESSES)
) : null;
: null;

$tag = $input->getOption(Option::TAG);

$this->packageToRepositorySplitter->splitDirectoriesToRepositories(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ private function convertNamedService(array $service): array
return $service;
}

if ($service['class']->attributes) {
if ($service['class']->attributes !== []) {
$service['arguments'] = $service['class']->attributes;
}
$service['class'] = $service['class']->value;
Expand Down

0 comments on commit 6736f00

Please sign in to comment.