mirror of
https://github.com/Respect/Validation.git
synced 2026-03-18 08:09:51 +01:00
Apply "SlevomatCodingStandard.ControlStructures.EarlyExit"
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
This commit is contained in:
parent
7e3bf36f8d
commit
d72d247ddc
3 changed files with 12 additions and 3 deletions
|
|
@ -232,9 +232,15 @@ class NestedValidationException extends ValidationException implements IteratorA
|
|||
{
|
||||
while (count($ids) > 0) {
|
||||
$id = array_shift($ids);
|
||||
if (isset($templates[$id]) && is_array($templates[$id])) {
|
||||
$templates = $templates[$id];
|
||||
if (!isset($templates[$id])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!is_array($templates[$id])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$templates = $templates[$id];
|
||||
}
|
||||
|
||||
return $templates;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue