Update cs-fixer
This commit is contained in:
1 parent
21aecd1320
commit
3523017e02
5 files changed
+20
-8
No files matched your search
@@ -1,3 +1,4 @@
|
||||
/vendor/
|
||||
humbuglog.*
|
||||
/bin/phpunit
|
||||
.php_cs.cache
|
||||
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
return PhpCsFixer\Config::create()
|
||||
->setRules([
|
||||
'@PSR2' => true,
|
||||
'declare_strict_types' => true,
|
||||
'array_syntax' => ['syntax' => 'short'],
|
||||
'blank_line_after_opening_tag' => true,
|
||||
'single_blank_line_before_namespace' => true,
|
||||
'no_unused_imports' => true
|
||||
])
|
||||
->setFinder(
|
||||
PhpCsFixer\Finder::create()
|
||||
->in(__DIR__ . '/classification')
|
||||
->in(__DIR__ . '/regression')
|
||||
)->setRiskyAllowed(true)
|
||||
->setUsingCache(false);
|
||||
@@ -1,6 +0,0 @@
|
||||
#!/bin/bash
|
||||
echo "Fixing src/ folder"
|
||||
php-cs-fixer fix classification/ --level=symfony
|
||||
|
||||
echo "Fixing tests/ folder"
|
||||
php-cs-fixer fix regression/ --level=symfony
|
||||
@@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php declare(strict_types=1);
|
||||
|
||||
namespace PhpmlExamples;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php declare(strict_types=1);
|
||||
|
||||
namespace PhpmlExamples;
|
||||
|
||||
|
||||
Reference in new issue
Block a user