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

FriendsOfPHP / PHP-CS-Fixer / 20613 / 7
93%
master: 93%

Build:
DEFAULT BRANCH: master
Ran 06 Apr 2020 08:46AM UTC
Files 407
Run time 37s
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

06 Apr 2020 08:28AM UTC coverage: 82.414% (+0.04%) from 82.378%
DEFAULT_COMPOSER_FLAGS="--optimize-autoloader --no-interaction --no-progress" COMPOSER_FLAGS=""

push

travis-ci

SpacePossum
feature #4790 ArrayPushFixer - introduction (SpacePossum)

This PR was merged into the 2.17-dev branch.

Discussion
----------

ArrayPushFixer - introduction

```
possum@aquarium:/home/possum/work/PHP-CS-Fixer$ php php-cs-fixer describe array_push
Description of array_push rule.
Converts simple usages of ``array_push($x, $y);`` to ``$x[] = $y;``.

Fixer applying this rule is risky.
Risky when the function `array_push` is overridden.

Fixing examples:
 * Example #1.
```
```diff
--- Original
+++ New
@@ -1,2 +1,2 @@
 <?php
-array_push($x, $y);
+$x[] = $y;
```

closes https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/3483

Commits
-------

4400ea5d ArrayPushFixer - introduction

14729 of 17872 relevant lines covered (82.41%)

34.02 hits per line

Source Files on job 20613.7 (DEFAULT_COMPOSER_FLAGS="--optimize-autoloader --no-interaction --no-progress" COMPOSER_FLAGS="")
  • Tree
  • List 0
  • Changed 2
  • Source Changed 2
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 15938
  • Travis Job 20613.7
  • 8919b003 on github
  • Prev Job for DEFAULT_COMPOSER_FLAGS="--optimize-autoloader --no-interaction --no-progress" COMPOSER_FLAGS="" on master (#20612.7)
  • Next Job for DEFAULT_COMPOSER_FLAGS="--optimize-autoloader --no-interaction --no-progress" COMPOSER_FLAGS="" on master (#20617.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