Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions grammar_parser/editor.inc
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ class PGPEditor extends PGPParser {
$this->debugPrint($statement);
return $class;
}
continue;
break;
}
// Omit break and process special statements below.

Expand All @@ -315,7 +315,7 @@ class PGPEditor extends PGPParser {
switch ($type) {
case T_INTERFACE:
case T_CLASS:
continue;
break;

case T_FUNCTION:
if ($statement['name'] == $value) {
Expand All @@ -324,7 +324,7 @@ class PGPEditor extends PGPParser {
$this->debugPrint("return class from inside T_FUNCTION");
return $class; // Inconsistent type class vs. array???
}
continue;
break;

// default:
// $class = new PGPFunction();
Expand All @@ -349,14 +349,14 @@ class PGPEditor extends PGPParser {
elseif ($found = $class->find($type, $value, $statement['parameters'])) {
return $found;
}
continue;
break;

default:
$class = new PGPFunction();
if ($found = $class->find($type, $value, $statement['parameters'])) {
return $found;
}
continue;
break;
}
// break; // This prevents entering next case block!!!

Expand Down