|
10 | 10 | * For the full copyright and license information, please view |
11 | 11 | * the LICENSE file that was distributed with this source code. |
12 | 12 | */ |
13 | | - |
| 13 | +use CodeIgniter\Cache\ResponseCache; |
| 14 | +use CodeIgniter\HTTP\CLIRequest; |
| 15 | +use CodeIgniter\HTTP\Header; |
| 16 | +use CodeIgniter\HTTP\IncomingRequest; |
| 17 | +use CodeIgniter\HTTP\ResponseInterface; |
| 18 | +use CodeIgniter\DataCaster\DataCaster; |
| 19 | +use CodeIgniter\Entity\Cast\CastInterface; |
| 20 | +use CodeIgniter\Entity\Exceptions\CastException; |
| 21 | +use CodeIgniter\DataConverter\DataConverter; |
| 22 | +use CodeIgniter\Entity\Entity; |
| 23 | +use CodeIgniter\Entity\Cast\URICast; |
| 24 | +use CodeIgniter\HTTP\URI; |
| 25 | +use CodeIgniter\Log\Handlers\ChromeLoggerHandler; |
| 26 | +use CodeIgniter\Security\CheckPhpIni; |
| 27 | +use CodeIgniter\View\Table; |
| 28 | +use CodeIgniter\Database\BaseResult; |
| 29 | +use CodeIgniter\View\Plugins; |
| 30 | +use CodeIgniter\HTTP\ResponseTrait; |
| 31 | +use CodeIgniter\Pager\PagerInterface; |
| 32 | +use CodeIgniter\HTTP\Response; |
| 33 | +use CodeIgniter\HTTP\RedirectResponse; |
| 34 | +use CodeIgniter\HTTP\DownloadResponse; |
| 35 | +use CodeIgniter\Validation\Validation; |
| 36 | +use CodeIgniter\View\RendererInterface; |
14 | 37 | use Boundwize\StructArmed\Architecture; |
15 | 38 | use Boundwize\StructArmed\Preset\Preset; |
16 | 39 | use Boundwize\StructArmed\Preset\Presets\Psr4Preset; |
|
87 | 110 | ]) |
88 | 111 | ->skipPathsForRuleset(['*test*']) |
89 | 112 |
|
90 | | - ->skipClassViolation('CodeIgniter\\Cache\\ResponseCache', [ |
91 | | - 'CodeIgniter\\HTTP\\CLIRequest', |
92 | | - 'CodeIgniter\\HTTP\\Header', |
93 | | - 'CodeIgniter\\HTTP\\IncomingRequest', |
94 | | - 'CodeIgniter\\HTTP\\ResponseInterface', |
| 113 | + ->skipClassViolation(ResponseCache::class, [ |
| 114 | + CLIRequest::class, |
| 115 | + Header::class, |
| 116 | + IncomingRequest::class, |
| 117 | + ResponseInterface::class, |
95 | 118 | ]) |
96 | | - ->skipClassViolation('CodeIgniter\\DataCaster\\DataCaster', [ |
97 | | - 'CodeIgniter\\Entity\\Cast\\CastInterface', |
98 | | - 'CodeIgniter\\Entity\\Exceptions\\CastException', |
| 119 | + ->skipClassViolation(DataCaster::class, [ |
| 120 | + CastInterface::class, |
| 121 | + CastException::class, |
99 | 122 | ]) |
100 | | - ->skipClassViolation('CodeIgniter\\DataCaster\\Exceptions\\CastException', [ |
101 | | - 'CodeIgniter\\Entity\\Exceptions\\CastException', |
| 123 | + ->skipClassViolation(\CodeIgniter\DataCaster\Exceptions\CastException::class, [ |
| 124 | + CastException::class, |
102 | 125 | ]) |
103 | | - ->skipClassViolation('CodeIgniter\\DataConverter\\DataConverter', [ |
104 | | - 'CodeIgniter\\Entity\\Entity', |
| 126 | + ->skipClassViolation(DataConverter::class, [ |
| 127 | + Entity::class, |
105 | 128 | ]) |
106 | | - ->skipClassViolation('CodeIgniter\\Entity\\Cast\\URICast', [ |
107 | | - 'CodeIgniter\\HTTP\\URI', |
| 129 | + ->skipClassViolation(URICast::class, [ |
| 130 | + URI::class, |
108 | 131 | ]) |
109 | | - ->skipClassViolation('CodeIgniter\\Log\\Handlers\\ChromeLoggerHandler', [ |
110 | | - 'CodeIgniter\\HTTP\\ResponseInterface', |
| 132 | + ->skipClassViolation(ChromeLoggerHandler::class, [ |
| 133 | + ResponseInterface::class, |
111 | 134 | ]) |
112 | | - ->skipClassViolation('CodeIgniter\\Security\\CheckPhpIni', [ |
113 | | - 'CodeIgniter\\View\\Table', |
| 135 | + ->skipClassViolation(CheckPhpIni::class, [ |
| 136 | + Table::class, |
114 | 137 | ]) |
115 | | - ->skipClassViolation('CodeIgniter\\View\\Table', [ |
116 | | - 'CodeIgniter\\Database\\BaseResult', |
| 138 | + ->skipClassViolation(Table::class, [ |
| 139 | + BaseResult::class, |
117 | 140 | ]) |
118 | | - ->skipClassViolation('CodeIgniter\\View\\Plugins', [ |
119 | | - 'CodeIgniter\\HTTP\\URI', |
| 141 | + ->skipClassViolation(Plugins::class, [ |
| 142 | + URI::class, |
120 | 143 | ]) |
121 | 144 |
|
122 | 145 | // BC changes that should be fixed |
123 | | - ->skipClassViolation('CodeIgniter\\HTTP\\ResponseTrait', ['CodeIgniter\\Pager\\PagerInterface']) |
124 | | - ->skipClassViolation('CodeIgniter\\HTTP\\ResponseInterface', ['CodeIgniter\\Pager\\PagerInterface']) |
125 | | - ->skipClassViolation('CodeIgniter\\HTTP\\Response', ['CodeIgniter\\Pager\\PagerInterface']) |
126 | | - ->skipClassViolation('CodeIgniter\\HTTP\\RedirectResponse', ['CodeIgniter\\Pager\\PagerInterface']) |
127 | | - ->skipClassViolation('CodeIgniter\\HTTP\\DownloadResponse', ['CodeIgniter\\Pager\\PagerInterface']) |
128 | | - ->skipClassViolation('CodeIgniter\\Validation\\Validation', ['CodeIgniter\\View\\RendererInterface']); |
| 146 | + ->skipClassViolation(ResponseTrait::class, [PagerInterface::class]) |
| 147 | + ->skipClassViolation(ResponseInterface::class, [PagerInterface::class]) |
| 148 | + ->skipClassViolation(Response::class, [PagerInterface::class]) |
| 149 | + ->skipClassViolation(RedirectResponse::class, [PagerInterface::class]) |
| 150 | + ->skipClassViolation(DownloadResponse::class, [PagerInterface::class]) |
| 151 | + ->skipClassViolation(Validation::class, [RendererInterface::class]); |
0 commit comments