@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | { |
| 33 | 33 | return $this->addCheck(new Check( |
| 34 | 34 | self::ERROR_NOT_EVEN, |
| 35 | - fn ($value) => $value % 2 === 0, |
|
| 35 | + fn ($value) => $value%2 === 0, |
|
| 36 | 36 | )); |
| 37 | 37 | } |
| 38 | 38 | |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | { |
| 46 | 46 | return $this->addCheck(new Check( |
| 47 | 47 | self::ERROR_NOT_ODD, |
| 48 | - fn ($value) => $value % 2 !== 0 |
|
| 48 | + fn ($value) => $value%2 !== 0 |
|
| 49 | 49 | )); |
| 50 | 50 | } |
| 51 | 51 | } |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | { |
| 35 | 35 | return $this->addCheck(new Check( |
| 36 | 36 | self::ERROR_NOT_FRACTIONAL, |
| 37 | - fn ($value) => \abs($value - \round($value)) >= PHP_FLOAT_EPSILON |
|
| 37 | + fn ($value) => \abs($value-\round($value)) >= PHP_FLOAT_EPSILON |
|
| 38 | 38 | )); |
| 39 | 39 | } |
| 40 | 40 | |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | { |
| 48 | 48 | return $this->addCheck(new Check( |
| 49 | 49 | self::ERROR_FRACTIONAL, |
| 50 | - fn ($value) => \abs($value - \round($value)) < PHP_FLOAT_EPSILON |
|
| 50 | + fn ($value) => \abs($value-\round($value)) < PHP_FLOAT_EPSILON |
|
| 51 | 51 | )); |
| 52 | 52 | } |
| 53 | 53 | |
@@ -198,7 +198,7 @@ |
||
| 198 | 198 | $violations = []; |
| 199 | 199 | return $this->addCheck(new Check( |
| 200 | 200 | self::ERROR_LENGTH_IS_NOT, |
| 201 | - static function ($value) use ($rule, &$violations) { |
|
| 201 | + static function($value) use ($rule, &$violations) { |
|
| 202 | 202 | try { |
| 203 | 203 | /** @var \Countable $value */ |
| 204 | 204 | $rule->validate(count($value)); |