Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Commit

Permalink
Changing 'continue' to 'break' inside switches to avoid PHP 7.3 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
vcampitelli committed Nov 22, 2018
1 parent 797c4d0 commit b06a841
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,19 +99,19 @@ public function setProfiler(array $options)
// fall-through
case 'flush_early':
$this->profiler[$key] = (bool) $value;
continue;
break;
case 'cache_dir':
$this->profiler[$key] = (string) $value;
continue;
break;
case 'matcher':
$this->setMatcher($value);
continue;
break;
case 'collectors':
$this->setCollectors($value);
continue;
break;
default:
// unknown option
continue;
break;
}
}
}
Expand Down Expand Up @@ -335,17 +335,17 @@ public function setToolbar(array $options)
// fall-through
case 'version_check':
$this->toolbar[$key] = (bool) $value;
continue;
break;
case 'position':
if ($value !== 'bottom' && $value !== 'top') {
$this->report->addError(sprintf(
"['zenddevelopertools']['toolbar']['position'] must be 'top' or 'bottom', %s given.",
$value
));
continue;
break;
}
$this->toolbar[$key] = $value;
continue;
break;
case 'entries':
if (! is_array($value)) {
$this->report->addError(sprintf(
Expand All @@ -357,16 +357,16 @@ public function setToolbar(array $options)
foreach ($value as $collector => $template) {
if ($template === false || $template === null) {
unset($this->toolbar[$key][$collector]);
continue;
break;
}

$this->toolbar[$key][$collector] = $template;
}

continue;
break;
default:
// Unknown type; ignore
continue;
break;
}
}
}
Expand Down

0 comments on commit b06a841

Please sign in to comment.