Skip to content

Commit

Permalink
Enable global_namespace_import rule (#1)
Browse files Browse the repository at this point in the history
See https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/2.19/doc/rules/import/global_namespace_import.rst
See codeigniter4/CodeIgniter4#5250

* config: change global_namespace_import to true
* Use explicit options
* Fix CS
  • Loading branch information
kenjis authored Oct 31, 2021
1 parent 38b2f8c commit 7557e0b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/CodeIgniter4.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,11 @@ public function __construct()
'fix_inline' => true,
'replacements' => ['inheritDocs' => 'inheritDoc'],
],
'global_namespace_import' => false,
'global_namespace_import' => [
'import_constants' => false,
'import_functions' => false,
'import_classes' => true,
],
'group_import' => false,
'header_comment' => false, // false by default
'heredoc_indentation' => ['indentation' => 'start_plus_one'],
Expand Down

0 comments on commit 7557e0b

Please sign in to comment.