aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/sabre/vobject/lib/Splitter/VCard.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2019-04-25 08:52:50 +0200
committerMario Vavti <mario@mariovavti.com>2019-04-25 08:52:50 +0200
commite779335d060b3a51d6a144d23af4097ae6801473 (patch)
tree2427765313f715a0e5b48228abe5200cb82b787f /vendor/sabre/vobject/lib/Splitter/VCard.php
parente937e8fff96a935b14a479c062f6b0d00b90b99d (diff)
downloadvolse-hubzilla-e779335d060b3a51d6a144d23af4097ae6801473.tar.gz
volse-hubzilla-e779335d060b3a51d6a144d23af4097ae6801473.tar.bz2
volse-hubzilla-e779335d060b3a51d6a144d23af4097ae6801473.zip
update composer libs
Diffstat (limited to 'vendor/sabre/vobject/lib/Splitter/VCard.php')
-rw-r--r--vendor/sabre/vobject/lib/Splitter/VCard.php22
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;
-
}
-
}