- Add friendsofphp/php-cs-fixer to require-dev - Create .php-cs-fixer.dist.php configured for @PSR12 ruleset - Add php-cs-fixer dry-run step to CI pipeline - Auto-fix existing PSR-12 violations - Document code style tooling in readme.md
19 lines
352 B
PHP
19 lines
352 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App;
|
|
|
|
use DateTimeImmutable;
|
|
use Psr\Clock\ClockInterface;
|
|
use Symfony\Component\DependencyInjection\Attribute\AsAlias;
|
|
|
|
#[AsAlias(ClockInterface::class)]
|
|
final readonly class Clock implements ClockInterface
|
|
{
|
|
public function now(): DateTimeImmutable
|
|
{
|
|
return new DateTimeImmutable();
|
|
}
|
|
}
|