aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/sabre/vobject/lib/Property/Boolean.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2019-04-25 21:49:18 -0700
committerzotlabs <mike@macgirvin.com>2019-04-25 21:49:18 -0700
commite6521d1cf3166a888ad58b09059d9dc5746ad795 (patch)
tree6ab3e41d888f18b2dcad351f86c3ed0628eda307 /vendor/sabre/vobject/lib/Property/Boolean.php
parent96785e8df1b325a32c93ebebf67ab5208f4088dc (diff)
parentd689778465c0439d0ceae071dab2509e3f95403e (diff)
downloadvolse-hubzilla-e6521d1cf3166a888ad58b09059d9dc5746ad795.tar.gz
volse-hubzilla-e6521d1cf3166a888ad58b09059d9dc5746ad795.tar.bz2
volse-hubzilla-e6521d1cf3166a888ad58b09059d9dc5746ad795.zip
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
Diffstat (limited to 'vendor/sabre/vobject/lib/Property/Boolean.php')
-rw-r--r--vendor/sabre/vobject/lib/Property/Boolean.php33
1 files changed, 12 insertions, 21 deletions
diff --git a/vendor/sabre/vobject/lib/Property/Boolean.php b/vendor/sabre/vobject/lib/Property/Boolean.php
index 6f5887e25..1b219bb8c 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,14 +26,11 @@ class Boolean extends Property {
* not yet done, but parameters are not included.
*
* @param string $val
- *
- * @return void
*/
- function setRawMimeDirValue($val) {
-
- $val = strtoupper($val) === 'TRUE' ? true : false;
+ public function setRawMimeDirValue($val)
+ {
+ $val = 'TRUE' === strtoupper($val) ? true : false;
$this->setValue($val);
-
}
/**
@@ -41,10 +38,9 @@ class Boolean extends Property {
*
* @return string
*/
- function getRawMimeDirValue() {
-
+ public function getRawMimeDirValue()
+ {
return $this->value ? 'TRUE' : 'FALSE';
-
}
/**
@@ -55,10 +51,9 @@ class Boolean extends Property {
*
* @return string
*/
- function getValueType() {
-
+ public function getValueType()
+ {
return 'BOOLEAN';
-
}
/**
@@ -66,19 +61,15 @@ class Boolean extends Property {
* object.
*
* @param array $value
- *
- * @return void
*/
- function setXmlValue(array $value) {
-
+ public function setXmlValue(array $value)
+ {
$value = array_map(
- function($value) {
+ function ($value) {
return 'true' === $value;
},
$value
);
parent::setXmlValue($value);
-
}
-
}