MDL-63422 lib: horde - review core loop / switch / case / continue

This commit is contained in:
Eloy Lafuente (stronk7)
2018-10-31 00:17:59 +01:00
parent ed24d21b78
commit 77331aed27
3 changed files with 7 additions and 4 deletions
@@ -295,7 +295,7 @@ class Horde_Imap_Client_Tokenize implements Iterator
// identifier.
$binary = true;
$text .= $c;
continue;
break;
case '{':
if ($binary) {
+3 -3
View File
@@ -571,7 +571,7 @@ class Horde_Mail_Rfc822
if (substr($str, -1) == "\r") {
$str = substr($str, 0, -1);
}
continue;
break;
case '\\':
if (($chr = $this->_curr(true)) === false) {
@@ -737,7 +737,7 @@ class Horde_Mail_Rfc822
case "\r":
case "\t":
++$this->_ptr;
continue;
break;
case '(':
$this->_rfc822SkipComment();
@@ -765,7 +765,7 @@ class Horde_Mail_Rfc822
switch ($chr) {
case '(':
++$level;
continue;
break;
case ')':
if (--$level == 0) {
+3
View File
@@ -8,6 +8,9 @@ Description of import of Horde libraries
# Copy the following script and store it on /tmp, change it's execute bit, and run it, passing
in your path to Horde (the directory you've cloned the repository):
/tmp/copyhorde.sh ~/git/ext/horde/
# Verify that these patches have been applied in the imported version. Apply them locally if not:
- https://github.com/horde/Mail/pull/1 (Mail component).
- https://github.com/horde/Imap_Client/pull/6 (IMAP Client component).
====
#!/bin/sh