Browse files

Swapped count() for empty() in CommandBase

  • Loading branch information...
1 parent 2aed4b2 commit 6494ff0d4444af878f081cf93933dc09747f00db @stuartherbert stuartherbert committed Apr 21, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/php/Phix_Project/PhixExtensions/CommandBase.php
View
2 src/php/Phix_Project/PhixExtensions/CommandBase.php
@@ -160,7 +160,7 @@ protected function showSwitchSummary(Context $context, $sortedSwitches)
protected function showOptions(Context $context, $sortedSwitches, $args)
{
// do we have any options to show?
- if (count($sortedSwitches['allSwitches']) == 0 && count($args) == 0)
+ if (empty($sortedSwitches['allSwitches']) && empty($args))
{
// no we do not
return;

0 comments on commit 6494ff0

Please sign in to comment.