type fixes
This commit is contained in:
@@ -134,10 +134,12 @@ class Cleanup implements JobDataLess
|
||||
|
||||
foreach ($items as $name => $item) {
|
||||
try {
|
||||
/** @var class-string */
|
||||
/** @var class-string<\Espo\Core\Cleanup\Cleanup> */
|
||||
$className = $item['className'];
|
||||
|
||||
$injectableFactory->create($className)->process();
|
||||
$obj = $injectableFactory->create($className);
|
||||
|
||||
$obj->process();
|
||||
}
|
||||
catch (Throwable $e) {
|
||||
$this->log->error("Cleanup: {$name}: " . $e->getMessage());
|
||||
@@ -355,6 +357,7 @@ class Cleanup implements JobDataLess
|
||||
|
||||
$datetimeFrom->modify($fromPeriod);
|
||||
|
||||
/** @var string[] */
|
||||
$scopeList = array_keys($this->metadata->get(['scopes']));
|
||||
|
||||
foreach ($scopeList as $scope) {
|
||||
@@ -548,8 +551,10 @@ class Cleanup implements JobDataLess
|
||||
|
||||
$datetime = new DateTime('-' . $this->cleanupBackupPeriod);
|
||||
|
||||
if (file_exists($path)) {
|
||||
$fileManager = $this->fileManager;
|
||||
$fileManager = $this->fileManager;
|
||||
|
||||
if ($fileManager->exists($path)) {
|
||||
/** @var string[] */
|
||||
$fileList = $fileManager->getFileList($path, false, '', false);
|
||||
|
||||
foreach ($fileList as $dirName) {
|
||||
@@ -708,6 +713,7 @@ class Cleanup implements JobDataLess
|
||||
|
||||
$datetime = new DateTime($period);
|
||||
|
||||
/** @var string[] */
|
||||
$scopeList = array_keys($this->metadata->get(['scopes']));
|
||||
|
||||
foreach ($scopeList as $scope) {
|
||||
|
||||
@@ -187,7 +187,7 @@ class GoogleMaps implements Helper
|
||||
|
||||
list($width, $height) = explode('x', $size);
|
||||
|
||||
$src = '@' . base64_encode($image);
|
||||
$src = '@' . base64_encode($image); /** @phpstan-ignore-line */
|
||||
|
||||
$tag = "<img src=\"{$src}\" width=\"{$width}\" height=\"{$height}\">";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user