aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/sabre/vobject/lib/Property/Boolean.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2019-04-25 11:24:09 +0200
committerMario <mario@mariovavti.com>2019-04-25 11:24:09 +0200
commitf1c07977809ce3221286d53e99f0d91145b1166f (patch)
tree4c067a3b701ea56f10070c386b26a30f93666eb0 /vendor/sabre/vobject/lib/Property/Boolean.php
parent701167bc125700efb3e6ce759b85bcb4d36ee42e (diff)
downloadvolse-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/Boolean.php')
-rw-r--r--vendor/sabre/vobject/lib/Property/Boolean.php33
1 files changed, 21 insertions, 12 deletions
diff --git a/vendor/sabre/vobject/lib/Property/Boolean.php b/vendor/sabre/vobject/lib/Property/Boolean.php
index 1b219bb8c..6f5887e25 100644
--- a/vendor/sabre/vobject/lib/Property/Boolean.php
+++ b/vendor/sabre/vobject/lib/Property/Boolean.php
@@ -17,8 +17,8 @@ use
* @author Evert Pot (http://evertpot.com/)
* @license http://sabre.io/license/ Modified BSD License
*/
-class Boolean extends Property
-{
+class Boolean extends Property {
+
/**
* Sets a raw value coming from a mimedir (iCalendar/vCard) file.
*
@@ -26,11 +26,14 @@ class Boolean extends Property
* not yet done, but parameters are not included.
*
* @param string $val
+ *
+ * @return void
*/
- public function setRawMimeDirValue($val)
- {
- $val = 'TRUE' === strtoupper($val) ? true : false;
+ function setRawMimeDirValue($val) {
+
+ $val = strtoupper($val) === 'TRUE' ? true : false;
$this->setValue($val);
+
}
/**
@@ -38,9 +41,10 @@ class Boolean extends Property
*
* @return string
*/
- public function getRawMimeDirValue()
- {
+ function getRawMimeDirValue() {
+
return $this->value ? 'TRUE' : 'FALSE';
+
}
/**
@@ -51,9 +55,10 @@ class Boolean extends Property
*
* @return string
*/
- public function getValueType()
- {
+ function getValueType() {
+
return 'BOOLEAN';
+
}
/**
@@ -61,15 +66,19 @@ class Boolean extends Property
* object.
*
* @param array $value
+ *
+ * @return void
*/
- public function setXmlValue(array $value)
- {
+ function setXmlValue(array $value) {
+
$value = array_map(
- function ($value) {
+ function($value) {
return 'true' === $value;
},
$value
);
parent::setXmlValue($value);
+
}
+
}