Loading index.php +2 −2 Original line number Diff line number Diff line Loading @@ -72,6 +72,7 @@ print_r($func->prepareMenu($aMenu)); ?> <h1>Function 5</h1> <?php print "<h2>До НГ: </h2>"; Loading @@ -82,7 +83,6 @@ } ?> <h1>Function 6</h1> <?php print "<h2>Пятницы 13: </h2>"; Loading src/Functions.php +5 −12 Original line number Diff line number Diff line Loading @@ -4,12 +4,6 @@ declare(strict_types=1); namespace Hp\Test; use DateTimeImmutable; use DateTime; use DateInterval; use DatePeriod; use Exception; class Functions { /** Loading Loading @@ -158,7 +152,6 @@ class Functions return (int)$dateInterval->format("%a") + 1; } /** * Вернет все пятницы 13 в году * @param int $year год, в котором необходимо произвести расчет Loading Loading
index.php +2 −2 Original line number Diff line number Diff line Loading @@ -72,6 +72,7 @@ print_r($func->prepareMenu($aMenu)); ?> <h1>Function 5</h1> <?php print "<h2>До НГ: </h2>"; Loading @@ -82,7 +83,6 @@ } ?> <h1>Function 6</h1> <?php print "<h2>Пятницы 13: </h2>"; Loading
src/Functions.php +5 −12 Original line number Diff line number Diff line Loading @@ -4,12 +4,6 @@ declare(strict_types=1); namespace Hp\Test; use DateTimeImmutable; use DateTime; use DateInterval; use DatePeriod; use Exception; class Functions { /** Loading Loading @@ -158,7 +152,6 @@ class Functions return (int)$dateInterval->format("%a") + 1; } /** * Вернет все пятницы 13 в году * @param int $year год, в котором необходимо произвести расчет Loading