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));
|
||||
}
|
||||
}
|
||||
|
||||
return self::$init;
|
||||
}
|
||||
|
||||
|
|
|
@ -230,7 +230,7 @@ class Manage extends dcNsProcess
|
|||
echo
|
||||
dcPage::breadcrumb([
|
||||
__('Plugins') => '',
|
||||
My::name() => '',
|
||||
My::name() => '',
|
||||
empty($_REQUEST['config']) ? (self::$type == 'theme' ? __('Themes actions') : __('Plugins actions')) : __('Configure module') => '',
|
||||
]) .
|
||||
dcPage::notices();
|
||||
|
|
|
@ -22,7 +22,7 @@ use dcCore;
|
|||
class My
|
||||
{
|
||||
/** @var string Required php version */
|
||||
public const PHP_MIN = '8.1';
|
||||
public const PHP_MIN = '8.0';
|
||||
|
||||
/**
|
||||
* This module id
|
||||
|
|
|
@ -32,7 +32,6 @@ use Dotclear\Helper\Html\Form\{
|
|||
use Dotclear\Plugin\improve\Action;
|
||||
|
||||
/* clearbricks */
|
||||
use form;
|
||||
use html;
|
||||
|
||||
/* php */
|
||||
|
|
|
@ -43,14 +43,11 @@ class dcdeprecated extends Action
|
|||
return true;
|
||||
}
|
||||
|
||||
private function loadDeprecatedDefinition()
|
||||
private function loadDeprecatedDefinition(): void
|
||||
{
|
||||
$path = path::real(__DIR__ . '/dcdeprecated');
|
||||
if (!$path) {
|
||||
return [];
|
||||
}
|
||||
if (!is_dir($path) || !is_readable($path)) {
|
||||
return [];
|
||||
if (!$path || !is_dir($path) || !is_readable($path)) {
|
||||
return;
|
||||
}
|
||||
$files = files::scandir($path);
|
||||
|
||||
|
|
Loading…
Reference in a new issue