forked from acquia/http-hmac-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.php_cs.dist
More file actions
40 lines (36 loc) · 980 Bytes
/
.php_cs.dist
File metadata and controls
40 lines (36 loc) · 980 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
39
40
<?php
/**
* @file
* PHP-CS-Fixer configuration
*
*/
$finder = PhpCsFixer\Finder::create()
->in([
__DIR__ . '/src',
__DIR__ . '/test',
]);
$config = PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules([
'@PSR2' => true,
'array_indentation' => true,
'array_syntax' => [
'syntax' => 'short',
],
'concat_space' => [
'spacing' => 'one',
],
'method_chaining_indentation' => true,
'phpdoc_indent' => true,
'no_unused_imports' => true,
'no_blank_lines_after_class_opening' => true,
'no_blank_lines_after_phpdoc' => true,
'no_whitespace_before_comma_in_array' => true,
'no_whitespace_in_blank_line' => true,
'php_unit_namespaced' => true,
'psr4' => true,
'short_scalar_cast' => true,
'trailing_comma_in_multiline_array' => true,
])
->setFinder($finder);
return $config;