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

FriendsOfPHP / PHP-CS-Fixer / 15056
93%

Build:
DEFAULT BRANCH: master
Ran 08 May 2018 09:40PM UTC
Jobs 1
Files 349
Run time 23s
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
15056

push

travis-ci

keradus
feature #3585 Add ReturnAssignmentFixer (SpacePossum, keradus)

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

Discussion
----------

Add ReturnAssignmentFixer

```
$ php php-cs-fixer describe return_assignment
Description of return_assignment rule.
Non global, static or indirect referenced variables should not be assigned and directly returned by a function or method.

Fixing examples:
 * Example #1.
   ---------- begin diff ----------
   --- Original
   +++ New
   @@ -1,5 +1,4 @@
    <?php
    function a() {
   -    $a = 1;
   -    return $a;
   +    return 1;
    }

   ----------- end diff -----------
```

after almost 2 years;
https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/1853

Commits
-------

581ed46a Add ReturnAssignmentFixer

10502 of 12937 relevant lines covered (81.18%)

34.23 hits per line

Jobs
ID Job ID Ran Files Coverage
5 15056.5 (COLLECT_COVERAGE=1) 08 May 2018 09:32PM UTC 0
81.18
Travis Job 15056.5
Source Files on build 15056
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #15056
  • efeb00aa on github
  • Prev Build on master (#15053)
  • Next Build on master (#15060)
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