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

PHPCSStandards / PHP_CodeSniffer
79%

Build:
DEFAULT BRANCH: master
Repo Added 09 Dec 2023 02:40AM CUT
Files 265
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

LAST BUILD ON BRANCH master
branch: master
CHANGE BRANCH
x
Reset
  • master
  • 3.10.0
  • 3.10.1
  • 3.10.2
  • 3.10.3
  • 3.11.0
  • 3.11.1
  • 3.11.2
  • 3.11.3
  • 3.12.0
  • 3.12.1
  • 3.12.2
  • 3.13.0
  • 3.13.1
  • 3.13.2
  • 3.8.1
  • 3.9.0
  • 3.9.1
  • 3.9.2
  • 4.0
  • 4.0.0-RC1
  • 4.0.0-beta1
  • 4.0.0beta1
  • 4.x
  • 806-phpcs-no-violation-exist-message
  • DocXMLPEARClassesClassDeclaration
  • DocXMLSquizClassesClassDeclaration
  • DocXMLSquizClassesClassFileName
  • DocXMLSquizClassesValidClassName
  • GH-1083
  • TEMP/21836123
  • another-fix-to-default-keyword-tests
  • asymmetric-visibility-tokens
  • bugfix/1112-check-waitpid-result
  • bugfix/issue-767
  • bugfix/issue-767-action
  • dependabot/github_actions/actions/attest-build-provenance-2
  • display-test-markers-in-error-messages
  • docs/Squiz.Commenting.BlockComment
  • documentation-function-call-argument-spacing-fix
  • documentation-function-opening-brace-space
  • documentation-language-construct-spacing
  • documentation-namespace-declaration
  • documentation-opening-function-brace-bsd-allman
  • documentation-opening-function-brace-kernighan-ritchie
  • documentation-self-member-reference
  • documentation-side-effects
  • documentation-switch-declaration
  • documentation-useless-overriding-method-minor-fix
  • feature/1021-token-property-use-follow-up
  • feature/1094-ghactions-trigger-publish-xsd-files-via-stable-url
  • feature/188-deprecate-all-sniffs-removed-in-4.0
  • feature/32-automate-release-process
  • feature/632-follow-up-tokenizer-dnf-extra-tests
  • feature/689-ruleset-hard-deprecate-sniffs-breaking-naming-conventions
  • feature/693-sq1665-ruleset-deprecate-use-of-old-array-format
  • feature/694-2-ruleset-ignore-broken-sniffs
  • feature/694-3-ruleset-deprecate-sniffs-not-implementing-interface
  • feature/740-ruleset-show-deprecation-sniffs-scanning-js-css-files
  • feature/773-safeguard-against-duplicate-test-markers
  • feature/799-ruleset-remove-support-for-standard-internal
  • feature/945-squiz-functionspacing-bug-fix-double-docblock
  • feature/966-generic-scopeindent-remove-phpcs-in-tests
  • feature/backfillfn-test-minor-tweak
  • feature/backfillfntest-tweak
  • feature/bitwiseortest-fix-up-some-descriptions
  • feature/build-phar-minor-readability-tweak
  • feature/changelog-3.11.2
  • feature/changelog-3.11.3
  • feature/changelog-3.12.0
  • feature/changelog-3.12.1
  • feature/changelog-3.12.2
  • feature/changelog-3.13.0
  • feature/changelog-3.13.1
  • feature/changelog-3.13.2
  • feature/changelog-4.0.0rc1
  • feature/config-add-tests-for-extensions
  • feature/config-bug-report-file-vs-phpcbf
  • feature/contributing-more-info-about-writing-testst
  • feature/createtokenmap-bugfix-fn-functionname
  • feature/cs-minor-fixes
  • feature/docs-various-fixes
  • feature/errorsuppressiontest-minor-fix
  • feature/escapeshellcmd-test-fix-data-provider
  • feature/file-getdeclarationname-hardening-against-parse-errors
  • feature/file-getmethodparameters-add-extra-test
  • feature/fix-coverage-runs
  • feature/fixer-bugfix-incorrect-return-value
  • feature/fixer-conflict/PSR12/Squiz.Functions.FunctionDeclarationArgumentSpacing
  • feature/generator-html-various-simplifications
  • feature/generators-add-tests-for-invalid-docs
  • feature/generators-dont-print-stnd-when-empty
  • feature/generators-dont-print-title-if-no-docs
  • feature/generators-fall-back-to-filename
  • feature/generators-html-improve-semantics
  • feature/generators-improve-anchor-links
  • feature/generators-no-empty-code-comparisons
  • feature/generators-refactor-logic
  • feature/generators-remove-duplicate-code
  • feature/generators-show-deprecation-for-methods
  • feature/generators-text-various-simplifications
  • feature/generatortest-stabilize
  • feature/generic-constructorname-more-defensive-coding
  • feature/generic-deprecatedfunctions-minor-test-improvement
  • feature/generic-disallowshortopentag-dont-act-on-parse-error
  • feature/generic-forbiddenfunctions-improve-comment-tolerance
  • feature/generic-languageconstructspacing-add-extra-test
  • feature/generic-languageconstructspacing-include-goto
  • feature/generic-lower-uppercaseconstants-support-dnf-types
  • feature/generic-lower-uppercaseconstants-support-php84-final-props
  • feature/generic-lower-uppercaseconstants-test-cleanup
  • feature/generic-scopeindent-debug-start-on-new-line
  • feature/generic-scopeindent-prevent-undefined-index-notice-debug-mode
  • feature/generic-scopeindenttest-type-tweak
  • feature/generic-unnecessaryheredoc-bug-fix-x2
  • feature/getsniffcodetest-add-more-tests
  • feature/ghactions-auto-remove-awaiting-feedback
  • feature/ghactions-auto-remove-more-tweaks
  • feature/ghactions-auto-trigger-wiki-update-on-release
  • feature/ghactions-change-xmllint-validation
  • feature/ghactions-composer-ignore-more-selectively
  • feature/ghactions-fix-build
  • feature/ghactions-fix-inline-annotations-for-cs-errors
  • feature/ghactions-fix-selection-criteria
  • feature/ghactions-labeller-fix
  • feature/ghactions-make-phar-building-reusable
  • feature/ghactions-minor-simplifications
  • feature/ghactions-minor-tweak
  • feature/ghactions-run-windows-tests-on-windows
  • feature/ghactions-test-against-libxml-2.14
  • feature/ghactions-test-libxml-update
  • feature/ghactions-tests-join-some-steps
  • feature/ghactions-tweak-release-check
  • feature/ghactions-use-linux-arm-for-slow-builds
  • feature/ghactions-verify-release-tweak
  • feature/gotolabeltest-add-extra-tests
  • feature/help-improve-report-description
  • feature/improve-sniff-code-error-message
  • feature/issue-template-minor-tweak
  • feature/messagecollector-follow-up
  • feature/messagecollector-tests-static-dataproviders
  • feature/minor-cs-cleanup
  • feature/minor-docs-fixes
  • feature/pear-functioncomment-improve-blank-lines-between-check
  • feature/pear-functiondeclaration-prevent-fixer-conflict
  • feature/pear-psr2-psr12-functioncallsignature-check-anon-classes
  • feature/pear-squiz-inlinecomments-add-tests-with-emoji-hash-comments
  • feature/printprogressdotstest-fix-up-names-in-dataprovider
  • feature/processbrokenrulesettest-tweak
  • feature/propertytypehandingtest-split-dataprovider
  • feature/psr12-compoundnamespacedepth-test-tweak
  • feature/psr12-fileheader-add-extra-test
  • feature/psr12-fileheader-more-modular-errorcode-spacing-after
  • feature/psr12-importstatement-test-tweak
  • feature/psr2-namespacedeclaration-bow-out-on-php-close-tag
  • feature/psr2-propertydeclaration-support-php84-final-properties
  • feature/psr2-switchdeclaration-fixable-semicolon-scopeopener
  • feature/pullrequesttemplate-update
  • feature/readme-fix-version-badge
  • feature/recursescopemapdefaultkeywordconditionstest-fix-param-name
  • feature/remark-url-check-ignore-stackoverflow
  • feature/remarklint-tolerate-flaky-pear-links
  • feature/reports-fix-fatal-error-code-diff-report
  • feature/ruleset-add-tests-constructor
  • feature/ruleset-add-tests-populatetokenlisteners
  • feature/ruleset-add-tests-registersniffs
  • feature/ruleset-expandrulesetreference-add-tests
  • feature/ruleset-improve-error-handling
  • feature/ruleset-setproperty-add-extra-tests
  • feature/ruleset-shouldprocess-element-internal-severity
  • feature/ruleset-test-extending-array-property
  • feature/ruleset-test-property-setting-empty-array
  • feature/runner-dont-prefix-ruleset-errors
  • feature/runner-printprogress-minor-refactor
  • feature/slevomat-1739
  • feature/sq-2412-help-list-predefined-config-options
  • feature/squiz-classdeclaration-php-80-attributes
  • feature/squiz-classfilename-various-improvements
  • feature/squiz-doccommentalignment-final-classes-and-properties
  • feature/squiz-embeddedphp-another-fixer-conflict
  • feature/squiz-embeddedphp-fixer-conflict
  • feature/squiz-filecomment-update-copyright-year
  • feature/squiz-functionclosingbracespace-add-extra-tests
  • feature/squiz-functioncommentthrowtag-improve-comment-tolerance
  • feature/squiz-functiondeclarationargumentspacing-fix-errorcode
  • feature/squiz-functiondeclarationspacing-handle-constructor-property-promotion
  • feature/squiz-functiondeclarationspacing-various-fixes
  • feature/squiz-functionspacing-improve-attribute-handling
  • feature/squiz-membervarspacing-add-extra-tests
  • feature/squiz-membervarspacing-bug-fix-blank-lines-in-preamble
  • feature/squiz-membervarspacing-improve-parse-error-handling
  • feature/squiz-membervarspacing-readonly
  • feature/squiz-operatorbrackets-minor-simplification
  • feature/squiz-scopekeywordspacing-add-additional-tests
  • feature/squiz-variablecomment-allow-for-dnf-types
  • feature/squiz-variablecomment-support-php84-final-props
  • feature/test-rulesets-dont-throw-errors
  • feature/tests-add-abstract-real-config-testcase
  • feature/tests-add-runner-testcase
  • feature/tests-fix-typo
  • feature/tests-minor-fixture-method-signature-fixes
  • feature/tests-move-file-tests
  • feature/tests-should-pass-in-cbf-mode
  • feature/tests-stricter-assertions
  • feature/tests-use-more-appropriate-assertions
  • feature/timingtest-remove-flaky-assertions
  • feature/tokenizer-attributestest-simplify
  • feature/tokenizer-php-follow-up-final-properties
  • feature/tokenizer-php-goto-is-terminating-statement
  • feature/tokenizer-php-nullable-types-on-php-8.1-readonly-properties
  • feature/tokenizer-php-open-tag-end-of-file
  • feature/tokenizer-php-prevent-undefined-array-key-notice
  • feature/tokennametest-always-test-php-native-polyfills
  • feature/unit-tests-add-covers-annotations
  • feature/update-gpg-key-info
  • feature/update-license-copyright
  • feature/update-phpcs-xsd-schema-url
  • feature/variable-sniffs-minor-performance-tweak
  • feature/various-doc-fixes
  • feature/various-minor-docs-fixes
  • feature/xml-doc-fixes
  • final-props
  • fix-array-declaration-short-list-bug
  • fix-default-keyword-tests
  • fix-file-list-duplicate-files
  • fix-final-method-prefix
  • fix-object-operator-indent
  • fix-typo-embedded-php-sniff
  • fix-urls
  • fix/ignore-list-handling
  • fix/libxml-test
  • fixer-var-property
  • generator-param-error-handling
  • improve-default-keyword-tokenizer-tests
  • improve-switch-keyword-tokenizer-tests
  • inline-control-structure-handle-structures-without-body
  • inline-control-strutucture-remove-switch
  • issue-149
  • patch-1
  • php-8.4/feature/file-methods-support-asym-visibility
  • php-8.4/feature/generic-lowercasekeyword-support-asym-visibility
  • php-8.4/feature/pear-validvariablename-support-asym-visibility
  • php-8.4/feature/squiz-comment-sniffs-support-asym-visibility
  • php-8.4/feature/squiz-functiondeclarationargspacing-support-asym-visibility
  • php-8.4/feature/squiz-membervarscope-support-asym-visibility
  • php-8.4/feature/squiz-membervarspacing-support-asym-visibility
  • php-8.4/feature/squiz-scopekeywordspacing-support-asym-visibility
  • php-8.4/feature/various-sniffs-add-tests-asym-visibility
  • php-8.4/tokenizer-php-fix-anon-class-deref-vs-short-array
  • php84/feature/various-sniffs-add-tests-with-final-properties
  • phpcs-4.0/feature/15-property-array-extend-original-sniff-property-value
  • phpcs-4.0/feature/184-sq2898-revise-exit-codes
  • phpcs-4.0/feature/185-tokenizer-php-goto-created-sensitive-context-for-keywords
  • phpcs-4.0/feature/185-tokenizer-php-goto-label-minor-tweak
  • phpcs-4.0/feature/185-tokenizer-php-goto-label-tokenize-colon-separately
  • phpcs-4.0/feature/199-filter-remove-deprecated-whitelist-blacklist-methods
  • phpcs-4.0/feature/23-tokenizer-isset-unset-empty-eval-exit-parentheses-owner
  • phpcs-4.0/feature/25-refactor-testsuite
  • phpcs-4.0/feature/300-abstractsniffunittest-flag-missing-fixes-files
  • phpcs-4.0/feature/3041-tokenizer-php-namespaced-name-tokenization
  • phpcs-4.0/feature/416-improve-ini-set-error-handling
  • phpcs-4.0/feature/484-tokenizer-docblock-improvements
  • phpcs-4.0/feature/500-tokens-change-properties-to-constants
  • phpcs-4.0/feature/530-refactor-requirements-check
  • phpcs-4.0/feature/593-tokenizer-php-open-tag-consistency
  • phpcs-4.0/feature/6-abstractpatternsniff-remove-deprecated-param
  • phpcs-4.0/feature/689-remove-support-sniffs-breaking-naming-conventions
  • phpcs-4.0/feature/694-4-ruleset-dont-allow-sniffs-not-implementing-sniff-interface
  • phpcs-4.0/feature/708-ruleset-improve-property-setting-type-handling
  • phpcs-4.0/feature/799-ruleset-remove-support-for-standard-internal
  • phpcs-4.0/feature/921-remove-generic-calltimepassbyreference
  • phpcs-4.0/feature/abstractsniffunittest-flag-missing-testcase-files-incomplete
  • phpcs-4.0/feature/allow-testing-cache-option
  • phpcs-4.0/feature/always-display-runtime-info
  • phpcs-4.0/feature/change-default-standard-to-psr12
  • phpcs-4.0/feature/changelog-4.0-beta1
  • phpcs-4.0/feature/config-setsettings-is-void
  • phpcs-4.0/feature/constant-visibility
  • phpcs-4.0/feature/drop-support-php-lt-7.2
  • phpcs-4.0/feature/drop-support-php-lt-7.2-step-2
  • phpcs-4.0/feature/file-getdeclarationname-stop-handling-non-named
  • phpcs-4.0/feature/generators-remove-deprecated-methods
  • phpcs-4.0/feature/generators-use-custom-exception
  • phpcs-4.0/feature/ghactions-enable-ci
  • phpcs-4.0/feature/handle-true-false-null-as-namespacednames
  • phpcs-4.0/feature/modernize-use-constant-arrays-public-api
  • phpcs-4.0/feature/new-generic-gototargetspacing-sniff
  • phpcs-4.0/feature/printprogresstest-fix-teardown
  • phpcs-4.0/feature/remove-more-output-buffering-from-config-1
  • phpcs-4.0/feature/remove-more-output-buffering-from-config-2
  • phpcs-4.0/feature/reporter-remove-redundant-property
  • phpcs-4.0/feature/ruleset-processcliargstests-add-tests-with-cache-arg
  • phpcs-4.0/feature/runner-minor-cleanup
  • phpcs-4.0/feature/sq-1595-display-error-on-no-files-checked
  • phpcs-4.0/feature/sq-1612-stdout-vs-stderr
  • phpcs-4.0/feature/sq-1908-gitattributes-export-ignore-tests
  • phpcs-4.0/feature/sq-1953-squiz-languageconstructspacing-remove-sniff
  • phpcs-4.0/feature/sq-1954-tokenizer-drop-old-style-annotations-support
  • phpcs-4.0/feature/sq-1983-ruleset-remove-support-old-array-syntax
  • phpcs-4.0/feature/sq-1997-tokens-remove-unused-tokens
  • phpcs-4.0/feature/sq-2046-squiz-validclassname-rename-error-code
  • phpcs-4.0/feature/sq-2197-ruleset-config-directive-processing
  • phpcs-4.0/feature/sq-2197-ruleset-ini-processing-add-tests
  • phpcs-4.0/feature/sq-2234-generic-nospaceaftercast-remove-sniff
  • phpcs-4.0/feature/sq-2318-squiz-heredoc-split-errorcode
  • phpcs-4.0/feature/sq-2395-2597-2602-ruleset-config-arg-processing
  • phpcs-4.0/feature/sq-2448-remove-support-js-css
  • phpcs-4.0/feature/sq-2455-file-getmemberproperties-remove-parse-error-warnings
  • phpcs-4.0/feature/sq-2455-sniffs-remove-parse-error-warnings
  • phpcs-4.0/feature/sq-2471-remove-mysource-standard
  • phpcs-4.0/feature/sq-2593-tokenizer-closure-use-parentheses-owner
  • phpcs-4.0/feature/sq-2675-config-setConfigData-no-longer-static
  • phpcs-4.0/feature/sq-2823-remove-some-public-error-properties
  • phpcs-4.0/feature/sq-2916-filter-allow-explicit-file-without-extension
  • phpcs-4.0/feature/sq-3394-remove-use-of-auto_detect_line_endings
  • phpcs-4.0/feature/sq-3629-ruleset-setsniffproperty-remove-bclayer-old-property-format
  • phpcs-4.0/feature/sq1612-1010-send-runner-caught-output-to-stderr-stdout
  • phpcs-4.0/feature/squiz-variablecomment-make-tagnotallowed-modular
  • phpcs-4.0/feature/standardrulesetqatest-fix-test
  • phpcs-4.0/feature/standards-allow-for-removing-more-output-buffering
  • phpcs-4.0/feature/test-code-should-be-in-tests
  • phpcs-4.0/feature/tests-drop-support-phpunit-lt-8
  • phpcs-4.0/feature/tests-make-compatible-with-phpunit-10-11
  • phpcs-4.0/feature/tokenizer-createtokenmap-stabilize-parenthesis-keys
  • phpcs-4.0/feature/use-timing-class-in-more-places
  • phpcs-4.0/feature/various-doc-fixes
  • phpcs-4.0/modernize/messagecollector-use-foreach-list
  • phpcs-4.0/modernize/use-dirname-levels
  • phpcs-4.0/modernize/use-php-os-family
  • phpcs-4.0/modernize/use-static-closures
  • phpcs-4.0/remove-output-buffering-from-fixer
  • phpcs-4.x/3115-let-static-be-static
  • phpcs-4.x/feature/modernize-windows-check-follow-up
  • phpcs-4.x/remove-external-tooling-sniffs
  • phpcs-4.x/tokenizer-php-minor-tweak
  • refactor/refactor-IsCamelCapsTest-to-use-data-providers
  • remove-outdated-code-from-filter-class
  • remove-pear-installation-related-code
  • squiz-function-comment-intersection-types
  • squiz-function-end-doc
  • syntax-sniff-support-stdin
  • test-config-generator-argument
  • test-coverage-filter-accept
  • test-coverage-inline-control-structure
  • test-coverage-nesting-level
  • tests/define-bcmath-requirement
  • tests/skip-when-git-not-available
  • use-markers-for-test-switch-default

