-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add options for full array syntax (allows duplicate checks)
- Loading branch information
1 parent
d3d282e
commit 4046100
Showing
3 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
namespace Kirschbaum\PreflightChecks\Tests\Checks\Fixtures; | ||
|
||
use Kirschbaum\PreflightChecks\Checks\PreflightCheck; | ||
use Kirschbaum\PreflightChecks\Checks\Result; | ||
|
||
class OptionsCheck extends PreflightCheck | ||
{ | ||
public function check(Result $result): Result | ||
{ | ||
return $this->options['pass'] ? $result->pass() : $result->fail(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters