Skip to content

Commit cde7e33

Browse files
authored
Merge pull request #1 from M6Web/feature/add-config-php70
Add config php70
2 parents f0c418f + 4592b34 commit cde7e33

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

src/Php70.php

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?php
2+
3+
namespace M6Web\CS\Config;
4+
5+
use PhpCsFixer\Config;
6+
7+
final class Php70 extends Config
8+
{
9+
public function __construct()
10+
{
11+
parent::__construct('M6Web (PHP 7.0)');
12+
13+
$this->setRiskyAllowed(true);
14+
}
15+
16+
public function getRules()
17+
{
18+
$rules = [
19+
'@Symfony' => true,
20+
'array_syntax' => [
21+
'syntax' => 'short',
22+
],
23+
'no_unreachable_default_argument_value' => false,
24+
'braces' => [
25+
'allow_single_line_closure' => true,
26+
],
27+
'heredoc_to_nowdoc' => false,
28+
'phpdoc_summary' => false,
29+
];
30+
31+
return $rules;
32+
}
33+
}

0 commit comments

Comments
 (0)