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

MyIntervals / PHP-CSS-Parser / 13442343631
69%

Build:
DEFAULT BRANCH: main
Ran 20 Feb 2025 06:39PM UTC
Jobs 1
Files 40
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

20 Feb 2025 06:39PM UTC coverage: 53.778% (+0.03%) from 53.749%
13442343631

push

github

web-flow
[CLEANUP] Don't store array length as a property (#954)

Since PHP 5, if not earlier, the length of an array is internally stored by PHP
and can be accessed in O(1) time.
Maintaining both the array and its length in class properties is error-prone
(particularly regarding possible future code changes).
When used in a loop, `\count($array)` is more repetitively expensive than
`$arrayLength`,
but the latter can be set up as a local variable as and when needed.

Reference:
https://stackoverflow.com/questions/5835241/is-phps-count-function-o1-or-on-for-arrays

Resolves #953.

0 of 7 new or added lines in 1 file covered. (0.0%)

1025 of 1906 relevant lines covered (53.78%)

11.98 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
7
0.0
0.0% src/Parsing/ParserState.php
Jobs
ID Job ID Ran Files Coverage
1 13442343631.1 20 Feb 2025 06:39PM UTC 40
53.78
GitHub Action Run
Source Files on build 13442343631
  • Tree
  • List 40
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #13442343631
  • 981464cf on github
  • Prev Build on main (#13442290092)
  • Next Build on main (#13445696050)
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

© 2025 Coveralls, Inc