diff options
author | Mario <mario@mariovavti.com> | 2019-04-25 11:24:09 +0200 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2019-04-25 11:24:09 +0200 |
commit | f1c07977809ce3221286d53e99f0d91145b1166f (patch) | |
tree | 4c067a3b701ea56f10070c386b26a30f93666eb0 /vendor/sabre/vobject/lib/Property/IntegerValue.php | |
parent | 701167bc125700efb3e6ce759b85bcb4d36ee42e (diff) | |
download | volse-hubzilla-f1c07977809ce3221286d53e99f0d91145b1166f.tar.gz volse-hubzilla-f1c07977809ce3221286d53e99f0d91145b1166f.tar.bz2 volse-hubzilla-f1c07977809ce3221286d53e99f0d91145b1166f.zip |
Revert "update composer libs"
This reverts commit e779335d060b3a51d6a144d23af4097ae6801473
Diffstat (limited to 'vendor/sabre/vobject/lib/Property/IntegerValue.php')
-rw-r--r-- | vendor/sabre/vobject/lib/Property/IntegerValue.php | 37 |
1 files changed, 23 insertions, 14 deletions
diff --git a/vendor/sabre/vobject/lib/Property/IntegerValue.php b/vendor/sabre/vobject/lib/Property/IntegerValue.php index ddd71d731..5bd1887fa 100644 --- a/vendor/sabre/vobject/lib/Property/IntegerValue.php +++ b/vendor/sabre/vobject/lib/Property/IntegerValue.php @@ -15,8 +15,8 @@ use * @author Evert Pot (http://evertpot.com/) * @license http://sabre.io/license/ Modified BSD License */ -class IntegerValue extends Property -{ +class IntegerValue extends Property { + /** * Sets a raw value coming from a mimedir (iCalendar/vCard) file. * @@ -24,10 +24,13 @@ class IntegerValue extends Property * not yet done, but parameters are not included. * * @param string $val + * + * @return void */ - public function setRawMimeDirValue($val) - { - $this->setValue((int) $val); + function setRawMimeDirValue($val) { + + $this->setValue((int)$val); + } /** @@ -35,9 +38,10 @@ class IntegerValue extends Property * * @return string */ - public function getRawMimeDirValue() - { + function getRawMimeDirValue() { + return $this->value; + } /** @@ -48,9 +52,10 @@ class IntegerValue extends Property * * @return string */ - public function getValueType() - { + function getValueType() { + return 'INTEGER'; + } /** @@ -60,9 +65,10 @@ class IntegerValue extends Property * * @return array */ - public function getJsonValue() - { - return [(int) $this->getValue()]; + function getJsonValue() { + + return [(int)$this->getValue()]; + } /** @@ -70,10 +76,13 @@ class IntegerValue extends Property * object. * * @param array $value + * + * @return void */ - public function setXmlValue(array $value) - { + function setXmlValue(array $value) { + $value = array_map('intval', $value); parent::setXmlValue($value); + } } |