Skip to content

Commit 1035980

Browse files
committed
minor #1177 Replaced return 0 with return Command::SUCCESS (Coderberg)
This PR was merged into the main branch. Discussion ---------- Replaced `return 0` with `return Command::SUCCESS` Commits ------- 0020dc5 Replaced `return 0` with `return Command::SUCCESS`
2 parents db11656 + 0020dc5 commit 1035980

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Command/AddUserCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
204204
$this->io->comment(sprintf('New user database id: %d / Elapsed time: %.2f ms / Consumed memory: %.2f MB', $user->getId(), $event->getDuration(), $event->getMemory() / (1024 ** 2)));
205205
}
206206

207-
return 0;
207+
return Command::SUCCESS;
208208
}
209209

210210
private function validateUserData($username, $plainPassword, $email, $fullName): void

src/Command/DeleteUserCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int
127127

128128
$this->io->success(sprintf('User "%s" (ID: %d, email: %s) was successfully deleted.', $user->getUsername(), $userId, $user->getEmail()));
129129

130-
return 0;
130+
return Command::SUCCESS;
131131
}
132132
}

src/Command/ListUsersCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
127127
$this->sendReport($usersAsATable, $email);
128128
}
129129

130-
return 0;
130+
return Command::SUCCESS;
131131
}
132132

133133
/**

0 commit comments

Comments
 (0)