cosmetic code review
This commit is contained in:
parent
b6bf6e42cc
commit
16f73bcee1
5 changed files with 6 additions and 9 deletions
|
@ -49,6 +49,7 @@ class Config extends dcNsProcess
|
||||||
dcCore::app()->error->add(sprintf(__('%s required php >= %s'), My::id(), My::PHP_MIN));
|
dcCore::app()->error->add(sprintf(__('%s required php >= %s'), My::id(), My::PHP_MIN));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return self::$init;
|
return self::$init;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ use dcCore;
|
||||||
class My
|
class My
|
||||||
{
|
{
|
||||||
/** @var string Required php version */
|
/** @var string Required php version */
|
||||||
public const PHP_MIN = '8.1';
|
public const PHP_MIN = '8.0';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This module id
|
* This module id
|
||||||
|
|
|
@ -32,7 +32,6 @@ use Dotclear\Helper\Html\Form\{
|
||||||
use Dotclear\Plugin\improve\Action;
|
use Dotclear\Plugin\improve\Action;
|
||||||
|
|
||||||
/* clearbricks */
|
/* clearbricks */
|
||||||
use form;
|
|
||||||
use html;
|
use html;
|
||||||
|
|
||||||
/* php */
|
/* php */
|
||||||
|
|
|
@ -43,14 +43,11 @@ class dcdeprecated extends Action
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
private function loadDeprecatedDefinition()
|
private function loadDeprecatedDefinition(): void
|
||||||
{
|
{
|
||||||
$path = path::real(__DIR__ . '/dcdeprecated');
|
$path = path::real(__DIR__ . '/dcdeprecated');
|
||||||
if (!$path) {
|
if (!$path || !is_dir($path) || !is_readable($path)) {
|
||||||
return [];
|
return;
|
||||||
}
|
|
||||||
if (!is_dir($path) || !is_readable($path)) {
|
|
||||||
return [];
|
|
||||||
}
|
}
|
||||||
$files = files::scandir($path);
|
$files = files::scandir($path);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue