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 | |
| declare(strict_types=1); | |
| namespace Ghostwriter\Wip\Container\Ghostwriter\Config; | |
| use Ghostwriter\Config\Configuration; | |
| use Ghostwriter\Config\Interface\ConfigurationInterface; | |
| use Ghostwriter\Container\Interface\ContainerInterface; | |
| use Ghostwriter\Container\Interface\Service\ExtensionInterface; |
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 | |
| use Doctrine\DBAL\Connection; | |
| final class JoinMapping | |
| { | |
| /** | |
| * @param non-empty-string $idFieldAlias DB column alias for ID | |
| * @param array<non-empty-string, non-empty-string> $fieldMap alias => outputKey | |
| * @param array<non-empty-string, self> $children outputKey => mapping |
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 | |
| final class Deployment | |
| { | |
| /** | |
| * @param array<string, list<string>> $pipelineStages | |
| */ | |
| public function run(array $pipelineStages): void | |
| { | |
| $pipeline = new Fiber(function (array $pipelineStages): string { |
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 | |
| return [ | |
| 'dependencies' => [ | |
| 'factories' => [ | |
| 'BasicAuthMiddleware' => function (ContainerInterface $container): CustomAuthenticationMiddleware { | |
| $adapter = $container->get(BasicAuthAdapter::class); | |
| return new CustomAuthenticationMiddleware($adapter); | |
| }, | |
| 'OAuth2Middleware' => function (ContainerInterface $container): CustomAuthenticationMiddleware { |
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 | |
| interface Functor | |
| { | |
| /** | |
| * Maps a function over the functor. | |
| * | |
| * @template A | |
| * @template B | |
| * @param callable(A): B $f |
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
| # BlackLivesMatter | |
| name: Build & Test Extension | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| qa: | |
| runs-on: ubuntu-latest |
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
| (?(DEFINE) | |
| # Basic components | |
| (?<ALPHA>[A-Za-z]) | |
| (?<BIT>[01]) | |
| (?<DIGIT>[0-9]) | |
| (?<HEXDIG>[0-9A-Fa-f]) | |
| (?<CHAR>[\x01-\x7F]) | |
| (?<VCHAR>[\x21-\x7E]) | |
| (?<SP>[\x20]) | |
| (?<WSP>[\x20\x09]) |
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 | |
| /* | |
| Conflicts with file systems: :, *, ", <, >, | | |
| Conflicts with shell variables: $ | |
| Conflicts with bash brace expansion {, } | |
| */ |
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
| #!/bin/bash | |
| # GitHub username/organization | |
| USERNAME="ghostwriter" | |
| # Secret name and value | |
| SECRET_KEY="CODECOV_TOKEN" | |
| SECRET_VALUE="global-upload-token" | |
| # Get the list of repositories for the user |
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 | |
| #BlackLivesMatter | |
| /** | |
| * Obfuscate a string to prevent spam-bots from sniffing it. | |
| */ | |
| function obfuscate(string $value): string | |
| { | |
| $safe = ''; |
NewerOlder