Skip to content
This repository has been archived by the owner on Jul 17, 2021. It is now read-only.

Commit

Permalink
null check diff option
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-feek committed Sep 16, 2017
1 parent a2d564c commit 8edd5a1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Commands/SnifferCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ public function handle()
);

$filesToCheck = implode($filesToCheck, ' ');

if (!$filesToCheck) {
$this->warn('skipping check because no files have been passed');
return 0;
}
}

$executable = $this->getCodeSnifferExecutable();
Expand Down

0 comments on commit 8edd5a1

Please sign in to comment.