Set ordering rules

This commit is contained in:
John Paul E. Balandan, CPA 2021-07-07 22:17:18 +08:00
parent cc20a0b21d
commit 9224fb398d
No known key found for this signature in database
GPG Key ID: FB7B51499BC27610
2 changed files with 5 additions and 2 deletions

View File

@ -17,9 +17,9 @@ use CodeIgniter\HTTP\IncomingRequest;
use CodeIgniter\HTTP\Response;
use Config\Exceptions as ExceptionsConfig;
use Config\Paths;
use function error_reporting;
use ErrorException;
use Throwable;
use function error_reporting;
/**
* Exceptions manager

View File

@ -244,10 +244,13 @@ final class CodeIgniter4 extends AbstractRuleset
'not_operator_with_successor_space' => true,
'object_operator_without_whitespace' => true,
'operator_linebreak' => ['only_booleans' => true, 'position' => 'beginning'],
'ordered_class_elements' => false,
'ordered_imports' => [
'imports_order' => null,
'sort_algorithm' => 'alpha',
'imports_order' => ['class', 'function', 'const'],
],
'ordered_interfaces' => false,
'ordered_traits' => false,
'php_unit_construct' => [
'assertions' => [
'assertSame',