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 | |
| namespace Jawira\Tests; | |
| use function sleep; | |
| function write($message): void | |
| { | |
| echo $message; | |
| } |
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
| #!/usr/bin/env php | |
| <?php | |
| declare(strict_types=1); | |
| try { | |
| assert_options(ASSERT_ACTIVE, true); | |
| assert_options(ASSERT_BAIL, true); | |
| main(); | |
| } catch (Exception $e) { | |
| die($e->getMessage()); |
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 | |
| /** | |
| * Created by PhpStorm. | |
| * User: jawira | |
| * Date: 15.03.16 | |
| * Time: 10:03 | |
| */ | |
| namespace Dummy\MyTime; | |
| const MONTHS = 12; |
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 | |
| /** | |
| * Succinct Fibonacci function | |
| * | |
| * Returns the first N Fibonacci numbers specified as parameter. | |
| * | |
| * This function has not been written for efficiency nor readabilty, instead it has | |
| * been created for fun and for testing the latest PHP features (E.g.: generators, | |
| * literal dereferencing, type hinting, short array syntax, ...). | |
| * |