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

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

Build:
Build:
LAST BUILD BRANCH: master
DEFAULT BRANCH: 1.11
Ran 08 Dec 2017 03:05PM UTC
Jobs 1
Files 311
Run time 12s
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
3353

push

travis-ci

keradus
feature #3098 MethodSeparationFixer - add class elements separation options (SpacePossum, keradus)

This PR was squashed before being merged into the 2.9-dev branch (closes #3098).

Discussion
----------

MethodSeparationFixer - add class elements separation options

This PR adds options to the `MethodSeparationFixer`. New options are; `const` and `property` and `method` is the default.
The separation of this elements is the same as the methods are currently done with one exception;

```php
class Sample
{
    private $a; // this comment is allowed here

    private function doSomething() {
         //
    }  // this comment is still not allowed and moved down
}

```

Minor change is the fixer now allows comments after a method in an interface
Sample:

```php
interface SomeThing
{
    public function doSomething(); // this comment is now allowed
}
```

* There might be a BC break in the TokensAnalyzer, not sure.
* ~We might want to rename the MethodSeparationFixer in 3.0.~

closes https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/2219 (cc @localheinz)

Commits
-------

6ea1c4c5 MethodSeparationFixer - add class elements separation options

8783 of 11306 relevant lines covered (77.68%)

35.59 hits per line

Jobs
ID Job ID Ran Files Coverage
5 3353.5 (COLLECT_COVERAGE=1) 08 Dec 2017 02:54PM UTC 0
77.68
Travis Job 3353.5
Source Files on build 3353
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3353
  • a303a71b on github
  • Prev Build on master (#3347)
  • Next Build on master (#3354)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc