Skip to content

Commit

Permalink
Merge pull request #11 from datashaman/hotfix/execution
Browse files Browse the repository at this point in the history
Fix execution without xdebug 😊
  • Loading branch information
datashaman authored Apr 16, 2019
2 parents ec17d74 + 4d92f04 commit 153f9b6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions bin/phpcheck
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ use Datashaman\PHPCheck\CheckCommand;
use SebastianBergmann\CodeCoverage\CodeCoverage;
use Symfony\Component\Console\Application;

$coverage = new CodeCoverage();
$coverage->filter()->addDirectoryToWhitelist('./src');
$coverage->start('phpcheck');
if (extension_loaded('xdebug')) {
$coverage = new CodeCoverage();
$coverage->filter()->addDirectoryToWhitelist('./src');
$coverage->start('phpcheck');
}

$application = new Application('phpcheck', CheckCommand::VERSION);
$command = new CheckCommand();
Expand Down

0 comments on commit 153f9b6

Please sign in to comment.