Skip to content
Code-Schnipsel Gruppen Projekte
Commit dde17568 erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

refactor(phpcs): update type declaration syntax

This commit updates the type declaration syntax in the `ExecCrons.php` and `Manager.php` files to
use a space around the `|` operator for better code readability. This change does not affect the
functionality of the code. Minor structural change.
Übergeordneter 13b1adea
No related branches found
No related tags found
2 Merge Requests!24Update 'next-3.x' with latest changes from 'main',!23chore(phpstan): update phpstan version and clear phpstan baseline
Pipeline #15954 mit Warnungen bestanden mit Phase
in 1 Minute und 48 Sekunden
......@@ -215,7 +215,7 @@ class ExecCrons extends QUI\System\Console\Tool
* @param Boolean|Integer $cronId - ID of the cron
* @throws QUI\Exception
*/
public function runCron(bool|int $cronId = false): void
public function runCron(bool | int $cronId = false): void
{
$Manager = new QUI\Cron\Manager();
$cron = $Manager->getCronById($cronId);
......
......@@ -103,11 +103,11 @@ class Manager
*/
public function add(
string $cron,
int|string $min,
int|string $hour,
int|string $day,
int|string $month,
int|string $dayOfWeek,
int | string $min,
int | string $hour,
int | string $day,
int | string $month,
int | string $dayOfWeek,
array $params = []
): void {
Permission::checkPermission('quiqqer.cron.add');
......@@ -167,11 +167,11 @@ class Manager
public function edit(
int $cronId,
string $cron,
int|string $min,
int|string $hour,
int|string $day,
int|string $month,
int|string $dayOfWeek,
int | string $min,
int | string $hour,
int | string $day,
int | string $month,
int | string $dayOfWeek,
array $params = []
): void {
Permission::checkPermission('quiqqer.cron.edit');
......@@ -516,7 +516,7 @@ class Manager
* @return array|false - Cron Data
* @throws Exception
*/
public function getCronById(int $cronId): bool|array
public function getCronById(int $cronId): bool | array
{
$result = QUI::getDataBase()->fetch([
'from' => $this->table(),
......@@ -541,7 +541,7 @@ class Manager
*
* @return array|false - Cron Data
*/
public function getCronData(string $cron): bool|array
public function getCronData(string $cron): bool | array
{
$availableCrons = $this->getAvailableCrons();
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren