update tasks namespace and extends

This commit is contained in:
Jean-Christian Denis 2023-04-28 01:05:46 +02:00
parent fbe10607b5
commit 9fdf53b9fd
Signed by: JcDenis
GPG key ID: 1B5B8C5B90B6C951
14 changed files with 42 additions and 42 deletions

View file

@ -12,7 +12,7 @@
*/ */
declare(strict_types=1); declare(strict_types=1);
namespace Dotclear\Plugin\improve\Module; namespace Dotclear\Plugin\improve\Task;
use dcCore; use dcCore;
use Dotclear\Helper\Html\Form\{ use Dotclear\Helper\Html\Form\{
@ -27,13 +27,13 @@ use Dotclear\Helper\Html\Form\{
Textarea Textarea
}; };
use Dotclear\Helper\Html\Html; use Dotclear\Helper\Html\Html;
use Dotclear\Plugin\improve\Action; use Dotclear\Plugin\improve\AbstractTask;
use Exception; use Exception;
/** /**
* Improve action module php header * Improve action module php header
*/ */
class cssheader extends Action class cssheader extends AbstractTask
{ {
/** @var string Exemple of header */ /** @var string Exemple of header */
private static $exemple = <<<EOF private static $exemple = <<<EOF

View file

@ -12,18 +12,18 @@
*/ */
declare(strict_types=1); declare(strict_types=1);
namespace Dotclear\Plugin\improve\Module; namespace Dotclear\Plugin\improve\Task;
use Dotclear\Helper\File\{ use Dotclear\Helper\File\{
Files, Files,
Path Path
}; };
use Dotclear\Plugin\improve\Action; use Dotclear\Plugin\improve\AbstractTask;
/** /**
* Improve action module Dotclear depreciated * Improve action module Dotclear depreciated
*/ */
class dcdeprecated extends Action class dcdeprecated extends AbstractTask
{ {
/** @var array Deprecated functions [filetype [pattern, deprecated, replacement, version, help link]] */ /** @var array Deprecated functions [filetype [pattern, deprecated, replacement, version, help link]] */
private $deprecated = ['php' => [], 'js' => []]; private $deprecated = ['php' => [], 'js' => []];

View file

@ -12,10 +12,9 @@
*/ */
declare(strict_types=1); declare(strict_types=1);
namespace Dotclear\Plugin\improve\Module; namespace Dotclear\Plugin\improve\Task;
use DOMDocument; use DOMDocument;
use Dotclear\Plugin\improve\Action;
use Dotclear\Helper\File\Files; use Dotclear\Helper\File\Files;
use Dotclear\Helper\Html\Form\{ use Dotclear\Helper\Html\Form\{
Div, Div,
@ -28,12 +27,13 @@ use Dotclear\Helper\Html\Form\{
}; };
use Dotclear\Helper\Html\XmlTag; use Dotclear\Helper\Html\XmlTag;
use Dotclear\Helper\Text; use Dotclear\Helper\Text;
use Dotclear\Plugin\improve\AbstractTask;
use Exception; use Exception;
/** /**
* Improve action module dcstore.xml * Improve action module dcstore.xml
*/ */
class dcstore extends Action class dcstore extends AbstractTask
{ {
/** @var string Settings dcstore zip url pattern */ /** @var string Settings dcstore zip url pattern */
private $pattern = ''; private $pattern = '';

View file

@ -12,7 +12,7 @@
*/ */
declare(strict_types=1); declare(strict_types=1);
namespace Dotclear\Plugin\improve\Module; namespace Dotclear\Plugin\improve\Task;
use Dotclear\Helper\Html\Form\{ use Dotclear\Helper\Html\Form\{
Checkbox, Checkbox,
@ -23,12 +23,12 @@ use Dotclear\Helper\Html\Form\{
Note, Note,
Para Para
}; };
use Dotclear\Plugin\improve\Action; use Dotclear\Plugin\improve\AbstractTask;
/** /**
* Improve action module end of file * Improve action module end of file
*/ */
class endoffile extends Action class endoffile extends AbstractTask
{ {
protected function init(): bool protected function init(): bool
{ {

View file

@ -12,7 +12,7 @@
*/ */
declare(strict_types=1); declare(strict_types=1);
namespace Dotclear\Plugin\improve\Module; namespace Dotclear\Plugin\improve\Task;
use dcCore; use dcCore;
use Dotclear\Helper\Html\Form\{ use Dotclear\Helper\Html\Form\{
@ -25,12 +25,12 @@ use Dotclear\Helper\Html\Form\{
Note, Note,
Para Para
}; };
use Dotclear\Plugin\improve\Action; use Dotclear\Plugin\improve\AbstractTask;
/** /**
* Improve action module Github shields.io * Improve action module Github shields.io
*/ */
class gitshields extends Action class gitshields extends AbstractTask
{ {
/** @var string Username of git repo */ /** @var string Username of git repo */
private $username = ''; private $username = '';

View file

@ -12,7 +12,7 @@
*/ */
declare(strict_types=1); declare(strict_types=1);
namespace Dotclear\Plugin\improve\Module; namespace Dotclear\Plugin\improve\Task;
use Dotclear\Helper\File\Files; use Dotclear\Helper\File\Files;
use Dotclear\Helper\Html\Form\{ use Dotclear\Helper\Html\Form\{
@ -24,13 +24,13 @@ use Dotclear\Helper\Html\Form\{
Para, Para,
Select Select
}; };
use Dotclear\Plugin\improve\Action; use Dotclear\Plugin\improve\AbstractTask;
use Exception; use Exception;
/** /**
* Improve action module license file * Improve action module license file
*/ */
class licensefile extends Action class licensefile extends AbstractTask
{ {
/** @var array Possible license filenames */ /** @var array Possible license filenames */
protected static $license_filenames = [ protected static $license_filenames = [

View file

@ -12,7 +12,7 @@
*/ */
declare(strict_types=1); declare(strict_types=1);
namespace Dotclear\Plugin\improve\Module; namespace Dotclear\Plugin\improve\Task;
use Dotclear\Helper\Html\Form\{ use Dotclear\Helper\Html\Form\{
Div, Div,
@ -24,14 +24,14 @@ use Dotclear\Helper\Html\Form\{
Para Para
}; };
use Dotclear\Plugin\improve\{ use Dotclear\Plugin\improve\{
Action, AbstractTask,
Core Core
}; };
/** /**
* Improve action module new line * Improve action module new line
*/ */
class newline extends Action class newline extends AbstractTask
{ {
protected function init(): bool protected function init(): bool
{ {

View file

@ -12,7 +12,7 @@
*/ */
declare(strict_types=1); declare(strict_types=1);
namespace Dotclear\Plugin\improve\Module; namespace Dotclear\Plugin\improve\Task;
use dcCore; use dcCore;
use dcPage; use dcPage;
@ -29,7 +29,7 @@ use Dotclear\Helper\Html\Form\{
}; };
use Dotclear\Helper\Html\Html; use Dotclear\Helper\Html\Html;
use Dotclear\Plugin\improve\{ use Dotclear\Plugin\improve\{
Action, AbstractTask,
My My
}; };
use Exception; use Exception;
@ -37,7 +37,7 @@ use Exception;
/** /**
* Improve action module PHP CS Fixer * Improve action module PHP CS Fixer
*/ */
class phpcsfixer extends Action class phpcsfixer extends AbstractTask
{ {
/** @var array<int,string> Type of runtime errors */ /** @var array<int,string> Type of runtime errors */
protected static $errors = [ protected static $errors = [
@ -123,7 +123,7 @@ class phpcsfixer extends Action
]), ]),
])->render() . ( ])->render() . (
!self::$user_ui_colorsyntax ? '' : !self::$user_ui_colorsyntax ? '' :
dcPage::jsModuleLoad(My::id() . '/inc/module/phpcsfixer/phpcsfixer.improve.js') . dcPage::jsModuleLoad(My::id() . '/src/Task/phpcsfixer/phpcsfixer.improve.js') .
dcPage::jsRunCodeMirror('editor', 'file_content', 'dotclear', self::$user_ui_colorsyntax_theme) dcPage::jsRunCodeMirror('editor', 'file_content', 'dotclear', self::$user_ui_colorsyntax_theme)
); );
} }

View file

@ -12,7 +12,7 @@
*/ */
declare(strict_types=1); declare(strict_types=1);
namespace Dotclear\Plugin\improve\Module; namespace Dotclear\Plugin\improve\Task;
use dcCore; use dcCore;
use Dotclear\Helper\Html\Form\{ use Dotclear\Helper\Html\Form\{
@ -27,13 +27,13 @@ use Dotclear\Helper\Html\Form\{
Textarea Textarea
}; };
use Dotclear\Helper\Html\Html; use Dotclear\Helper\Html\Html;
use Dotclear\Plugin\improve\Action; use Dotclear\Plugin\improve\AbstractTask;
use Exception; use Exception;
/** /**
* Improve action module php header * Improve action module php header
*/ */
class phpheader extends Action class phpheader extends AbstractTask
{ {
/** @var string Exemple of header */ /** @var string Exemple of header */
private static $exemple = <<<EOF private static $exemple = <<<EOF

View file

@ -12,7 +12,7 @@
*/ */
declare(strict_types=1); declare(strict_types=1);
namespace Dotclear\Plugin\improve\Module; namespace Dotclear\Plugin\improve\Task;
use dcCore; use dcCore;
use dcPage; use dcPage;
@ -31,7 +31,7 @@ use Dotclear\Helper\Html\Form\{
}; };
use Dotclear\Helper\Html\Html; use Dotclear\Helper\Html\Html;
use Dotclear\Plugin\improve\{ use Dotclear\Plugin\improve\{
Action, AbstractTask,
My My
}; };
use Exception; use Exception;
@ -39,7 +39,7 @@ use Exception;
/** /**
* Improve action module PHPStan * Improve action module PHPStan
*/ */
class phpstan extends Action class phpstan extends AbstractTask
{ {
/** @var boolean User pref to use colored synthax */ /** @var boolean User pref to use colored synthax */
protected static $user_ui_colorsyntax = false; protected static $user_ui_colorsyntax = false;
@ -166,7 +166,7 @@ class phpstan extends Action
]), ]),
])->render() . ( ])->render() . (
!self::$user_ui_colorsyntax ? '' : !self::$user_ui_colorsyntax ? '' :
dcPage::jsModuleLoad(My::id() . '/inc/module/phpstan/phpstan.improve.js') . dcPage::jsModuleLoad(My::id() . '/src/Task/phpstan/phpstan.improve.js') .
dcPage::jsRunCodeMirror('editor', 'file_content', 'dotclear', self::$user_ui_colorsyntax_theme) dcPage::jsRunCodeMirror('editor', 'file_content', 'dotclear', self::$user_ui_colorsyntax_theme)
); );
} }

View file

@ -12,15 +12,15 @@
*/ */
declare(strict_types=1); declare(strict_types=1);
namespace Dotclear\Plugin\improve\Module; namespace Dotclear\Plugin\improve\Task;
use Dotclear\Helper\L10n; use Dotclear\Helper\L10n;
use Dotclear\Plugin\improve\Action; use Dotclear\Plugin\improve\AbstractTask;
/** /**
* Improve action module dcstore.xml * Improve action module dcstore.xml
*/ */
class po2php extends Action class po2php extends AbstractTask
{ {
/** @var string License bloc */ /** @var string License bloc */
private $license = <<<EOF private $license = <<<EOF

View file

@ -12,14 +12,14 @@
*/ */
declare(strict_types=1); declare(strict_types=1);
namespace Dotclear\Plugin\improve\Module; namespace Dotclear\Plugin\improve\Task;
use Dotclear\Plugin\improve\Action; use Dotclear\Plugin\improve\AbstractTask;
/** /**
* Improve action module tab * Improve action module tab
*/ */
class tab extends action class tab extends AbstractTask
{ {
protected function init(): bool protected function init(): bool
{ {

View file

@ -12,7 +12,7 @@
*/ */
declare(strict_types=1); declare(strict_types=1);
namespace Dotclear\Plugin\improve\Module; namespace Dotclear\Plugin\improve\Task;
use dcCore; use dcCore;
use Dotclear\Helper\File\{ use Dotclear\Helper\File\{
@ -29,12 +29,12 @@ use Dotclear\Helper\Html\Form\{
Note, Note,
Para Para
}; };
use Dotclear\Plugin\improve\Action; use Dotclear\Plugin\improve\AbstractTask;
/** /**
* Improve action module zip * Improve action module zip
*/ */
class zip extends Action class zip extends AbstractTask
{ {
/** @var array List of excluded file pattern */ /** @var array List of excluded file pattern */
public static $exclude = [ public static $exclude = [

View file

@ -12,7 +12,7 @@
*/ */
declare(strict_types=1); declare(strict_types=1);
namespace Dotclear\Plugin\improve\Module\zip; namespace Dotclear\Plugin\improve\Task\zip;
class Zip extends \Dotclear\Helper\File\Zip\Zip class Zip extends \Dotclear\Helper\File\Zip\Zip
{ {