Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
PHP CodeSniffer
Maintains PHP_CodeSniffer, a number of external standards for PHP_CodeSniffer and tooling to make it easier to use and develop for PHP_CodeSniffer.
Collective -
Host: opensource -
https://opencollective.com/php_codesniffer
- Code: https://github.com/PHPCSStandards
No functional changes.
github.com/PHPCSStandards/PHPCSExtra - 7c4c3eae186f8f966d527d94c2dc1d3d39fbe9a8 authored about 2 years ago by jrfnl <[email protected]>Universal/DuplicateArrayKey: add support for detecting duplicate key PHP cross-version
github.com/PHPCSStandards/PHPCSExtra - 91fb70189522c31692cb9ded229a24527bd1cca7 authored about 2 years ago by Juliette <[email protected]>How array keys for array items without keys are being determined, has changed in PHP 8.0.
Previ...
github.com/PHPCSStandards/PHPCSExtra - fe28363f9acb257b018195d555edc9a28b28c54e authored about 2 years ago by jrfnl <[email protected]>Universal/DisallowStandalonePostIncrementDecrement: allow for statement ending with close tag
github.com/PHPCSStandards/PHPCSExtra - fa4fe20661dea6b15dcb075e70782d2c440cba07 authored about 2 years ago by Juliette <[email protected]>A stand-alone statement doesn't necessarily have to end with a semi-colon. It can also end on a ...
github.com/PHPCSStandards/PHPCSExtra - 20a877e17cdc1397eff3d32e2fb564097b47db8a authored about 2 years ago by jrfnl <[email protected]>Universal/ForeachUniqueAssignment: improve analysis for foreach list assignments
github.com/PHPCSStandards/PHPCSExtra - e7a5b03e428caec4cbcbaec498779da2ea8663d7 authored about 2 years ago by Juliette <[email protected]>Universal/DisallowUse[Class|Const|Function]: minor code coverage tweak
github.com/PHPCSStandards/PHPCSExtra - 440d8ea10860f60b32c6592d517fba9f2ba955c1 authored about 2 years ago by Juliette <[email protected]>Universal/NoReservedKeywordParameterNames: various improvements
github.com/PHPCSStandards/PHPCSExtra - becd4f02188d6df9ac2ee80f2e0a1e1786459b89 authored about 2 years ago by Juliette <[email protected]>
This commit:
* Prevents "accidentally correct" handling of code like `foreach ($data as [$id => ...
These tests weren't testing the sniff well enough.
github.com/PHPCSStandards/PHPCSExtra - 514287786b99d3bc43d9f7594e2f5344bd93096f authored about 2 years ago by jrfnl <[email protected]>Ignore a statement which should never be reachable (defense in depth code).
github.com/PHPCSStandards/PHPCSExtra - b82be3e46879344342369cd2efa21c93c7f56564 authored about 2 years ago by jrfnl <[email protected]>... to confirm that properties set via the constructor are also checked.
Properties set via the...
github.com/PHPCSStandards/PHPCSExtra - 35a2e51989bff4aebbffcd40b6afde71cc0ce735 authored about 2 years ago by jrfnl <[email protected]>While parameters (variables) are case-sensitive in PHP, keywords are not.
This commit improves ...
github.com/PHPCSStandards/PHPCSExtra - e78f25f429726ec82a484233f3eda7d6e6987e7d authored about 2 years ago by jrfnl <[email protected]>... to safeguard bowing out for function declarations without parameters and that the sniff stay...
github.com/PHPCSStandards/PHPCSExtra - b939740b8caf4f067c3439ab7fa0ea264855e001 authored about 2 years ago by jrfnl <[email protected]>github.com/PHPCSStandards/PHPCSExtra - b9dfb4dcfc71cccc083b461d8ec6fdb528324f14 authored about 2 years ago by jrfnl <[email protected]>
... which can be made now support for PHPCS < 3.7.1 has been dropped.
The sniff now only listen...
github.com/PHPCSStandards/PHPCSExtra - c7827ec582bcc98beb9a7c4321c698fb237bd3a3 authored about 2 years ago by jrfnl <[email protected]>✨ New Modernize.FunctionCalls.Dirname sniff
github.com/PHPCSStandards/PHPCSExtra - 7cafca76bdbeeea9b3614ea1bb0fbb7428b4770e authored about 2 years ago by Juliette <[email protected]>This new sniff will detect and, when possible, auto-fix two typical code modernizations which ca...
github.com/PHPCSStandards/PHPCSExtra - 1d3943dbee9a24ac1372978c056875a99ff86738 authored about 2 years ago by jrfnl <[email protected]>Includes updating CI and other dev related files to take the new standard into account.
github.com/PHPCSStandards/PHPCSExtra - 5e0cdc6a22923586eae0d4fcdfa28c73f037fb28 authored about 2 years ago by jrfnl <[email protected]>Universal/SeparateFunctionsFromOO: update tests for arrow functions
github.com/PHPCSStandards/PHPCSExtra - 7d9629e373b8c50fa93729d2b585dd457e85b61e authored about 2 years ago by Juliette <[email protected]>As the sniff uses predefined token collections from PHPCSUtils, it automatically takes PHP 7.4 a...
github.com/PHPCSStandards/PHPCSExtra - cc568b6b3d3d823f14da7d47aeed215caab3a3d2 authored about 2 years ago by jrfnl <[email protected]>Universal/SeparateFunctionsFromOO: update tests for enums
github.com/PHPCSStandards/PHPCSExtra - 9e100d3bdad5fc8f967aa2d6420aa0d443b1f99b authored about 2 years ago by Juliette <[email protected]>Universal/DisallowLonelyIf: bow out early for a specific situation (PHP close tag)
github.com/PHPCSStandards/PHPCSExtra - 3d4bb1922281e285bcca5c00b4eb93b4048797a2 authored about 2 years ago by Juliette <[email protected]>As the sniff uses predefined token collections from PHPCSUtils, it automatically takes PHP 8.1 `...
github.com/PHPCSStandards/PHPCSExtra - 444fa6f6d15e050c979b7222497b25430b67f767 authored about 2 years ago by jrfnl <[email protected]>If an inner "if/else" chain using alternative syntax has a PHP close tag after the `endif` inste...
github.com/PHPCSStandards/PHPCSExtra - 09df5315f707ce66d490318e6730da9d07566917 authored about 2 years ago by jrfnl <[email protected]>Universal/DisallowLonelyIf: add extra test
github.com/PHPCSStandards/PHPCSExtra - e5fa39eb746373ee1d84c5e27a64f72239895cea authored about 2 years ago by Juliette <[email protected]>Universal/NoLeadingBackslash: examine imports within a group use statement
github.com/PHPCSStandards/PHPCSExtra - 2827af24b92a1ec5f49629ea13f9a0cfc9194aae authored about 2 years ago by Juliette <[email protected]>.. to cover an edge case which is already handled correctly.
github.com/PHPCSStandards/PHPCSExtra - 81b548b40a3fc2cbfb3398f859eeba741876f005 authored about 2 years ago by jrfnl <[email protected]>Previously the sniff would only examine the start of a complete import statement, now it will al...
github.com/PHPCSStandards/PHPCSExtra - 588b7759575dce2e00e5fe6843f6a893b018d9a9 authored about 2 years ago by jrfnl <[email protected]>github.com/PHPCSStandards/PHPCSExtra - 21ac4019189bb5c748f9514ae23de5bfcffedd71 authored about 2 years ago by jrfnl <[email protected]>
Universal/OneStatementInShortEchoTag: prevent false positive
github.com/PHPCSStandards/PHPCSExtra - 45e3be33f278350feb57d4528d5d2198da3c5160 authored about 2 years ago by Juliette <[email protected]>Universal/RequireFinalClass: various tweaks
github.com/PHPCSStandards/PHPCSExtra - f1aa289bda537dd9db8af157e1baa5fb79c759a6 authored about 2 years ago by Juliette <[email protected]>Universal/DisallowFinalClass: various tweaks
github.com/PHPCSStandards/PHPCSExtra - 9feee1f4f186ce03805d3728c8f4a3dae098b268 authored about 2 years ago by Juliette <[email protected]>Universal/RequireAnonClassParentheses: remove redundant condition
github.com/PHPCSStandards/PHPCSExtra - aee0f933acb718541294f826d816ac11d343f755 authored about 2 years ago by Juliette <[email protected]>Universal/DisallowAnonClassParentheses: remove redundant condition
github.com/PHPCSStandards/PHPCSExtra - 65d41e186e131f7ca09a96b29d250cdbaa06a645 authored about 2 years ago by Juliette <[email protected]>... and annotate why the condition has been removed, as well as annotating a second likely redun...
github.com/PHPCSStandards/PHPCSExtra - 1dc503bd829539e8732f70dcf6c1727914ac6d18 authored about 2 years ago by jrfnl <[email protected]>github.com/PHPCSStandards/PHPCSExtra - f5ebddb6afa788dac15f10415e214ad68e5977bf authored about 2 years ago by jrfnl <[email protected]>
As things were, the sniff would bow out if the opening brace for the class could not be found (y...
github.com/PHPCSStandards/PHPCSExtra - 8bf00e38f2e3de0aaaeeabafc42299e38bbbc67c authored about 2 years ago by jrfnl <[email protected]>As things were, the sniff would bow out if the opening brace for the class could not be found (y...
github.com/PHPCSStandards/PHPCSExtra - 59bb205548b07aa2be06d43e330bf6d8dd403c52 authored about 2 years ago by jrfnl <[email protected]>As things were, the sniff would bow out if the opening brace for the class could not be found (y...
github.com/PHPCSStandards/PHPCSExtra - 324bc8f97f896857bab9c1ab59e768f80d6f0ea0 authored about 2 years ago by jrfnl <[email protected]>As things were, the sniff would bow out if the opening brace for the class could not be found (y...
github.com/PHPCSStandards/PHPCSExtra - 9a1610c9d4c66ce16ac3f8f04b7af864c5f02f9d authored about 2 years ago by jrfnl <[email protected]>In convoluted code, which I hope to never encounter in real life, it _could_ be possible to enco...
github.com/PHPCSStandards/PHPCSExtra - 579e7674d12187e5f46275a857162f8634eb5966 authored about 2 years ago by jrfnl <[email protected]>github.com/PHPCSStandards/PHPCSExtra - 5d9f631fd9538e029a0269ade00da85e133cfc05 authored about 2 years ago by jrfnl <[email protected]>
github.com/PHPCSStandards/PHPCSExtra - e93bee2e2f9b865c5570bce9b911e4118d8df7cf authored about 2 years ago by jrfnl <[email protected]>
When a class is declared as `abstract`, it would attempt to record both for the `abstract`, as w...
github.com/PHPCSStandards/PHPCSExtra - 4658e927229d05c49724a20bc2934f403e89840a authored about 2 years ago by jrfnl <[email protected]>GH Actions: bust the cache semi-regularly
github.com/PHPCSStandards/composer-installer - cd79216fba0b4000cd27062a5953dbd82e908c12 authored about 2 years ago by Ben Peachey <[email protected]>Universal/DisallowAlternativeSyntax: bug fix - handle if/elseif statements in one go
github.com/PHPCSStandards/PHPCSExtra - cecabbdb9aca2df19fdbe859b70e92d28f45988b authored about 2 years ago by Juliette <[email protected]>As things were, the sniff would examine - and potentially fix - each control structure keyword w...
github.com/PHPCSStandards/PHPCSExtra - df6ace718ca846b840931c7ce17ce84a07652ecc authored about 2 years ago by jrfnl <[email protected]>Universal/DisallowAlternativeSyntax: bug fix - ignore inline HTML in nested closed scopes
github.com/PHPCSStandards/PHPCSExtra - 6e4697f9f73042ff1be34ac1a9291021486ea8dc authored about 2 years ago by Juliette <[email protected]>... as the HTML in that case is not necessarily echo-ed out when the control structure is execut...
github.com/PHPCSStandards/PHPCSExtra - e4cfa4f86d857f502e4cb9d8a29b62a9a840366a authored about 2 years ago by jrfnl <[email protected]>Universal/DisallowAlternativeSyntax: improve error message
github.com/PHPCSStandards/PHPCSExtra - 538b90b6ef3d6ffa4048ecb90f7c7df7e81dd7ae authored about 2 years ago by Juliette <[email protected]>Group the setting of the `$code` and `$data` variables for the error message with the conditions...
github.com/PHPCSStandards/PHPCSExtra - dfc686e1a819378c8dfb254c3fa44306d974b9ec authored about 2 years ago by jrfnl <[email protected]>Improve the readability of the error message by moving the variable part to the end of the message.
github.com/PHPCSStandards/PHPCSExtra - 18a26fd7f7214551ad35e0d79040ea9d5f731213 authored about 2 years ago by jrfnl <[email protected]>When the `$allowWithInlineHTML` property is set to `true`, the error message could be regarded a...
github.com/PHPCSStandards/PHPCSExtra - 7d9dd20224181f432012eb72da1e2eeaa9647c6c authored about 2 years ago by jrfnl <[email protected]>Universal/DisallowAlternativeSyntax: various tweaks
github.com/PHPCSStandards/PHPCSExtra - 0448f4f03c58378e6d807e1f36abb3352333f44a authored about 2 years ago by Juliette <[email protected]>
* Minor tweak to the metric name.
* Also record metric for single line/no body control structures.
github.com/PHPCSStandards/PHPCSExtra - 78ea24c41dd6e2e1407720f5d9b80fbdd6f08fff authored about 2 years ago by jrfnl <[email protected]>
When a control structure condition is directly followed by a PHP close tag, a semicolon is silen...
github.com/PHPCSStandards/PHPCSExtra - 7e4732c037ac11f7cd71d2d384937ac2d45edf3b authored about 2 years ago by jrfnl <[email protected]>While empty "leafs" of control structures is allowed, it is less common, so make the code used f...
github.com/PHPCSStandards/PHPCSExtra - d7cb0568015af77613a8d165f65cc79efdffc043 authored about 2 years ago by jrfnl <[email protected]>ControlStructures::hasBody(): handle no body due to PHP close tag
github.com/PHPCSStandards/PHPCSUtils - ad3207d6a8053d755d166f6184dd22d50ff2d305 authored about 2 years ago by Juliette <[email protected]>When a control structure condition is directly followed by a PHP close tag, a semicolon is silen...
github.com/PHPCSStandards/PHPCSUtils - 234f7223540abde4c5118d9f8816865b11cc8c15 authored about 2 years ago by jrfnl <[email protected]>GH Actions: bust the cache semi-regularly
github.com/PHPCSStandards/PHPCSDevTools - 5fb180df25c1f436e0902c0158200f5346d1067e authored about 2 years ago by Juliette <[email protected]>GH Actions: bust the cache semi-regularly
github.com/PHPCSStandards/PHPCSExtra - 376a1e31cee9cc7e98f29be73339fb237c947d43 authored about 2 years ago by Juliette <[email protected]>GH Actions: bust the cache semi-regularly
github.com/PHPCSStandards/PHPCSUtils - d9555ffa03a2f8ad73ed44f7801a22973e915b65 authored about 2 years ago by Juliette <[email protected]>Caches used in GH Actions do not get updated, they can only be replaced by a different cache wit...
github.com/PHPCSStandards/PHPCSUtils - c27ed54e496649335c7db12003022237b90e6794 authored about 2 years ago by jrfnl <[email protected]>Caches used in GH Actions do not get updated, they can only be replaced by a different cache wit...
github.com/PHPCSStandards/PHPCSExtra - 08dfa669cfa483241bc34c73aa50c6872443887a authored about 2 years ago by jrfnl <[email protected]>Caches used in GH Actions do not get updated, they can only be replaced by a different cache wit...
github.com/PHPCSStandards/PHPCSDevTools - 5b7cf07ed4b2a598cd128ebd79046edf44bf9dc4 authored about 2 years ago by jrfnl <[email protected]>Caches used in GH Actions do not get updated, they can only be replaced by a different cache wit...
github.com/PHPCSStandards/composer-installer - 5c410c78e70e0e2392b3c90679c9f95e078a65b3 authored about 2 years ago by jrfnl <[email protected]>Universal/Disallow[Long|Short]ListSyntax: improve metrics
github.com/PHPCSStandards/PHPCSExtra - 87406882e3a91ba59dc1cd3f3cf112c106dbff67 authored about 2 years ago by Juliette <[email protected]>Universal/DisallowShortArraySyntax: record metrics
github.com/PHPCSStandards/PHPCSExtra - d26dd5d6ed8cf0e12415d594f075e4191bb22f33 authored about 2 years ago by Juliette <[email protected]>Record both the `yes` as well as the `no`, which makes the metric feature complete.
github.com/PHPCSStandards/PHPCSExtra - 51ffcd9467207cc39af5a9442a7f907269aed032 authored about 2 years ago by jrfnl <[email protected]>... as recording just and only the `no` is not a useful metric and adding the logic to also reco...
github.com/PHPCSStandards/PHPCSExtra - 1b148e2a9ea62420afd1adaea852d65e136418b0 authored about 2 years ago by jrfnl <[email protected]>It's quite straight forward to record informative metrics for this sniff, so let's.
github.com/PHPCSStandards/PHPCSExtra - e0dc0d3f082b11d2e8c3dedaa29d15240ec2ebca authored about 2 years ago by jrfnl <[email protected]>Universal/DisallowShortArraySyntax: don't skip over short lists
github.com/PHPCSStandards/PHPCSExtra - d3e0f0b8141b5a206eeddd3f86f018674f879fda authored about 2 years ago by Juliette <[email protected]>Universal/DisallowShortListSyntax: bug fix - don't skip over nested brackets
github.com/PHPCSStandards/PHPCSExtra - e0c6bd0241ca3b2cae507d7bbeff22e49a9b789e authored about 2 years ago by Juliette <[email protected]>... as short arrays can contain short lists and those still need to be examined.
Includes test ...
github.com/PHPCSStandards/PHPCSExtra - 39a1bc93c26827607731bc1e40a72b3bb45d7961 authored about 2 years ago by jrfnl <[email protected]>... as for some unfanthomable reason (short) arrays can be used as keys for short lists and if s...
github.com/PHPCSStandards/PHPCSExtra - c330d3e686121bdd456bcc78d61dd9a2bd124124 authored about 2 years ago by jrfnl <[email protected]>Universal/DisallowShortListSyntax: allow for tokenizer issue in PHPCS 3.7.1
github.com/PHPCSStandards/PHPCSExtra - 80cb0d80cc2d1b3b04522ca08838b148ff413e4f authored about 2 years ago by Juliette <[email protected]>... which was fixed in 3.7.2.
The utility methods used from PHPCSUtils 1.0.0-alpha4 already tak...
github.com/PHPCSStandards/PHPCSExtra - 9b0c43b3ac2837d77be98202aac91f821ab70279 authored about 2 years ago by jrfnl <[email protected]>Universal/AlphabeticExtendsImplements: docs/test update for enums
github.com/PHPCSStandards/PHPCSExtra - 2c99f0172dfce8447ea423418bd0fda2e4fd3239 authored about 2 years ago by Juliette <[email protected]>Universal/DisallowUseClass: "docs" update for enums
github.com/PHPCSStandards/PHPCSExtra - 0fae1a11b50a4f3f6d4103124129e8dd2d5686eb authored about 2 years ago by Juliette <[email protected]>Universal/[Require/Disallow]FinalClass: docs/test update for readonly classes
github.com/PHPCSStandards/PHPCSExtra - 737975358ee4593dc02d829a287f35d683c47cfe authored about 2 years ago by Juliette <[email protected]>This commit adds tests confirming that `enum ... implements ...` statements are handled correctl...
github.com/PHPCSStandards/PHPCSExtra - 4f655d9998c23c4ced94c1ec6ffd7140f4e5fb89 authored about 2 years ago by jrfnl <[email protected]>
This updates the phrasing referencing the different OO structures to include enums in:
* The err...
... to ensure the fixer continues to work correctly when the class is also `readonly`.
github.com/PHPCSStandards/PHPCSExtra - 9c56dd111a737818c854d1202d8659b1fe465633 authored about 2 years ago by jrfnl <[email protected]>What with PHP 8.2 introducing `readonly` classes, the metric name `Class declaration type` would...
github.com/PHPCSStandards/PHPCSExtra - 53b149205921909542a86f6ad6a5829472c1e1e9 authored about 2 years ago by jrfnl <[email protected]>Universal/OneStatementInShortEchoTag: improve error code
github.com/PHPCSStandards/PHPCSExtra - 4ddaefc1d88c5763da6fe7331480869acdcb4f36 authored about 2 years ago by Juliette <[email protected]>As the name of the sniff is `OneStatementInShortEchoTag`, "Found" would imply that one statement...
github.com/PHPCSStandards/PHPCSExtra - 1cf15cea5a7f2c1e8167a00fb63d89a6727114e5 authored about 2 years ago by jrfnl <[email protected]>Universal/ConstructorDestructorReturn: improve return type fixer
github.com/PHPCSStandards/PHPCSExtra - 72e5dbb93bd88a03fbb7608348c7d3b120ffc9f0 authored about 2 years ago by Juliette <[email protected]>... to prevent it from removing comments.
Includes adjusting a pre-existing test to cover the c...
github.com/PHPCSStandards/PHPCSExtra - 02dcbddcadc4fe55468baa67cb2629e4a756bd25 authored about 2 years ago by jrfnl <[email protected]>Rename namespace prefix from `Dealerdirect` to `PHPCSStandards`
github.com/PHPCSStandards/composer-installer - 10e9bba241b435d7a2097e1d89b8a52eba949633 authored about 2 years ago by Juliette <[email protected]>QA: always declare metric names as class constants
github.com/PHPCSStandards/PHPCSExtra - 0e936762e7d12966bc5a51c41c372f7751ef9892 authored about 2 years ago by Juliette <[email protected]>.. to reduce the risk of metrics not recording correctly due to typos in one of the instances re...
github.com/PHPCSStandards/PHPCSExtra - 65a092aa4740f0ad8f54f1ee5a9cf0b16a5b5829 authored about 2 years ago by jrfnl <[email protected]>NormalizedArrays/CommaAfterLast: improve fixer for flexible heredoc/nowdoc
github.com/PHPCSStandards/PHPCSExtra - d41862413fa8360b14b9af16eef11f3e919ddcbc authored about 2 years ago by Juliette <[email protected]>ObjectDeclarations::getClassProperties(): add token pointer indexes to return array
github.com/PHPCSStandards/PHPCSUtils - 41ef0af5d9694f5daadcc69a185bd20e5e3569ae authored about 2 years ago by Juliette <[email protected]>... as quite some sniffs will need those anyway and it prevents having to duplicate the token wa...
github.com/PHPCSStandards/PHPCSUtils - 1ba890433a92991b833f742c27360a599006d796 authored about 2 years ago by jrfnl <[email protected]>Collections: add new `constantModifierKeywords()` method
github.com/PHPCSStandards/PHPCSUtils - c3effcb6f82a12647d6ef62f3f19d9b20818b879 authored about 2 years ago by Juliette <[email protected]>github.com/PHPCSStandards/PHPCSUtils - c60b4d439df38b040c6741eef56a60decbe7dd05 authored about 2 years ago by jrfnl <[email protected]>
When comma's are enforced after the last entry of a (multi-line) array, the fixer would previous...
github.com/PHPCSStandards/PHPCSExtra - 0c168223b1106bdaf5036682cb515ca5a67552fb authored about 2 years ago by jrfnl <[email protected]>:sparkles: New `Universal.Constants.ModifierKeywordOrder` sniff
github.com/PHPCSStandards/PHPCSExtra - 4894d9f464adf646c0e4327d719dc16f5a54d8ac authored about 2 years ago by Juliette <[email protected]>