Skip to content

Commit dc6d5e3

Browse files
author
dmitriy
committed
updated readme.md and phpcs
1 parent e1cb02c commit dc6d5e3

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

.php_cs.dist

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,32 @@
11
<?php
22

3+
// https://mlocati.github.io/php-cs-fixer-configurator/
34
return PhpCsFixer\Config::create()
45
->setRules([
56
'@Symfony' => true,
67
'array_syntax' => ['syntax' => 'short'],
8+
'increment_style' => ['style' => 'post'],
9+
'yoda_style' => ['equal' => false, 'identical' => false, 'less_and_greater' => false],
10+
'concat_space' => ['spacing' => 'one'],
11+
'cast_spaces' => ['space' => 'none'],
12+
'ordered_imports' => ['imports_order' => ['class', 'function', 'const']],
13+
'no_superfluous_phpdoc_tags' => ['remove_inheritdoc' => false, 'allow_mixed' => true, 'allow_unused_params' => true],
14+
'declare_equal_normalize' => ['space' => 'single'],
15+
'blank_line_before_statement' => ['statements' => ['continue', 'declare', 'return', 'throw', 'try']],
16+
'single_blank_line_before_namespace' => true,
17+
'blank_line_after_namespace' => true,
18+
19+
// skip list (see ecs.php)
20+
'no_multiline_whitespace_around_double_arrow' => false,
21+
'phpdoc_no_package' => false,
22+
'phpdoc_summary' => false,
23+
'phpdoc_separation' => false,
24+
'blank_line_after_opening_tag' => false,
25+
'class_attributes_separation' => false,
26+
'no_blank_lines_before_namespace' => false,
27+
'not_operator_with_successor_space' => false,
28+
'single_line_throw' => false,
29+
'blank_line_after_strict_types' => false,
30+
731
])
832
;

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ Notes: Please see more commands in Makefile
273273
* [symfony-console-form](https://packagist.org/packages/matthiasnoback/symfony-console-form)
274274
* [api-doc-bundle](https://packagist.org/packages/nelmio/api-doc-bundle)
275275
* [cors-bundle](https://packagist.org/packages/nelmio/cors-bundle)
276-
* [device-detector](https://packagist.org/packages/piwik/device-detector)
276+
* [device-detector](https://packagist.org/packages/matomo/device-detector)
277277
* [uuid-doctrine](https://packagist.org/packages/ramsey/uuid-doctrine)
278278
* [doctrine-extensions-bundle](https://packagist.org/packages/stof/doctrine-extensions-bundle)
279279
* [php-coveralls](https://github.com/php-coveralls/php-coveralls)

0 commit comments

Comments
 (0)