Commit 7d14d4e9 authored by rp7's avatar rp7 Committed by develCuy

Issue #3023510 by AndyD328, rp7, heliogabal, manikandan.btech: [warning]...

Issue #3023510 by AndyD328, rp7, heliogabal, manikandan.btech: [warning] "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
parent 9592afe2
......@@ -333,7 +333,7 @@ function menu_token_tokens($type, $tokens, array $data, array $options, Bubbleab
case "none":
$r = $token_replacer->replaceNone($token, $key, $bubbleable_metadata);
$replacements = array_merge($replacements, $r);
continue;
break;
case "context":
$r = $token_replacer->replaceContext($token, $key, $bubbleable_metadata);
......@@ -344,7 +344,7 @@ function menu_token_tokens($type, $tokens, array $data, array $options, Bubbleab
}
}
$replacements = array_merge($replacements, $r);
continue;
break;
case "random":
$r = $token_replacer->replaceRandom($token, $key, $bubbleable_metadata);
......@@ -352,7 +352,7 @@ function menu_token_tokens($type, $tokens, array $data, array $options, Bubbleab
$r = [array_pop($tokens) => ''];
}
$replacements = array_merge($replacements, $r);
continue;
break;
case "user_defined":
$admin_defined_variable = $configuration[$type][1];
......@@ -361,16 +361,15 @@ function menu_token_tokens($type, $tokens, array $data, array $options, Bubbleab
$r = [array_pop($tokens) => ''];
}
$replacements = array_merge($replacements, $r);
continue;
break;
default:
continue;
break;
}
}
else {
$r = $token_replacer->replaceExoticToken($token, $key, $bubbleable_metadata);
$replacements = array_merge($replacements, $r);
continue;
}
}
return $replacements;
......
......@@ -119,7 +119,7 @@ class TokenReplacer {
break;
default:
continue;
break;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment