Skip to content
Commits auf Quelle (7)
include:
- project: 'quiqqer/stabilization/semantic-release'
file: '/ci-templates/.gitlab-ci.yml'
- component: dev.quiqqer.com/quiqqer/stabilization/ci-cd-components/quiqqer-package-bundle/quiqqer-package-bundle@2
# Remove the entire phpunit-php8.1 block, to allow PHPUnit to run on PHP 8.1 in your pipeline
phpunit-php8.1:
rules:
- when: never
# Remove the entire phpunit-php8.2 block, to allow PHPUnit to run on PHP 8.2 in your pipeline
phpunit-php8.2:
rules:
- when: never
# Remove the entire phpunit-php8.3 block, to allow PHPUnit to run on PHP 8.3 in your pipeline
phpunit-php8.3:
rules:
- when: never
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<phive xmlns="https://phar.io/phive">
<phar name="phpstan" version="^1.10.67" installed="1.10.67" location="./tools/phpstan" copy="false"/>
<phar name="phpstan" version="1.11.8" installed="1.11.8" location="./tools/phpstan" copy="false"/>
<phar name="phpunit" version="^10.5.20" installed="10.5.20" location="./tools/phpunit" copy="false"/>
<phar name="phpcs" version="^3.9.2" installed="3.9.2" location="./tools/phpcs" copy="false"/>
<phar name="phpcbf" version="^3.9.2" installed="3.9.2" location="./tools/phpcbf" copy="false"/>
<phar name="captainhook" version="^5.23.0" installed="5.23.0" location="./tools/captainhook" copy="false"/>
<phar name="captainhook" version="^5.23.3" installed="5.23.3" location="./tools/captainhook" copy="false"/>
</phive>
......@@ -18,8 +18,6 @@ QUI::$Ajax->registerFunction(
$params = json_decode($params, true);
$Manager = new QUI\Cron\Manager();
$Manager->add($cron, $min, $hour, $day, $month, $dayOfWeek, $params);
},
['cron', 'min', 'hour', 'day', 'month', 'dayOfWeek', 'params'],
......
......@@ -13,8 +13,8 @@ QUI::$Ajax->registerFunction(
$list = $CronManager->getList();
$Locale = QUI::getLocale();
$Formatter = $Locale->getDateFormatter(
\IntlDateFormatter::SHORT,
\IntlDateFormatter::SHORT
IntlDateFormatter::SHORT,
IntlDateFormatter::SHORT
);
foreach ($list as $key => $cron) {
......@@ -23,7 +23,11 @@ QUI::$Ajax->registerFunction(
$list[$key]['title'] = $Locale->get($locale[0], $locale[1]);
}
$list[$key]['lastexec'] = $Formatter->format(\strtotime($list[$key]['lastexec']));
if (!empty($list[$key]['lastexec'])) {
$list[$key]['lastexec'] = $Formatter->format(strtotime($list[$key]['lastexec']));
} else {
$list[$key]['lastexec'] = '';
}
}
return $list;
......
{
"config": {
"bootstrap": "tests/captainhook-bootstrap.php"
},
"pre-commit": {
"enabled": true,
"actions": [
......
parameters:
ignoreErrors:
-
message: "#^Parameter \\#1 \\$cronId of method QUI\\\\Cron\\\\Console\\\\ExecCrons\\:\\:runCron\\(\\) expects bool\\|int, string given\\.$#"
count: 1
path: src/QUI/Cron/Console/ExecCrons.php
-
message: "#^Access to an undefined property DOMNode\\:\\:\\$tagName\\.$#"
count: 1
path: src/QUI/Cron/Manager.php
-
message: "#^PHPDoc tag @return with type QUI\\\\Cron\\\\Manager is not subtype of native type static\\(QUI\\\\Cron\\\\Manager\\)\\.$#"
count: 1
path: src/QUI/Cron/Manager.php
-
message: "#^Call to an undefined method QUI\\\\Projects\\\\Site\\:\\:deactivate\\(\\)\\.$#"
count: 1
path: src/QUI/Cron/QuiqqerCrons.php
......@@ -2,7 +2,7 @@ includes:
- phpstan-baseline.neon
parameters:
level: 1
level: 5
paths:
- src
- ajax
......
<?php
// This file is supposed to be empty, see https://github.com/captainhookphp/captainhook/issues/248