Use continue 2 instead of continue

This commit is contained in:
Jeremiah VALERIE 2018-08-23 08:43:25 +02:00
parent 0d63d74cbb
commit fce0e4dd22
No known key found for this signature in database
GPG Key ID: 668676FD50ADF244

View File

@ -560,7 +560,7 @@ class Executor
switch ($selection->kind) {
case NodeKind::FIELD:
if (!$this->shouldIncludeNode($selection)) {
continue;
continue 2;
}
$name = self::getFieldEntryKey($selection);
if (!isset($fields[$name])) {
@ -572,7 +572,7 @@ class Executor
if (!$this->shouldIncludeNode($selection) ||
!$this->doesFragmentConditionMatch($selection, $runtimeType)
) {
continue;
continue 2;
}
$this->collectFields(
$runtimeType,
@ -584,14 +584,14 @@ class Executor
case NodeKind::FRAGMENT_SPREAD:
$fragName = $selection->name->value;
if (!empty($visitedFragmentNames[$fragName]) || !$this->shouldIncludeNode($selection)) {
continue;
continue 2;
}
$visitedFragmentNames[$fragName] = true;
/** @var FragmentDefinitionNode|null $fragment */
$fragment = isset($exeContext->fragments[$fragName]) ? $exeContext->fragments[$fragName] : null;
if (!$fragment || !$this->doesFragmentConditionMatch($fragment, $runtimeType)) {
continue;
continue 2;
}
$this->collectFields(
$runtimeType,