Coveralls logob
Coveralls logo
  • Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

PHPCSStandards / PHPCSUtils / 133 / 30

DEFAULT BRANCH: develop
Build:
LAST BUILD BRANCH: stable
Ran 22 Jan 2020 08:58AM PST
Files 11
Run time 2min
Badge
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

22 Jan 2020 - 8:31 coverage: 93.879%. First build
PHPCS_VERSION="2.9.2" COVERALLS_VERSION="^2.0"

Pull #34

travis-ci-com

9181eb84f9c35729a3bad740fb7f9d93?size=18&default=identiconweb-flow
FunctionDeclarations::getParameters(): code simplification and efficiency fix

Once the equal sign has been found, we know that everything else until the end of the parameter is part of the default value.

So instead of looping through each token individually after the equal sign, go straight to the end of the parameter.

This allows for greatly simplifying the code within various `case`s in the `switch` as well as for merging a lot of the `case`s together.
Pull Request #34: FunctionDeclarations::getParameters(): various improvements

1043 of 1111 relevant lines covered (93.88%)

14.19 hits per line

Source Files on job 133.30 (PHPCS_VERSION="2.9.2" COVERALLS_VERSION="^2.0")
  • Tree
  • List 11
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 51
  • Travis Job 133.30
  • b5c77808 on github
Troubleshooting · Open an Issue · Sales · Support · ENTERPRISE · CAREERS · STATUS
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2023 Coveralls, Inc