cosmetic code review

This commit is contained in:
Jean-Christian Denis 2023-03-18 23:30:48 +01:00
parent b6bf6e42cc
commit 16f73bcee1
Signed by: JcDenis
GPG key ID: 1B5B8C5B90B6C951
5 changed files with 6 additions and 9 deletions

View file

@ -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;
} }

View file

@ -230,7 +230,7 @@ class Manage extends dcNsProcess
echo echo
dcPage::breadcrumb([ dcPage::breadcrumb([
__('Plugins') => '', __('Plugins') => '',
My::name() => '', My::name() => '',
empty($_REQUEST['config']) ? (self::$type == 'theme' ? __('Themes actions') : __('Plugins actions')) : __('Configure module') => '', empty($_REQUEST['config']) ? (self::$type == 'theme' ? __('Themes actions') : __('Plugins actions')) : __('Configure module') => '',
]) . ]) .
dcPage::notices(); dcPage::notices();

View file

@ -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

View file

@ -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 */

View file

@ -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);