Your project gitignore file should not contain user-specific files
- Read doc
- Productivity
- Minor
More information: https://insight.symfony.com/what-we-analyse/git.user_specific_ignored_file
- .idea
- /vendor/
- /composer.lock
- /.php-cs-fixer.cache
- /.phpunit.cache/
Interfaces names should end with "Interface" 2
- Read doc
- Productivity
- Info
More information: https://insight.symfony.com/what-we-analyse/php.interface_has_no_interface_suffix
- /**
- * Port giving the current time, used for DTSTAMP when the event does not set it.
- * Same signature as PSR-20 ClockInterface::now(), without depending on psr/clock.
- */
- interface Clock
- {
- public function now(): \DateTimeImmutable;
- }
- namespace Ical\Application;
- /**
- * Port creating the UID of an event that has none (RFC 5545 §3.8.4.7).
- */
- interface UidGenerator
- {
- /**
- * A globally unique identifier, e.g. "<random>@$domain".
- *
- * @param string $domain the domain of the organizer, or one derived from the PRODID