Skip to content
This repository was archived by the owner on Mar 1, 2023. It is now read-only.

Commit e9c2164

Browse files
committed
Develop (#5)
* Disabled fixers have been renamed * fabpot/php-cs-fixer renamed to friendsofphp/php-cs-fixer | fixes #4 * remove * add composer look
1 parent d44d454 commit e9c2164

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
[![Coverage Status](https://img.shields.io/scrutinizer/coverage/g/narrowspark/php-cs-fixer-config.svg?style=flat-square)](https://scrutinizer-ci.com/g/narrowspark/php-cs-fixer-config/code-structure)
1111
[![Quality Score](https://img.shields.io/scrutinizer/g/narrowspark/php-cs-fixer-config.svg?style=flat-square)](https://scrutinizer-ci.com/g/narrowspark/php-cs-fixer-config)
1212

13-
This repository provides a configuration for [`fabpot/php-cs-fixer`](http://github.com/FriendsOfPHP/PHP-CS-Fixer), which
13+
This repository provides a configuration for [`friendsofphp/php-cs-fixer`](http://github.com/FriendsOfPHP/PHP-CS-Fixer), which
1414
we use to verify and enforce a single coding standard for PHP code within Narrowspark.
1515

1616
## Install

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name" : "narrowspark/php-cs-fixer-config",
3-
"description": "Provides a configuration for fabpot/php-cs-fixer, used within Narrowspark.",
3+
"description": "Provides a configuration for friendsofphp/php-cs-fixer, used within Narrowspark.",
44
"type" : "library",
55
"keywords" : [
66
"narrowspark",
@@ -25,7 +25,7 @@
2525
],
2626
"require": {
2727
"php" : "^5.6 || ^7.0",
28-
"fabpot/php-cs-fixer" : "2.0.0-alpha"
28+
"friendsofphp/php-cs-fixer" : "2.0.0-alpha"
2929
},
3030
"require-dev": {
3131
"phpunit/phpunit" : "^5.3"

composer.lock

+8-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Config.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,12 @@ protected function getContribRules()
7575
'linebreak_after_opening_tag' => true,
7676
'long_array_syntax' => false,
7777
'modernize_types_casting' => false,
78-
'no_multiline_whitespaces_before_semicolon' => false,
78+
'no_multiline_whitespace_before_semicolons' => false,
7979
'no_php4_constructor' => false,
8080
'no_short_echo_tag' => true,
8181
'no_useless_else' => true,
8282
'no_useless_return' => true,
83-
'not_operators_with_space' => false,
83+
'not_operator_with_space' => false,
8484
'not_operator_with_successor_space' => true,
8585
'ordered_class_elements' => true,
8686
'ordered_imports' => true,

tests/ConfigTest.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,9 @@ public function providerDoesNotHaveFixerEnabled()
115115
'header_comment' => 'it is not enabled by default',
116116
'long_array_syntax' => 'it conflicts with short_array_syntax (which is enabled)',
117117
'modernize_types_casting' => 'it is a risky fixer',
118-
'no_multiline_whitespaces_before_semicolon' => 'we have not decided to use this one (yet)',
118+
'no_multiline_whitespace_before_semicolons' => 'we have not decided to use this one (yet)',
119119
'no_php4_constructor' => 'it changes behaviour',
120-
'not_operators_with_space' => 'we do not need leading and trailing whitespace before !',
120+
'not_operator_with_space' => 'we do not need leading and trailing whitespace before !',
121121
'phpdoc_property' => 'we have not decided to use this one (yet)',
122122
'phpdoc_var_to_type' => 'it conflicts with phpdoc_type_to_var (which is enabled)',
123123
'php_unit_construct' => 'it changes behaviour',
@@ -242,12 +242,12 @@ protected function getContribRules()
242242
'linebreak_after_opening_tag' => true,
243243
'long_array_syntax' => false,
244244
'modernize_types_casting' => false,
245-
'no_multiline_whitespaces_before_semicolon' => false,
245+
'no_multiline_whitespace_before_semicolons' => false,
246246
'no_php4_constructor' => false,
247247
'no_short_echo_tag' => true,
248248
'no_useless_else' => true,
249249
'no_useless_return' => true,
250-
'not_operators_with_space' => false,
250+
'not_operator_with_space' => false,
251251
'not_operator_with_successor_space' => true,
252252
'ordered_class_elements' => true,
253253
'ordered_imports' => true,

0 commit comments

Comments
 (0)