diff --git a/public/files/text.txt b/public/files/text.txt deleted file mode 100644 index 3ba1fcff8f5042ff64543db10553737cc5365068..0000000000000000000000000000000000000000 --- a/public/files/text.txt +++ /dev/null @@ -1,2 +0,0 @@ -Раз, два, три, четыре, -пÑÑ‚ÑŒ, шеÑÑ‚ÑŒ, Ñемь, воÑемь. \ No newline at end of file diff --git a/src/Validation/ArrayValidation.php b/src/Validation/ArrayValidation.php deleted file mode 100644 index 5807a447814593f64ecf069980c81099b8be861d..0000000000000000000000000000000000000000 --- a/src/Validation/ArrayValidation.php +++ /dev/null @@ -1,26 +0,0 @@ -<?php - -namespace App\Validation; - -class ArrayValidation -{ - public static function validateFunc1(array $array): bool - { - $prices = array_column($array, 'price'); - $counts = array_column($array, 'count'); - return ctype_digit(implode('',$prices)) && ctype_digit(implode('', $counts)); - } - - public static function validateFunc2(array $array): bool - { - $ids = array_column($array, 'id'); - $ages = array_column($array, 'age'); - return ctype_digit(implode('', $ids)) && ctype_digit(implode('', $ages)); - } - - public static function validateFunc4(array $array): bool - { - $depths = array_column($array, 'depth'); - return ctype_digit(implode('', $depths)); - } -} \ No newline at end of file diff --git a/src/Validation/DateValidation.php b/src/Validation/DateValidation.php deleted file mode 100644 index 18046f84a0fef64f875f2f4c4a25c452d43df8c2..0000000000000000000000000000000000000000 --- a/src/Validation/DateValidation.php +++ /dev/null @@ -1,14 +0,0 @@ -<?php - -namespace App\Validation; - -class DateValidation -{ - public static function validate(string $date): bool - { - if (strtotime($date)) { - return true; - } - return false; - } -} \ No newline at end of file