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