-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
💅 Add GreenPass::isFormallyValid check
- Loading branch information
1 parent
99c29f0
commit 5ffa64b
Showing
4 changed files
with
31 additions
and
15 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 Masterix21\GreenPass\Concerns; | ||
|
||
use Masterix21\GreenPass\GreenPass; | ||
|
||
/** @mixin GreenPass */ | ||
trait ImplementsChecks | ||
{ | ||
public static function isFormallyValid($qrcode): bool | ||
{ | ||
return str_starts_with($qrcode, 'HC1:'); | ||
} | ||
} |
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