-
Notifications
You must be signed in to change notification settings - Fork 379
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Addition of php-cs-fixer and bridge, updated style rules, travis tweaks.
- Added "friendsofphp/php-cs-fixer:~2.0" development dep. - Added "sllh/php-cs-fixer-styleci-bridge:~2.1" development dep to enable php-cs-fixer configuration directly from .styleci.yml config file. - Updated "styleci.yml" file rule additions (on top of symfony preset): - combine_consecutive_unsets - linebreak_after_opening_tag - no_short_echo_tag - ordered_imports - phpdoc_order - php_unit_construct - php_unit_dedicate_assert - long_array_syntax - Added "sort-packages" to "config" key in "composer.json" - Updated "suggest" key descriptions in "composer.json" for clarity. - Added travis fix for Symfony 2.3 travis fix fixed travis typo fix
- Loading branch information
1 parent
e573cc0
commit ef0c92f
Showing
4 changed files
with
77 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the `liip/LiipImagineBundle` project. | ||
* | ||
* (c) https://github.com/liip/LiipImagineBundle/graphs/contributors | ||
* | ||
* For the full copyright and license information, please view the LICENSE.md | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
use SLLH\StyleCIBridge\ConfigBridge; | ||
|
||
require_once __DIR__.'/vendor/autoload.php'; | ||
|
||
$headerString = <<<EOF | ||
This file is part of the `liip/LiipImagineBundle` project. | ||
(c) https://github.com/liip/LiipImagineBundle/graphs/contributors | ||
For the full copyright and license information, please view the LICENSE.md | ||
file that was distributed with this source code. | ||
EOF; | ||
|
||
$headerConfig = [ 'header_comment' => [ ] ]; | ||
|
||
$config = ConfigBridge::create(); | ||
$config->setRules(array_merge($config->getRules(), $headerConfig)); | ||
|
||
return $config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,20 @@ | ||
preset: symfony | ||
--- | ||
|
||
preset: symfony | ||
|
||
enabled: | ||
- combine_consecutive_unsets | ||
- linebreak_after_opening_tag | ||
- no_short_echo_tag | ||
- ordered_imports | ||
- phpdoc_order | ||
- php_unit_construct | ||
- php_unit_dedicate_assert | ||
- long_array_syntax | ||
|
||
finder : | ||
name : [ "*.php", "*.twig" ] | ||
exclude : [ "vendor", "var" ] | ||
path : [ "./" ] | ||
|
||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters