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

FriendsOfPHP / PHP-CS-Fixer / 21892
93%

Build:
DEFAULT BRANCH: master
Ran 22 Oct 2020 09:47AM UTC
Jobs 1
Files 424
Run time 1min
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
21892

push

travis-ci

SpacePossum
feature #4435 SingleSpaceAfterConstructFixer - Introduction (localheinz)

This PR was merged into the 2.17-dev branch.

Discussion
----------

SingleSpaceAfterConstructFixer - Introduction

This PR

* [x] introduces a `SingleSpaceAfterConstructFixer`
* [x] adds the `single_space_after_construct` fixer to the `@PhpCsFixer` rule set

Fixes #3981.

💁‍♂ Not sure about this one, there are a quite a bunch of fixers which are dealing with spaces themselves, what do you think?

### Handles

* [x] `abstract`
* [x] `as`
* [x] `break`
* [x] `case`
* [x] `catch`
* [x] `class` (when declaring classes)
* [x] `clone`
* [x] `const`
* [x] `const_import`
* [x] `continue`
* [x] `do`
* [x] `echo`
* [x] `else`
* [x] `elseif`
* [x] `extends`
* [x] `final`
* [x] `finally`
* [x] `for`
* [x] `foreach`
* [x] `function`
* [x] `function_import`
* [x] `global`
* [x] `goto`
* [x] `if`
* [x] `implements`
* [x] `include`
* [x] `include_once`
* [x] `instanceof`
* [x] `insteadof`
* [x] `interface`
* [x] `new`
* [x] `php_open`
* [x] `open_tag_with_echo`
* [x] `print`
* [x] `private`
* [x] `protected`
* [x] `public`
* [x] `require`
* [x] `require_once`
* [x] `return`
* [x] `static` (when referring to variables, fields, functions, methods)
* [x] `switch`
* [x] `throw`
* [x] `trait`
* [x] `try`
* [x] `use`
* [x] `use_lambda`
* [x] `use_trait`
* [x] `var`
* [x] `while`
* [x] `yield`
* [x] `yield from`

## What about these?

* [ ] parameter type declaration
* [ ] property type declaration

## Wait until PHP 8 has been released and we started supporting it

* [ ] `match`

Commits
-------

761861a2a Enhancement: Add SingleSpaceAfterConstructFixer

17073 of 18511 relevant lines covered (92.23%)

36.04 hits per line

Jobs
ID Job ID Ran Files Coverage
7 21892.7 (DEFAULT_COMPOSER_FLAGS="--optimize-autoloader --no-interaction --no-progress" COMPOSER_FLAGS="") 22 Oct 2020 09:39AM UTC 0
92.23
Travis Job 21892.7
Source Files on build 21892
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #21892
  • 30efbdc4 on github
  • Prev Build on master (#21891)
  • Next Build on master (#21911)
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