-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php-cs-fixer.php
32 lines (29 loc) · 932 Bytes
/
.php-cs-fixer.php
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
<?php
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
$config = new Config();
return $config
->setRules([
'@PSR2' => true,
'@Symfony' => true,
'no_unused_imports' => true, // Entfernt unbenutzte Importe
'global_namespace_import' => [
'import_classes' => false, // Verhindert Import von globalen Klassen
'import_functions' => false, // Verhindert Import von globalen Funktionen
'import_constants' => false, // Verhindert Import von globalen Konstanten
],
])
->setFinder(
Finder::create()
->in([
__DIR__.'/app',
__DIR__.'/config',
__DIR__.'/database',
__DIR__.'/resources',
__DIR__.'/routes',
])
->name('*.php')
->notName('*.blade.php')
->ignoreDotFiles(true)
->ignoreVCS(true)
);