@@ -64,8 +64,8 @@ discard block |
||
64 | 64 | public static function getEndsWithCheck(string $substr): CheckInterface |
65 | 65 | { |
66 | 66 | return CheckBuilder::create(CheckName::ENDS_WITH) |
67 | - ->withPredicate(static function ($value, string $substr) { |
|
68 | - return \substr($value, \mb_strlen($value) - \mb_strlen($substr)) === $substr; |
|
67 | + ->withPredicate(static function($value, string $substr) { |
|
68 | + return \substr($value, \mb_strlen($value)-\mb_strlen($substr)) === $substr; |
|
69 | 69 | }) |
70 | 70 | ->withParams(['substring' => $substr]) |
71 | 71 | ->build(); |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | public static function getLengthIsCheck(IntegerRuleInterface $rule): CheckInterface |
75 | 75 | { |
76 | 76 | return CheckBuilder::create(CheckName::LENGTH_IS) |
77 | - ->withPredicate(static function ($value) use ($rule) { |
|
77 | + ->withPredicate(static function($value) use ($rule) { |
|
78 | 78 | $rule->validate(\mb_strlen($value)); |
79 | 79 | return true; |
80 | 80 | }) |