Skip to content
This repository has been archived by the owner on Feb 6, 2020. It is now read-only.

replace count() usage to empty() when possible #199

Merged
merged 2 commits into from
Aug 10, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Tool/ConfigDumperCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public function __invoke(array $args)
*/
private function parseArgs(array $args)
{
if (! count($args)) {
if (! $args) {
return $this->createHelpArgument();
}

Expand All @@ -140,7 +140,7 @@ private function parseArgs(array $args)
$arg1 = array_shift($args);
}

if (! count($args)) {
if (! $args) {
return $this->createErrorArgument('Missing class name');
}

Expand Down
2 changes: 1 addition & 1 deletion src/Tool/FactoryCreatorCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public function __invoke(array $args)
*/
private function parseArgs(array $args)
{
if (! count($args)) {
if (! $args) {
return $this->createArguments(self::COMMAND_HELP);
}

Expand Down