• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

keradus / PHP-CS-Fixer / 1253 / 7
94%
1.11: 82%

Build:
Build:
LAST BUILD BRANCH: master
DEFAULT BRANCH: 1.11
Ran 17 Jan 2016 11:36PM UTC
Files 167
Run time 5s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

17 Jan 2016 11:19PM UTC coverage: 92.416% (+0.03%) from 92.388%
SYMFONY_VERSION="~2.8"

push

travis-ci

keradus
minor #1674 Config - add addCustomFixers method (PedroTroller)

This PR was merged into the 2.0-dev branch.

Discussion
----------

Config - add addCustomFixers method

Good morning.

So, here is the use case.
Imagine I have a HUGE set of custom fixers, and I wan't to provide this set as a plugin to PHP-CS-FIXER, then the customer have to add all my fixers one by one by calling the `addCustomFixer`.

Now, I can provider one (or more) fixers suite

ex:
```php
class MyCustomSuite extends AbstractFixerSuite
{
    public function getFixers()
    {
        return array(
            new MyCustumFixer1(),
            new MyCustumFixer2(),
            new MyCustumFixer3(),
            new MyCustumFixer4(),
            new MyCustumFixer5(),
            new MyCustumFixer6(),
        );
    }
}
```

```php
<?php

$finder = Symfony\CS\Finder\DefaultFinder::create()
    ->in('src/')
;

return Symfony\CS\Config\Config::create()
    ->setUsingCache(true)
    ->level(Symfony\CS\FixerInterface::SYMFONY_LEVEL)
    ->fixers([
        '..',
        'custum-1',
        'custum-2',
        'custum-3',
        'custum-4',
        'custum-5',
        'custum-6',
    ])
    ->addCustomFixers(new Project\CS\MyCustomSuite())
    ->finder($finder)
;
```

Commits
-------

3166d24 Implements Fixers suite system

4594 of 4971 relevant lines covered (92.42%)

171.75 hits per line

Source Files on job 1253.7 (SYMFONY_VERSION="~2.8")
  • Tree
  • List 0
  • Changed 3
  • Source Changed 2
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1253
  • Travis Job 1253.7
  • fce03078 on github
  • Prev Job for SYMFONY_VERSION="~2.8" on master (#1241.7)
  • Next Job for SYMFONY_VERSION="~2.8" on master (#1262.7)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc