View OracleQuoteStrategy.php
<?php | |
declare(strict_types=1); | |
namespace App\Doctrine; | |
use Doctrine\DBAL\Platforms\AbstractPlatform; | |
use Doctrine\DBAL\Platforms\OraclePlatform; | |
use Doctrine\ORM\Mapping\ClassMetadata; | |
use Doctrine\ORM\Mapping\QuoteStrategy; |
View CasGuard.php
<?php | |
declare(strict_types=1); | |
namespace loophp\LaravelCas\Guards; | |
use EcPhp\CasLib\CasInterface; | |
use Illuminate\Auth\GuardHelpers; | |
use Illuminate\Auth\SessionGuard; | |
use Illuminate\Contracts\Auth\UserProvider; |
View primes.php
<?php | |
declare(strict_types=1); | |
include __DIR__ . '/../vendor/autoload.php'; | |
use loophp\collection\Collection; | |
$integers = Collection::unfold(static fn (int $n = 1): int => $n + 1); |
View exitTheUs.php
<?php | |
declare(strict_types=1); | |
namespace App; | |
include __DIR__ . '/../vendor/autoload.php'; | |
use loophp\collection\Collection; |
View wallis.php
<?php | |
/** | |
* Wallis formula | |
* | |
* 2 2 4 4 6 6 8 8 | |
* pi = 2 x --- x --- x --- x --- x --- x --- x --- x --- x ... | |
* 1 3 3 5 5 7 7 9 | |
*/ |
View stream-iterator.php
<?php | |
declare(strict_types=1); | |
namespace App; | |
use Generator; | |
use Iterator; | |
class ClosureIterator implements \Iterator |
View SqliteForeignKeyEnabler.php
<?php | |
declare(strict_types=1); | |
namespace App\Doctrine; | |
use Doctrine\Common\EventSubscriber; | |
use Doctrine\DBAL\Events; | |
use Doctrine\ORM\EntityManagerInterface; | |
use Doctrine\ORM\Event\PreFlushEventArgs; |
View FinYears.php
<?php | |
declare(strict_types=1); | |
namespace App\Entity; | |
use ApiPlatform\Core\Annotation\ApiResource; | |
use App\Repository\FinYearsRepository; | |
use Doctrine\Common\Collections\ArrayCollection; | |
use Doctrine\Common\Collections\Collection; |
View fibonacci.php
<?php | |
declare(strict_types=1); | |
namespace App; | |
use ArrayObject; | |
use Closure; | |
use Generator; |
View TestString.php
<?php | |
declare(strict_types=1); | |
namespace App\Entity; | |
use ApiPlatform\Core\Annotation\ApiResource; | |
use App\Repository\TestStringRepository; | |
use Doctrine\ORM\Mapping as ORM; |
NewerOlder