@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | public static function getLengthIsCheck(IntegerRuleInterface $rule): CheckInterface |
109 | 109 | { |
110 | 110 | return CheckBuilder::create(CheckName::LENGTH_IS) |
111 | - ->withPredicate(static function ($value) use ($rule) { |
|
111 | + ->withPredicate(static function($value) use ($rule) { |
|
112 | 112 | /** @var \Countable $value */ |
113 | 113 | $rule->validate(\count($value)); |
114 | 114 | return true; |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | public static function getHasOptionalAttributeCheck(string $name, MixedRuleInterface $rule): CheckInterface |
129 | 129 | { |
130 | 130 | return CheckBuilder::create(CheckName::ATTRIBUTE_IS) |
131 | - ->withPredicate(static function ($value, string $name) use ($rule) { |
|
131 | + ->withPredicate(static function($value, string $name) use ($rule) { |
|
132 | 132 | if (!ContainerAccessHelper::hasAccessibleAttribute($value, $name)) { |
133 | 133 | return true; |
134 | 134 | } |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | public static function getAttributeIsCheck(string $name, MixedRuleInterface $rule): CheckInterface |
143 | 143 | { |
144 | 144 | return CheckBuilder::create(CheckName::ATTRIBUTE_IS) |
145 | - ->withPredicate(static function ($value, string $name) use ($rule) { |
|
145 | + ->withPredicate(static function($value, string $name) use ($rule) { |
|
146 | 146 | $rule->validate(ContainerAccessHelper::getAttributeValue($value, $name)); |
147 | 147 | return true; |
148 | 148 | }) |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | public static function getValueByIndexIsCheck(int $index, MixedRuleInterface $rule): CheckInterface |
164 | 164 | { |
165 | 165 | return CheckBuilder::create(CheckName::VALUE_BY_INDEX_IS) |
166 | - ->withPredicate(static function ($value, int $index) use ($rule) { |
|
166 | + ->withPredicate(static function($value, int $index) use ($rule) { |
|
167 | 167 | $rule->validate($value[$index]); |
168 | 168 | return true; |
169 | 169 | }) |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | public static function getAllKeysAreCheck(MixedRuleInterface $rule): CheckInterface |
176 | 176 | { |
177 | 177 | return CheckBuilder::create(CheckName::ALL_KEYS_ARE) |
178 | - ->withPredicate(static function ($value) use ($rule) { |
|
178 | + ->withPredicate(static function($value) use ($rule) { |
|
179 | 179 | foreach ($value as $k => $v) { |
180 | 180 | $rule->validate($k); |
181 | 181 | } |
@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | public static function getAnyKeyIsCheck(MixedRuleInterface $rule): CheckInterface |
189 | 189 | { |
190 | 190 | return CheckBuilder::create(CheckName::ANY_KEY_IS) |
191 | - ->withPredicate(static function ($value) use ($rule) { |
|
191 | + ->withPredicate(static function($value) use ($rule) { |
|
192 | 192 | $errorMap = []; |
193 | 193 | foreach ($value as $k => $v) { |
194 | 194 | try { |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | public static function getAllValuesAreCheck(MixedRuleInterface $rule): CheckInterface |
215 | 215 | { |
216 | 216 | return CheckBuilder::create(CheckName::ALL_VALUES_ARE) |
217 | - ->withPredicate(static function ($value) use ($rule) { |
|
217 | + ->withPredicate(static function($value) use ($rule) { |
|
218 | 218 | foreach ($value as $v) { |
219 | 219 | $rule->validate($v); |
220 | 220 | } |
@@ -227,7 +227,7 @@ discard block |
||
227 | 227 | public static function getAnyValueIsCheck(MixedRuleInterface $rule): CheckInterface |
228 | 228 | { |
229 | 229 | return CheckBuilder::create(CheckName::ANY_VALUE_IS) |
230 | - ->withPredicate(static function ($value) use ($rule) { |
|
230 | + ->withPredicate(static function($value) use ($rule) { |
|
231 | 231 | $errorMap = []; |
232 | 232 | foreach ($value as $v) { |
233 | 233 | try { |