зеркало из https://github.com/nextcloud/cookbook.git
Fix introduced bug
Signed-off-by: Christian Wolf <github@christianwolf.email>
This commit is contained in:
Родитель
3e6880e696
Коммит
81a60d5887
|
@ -31,6 +31,16 @@
|
|||
// "/var/www/html": "${workspaceFolder:base}"
|
||||
// }
|
||||
//},
|
||||
{
|
||||
"name": "Xdebug PHPUnit",
|
||||
"type": "php",
|
||||
"request": "launch",
|
||||
"port": 9000,
|
||||
"pathMappings": {
|
||||
"/var/www/html/custom_apps/cookbook": "${workspaceFolder:cookbook}",
|
||||
"/var/www/html": "${workspaceFolder:base}"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Xdebug on 9003",
|
||||
"type": "php",
|
||||
|
|
|
@ -48,8 +48,8 @@ class ISO8601DurationHelper {
|
|||
|
||||
if ($ret === 1) {
|
||||
$hours = (int)$matches[1];
|
||||
$minutes = (int)$matches[2];
|
||||
$seconds = (int)$matches[3];
|
||||
$minutes = (int) ($matches[2] ?? 0);
|
||||
$seconds = (int) ($matches[3] ?? 0);
|
||||
|
||||
while ($seconds >= 60) {
|
||||
$seconds -= 60;
|
||||
|
|
Загрузка…
Ссылка в новой задаче