From b89956df97b37ed9061364755dfb5af1f9db5d91 Mon Sep 17 00:00:00 2001 From: Alan Mels Date: Sun, 3 Nov 2019 17:45:19 +0300 Subject: [PATCH] Fixes https://github.com/backdrop-contrib/coder_upgrade/issues/19 --- grammar_parser/editor.inc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/grammar_parser/editor.inc b/grammar_parser/editor.inc index 6153f51..3d0f24d 100644 --- a/grammar_parser/editor.inc +++ b/grammar_parser/editor.inc @@ -306,7 +306,7 @@ class PGPEditor extends PGPParser { $this->debugPrint($statement); return $class; } - continue; + break; } // Omit break and process special statements below. @@ -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) { @@ -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(); @@ -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!!!