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

PHPCSStandards / PHPCSUtils / 121 / 31

DEFAULT BRANCH: develop
Build:
LAST BUILD BRANCH: stable
Ran 22 Jan 2020 02:45PM UTC
Files 10
Run time 2s
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 - 14:29 coverage: 90.826%. First build
LINT=1 PHPCS_VERSION="dev-master" COVERALLS_VERSION="^1.0"

Pull #31

travis-ci-com

9181eb84f9c35729a3bad740fb7f9d93?size=18&default=identiconweb-flow
Util\ObjectDeclarations: add findExtendedInterfaceNames() method

Interfaces can extend more than one interface (in contrast to classes) and both the PHPCS native, as well as  the `Util\ObjectDeclarations` `findExtendedClassName()` method does not allow for that.
See: http://php.net/manual/en/language.oop5.interfaces.php#example-208

To allow for this from within the existing `findExtendedClassName()` method would change the function signature from `@return string|false` to `@return string|array|false`, thus breaking the API.

So, instead, a new `ObjectDeclarations::findExtendedInterfaceNames()` method has been added and it is now explicitly recommended in the documentation of the `findExtendedClassName()` method to use the new method when examining interface declarations.

Includes dedicated unit tests for the new method.

This commit supersedes upstream PR 2128.
Pull Request #31: Util\ObjectDeclarations: add findExtendedInterfaceNames() method

990 of 1090 relevant lines covered (90.83%)

13.08 hits per line

Source Files on job 121.31 (LINT=1 PHPCS_VERSION="dev-master" COVERALLS_VERSION="^1.0")
  • Tree
  • List 10
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 47
  • Travis Job 121.31
  • 46674d95 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