Skip to content

Commit

Permalink
Merge pull request #12 from alfredbez/feature-allowCallwithoutSource
Browse files Browse the repository at this point in the history
Feature: allow call without source
  • Loading branch information
Shiftas committed Feb 17, 2016
2 parents ebe261d + f0caaee commit be47746
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions bin/phpcsoxid
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,7 @@ $arguments = implode(' ', $arguments);
// prepare command
$command = "$phpCs --standard=$standard $arguments ";
if (!$sourceFromParams) {
if (!isset($source)) {
die("Please provide directory path where to check coding standards\n");
} else {
if (isset($source)) {
$command .= $source;
}
}
Expand Down

0 comments on commit be47746

Please sign in to comment.