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

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

Build:
Build:
LAST BUILD BRANCH: master
DEFAULT BRANCH: 1.11
Ran 17 Jan 2016 11:28PM UTC
Jobs 7
Files 167
Run time 12min
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

pending completion
1253

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

5698 of 6282 relevant lines covered (90.7%)

899.6 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1253.1 (COMPOSER_FLAGS="--prefer-stable --prefer-lowest") 17 Jan 2016 11:25PM UTC 0
88.93
Travis Job 1253.1
2 1253.2 17 Jan 2016 11:25PM UTC 0
92.42
Travis Job 1253.2
3 1253.3 17 Jan 2016 11:26PM UTC 0
84.79
Travis Job 1253.3
4 1253.4 17 Jan 2016 11:28PM UTC 0
89.84
Travis Job 1253.4
5 1253.5 17 Jan 2016 11:28PM UTC 0
89.94
Travis Job 1253.5
6 1253.6 17 Jan 2016 11:30PM UTC 0
90.11
Travis Job 1253.6
7 1253.7 (SYMFONY_VERSION="~2.8") 17 Jan 2016 11:31PM UTC 0
92.42
Travis Job 1253.7
Source Files on build 1253
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1253
  • fce03078 on github
  • Prev Build on master (#1241)
  • Next Build on master (#1262)
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