cron.php
Cannot access self
when not in object context Open
Open
$cronTask->setCronInstance($cronInstance);
- Exclude checks
Cannot access self
when not in object context Open
Open
$cronInstance->log('Task start: ' . $cronTask->getName(), 'info', false);
- Exclude checks
Call to method trace
from undeclared class \App\Log
Open
Open
\App\Log::trace($cronTask->getName() . ' - Start', 'Cron');
- Exclude checks
Cannot access self
when not in object context Open
Open
$response .= sprintf('%s | %s - Cron task had timedout as it was not completed last time it run' . PHP_EOL, date('Y-m-d H:i:s'), $cronTask->getName());
- Exclude checks
Cannot access self
when not in object context Open
Open
if (!$cronTask->isRunnable()) {
- Exclude checks
Reference to static property sapi
from undeclared class \App\Utils\ConfReport
Open
Open
\App\Utils\ConfReport::$sapi = 'cron';
- Exclude checks
Cannot access self
when not in object context Open
Open
$response .= sprintf('%s | %s - End task (%s s) | %s', date('Y-m-d H:i:s'), $cronTask->getName(), $taskTime, $cronHandler->getTaskLog()) . PHP_EOL;
- Exclude checks
Call to method setCurrentUserId
from undeclared class \App\User
(Did you mean class \Tests\App\User) Open
Open
App\User::setCurrentUserId(Users::getActiveAdminId());
- Exclude checks
Cannot access self
when not in object context Open
Open
$response .= sprintf("%s | %s - skipped \nCron execution time exceeded" . PHP_EOL, date('Y-m-d H:i:s'), $cronTask->getName());
- Exclude checks
Cannot access self
when not in object context Open
Open
$response .= sprintf('%s | %s - Not ready to run as the time to run again is not completed' . PHP_EOL, date('Y-m-d H:i:s'), $cronTask->getName());
- Exclude checks
Cannot access self
when not in object context Open
Open
\App\Log::trace($cronTask->getName() . ' - End', 'Cron');
- Exclude checks
Cannot access self
when not in object context Open
Open
\App\Log::trace($cronTask->getName() . ' - Start', 'Cron');
- Exclude checks
Call to method error
from undeclared class \App\Log
Open
Open
\App\Log::error("Cron task '{$cronTask->getName()}' throwed exception: " . PHP_EOL . $e->__toString() . PHP_EOL, 'Cron');
- Exclude checks
Cannot access self
when not in object context Open
Open
echo sprintf('%s | ERROR: %s - Cron task throwed exception.', date('Y-m-d H:i:s'), $cronTask->getName()) . PHP_EOL;
- Exclude checks
Call to method warning
from undeclared class \App\Log
Open
Open
\App\Log::warning($cronTask->getName() . ' - The task returned a message:' . PHP_EOL . $taskResponse, 'Cron');
- Exclude checks
Cannot access self
when not in object context Open
Open
$cronTask->setError($response . PHP_EOL . $e->getMessage());
- Exclude checks
Call to method trace
from undeclared class \App\Log
Open
Open
\App\Log::trace($cronTask->getName() . ' - Task omitted, it has not been finished during the last scanning', 'Cron');
- Exclude checks
Call to method trace
from undeclared class \App\Log
Open
Open
\App\Log::trace($cronTask->getName() . ' - End', 'Cron');
- Exclude checks
Cannot access self
when not in object context Open
Open
$cronTask->markRunning();
- Exclude checks
Cannot access self
when not in object context Open
Open
\App\Log::warning($cronTask->getName() . ' - The task returned a message:' . PHP_EOL . $taskResponse, 'Cron');
- Exclude checks
Cannot access self
when not in object context Open
Open
$cronTask->unlockTask();
- Exclude checks
Cannot access self
when not in object context Open
Open
\App\Log::trace($cronTask->getName() . ' - Task omitted, it has not been finished during the last scanning', 'Cron');
- Exclude checks
Cannot access self
when not in object context Open
Open
\App\Log::trace($cronTask->getName() . ' - Not ready to run as the time to run again is not completed', 'Cron');
- Exclude checks
Cannot access self
when not in object context Open
Open
\App\Log::error("Cron task '{$cronTask->getName()}' throwed exception: " . PHP_EOL . $e->__toString() . PHP_EOL, 'Cron');
- Exclude checks
Cannot access self
when not in object context Open
Open
$cronTask->refreshData();
- Exclude checks
Cannot access self
when not in object context Open
Open
if ($cronTask->hadTimeout()) {
- Exclude checks
Assigning float
to property but \App\Cron::$cronTimeStart
is int|null
Open
Open
$cronInstance::$cronTimeStart = microtime(true);
- Exclude checks
Cannot access self
when not in object context Open
Open
if ($cronTask->isRunning()) {
- Exclude checks
Cannot access self
when not in object context Open
Open
$response .= sprintf('%s | %s - Task omitted, it has not been finished during the last scanning' . PHP_EOL, date('Y-m-d H:i:s'), $cronTask->getName());
- Exclude checks
Call to method trace
from undeclared class \App\Log
Open
Open
\App\Log::trace($cronTask->getName() . ' - Not ready to run as the time to run again is not completed', 'Cron');
- Exclude checks
Cannot access self
when not in object context Open
Open
$response .= sprintf('%s | %s - Start task' . PHP_EOL, date('Y-m-d H:i:s'), $cronTask->getName());
- Exclude checks
Cannot access self
when not in object context Open
Open
$cronTask->markFinished();
- Exclude checks
Cannot access self
when not in object context Open
Open
if ($cronTask->isDisabled()) {
- Exclude checks
Cannot access self
when not in object context Open
Open
$response .= sprintf('%s | %s - Cron task had been disabled' . PHP_EOL, date('Y-m-d H:i:s'), $cronTask->getName());
- Exclude checks
Cannot access self
when not in object context Open
Open
$className = $cronTask->getHandlerClass();
- Exclude checks
Define a constant instead of duplicating this literal "Y-m-d H:i:s" 11 times. Open
Open
file_put_contents(__DIR__ . '/cache/logs/cron_error.log', date('Y-m-d H:i:s', (int) $init) . ' - ' . $e->getMessage() . PHP_EOL, LOCK_EX);
- Read upRead up
- Exclude checks
Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.
On the other hand, constants can be referenced from many places, but only need to be updated in a single place.
Noncompliant Code Example
With the default threshold of 3:
function run() { prepare('action1'); // Non-Compliant - 'action1' is duplicated 3 times execute('action1'); release('action1'); }
Compliant Solution
ACTION_1 = 'action1'; function run() { prepare(ACTION_1); execute(ACTION_1); release(ACTION_1); }
Exceptions
To prevent generating some false-positives, literals having less than 5 characters are excluded.
Spaces must be used to indent lines; tabs are not allowed Open
Open
App\User::setCurrentUserId(Users::getActiveAdminId());
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$cronTask = vtlib\Cron::getInstance(\App\Request::_get('service'));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$response .= sprintf('--------------- %s (init: %s) | Start CRON ----------', date('Y-m-d H:i:s'), date('H:i:s', (int) $init)) . PHP_EOL;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
file_put_contents(__DIR__ . '/cache/logs/cron_error.log', date('Y-m-d H:i:s', (int) $init) . ' - ' . $e->getMessage() . PHP_EOL, LOCK_EX);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
throw new \App\Exceptions\AppException('ERR_SERVICE_NOT_FOUND');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
} else {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
try {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$startTaskTime = microtime(true);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
require_once __DIR__ . '/include/RequirementsValidation.php';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$response .= sprintf('%s | %s - Cron task had been disabled' . PHP_EOL, date('Y-m-d H:i:s'), $cronTask->getName());
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$cronInstance->log('Cron start', 'info', false);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$checkLibrary = true;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
foreach ($cronTasks as $cronTask) {
- Exclude checks
Line exceeds 120 characters; contains 131 characters Open
Open
$response .= sprintf('%s | %s - Cron task had been disabled' . PHP_EOL, date('Y-m-d H:i:s'), $cronTask->getName());
- Exclude checks
Line exceeds 120 characters; contains 143 characters Open
Open
$response .= sprintf('--------------- %s (init: %s) | Start CRON ----------', date('Y-m-d H:i:s'), date('H:i:s', (int) $init)) . PHP_EOL;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
if ($user) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
break;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
if ($cronTask->isDisabled()) {
- Exclude checks
Line exceeds 120 characters; contains 167 characters Open
Open
$response .= sprintf('%s | %s - Task omitted, it has not been finished during the last scanning' . PHP_EOL, date('Y-m-d H:i:s'), $cronTask->getName());
- Exclude checks
Line exceeds 120 characters; contains 162 characters Open
Open
$response .= sprintf('%s | %s - Not ready to run as the time to run again is not completed' . PHP_EOL, date('Y-m-d H:i:s'), $cronTask->getName());
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
throw new \App\Exceptions\AppException('ERR_CLASS_MUST_BE||' . \App\CronHandler::class);
- Exclude checks
Line exceeds 120 characters; contains 159 characters Open
Open
$response .= sprintf('%s | %s - End task (%s s) | %s', date('Y-m-d H:i:s'), $cronTask->getName(), $taskTime, $cronHandler->getTaskLog()) . PHP_EOL;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$cronInstance::$cronTimeStart = microtime(true);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
\App\Log::trace($cronTask->getName() . ' - Start', 'Cron');
- Exclude checks
Line exceeds 120 characters; contains 133 characters Open
Open
\App\Log::trace($cronTask->getName() . ' - Task omitted, it has not been finished during the last scanning', 'Cron');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
ob_start();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$cronHandler = new $className($cronTask);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
} else {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$cronInstance->log('The task returned a message: ' . PHP_EOL . $taskResponse, 'error');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
\App\Log::error("Cron task '{$cronTask->getName()}' throwed exception: " . PHP_EOL . $e->__toString() . PHP_EOL, 'Cron');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
throw $e;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$cronTasks = false;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$response .= '<pre>';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
} else {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
if ('' !== $taskResponse) {
- Exclude checks
Line exceeds 120 characters; contains 134 characters Open
Open
$cronInstance->log('Cron task execution throwed exception: ' . PHP_EOL . $response . PHP_EOL . $e->__toString(), 'error');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$response .= sprintf('=============== %s (Tasks: ' . $cronInstance->getCronExecutionTime() . ') (Script: %s) | End CRON ==========', date('Y-m-d H:i:s'), round(microtime(true) - $init, 2)) . PHP_EOL;
- Exclude checks
Line exceeds 120 characters; contains 142 characters Open
Open
file_put_contents(__DIR__ . '/cache/logs/cron_error.log', date('Y-m-d H:i:s', (int) $init) . ' - ' . $e->getMessage() . PHP_EOL, LOCK_EX);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
throw $e;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$cronTasks = [$cronTask];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$cronTask->setCronInstance($cronInstance);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$cronTask->refreshData();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$response .= sprintf('%s | %s - Task omitted, it has not been finished during the last scanning' . PHP_EOL, date('Y-m-d H:i:s'), $cronTask->getName());
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
continue;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
// Not ready to run yet?
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
if (!$cronTask->isRunnable()) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$cronInstance->log('Not ready to run as the time to run again is not completed');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
\App\Log::warning($cronTask->getName() . ' - The task returned a message:' . PHP_EOL . $taskResponse, 'Cron');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$cronInstance = new \App\Cron();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
if (!$cronTask) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$cronTasks = vtlib\Cron::listAllActiveInstances();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$response .= sprintf("%s | %s - skipped \nCron execution time exceeded" . PHP_EOL, date('Y-m-d H:i:s'), $cronTask->getName());
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$cronInstance->log('Cron task had timedout as it was not completed last time it run');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$cronInstance->log('Cron execution time exceeded');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$cronInstance->log('Cron task had been disabled');
- Exclude checks
Line exceeds 120 characters; contains 128 characters Open
Open
\App\Log::trace($cronTask->getName() . ' - Not ready to run as the time to run again is not completed', 'Cron');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$taskResponse = ob_get_contents();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$taskTime = round(microtime(true) - $startTaskTime, 2);
- Exclude checks
Line exceeds 120 characters; contains 133 characters Open
Open
\App\Log::error("Cron task '{$cronTask->getName()}' throwed exception: " . PHP_EOL . $e->__toString() . PHP_EOL, 'Cron');
- Exclude checks
Line exceeds 120 characters; contains 127 characters Open
Open
echo sprintf('%s | ERROR: %s - Cron task throwed exception.', date('Y-m-d H:i:s'), $cronTask->getName()) . PHP_EOL;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
continue;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
// Mark the status - running
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
if (class_exists($className)) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$cronInstance->log('End task, time: ' . $taskTime);
- Exclude checks
Line exceeds 120 characters; contains 128 characters Open
Open
$user = (!empty($authenticatedUserId) && !empty($appUniqueKey) && $appUniqueKey === App\Config::main('application_unique_key'));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
vtlib\Cron::setCronAction(true);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
if (\App\Request::_has('service')) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Line exceeds 120 characters; contains 142 characters Open
Open
$response .= sprintf("%s | %s - skipped \nCron execution time exceeded" . PHP_EOL, date('Y-m-d H:i:s'), $cronTask->getName());
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$cronInstance->log('SAPI: ' . PHP_SAPI . ', User: ' . Users::getActiveAdminId(), 'info', false);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
if ($cronInstance->checkCronTimeout()) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$cronTask->unlockTask();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
echo $e->__toString() . PHP_EOL;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$cronInstance->log('Task start: ' . $cronTask->getName(), 'info', false);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
\App\Log::trace($cronTask->getName() . ' - Not ready to run as the time to run again is not completed', 'Cron');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
throw new \App\Exceptions\AppException('ERR_CLASS_NOT_FOUND||' . $className);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$cronTask->markFinished();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
echo $response;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$cronInstance->log('End CRON (' . $cronInstance->getCronExecutionTime() . ')', 'info', false);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
if ($cronTask->isRunning()) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$cronHandler->process();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
echo sprintf('%s | ERROR: %s - Cron task throwed exception.', date('Y-m-d H:i:s'), $cronTask->getName()) . PHP_EOL;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$response .= sprintf('%s | %s - Start task' . PHP_EOL, date('Y-m-d H:i:s'), $cronTask->getName());
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
if ($cronHandler instanceof \App\CronHandler) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$cronInstance->log('Cron task execution throwed exception: ' . PHP_EOL . $response . PHP_EOL . $e->__toString(), 'error');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$cronTask->setError($response . PHP_EOL . $e->getMessage());
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
if ('test' === App\Config::main('systemMode')) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
if ($cronTask->hadTimeout()) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$cronInstance->log('Task omitted, it has not been finished during the last scanning', 'warning');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$response .= sprintf('%s | %s - Not ready to run as the time to run again is not completed' . PHP_EOL, date('Y-m-d H:i:s'), $cronTask->getName());
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$className = $cronTask->getHandlerClass();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
ob_end_clean();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$response .= 'Task response:' . PHP_EOL . $taskResponse . PHP_EOL;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
// Mark the status - finished
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
\App\Log::trace($cronTask->getName() . ' - End', 'Cron');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
echo $response;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$response .= sprintf('%s | %s - Cron task had timedout as it was not completed last time it run' . PHP_EOL, date('Y-m-d H:i:s'), $cronTask->getName());
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
// Not ready to run yet?
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
continue;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
// Timeout could happen if intermediate cron-tasks fails
- Exclude checks
Line exceeds 120 characters; contains 167 characters Open
Open
$response .= sprintf('%s | %s - Cron task had timedout as it was not completed last time it run' . PHP_EOL, date('Y-m-d H:i:s'), $cronTask->getName());
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$cronTask->markRunning();
- Exclude checks
Line exceeds 120 characters; contains 126 characters Open
Open
\App\Log::warning($cronTask->getName() . ' - The task returned a message:' . PHP_EOL . $taskResponse, 'Cron');
- Exclude checks
Line exceeds 120 characters; contains 205 characters Open
Open
$response .= sprintf('=============== %s (Tasks: ' . $cronInstance->getCronExecutionTime() . ') (Script: %s) | End CRON ==========', date('Y-m-d H:i:s'), round(microtime(true) - $init, 2)) . PHP_EOL;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
// and affect the next task. Which need to be handled in this cycle.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
if (App\Config::main('unblockedTimeoutCronTasks')) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
\App\Log::trace($cronTask->getName() . ' - Task omitted, it has not been finished during the last scanning', 'Cron');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$response .= sprintf('%s | %s - End task (%s s) | %s', date('Y-m-d H:i:s'), $cronTask->getName(), $taskTime, $cronHandler->getTaskLog()) . PHP_EOL;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
} catch (\Throwable $e) {
- Exclude checks