update tasks namespace and extends
parent
fbe10607b5
commit
9fdf53b9fd
|
@ -12,7 +12,7 @@
|
|||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Dotclear\Plugin\improve\Module;
|
||||
namespace Dotclear\Plugin\improve\Task;
|
||||
|
||||
use dcCore;
|
||||
use Dotclear\Helper\Html\Form\{
|
||||
|
@ -27,13 +27,13 @@ use Dotclear\Helper\Html\Form\{
|
|||
Textarea
|
||||
};
|
||||
use Dotclear\Helper\Html\Html;
|
||||
use Dotclear\Plugin\improve\Action;
|
||||
use Dotclear\Plugin\improve\AbstractTask;
|
||||
use Exception;
|
||||
|
||||
/**
|
||||
* Improve action module php header
|
||||
*/
|
||||
class cssheader extends Action
|
||||
class cssheader extends AbstractTask
|
||||
{
|
||||
/** @var string Exemple of header */
|
||||
private static $exemple = <<<EOF
|
||||
|
|
|
@ -12,18 +12,18 @@
|
|||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Dotclear\Plugin\improve\Module;
|
||||
namespace Dotclear\Plugin\improve\Task;
|
||||
|
||||
use Dotclear\Helper\File\{
|
||||
Files,
|
||||
Path
|
||||
};
|
||||
use Dotclear\Plugin\improve\Action;
|
||||
use Dotclear\Plugin\improve\AbstractTask;
|
||||
|
||||
/**
|
||||
* Improve action module Dotclear depreciated
|
||||
*/
|
||||
class dcdeprecated extends Action
|
||||
class dcdeprecated extends AbstractTask
|
||||
{
|
||||
/** @var array Deprecated functions [filetype [pattern, deprecated, replacement, version, help link]] */
|
||||
private $deprecated = ['php' => [], 'js' => []];
|
||||
|
|
|
@ -12,10 +12,9 @@
|
|||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Dotclear\Plugin\improve\Module;
|
||||
namespace Dotclear\Plugin\improve\Task;
|
||||
|
||||
use DOMDocument;
|
||||
use Dotclear\Plugin\improve\Action;
|
||||
use Dotclear\Helper\File\Files;
|
||||
use Dotclear\Helper\Html\Form\{
|
||||
Div,
|
||||
|
@ -28,12 +27,13 @@ use Dotclear\Helper\Html\Form\{
|
|||
};
|
||||
use Dotclear\Helper\Html\XmlTag;
|
||||
use Dotclear\Helper\Text;
|
||||
use Dotclear\Plugin\improve\AbstractTask;
|
||||
use Exception;
|
||||
|
||||
/**
|
||||
* Improve action module dcstore.xml
|
||||
*/
|
||||
class dcstore extends Action
|
||||
class dcstore extends AbstractTask
|
||||
{
|
||||
/** @var string Settings dcstore zip url pattern */
|
||||
private $pattern = '';
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Dotclear\Plugin\improve\Module;
|
||||
namespace Dotclear\Plugin\improve\Task;
|
||||
|
||||
use Dotclear\Helper\Html\Form\{
|
||||
Checkbox,
|
||||
|
@ -23,12 +23,12 @@ use Dotclear\Helper\Html\Form\{
|
|||
Note,
|
||||
Para
|
||||
};
|
||||
use Dotclear\Plugin\improve\Action;
|
||||
use Dotclear\Plugin\improve\AbstractTask;
|
||||
|
||||
/**
|
||||
* Improve action module end of file
|
||||
*/
|
||||
class endoffile extends Action
|
||||
class endoffile extends AbstractTask
|
||||
{
|
||||
protected function init(): bool
|
||||
{
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Dotclear\Plugin\improve\Module;
|
||||
namespace Dotclear\Plugin\improve\Task;
|
||||
|
||||
use dcCore;
|
||||
use Dotclear\Helper\Html\Form\{
|
||||
|
@ -25,12 +25,12 @@ use Dotclear\Helper\Html\Form\{
|
|||
Note,
|
||||
Para
|
||||
};
|
||||
use Dotclear\Plugin\improve\Action;
|
||||
use Dotclear\Plugin\improve\AbstractTask;
|
||||
|
||||
/**
|
||||
* Improve action module Github shields.io
|
||||
*/
|
||||
class gitshields extends Action
|
||||
class gitshields extends AbstractTask
|
||||
{
|
||||
/** @var string Username of git repo */
|
||||
private $username = '';
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Dotclear\Plugin\improve\Module;
|
||||
namespace Dotclear\Plugin\improve\Task;
|
||||
|
||||
use Dotclear\Helper\File\Files;
|
||||
use Dotclear\Helper\Html\Form\{
|
||||
|
@ -24,13 +24,13 @@ use Dotclear\Helper\Html\Form\{
|
|||
Para,
|
||||
Select
|
||||
};
|
||||
use Dotclear\Plugin\improve\Action;
|
||||
use Dotclear\Plugin\improve\AbstractTask;
|
||||
use Exception;
|
||||
|
||||
/**
|
||||
* Improve action module license file
|
||||
*/
|
||||
class licensefile extends Action
|
||||
class licensefile extends AbstractTask
|
||||
{
|
||||
/** @var array Possible license filenames */
|
||||
protected static $license_filenames = [
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Dotclear\Plugin\improve\Module;
|
||||
namespace Dotclear\Plugin\improve\Task;
|
||||
|
||||
use Dotclear\Helper\Html\Form\{
|
||||
Div,
|
||||
|
@ -24,14 +24,14 @@ use Dotclear\Helper\Html\Form\{
|
|||
Para
|
||||
};
|
||||
use Dotclear\Plugin\improve\{
|
||||
Action,
|
||||
AbstractTask,
|
||||
Core
|
||||
};
|
||||
|
||||
/**
|
||||
* Improve action module new line
|
||||
*/
|
||||
class newline extends Action
|
||||
class newline extends AbstractTask
|
||||
{
|
||||
protected function init(): bool
|
||||
{
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Dotclear\Plugin\improve\Module;
|
||||
namespace Dotclear\Plugin\improve\Task;
|
||||
|
||||
use dcCore;
|
||||
use dcPage;
|
||||
|
@ -29,7 +29,7 @@ use Dotclear\Helper\Html\Form\{
|
|||
};
|
||||
use Dotclear\Helper\Html\Html;
|
||||
use Dotclear\Plugin\improve\{
|
||||
Action,
|
||||
AbstractTask,
|
||||
My
|
||||
};
|
||||
use Exception;
|
||||
|
@ -37,7 +37,7 @@ use Exception;
|
|||
/**
|
||||
* Improve action module PHP CS Fixer
|
||||
*/
|
||||
class phpcsfixer extends Action
|
||||
class phpcsfixer extends AbstractTask
|
||||
{
|
||||
/** @var array<int,string> Type of runtime errors */
|
||||
protected static $errors = [
|
||||
|
@ -123,7 +123,7 @@ class phpcsfixer extends Action
|
|||
]),
|
||||
])->render() . (
|
||||
!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)
|
||||
);
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Dotclear\Plugin\improve\Module;
|
||||
namespace Dotclear\Plugin\improve\Task;
|
||||
|
||||
use dcCore;
|
||||
use Dotclear\Helper\Html\Form\{
|
||||
|
@ -27,13 +27,13 @@ use Dotclear\Helper\Html\Form\{
|
|||
Textarea
|
||||
};
|
||||
use Dotclear\Helper\Html\Html;
|
||||
use Dotclear\Plugin\improve\Action;
|
||||
use Dotclear\Plugin\improve\AbstractTask;
|
||||
use Exception;
|
||||
|
||||
/**
|
||||
* Improve action module php header
|
||||
*/
|
||||
class phpheader extends Action
|
||||
class phpheader extends AbstractTask
|
||||
{
|
||||
/** @var string Exemple of header */
|
||||
private static $exemple = <<<EOF
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Dotclear\Plugin\improve\Module;
|
||||
namespace Dotclear\Plugin\improve\Task;
|
||||
|
||||
use dcCore;
|
||||
use dcPage;
|
||||
|
@ -31,7 +31,7 @@ use Dotclear\Helper\Html\Form\{
|
|||
};
|
||||
use Dotclear\Helper\Html\Html;
|
||||
use Dotclear\Plugin\improve\{
|
||||
Action,
|
||||
AbstractTask,
|
||||
My
|
||||
};
|
||||
use Exception;
|
||||
|
@ -39,7 +39,7 @@ use Exception;
|
|||
/**
|
||||
* Improve action module PHPStan
|
||||
*/
|
||||
class phpstan extends Action
|
||||
class phpstan extends AbstractTask
|
||||
{
|
||||
/** @var boolean User pref to use colored synthax */
|
||||
protected static $user_ui_colorsyntax = false;
|
||||
|
@ -166,7 +166,7 @@ class phpstan extends Action
|
|||
]),
|
||||
])->render() . (
|
||||
!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)
|
||||
);
|
||||
}
|
||||
|
|
|
@ -12,15 +12,15 @@
|
|||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Dotclear\Plugin\improve\Module;
|
||||
namespace Dotclear\Plugin\improve\Task;
|
||||
|
||||
use Dotclear\Helper\L10n;
|
||||
use Dotclear\Plugin\improve\Action;
|
||||
use Dotclear\Plugin\improve\AbstractTask;
|
||||
|
||||
/**
|
||||
* Improve action module dcstore.xml
|
||||
*/
|
||||
class po2php extends Action
|
||||
class po2php extends AbstractTask
|
||||
{
|
||||
/** @var string License bloc */
|
||||
private $license = <<<EOF
|
||||
|
|
|
@ -12,14 +12,14 @@
|
|||
*/
|
||||
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
|
||||
*/
|
||||
class tab extends action
|
||||
class tab extends AbstractTask
|
||||
{
|
||||
protected function init(): bool
|
||||
{
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Dotclear\Plugin\improve\Module;
|
||||
namespace Dotclear\Plugin\improve\Task;
|
||||
|
||||
use dcCore;
|
||||
use Dotclear\Helper\File\{
|
||||
|
@ -29,12 +29,12 @@ use Dotclear\Helper\Html\Form\{
|
|||
Note,
|
||||
Para
|
||||
};
|
||||
use Dotclear\Plugin\improve\Action;
|
||||
use Dotclear\Plugin\improve\AbstractTask;
|
||||
|
||||
/**
|
||||
* Improve action module zip
|
||||
*/
|
||||
class zip extends Action
|
||||
class zip extends AbstractTask
|
||||
{
|
||||
/** @var array List of excluded file pattern */
|
||||
public static $exclude = [
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Dotclear\Plugin\improve\Module\zip;
|
||||
namespace Dotclear\Plugin\improve\Task\zip;
|
||||
|
||||
class Zip extends \Dotclear\Helper\File\Zip\Zip
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue