Update cs-fixer

This commit is contained in:
Arkadiusz Kondas committed 2017-04-04 21:09:46 +02:00
1 parent 21aecd1320
commit 3523017e02
5 files changed
+20 -8

No files matched your search

+1
View File
@@ -1,3 +1,4 @@
/vendor/
humbuglog.*
/bin/phpunit
.php_cs.cache
+17
View File
@@ -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);
-6
View File
@@ -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 -1
View File
@@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
namespace PhpmlExamples;
+1 -1
View File
@@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
namespace PhpmlExamples;