Commit 85c3a11d authored by Адлан Шамавов's avatar Адлан Шамавов
Browse files

Merge branch 'PTPS_Function_8' into PTPS_Function_9

parents c4944387 e932e694
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -72,6 +72,7 @@
        print_r($func->prepareMenu($aMenu));
    ?>
    
    
    <h1>Function 5</h1>
    <?php
        print "<h2>До НГ: </h2>";
@@ -82,7 +83,6 @@
        }
    ?>


    <h1>Function 6</h1>
    <?php
        print "<h2>Пятницы 13: </h2>";
+5 −13
Original line number Diff line number Diff line
@@ -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
{
    /**
@@ -159,7 +152,6 @@ class Functions
        return (int)$dateInterval->format("%a") + 1;
    }


    /**
     * Вернет все пятницы 13 в году
     * @param int $year год, в котором необходимо произвести расчет