Skip to content

Commit

Permalink
Use break instead of continue in switch statement.
Browse files Browse the repository at this point in the history
  • Loading branch information
HLeithner committed Dec 9, 2018
1 parent 195b22b commit a4f5ba7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/system/debug/debug.php
Expand Up @@ -587,7 +587,7 @@ private function collectLogs(): self
case 'deprecated':
if (!$logDeprecated && !$logDeprecatedCore)
{
continue;
break;
}
$file = $entry->callStack[2]['file'] ?? '';
$line = $entry->callStack[2]['line'] ?? '';
Expand All @@ -608,13 +608,13 @@ private function collectLogs(): self
{
if (!$logDeprecatedCore)
{
continue;
break;
}
$category .= '-core';
}
elseif (!$logDeprecated)
{
continue;
break;
}

$message = [
Expand Down

0 comments on commit a4f5ba7

Please sign in to comment.