for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Popy\Calendar\Converter\LeapYearCalculator;
use Popy\Calendar\Converter\SimpleLeapYearCalculatorInterface;
/**
* Modern leap day implementation (the gregorian one).
*/
class Modern implements SimpleLeapYearCalculatorInterface
{
* @inheritDoc
public function isLeapYear($year)
return !($year % 4) && ($year % 100)
|| !($year % 400)
;
}