8000 Only explicitly format the database seeds and factories subfolders (#8) · matt-allan/laravel-code-style@f1bc743 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Feb 9, 2022. It is now read-only.

Commit f1bc743

Browse files
authored
Only explicitly format the database seeds and factories subfolders (#8)
The Symfony Finder component only allows excluding folders via relative paths, meaning we can only exclude the `database/migrations` folder if we exclude all folders named `migrations`. Instead we can skip including the entire `database` path and only include the known subfolders we want to format. See symfony/symfony#28158.
1 parent e016809 commit f1bc743

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config/.php_cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ return (new MattAllan\LaravelCodeStyle\Config())
88
PhpCsFixer\Finder::create()
99
->in(app_path())
1010
->in(config_path())
11-
->in(database_path())
12-
->notPath(database_path('migrations'))
11+
->in(database_path('factories'))
12+
->in(database_path('seeds'))
1313
->in(resource_path('lang'))
1414
->in(base_path('routes'))
1515
->in(base_path('tests'))

0 commit comments

Comments
 (0)
0