diff options
author | git-marijus <mario@mariovavti.com> | 2018-05-11 13:02:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-11 13:02:37 +0200 |
commit | 7c1d1f8bd3abd2e7c31981f24ac840dc9c0ff035 (patch) | |
tree | ba366d4ce20c2d3133f8bcb3cef47fc09b78705f /vendor/sabre/vobject/lib/Parser/MimeDir.php | |
parent | bcaa0dacdf94670401c3eedf1e648415d2c3ed06 (diff) | |
parent | dafe0afa65171f55146f49f3d45fb4c126073be9 (diff) | |
download | volse-hubzilla-7c1d1f8bd3abd2e7c31981f24ac840dc9c0ff035.tar.gz volse-hubzilla-7c1d1f8bd3abd2e7c31981f24ac840dc9c0ff035.tar.bz2 volse-hubzilla-7c1d1f8bd3abd2e7c31981f24ac840dc9c0ff035.zip |
Merge pull request #1168 from dawnbreak/dev
Fix composer.json
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; |