MDL-63422 lib: horde - review core loop / switch / case / continue
This commit is contained in:
@@ -295,7 +295,7 @@ class Horde_Imap_Client_Tokenize implements Iterator
|
||||
// identifier.
|
||||
$binary = true;
|
||||
$text .= $c;
|
||||
continue;
|
||||
break;
|
||||
|
||||
case '{':
|
||||
if ($binary) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user