File tree Expand file tree Collapse file tree 4 files changed +489
-1
lines changed Expand file tree Collapse file tree 4 files changed +489
-1
lines changed Original file line number Diff line number Diff line change
1
+ .php_cs.cache
1
2
dump.sql
2
3
nginx.conf
3
4
/node_modules
Original file line number Diff line number Diff line change
1
+
2
+ <?php
3
+
4
+ $finder = Symfony\Component\Finder\Finder::create()
5
+ ->notPath('vendor')
6
+ ->notPath('bootstrap')
7
+ ->notPath('storage')
8
+ ->in(__DIR__)
9
+ ->name('*.php')
10
+ ->notName('*.blade.php');
11
+
12
+ return PhpCsFixer\Config::create()
13
+ ->setRules([
14
+ '@PSR2' => true,
15
+ 'array_syntax' => ['syntax' => 'short'],
16
+ 'ordered_imports' => ['sortAlgorithm' => 'alpha'],
17
+ 'no_unused_imports' => true,
18
+ ])
19
+ ->setFinder($finder);
Original file line number Diff line number Diff line change 21
21
"beyondcode/laravel-dump-server" : " ^1.0" ,
22
22
"codedungeon/phpunit-result-printer" : " ^0.26.1" ,
23
23
"filp/whoops" : " ^2.0" ,
24
+ "friendsofphp/php-cs-fixer" : " ^2.14" ,
24
25
"mockery/mockery" : " ^1.0" ,
25
26
"nunomaduro/collision" : " ^3.0" ,
26
27
"phpunit/phpunit" : " ^7.5"
48
49
}
49
50
},
50
51
"scripts" : {
52
+ "format" : [
53
+ " vendor/bin/php-cs-fixer fix ."
54
+ ],
51
55
"post-root-package-install" : [
52
56
" @php -r \" file_exists('.env') || copy('.env.example', '.env');\" "
53
57
],
You can’t perform that action at this time.
0 commit comments