This file contains hidden or 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
| <?php | |
| function zipLists(array $first, array $second, $index = 0, $carry = []): array | |
| { | |
| $firstValue = $first[$index] ?? null; | |
| if(is_null($firstValue)) { | |
| return $carry; | |
| } | |
| $carry[] = $firstValue; |
This file contains hidden or 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
| - repo: git@github.com:pre-commit/pre-commit-hooks | |
| sha: "20f04626a1ee7eb34955d775a37aa9a56a0a7448" | |
| hooks: | |
| - id: check-json | |
| stages: [commit] | |
| - id: check-merge-conflict | |
| stages: [commit] | |
| - id: check-yaml | |
| stages: [commit] | |
| - id: end-of-file-fixer |
This file contains hidden or 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
| <?php | |
| class PublicServant | |
| { | |
| protected $psClass; | |
| protected $ClassName; | |
| private $methods = []; | |
This file contains hidden or 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
| <?php | |
| if(! function_exists('tlog')) { | |
| function tlog($logged, $message = '', $user = 'vagrant') | |
| { | |
| // Only available in test environments | |
| if (app()->environment() === 'production') { | |
| return; | |
| } |