aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/sabre/vobject/lib/Property/UtcOffset.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2019-04-28 17:47:26 -0700
committerzotlabs <mike@macgirvin.com>2019-04-28 17:47:26 -0700
commit95871fe13c3a9515d82510997a734bf7e8945bad (patch)
treee6974fb15bac5844220287c94755f203dc403829 /vendor/sabre/vobject/lib/Property/UtcOffset.php
parent9536a490b3fc5fc02a6d0a79275e8df03ee8156b (diff)
parent0cecfceb14083141da389b7cc1e413ba5d5ca6d7 (diff)
downloadvolse-hubzilla-95871fe13c3a9515d82510997a734bf7e8945bad.tar.gz
volse-hubzilla-95871fe13c3a9515d82510997a734bf7e8945bad.tar.bz2
volse-hubzilla-95871fe13c3a9515d82510997a734bf7e8945bad.zip
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
Diffstat (limited to 'vendor/sabre/vobject/lib/Property/UtcOffset.php')
-rw-r--r--vendor/sabre/vobject/lib/Property/UtcOffset.php27
1 files changed, 11 insertions, 16 deletions
diff --git a/vendor/sabre/vobject/lib/Property/UtcOffset.php b/vendor/sabre/vobject/lib/Property/UtcOffset.php
index 61895c48e..732239e23 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,10 +29,9 @@ class UtcOffset extends Text {
*
* @return string
*/
- function getValueType() {
-
+ public function getValueType()
+ {
return 'UTC-OFFSET';
-
}
/**
@@ -41,19 +40,16 @@ class UtcOffset extends Text {
* The value must always be an array.
*
* @param array $value
- *
- * @return void
*/
- function setJsonValue(array $value) {
-
+ public function setJsonValue(array $value)
+ {
$value = array_map(
- function($value) {
+ function ($value) {
return str_replace(':', '', $value);
},
$value
);
parent::setJsonValue($value);
-
}
/**
@@ -63,15 +59,14 @@ class UtcOffset extends Text {
*
* @return array
*/
- function getJsonValue() {
-
+ public function getJsonValue()
+ {
return array_map(
- function($value) {
- return substr($value, 0, -2) . ':' .
+ function ($value) {
+ return substr($value, 0, -2).':'.
substr($value, -2);
},
parent::getJsonValue()
);
-
}
}