-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathrector.php
More file actions
46 lines (40 loc) · 1.35 KB
/
rector.php
File metadata and controls
46 lines (40 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
/*
* -- BEGIN LICENSE BLOCK ----------------------------------
*
* This file is part of eventHandler, a plugin for Dotclear 2.
*
* Copyright(c) 2014-2023 Nicolas Roudaire <nikrou77@gmail.com> https://www.nikrou.net
*
* Copyright (c) 2009-2013 Jean-Christian Denis and contributors
* contact@jcdenis.fr https://chez.jcdenis.fr/
*
* Licensed under the GPL version 2.0 license.
* A copy of this license is available in LICENSE file or at
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*
* -- END LICENSE BLOCK ------------------------------------
*/
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\Renaming\Rector\Name\RenameClassRector;
use Rector\Set\ValueObject\LevelSetList;
return static function (RectorConfig $rectorConfig): void {
$rectorConfig->paths([
__DIR__ . '/src',
__DIR__ . '/tpl',
]);
$rectorConfig->importNames();
$rectorConfig->sets([
LevelSetList::UP_TO_PHP_80,
LevelSetList::UP_TO_PHP_81,
]);
$rectorConfig->ruleWithConfiguration(RenameClassRector::class, [
'dcPage' => 'Dotclear\Core\Backend\Page',
'html' => 'Dotclear\Helper\Html\Html',
'dt' => 'Dotclear\Helper\Date',
'dcAuth' => 'Dotclear\Core\Auth',
'initPages' => 'Dotclear\Plugin\pages\Pages',
'dcBlog' => 'Dotclear\Core\Blog',
]);
};