diff options
author | zotlabs <mike@macgirvin.com> | 2019-04-28 17:47:26 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2019-04-28 17:47:26 -0700 |
commit | 95871fe13c3a9515d82510997a734bf7e8945bad (patch) | |
tree | e6974fb15bac5844220287c94755f203dc403829 /vendor/sabre/vobject/lib/Splitter/VCard.php | |
parent | 9536a490b3fc5fc02a6d0a79275e8df03ee8156b (diff) | |
parent | 0cecfceb14083141da389b7cc1e413ba5d5ca6d7 (diff) | |
download | volse-hubzilla-95871fe13c3a9515d82510997a734bf7e8945bad.tar.gz volse-hubzilla-95871fe13c3a9515d82510997a734bf7e8945bad.tar.bz2 volse-hubzilla-95871fe13c3a9515d82510997a734bf7e8945bad.zip |
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
Diffstat (limited to 'vendor/sabre/vobject/lib/Splitter/VCard.php')
-rw-r--r-- | vendor/sabre/vobject/lib/Splitter/VCard.php | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/vendor/sabre/vobject/lib/Splitter/VCard.php b/vendor/sabre/vobject/lib/Splitter/VCard.php index 0bb82abe9..a20f5c2c1 100644 --- a/vendor/sabre/vobject/lib/Splitter/VCard.php +++ b/vendor/sabre/vobject/lib/Splitter/VCard.php @@ -19,8 +19,8 @@ use Sabre\VObject\Parser\MimeDir; * @author Armin Hackmann * @license http://sabre.io/license/ Modified BSD License */ -class VCard implements SplitterInterface { - +class VCard implements SplitterInterface +{ /** * File handle. * @@ -38,16 +38,15 @@ class VCard implements SplitterInterface { /** * Constructor. * - * The splitter should receive an readable file stream as it's input. + * The splitter should receive an readable file stream as its input. * * @param resource $input - * @param int $options Parser options, see the OPTIONS constants. + * @param int $options parser options, see the OPTIONS constants */ - function __construct($input, $options = 0) { - + public function __construct($input, $options = 0) + { $this->input = $input; $this->parser = new MimeDir($input, $options); - } /** @@ -56,23 +55,20 @@ class VCard implements SplitterInterface { * * When the end is reached, null will be returned. * - * @return Sabre\VObject\Component|null + * @return \Sabre\VObject\Component|null */ - function getNext() { - + public function getNext() + { try { $object = $this->parser->parse(); if (!$object instanceof VObject\Component\VCard) { throw new VObject\ParseException('The supplied input contained non-VCARD data.'); } - } catch (VObject\EofException $e) { return; } return $object; - } - } |