@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | public function setJsonValue(array $value) |
| 43 | 43 | { |
| 44 | 44 | $value = array_map( |
| 45 | - function ($value) { |
|
| 45 | + function($value) { |
|
| 46 | 46 | return str_replace(':', '', $value); |
| 47 | 47 | }, |
| 48 | 48 | $value |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | public function getJsonValue() |
| 61 | 61 | { |
| 62 | 62 | return array_map( |
| 63 | - function ($value) { |
|
| 63 | + function($value) { |
|
| 64 | 64 | return substr($value, 0, -2).':'. |
| 65 | 65 | substr($value, -2); |
| 66 | 66 | }, |
@@ -71,7 +71,7 @@ |
||
| 71 | 71 | public function setJsonValue(array $value) |
| 72 | 72 | { |
| 73 | 73 | $value = array_map( |
| 74 | - function ($item) { |
|
| 74 | + function($item) { |
|
| 75 | 75 | return strtr(implode('/', $item), [':' => '', '-' => '']); |
| 76 | 76 | }, |
| 77 | 77 | $value |
@@ -261,7 +261,7 @@ discard block |
||
| 261 | 261 | $isUtc = $isFloating ? false : in_array($tz->getName(), ['UTC', 'GMT', 'Z']); |
| 262 | 262 | |
| 263 | 263 | return array_map( |
| 264 | - function (DateTimeInterface $dt) use ($hasTime, $isUtc) { |
|
| 264 | + function(DateTimeInterface $dt) use ($hasTime, $isUtc) { |
|
| 265 | 265 | if ($hasTime) { |
| 266 | 266 | return $dt->format('Y-m-d\\TH:i:s').($isUtc ? 'Z' : ''); |
| 267 | 267 | } else { |
@@ -285,7 +285,7 @@ discard block |
||
| 285 | 285 | // those. |
| 286 | 286 | $this->setValue( |
| 287 | 287 | array_map( |
| 288 | - function ($item) { |
|
| 288 | + function($item) { |
|
| 289 | 289 | return strtr($item, [':' => '', '-' => '']); |
| 290 | 290 | }, |
| 291 | 291 | $value |
@@ -62,7 +62,7 @@ |
||
| 62 | 62 | public function setXmlValue(array $value) |
| 63 | 63 | { |
| 64 | 64 | $value = array_map( |
| 65 | - function ($value) { |
|
| 65 | + function($value) { |
|
| 66 | 66 | return 'true' === $value; |
| 67 | 67 | }, |
| 68 | 68 | $value |
@@ -121,7 +121,7 @@ |
||
| 121 | 121 | public function setXmlValue(array $value) |
| 122 | 122 | { |
| 123 | 123 | $value = array_map( |
| 124 | - function ($value) { |
|
| 124 | + function($value) { |
|
| 125 | 125 | return str_replace(':', '', $value); |
| 126 | 126 | }, |
| 127 | 127 | $value |
@@ -237,12 +237,12 @@ |
||
| 237 | 237 | $value = ''; |
| 238 | 238 | |
| 239 | 239 | // $d = defined |
| 240 | - $d = function ($part) use ($parts) { |
|
| 240 | + $d = function($part) use ($parts) { |
|
| 241 | 241 | return !is_null($parts[$part]); |
| 242 | 242 | }; |
| 243 | 243 | |
| 244 | 244 | // $r = read |
| 245 | - $r = function ($part) use ($parts) { |
|
| 245 | + $r = function($part) use ($parts) { |
|
| 246 | 246 | return $parts[$part]; |
| 247 | 247 | }; |
| 248 | 248 | |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | $self = $this; |
| 98 | 98 | |
| 99 | 99 | $properties = array_map( |
| 100 | - function ($jProp) use ($self) { |
|
| 100 | + function($jProp) use ($self) { |
|
| 101 | 101 | return $self->parseProperty($jProp); |
| 102 | 102 | }, |
| 103 | 103 | $jComp[1] |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | |
| 106 | 106 | if (isset($jComp[2])) { |
| 107 | 107 | $components = array_map( |
| 108 | - function ($jComp) use ($self) { |
|
| 108 | + function($jComp) use ($self) { |
|
| 109 | 109 | return $self->parseComponent($jComp); |
| 110 | 110 | }, |
| 111 | 111 | $jComp[2] |
@@ -619,7 +619,7 @@ |
||
| 619 | 619 | return |
| 620 | 620 | preg_replace_callback( |
| 621 | 621 | '#(\^(\^|n|\'))#', |
| 622 | - function ($matches) { |
|
| 622 | + function($matches) { |
|
| 623 | 623 | switch ($matches[2]) { |
| 624 | 624 | case 'n': |
| 625 | 625 | return "\n"; |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | public static $valueMap = [ |
| 51 | 51 | 'BINARY' => VObject\Property\Binary::class, |
| 52 | 52 | 'BOOLEAN' => VObject\Property\Boolean::class, |
| 53 | - 'CONTENT-ID' => VObject\Property\FlatText::class, // vCard 2.1 only |
|
| 53 | + 'CONTENT-ID' => VObject\Property\FlatText::class, // vCard 2.1 only |
|
| 54 | 54 | 'DATE' => VObject\Property\VCard\Date::class, |
| 55 | 55 | 'DATE-TIME' => VObject\Property\VCard\DateTime::class, |
| 56 | 56 | 'DATE-AND-OR-TIME' => VObject\Property\VCard\DateAndOrTime::class, // vCard only |