squizlabs/PHP_CodeSniffer

PHP 10.8k stars

PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards.

✓ Synced 3h ago Share on X →
README badge: [![ngmi](https://ngmi.review/badge/squizlabs/PHP_CodeSniffer.svg)](https://ngmi.review/repo/squizlabs/PHP_CodeSniffer)
1.0k Merged PRs
29 days Avg Merge Time
3m Fastest PR
1 year Slowest PR
#2515 Global Speed Rank
Trim top 0% outliers

Trends Over Time

Monthly aggregates for this repo. The gap between avg and median reveals outlier skew.

PR size over time (lines changed)
Review time over time (hrs)
Changes requested rate over time (%)
Merged PRs per month
Time to first review (hrs)
Unreviewed merge rate (%)

PR Size Analysis

Lines changed (additions + deletions) vs review outcomes.

PRs by size
Avg review time (hrs)
Clean approval rate (%)

Top Reviewers

Recent Merged PRs

# Title Author Time Reviews Blocks
#3933 Mark the repo as abandoned @jrfnl 2 months 14
#3908 Auto-fix PEAR.Commenting.FunctionComment.SpacingAfter @fredden 5 days 4
#3906 Fix bug in CSS tokenizer @fredden 2 days 0
#3770 Squiz/NonExecutableCode: fix false positives when code goes in and out of PHP/HTML @fredden 7 months 11
#3885 Fix invalid namespace in phpdoc (\PHP_CodeSniffer\Files\File) @mzk 1.5h 2
#3879 fix(docs): change filter arguments to match PascalCase @simonsan 6 days 3
#3762 http to https for hyperlink @vanillajonathan 5 months 2
#3809 Fix gitblame to not use full path when `chdir` @datengraben 3 months 1
#3717 Fix `Squiz.Commenting.FunctionComment.InvalidNoReturn` false positive when return type is `never` @axlon 7 months 6
#3813 Handle `@param` in docblock for variables passed by reference @fredden 2 months 10
#3807 Make InnerFunctionsSniff detect functions inside closures @Daimona 2 months 6
#3843 Allow array unpacking in ArrayDeclaration multiline Sniff @edorian 20 days 4
#3832 Added PSR-2 documentation XML files @blue32a 1 month 3
#3785 Fix PHP Fatal error in `Squiz.Commenting.FunctionComment` @fredden 3 months 8
#3776 Fix case when jshint is not available @fredden 4 months 1
#3837 Reduce width of table in issue template @fredden 7.8h 1
#3829 Bug report template: various tweaks @jrfnl 5 days 0
#3816 PSR12/FileHeader: bug fix - false positives on PHP 8.2+ readonly classes @jrfnl 19 days 1
#3728 PHP 8.2 | PSR1/SideEffects: allow for readonly classes @jrfnl 5 months 0
#3826 PHP 8.2 | Support readonly classes in 11 sniffs @jrfnl 14m 0