diff options
author | zotlabs <mike@macgirvin.com> | 2018-05-14 17:23:19 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-05-14 17:23:19 -0700 |
commit | 229d82c4c7ca37c304d1291be7f71ba4b0632f03 (patch) | |
tree | 9f0ce27c1e82380987dd9ea317d6bf8e516f7a6b /vendor/sabre/vobject/lib/Parser/MimeDir.php | |
parent | d9759ba63c8fd70c4da66669389bd19bae3333ff (diff) | |
parent | 2d1dbc8f40d0b9fa89b99861fac30d579a400e34 (diff) | |
download | volse-hubzilla-229d82c4c7ca37c304d1291be7f71ba4b0632f03.tar.gz volse-hubzilla-229d82c4c7ca37c304d1291be7f71ba4b0632f03.tar.bz2 volse-hubzilla-229d82c4c7ca37c304d1291be7f71ba4b0632f03.zip |
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into xdev_merge
Diffstat (limited to 'vendor/sabre/vobject/lib/Parser/MimeDir.php')
-rw-r--r-- | vendor/sabre/vobject/lib/Parser/MimeDir.php | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/vendor/sabre/vobject/lib/Parser/MimeDir.php b/vendor/sabre/vobject/lib/Parser/MimeDir.php index 78e5bf385..742641236 100644 --- a/vendor/sabre/vobject/lib/Parser/MimeDir.php +++ b/vendor/sabre/vobject/lib/Parser/MimeDir.php @@ -283,22 +283,22 @@ class MimeDir extends Parser { */ protected function readLine() { - if (!is_null($this->lineBuffer)) { + if (!\is_null($this->lineBuffer)) { $rawLine = $this->lineBuffer; $this->lineBuffer = null; } else { do { - $eof = feof($this->input); + $eof = \feof($this->input); - $rawLine = fgets($this->input); + $rawLine = \fgets($this->input); - if ($eof || (feof($this->input) && $rawLine === false)) { + if ($eof || (\feof($this->input) && $rawLine === false)) { throw new EofException('End of document reached prematurely'); } if ($rawLine === false) { throw new ParseException('Error reading from input stream'); } - $rawLine = rtrim($rawLine, "\r\n"); + $rawLine = \rtrim($rawLine, "\r\n"); } while ($rawLine === ''); // Skipping empty lines $this->lineIndex++; } @@ -309,14 +309,15 @@ class MimeDir extends Parser { // Looking ahead for folded lines. while (true) { - $nextLine = rtrim(fgets($this->input), "\r\n"); + $nextLine = \rtrim(\fgets($this->input), "\r\n"); $this->lineIndex++; if (!$nextLine) { break; } if ($nextLine[0] === "\t" || $nextLine[0] === " ") { - $line .= substr($nextLine, 1); - $rawLine .= "\n " . substr($nextLine, 1); + $curLine = \substr($nextLine, 1); + $line .= $curLine; + $rawLine .= "\n " . $curLine; } else { $this->lineBuffer = $nextLine; break; |