-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy path.php-cs-fixer.php
More file actions
38 lines (33 loc) · 936 Bytes
/
.php-cs-fixer.php
File metadata and controls
38 lines (33 loc) · 936 Bytes
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
33
34
35
36
37
38
<?php declare(strict_types=1);
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
$finder = Finder::create()->in(__DIR__)
->name('*.php')
->notName('*.blade.php')
->notPath('storage/framework/views')
->notPath('public');
$config = new Config();
$config->setFinder($finder);
$config->setRiskyAllowed(true);
return $config->setRules([
'@PSR12' => true,
'native_function_invocation' => [
'include' => ['@all'],
'scope' => 'all',
'strict' => false
],
'native_constant_invocation' => [
'include' => ['@all'],
'scope' => 'all',
'strict' => false
],
'global_namespace_import' => [
'import_classes' => true,
'import_constants' => true,
'import_functions' => true
],
'declare_strict_types' => true,
'linebreak_after_opening_tag' => false,
'blank_line_after_opening_tag' => false,
'no_unused_imports' => true,
]);