Update libs
This commit is contained in:
parent
3d1ca79209
commit
b95de25ee8
2 changed files with 230 additions and 204 deletions
|
@ -32,7 +32,7 @@ class Event
|
|||
/**
|
||||
* https://www.kanzaki.com/docs/ical/duration.html
|
||||
*
|
||||
* @var string
|
||||
* @var string|null
|
||||
*/
|
||||
public $duration;
|
||||
|
||||
|
@ -81,14 +81,14 @@ class Event
|
|||
/**
|
||||
* https://www.kanzaki.com/docs/ical/description.html
|
||||
*
|
||||
* @var string
|
||||
* @var string|null
|
||||
*/
|
||||
public $description;
|
||||
|
||||
/**
|
||||
* https://www.kanzaki.com/docs/ical/location.html
|
||||
*
|
||||
* @var string
|
||||
* @var string|null
|
||||
*/
|
||||
public $location;
|
||||
|
||||
|
@ -132,7 +132,7 @@ class Event
|
|||
*
|
||||
* @var array<string, mixed>
|
||||
*/
|
||||
private $additionalProperties = [];
|
||||
public $additionalProperties = array();
|
||||
|
||||
/**
|
||||
* Creates the Event object
|
||||
|
@ -250,10 +250,15 @@ class Event
|
|||
*/
|
||||
protected static function snakeCase($input, $glue = '_', $separator = '-')
|
||||
{
|
||||
$input = preg_split('/(?<=[a-z])(?=[A-Z])/x', $input);
|
||||
$input = implode($glue, $input);
|
||||
$input = str_replace($separator, $glue, $input);
|
||||
$inputSplit = preg_split('/(?<=[a-z])(?=[A-Z])/x', $input);
|
||||
|
||||
return strtolower($input);
|
||||
if ($inputSplit === false) {
|
||||
return $input;
|
||||
}
|
||||
|
||||
$inputSplit = implode($glue, $inputSplit);
|
||||
$inputSplit = str_replace($separator, $glue, $inputSplit);
|
||||
|
||||
return strtolower($inputSplit);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue