aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/sabre/vobject/lib/Property/UtcOffset.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/UtcOffset.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/UtcOffset.php')
-rw-r--r--vendor/sabre/vobject/lib/Property/UtcOffset.php27
1 files changed, 16 insertions, 11 deletions
diff --git a/vendor/sabre/vobject/lib/Property/UtcOffset.php b/vendor/sabre/vobject/lib/Property/UtcOffset.php
index 732239e23..61895c48e 100644
--- a/vendor/sabre/vobject/lib/Property/UtcOffset.php
+++ b/vendor/sabre/vobject/lib/Property/UtcOffset.php
@@ -11,8 +11,8 @@ namespace Sabre\VObject\Property;
* @author Evert Pot (http://evertpot.com/)
* @license http://sabre.io/license/ Modified BSD License
*/
-class UtcOffset extends Text
-{
+class UtcOffset extends Text {
+
/**
* In case this is a multi-value property. This string will be used as a
* delimiter.
@@ -29,9 +29,10 @@ class UtcOffset extends Text
*
* @return string
*/
- public function getValueType()
- {
+ function getValueType() {
+
return 'UTC-OFFSET';
+
}
/**
@@ -40,16 +41,19 @@ class UtcOffset extends Text
* The value must always be an array.
*
* @param array $value
+ *
+ * @return void
*/
- public function setJsonValue(array $value)
- {
+ function setJsonValue(array $value) {
+
$value = array_map(
- function ($value) {
+ function($value) {
return str_replace(':', '', $value);
},
$value
);
parent::setJsonValue($value);
+
}
/**
@@ -59,14 +63,15 @@ class UtcOffset extends Text
*
* @return array
*/
- public function getJsonValue()
- {
+ function getJsonValue() {
+
return array_map(
- function ($value) {
- return substr($value, 0, -2).':'.
+ function($value) {
+ return substr($value, 0, -2) . ':' .
substr($value, -2);
},
parent::getJsonValue()
);
+
}
}