16 Jul 2025 01:06AM CUT coverage: 78.557% (+0.004%) from 78.553%
16307833682

push

github

web-flow
Merge pull request #1161 from PHPCSStandards/feature/psr2-switchdeclaration-fixable-semicolon-scopeopener

PSR2/SwitchDeclaration: make "wrong opener" fixable if opener is a semi-colon

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

25260 of 32155 relevant lines covered (78.56%)

69.67 hits per line

Relevant lines Covered
Build:
Build:
32155 RELEVANT LINES 25260 COVERED LINES
69.67 HITS PER LINE
Source Files on master
  • Tree
  • List 310
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Loading...
Coverage∆FileLinesRelevantCoveredMissedHits/Line
0.0
src/Reports/Diff.php128 40 0 40 0.0
0.0
src/Reports/Code.php366 169 0 169 0.0
0.0
src/Reports/Csv.php89 17 0 17 0.0
0.0
src/Reports/Cbf.php256 111 0 111 0.0
0.0
src/Files/DummyFile.php79 18 0 18 0.0
0.0
src/Reports/Checkstyle.php108 29 0 29 0.0
0.0
src/Reporter.php442 169 0 169 0.0
0.0
src/Files/LocalFile.php216 96 0 96 0.0
0.0
src/Filters/ExactMatch.php153 26 0 26 0.0
0.0
src/Reports/Emacs.php88 14 0 14 0.0
Showing 1 to 10 of 310 entries
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 31
  • Next
  • ►
    78.74
    src/

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
16307833682 master Merge pull request #1161 from PHPCSStandards/feature/psr2-switchdeclaration-fixable-semicolon-scopeopener PSR2/SwitchDeclaration: make "wrong opener" fixable if opener is a semi-colon push 16 Jul 2025 01:07AM CUT web-flow github
78.56
16307733549 master Merge pull request #1160 from PHPCSStandards/php-8.4/tokenizer-php-fix-anon-class-deref-vs-short-array PHP 8.4 | Tokenizer/PHP: allow for anon class dereferencing push 16 Jul 2025 12:59AM CUT web-flow github
78.55
16307299131 master Merge pull request #1163 from PHPCSStandards/feature/ghactions-auto-trigger-wiki-update-on-release GH Actions/verify release: auto-trigger Wiki update on new release push 16 Jul 2025 12:28AM CUT web-flow github
78.54
16075149126 master Generic/Syntax: add support for inspecting code passed via STDIN (#1151) * Generic/Syntax: add support for inspecting code passed via STDIN This commit improves the Generic.PHP.Syntax sniff to make it work when code is passed via STDIN. Before, ... push 04 Jul 2025 01:44PM CUT web-flow github
78.54
16064061511 master Merge pull request #1150 from rodrigoprimo/fix-file-list-duplicate-files Files/FileList: adding the same file twice should not increment `FileList::$numFiles` push 04 Jul 2025 01:50AM CUT web-flow github
78.53
16036814398 master Merge pull request #1158 from rodrigoprimo/fix-object-operator-indent PEAR/ObjectOperatorIndent: improve end of statement detection when getting the next object operator push 02 Jul 2025 10:10PM CUT web-flow github
78.44
15914110828 master Merge pull request #1147 from benno5020/refactor/refactor-IsCamelCapsTest-to-use-data-providers Refactor IsCamelCapsTest to use data providers and add more tests push 26 Jun 2025 10:55PM CUT web-flow github
78.44
15719697635 master Config: update version nr to next push 17 Jun 2025 10:55PM CUT jrfnl github
78.44
15718088467 master Squiz/SelfMemberReference: update XML doc (#1108) - Improve sniff description explicitly mentioning where the spaces are checked and adding context as to when the `self` keyword is verified. - Fix the code examples for checking `self` case and sp... push 17 Jun 2025 09:10PM CUT web-flow github
78.44
15709510587 master Merge pull request #1137 from PHPCSStandards/feature/docs-various-fixes Various minor fixes / typos push 17 Jun 2025 02:12PM CUT web-flow github
78.44
See All Builds (2443)
  • Repo on GitHub
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