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
This adds a new external PHPCS standard called `PHPCSDev` for use by sniff developers to check t...
github.com/PHPCSStandards/PHPCSDevCS - 3315305829521fed3a5a1a1afb6444aecfe40ed1 authored almost 5 years agogithub.com/PHPCSStandards/PHPCSDevCS - 2259c7357afe8bd4e0a89b20ce97df198bdee4b3 authored almost 5 years ago
github.com/PHPCSStandards/PHPCSDevCS - bacb83c7e18d80088bc1001ba7b71516a1928100 authored almost 5 years ago
FindEndOfStatementTest: simplify the tests
github.com/PHPCSStandards/PHPCSUtils - c57bcb0c8128513dd720ba3b4490026e63b0d363 authored almost 5 years agoControlStructures/IsElseIfTest: bug fix
github.com/PHPCSStandards/PHPCSUtils - 90137f97d890f61e6b73c0dce053802f3f4598bf authored almost 5 years agoThese are the same changes as pulled upstream in squizlabs/PHP_CodeSniffer 2866
* Use the `Abst...
github.com/PHPCSStandards/PHPCSUtils - b133843232590e13e003af8bb01d7b50371294a3 authored almost 5 years agoThree tests were using the wrong test markers.
In effect these three cases were therefore not b...
github.com/PHPCSStandards/PHPCSUtils - 6a4b4fdad03c53c46569cf3ccda26048fd605095 authored almost 5 years agoDocumentation: various minor fixes
github.com/PHPCSStandards/PHPCSUtils - cd69520c6f14cc2e14ad8e6afb695406ecbecd5d authored almost 5 years agoVarious minor tidying up
github.com/PHPCSStandards/PHPCSUtils - 6210f71af5e7fec931bee14765312daa17568690 authored almost 5 years agogithub.com/PHPCSStandards/PHPCSUtils - 80c736d4ec3020efd7ff23108b4f27c4f183b1c5 authored almost 5 years ago
github.com/PHPCSStandards/PHPCSUtils - 878561f62bf3d9dfbe8bdf181410da573fee5cc4 authored almost 5 years ago
Improve support for arrow functions / sync with phpcs 3.5.5
github.com/PHPCSStandards/PHPCSUtils - 00b8ca9bdacd466f4268fece4181349fbc198f99 authored almost 5 years ago* Change checking of the return value of the `FunctionDeclarations::getArrowFunctionOpenClose()`...
github.com/PHPCSStandards/PHPCSUtils - 37440af5171d44619b8009302a59b58b65f815e2 authored almost 5 years agoThis brings the `FunctionDeclarations::isArrowFunction()` and `FunctionDeclarations::getArrowFun...
github.com/PHPCSStandards/PHPCSUtils - ef96ac4d79a18723094989e71bfa2b6e7b28f1e8 authored almost 5 years agogithub.com/PHPCSStandards/PHPCSUtils - 5ecdf04b5be12d084d972184f14dd0211cf57cd6 authored almost 5 years ago
... in all applicable places.
github.com/PHPCSStandards/PHPCSUtils - d5b33dba789b28a1f46bb84ba1ecc4a6756a5abc authored almost 5 years ago... to retrieve the tokens which can represent the arrow function keyword.
Includes unit tests.
github.com/PHPCSStandards/PHPCSUtils - e2f17bd2ca5aab49b1c6f4f72be322609a203a51 authored almost 5 years agoAdd support for arrow functions
github.com/PHPCSStandards/PHPCSUtils - 2ad3390d1fc21cc98e961e2ef372fe79bacdb8b5 authored almost 5 years agoAllow for the `PHPCSUtils\Utils\Parentheses::getOwner()` and `PHPCSUtils\Utils\Parentheses::isOw...
github.com/PHPCSStandards/PHPCSUtils - 020627d0a950da599ffdd302401c318b7dea4109 authored almost 5 years ago* Add support for arrow functions to the `BCFile::findStartOfStatement()` method as per upstrea...
github.com/PHPCSStandards/PHPCSUtils - 6179eb0782bf06a21a71a7c3d7fc46944a798c8d authored almost 5 years agogithub.com/PHPCSStandards/PHPCSUtils - dfdaccb0ee9cdd4e6783da1a4dac5dc534c68868 authored almost 5 years ago
github.com/PHPCSStandards/PHPCSUtils - 10cf39d24ca81811aeb308fe3c9418dbe281ca66 authored almost 5 years ago
In PHPCS 3.5.3+, the double arrow for arrow functions is tokenized as `T_FN_ARROW` and will not ...
github.com/PHPCSStandards/PHPCSUtils - 090c56682c16c61476c4690c95e7c2c85f6ce85b authored almost 5 years ago* Add support for arrow functions to the `BCFile::findEndOfStatement()` method as per upstream ...
github.com/PHPCSStandards/PHPCSUtils - 23c5d8984d921ad5e17858ff73781e0c0e8a2aba authored almost 5 years agoThe `fn` for a potential arrow function will be tokenized as `T_FN`, even when there are no pare...
github.com/PHPCSStandards/PHPCSUtils - ce476a40b7ec02705a76e5c4123f9dae70113d2b authored almost 5 years agogithub.com/PHPCSStandards/PHPCSUtils - 087409092b64325fcb5f3d6b52ee2e8621ec3142 authored almost 5 years ago
... for backwards compatibility.
As per upstream commit squizlabs/PHP_CodeSniffer@37dda44ed3bf3...
github.com/PHPCSStandards/PHPCSUtils - 5d50b94a5336b3ce209aa1f52fe59044bffc7b7c authored almost 5 years agoAdd support for arrow functions to the `BCFile::getMethodProperties()` and the sister-method `Fu...
github.com/PHPCSStandards/PHPCSUtils - 10f0daeb5a6d289ada0216519635c4ca6dbf37cf authored almost 5 years ago* Use the `FunctionDeclarations::getArrowFunctionOpenClose()` utility to determine whether a tok...
github.com/PHPCSStandards/PHPCSUtils - a4abd344a396c18c15186463b93e2a1289a723dc authored almost 5 years ago* Use the `FunctionDeclarations::isArrowFunction()` utility to determine whether a token is an a...
github.com/PHPCSStandards/PHPCSUtils - 2cd5342eff2c7623f13ab8c2dfc2e2b2b3715b74 authored almost 5 years agoAdd support for arrow functions to the `BCFile::getMethodParameters()` and the sister-method `Fu...
github.com/PHPCSStandards/PHPCSUtils - defe04f3c122ad051dc6451646730cca43ae2c07 authored almost 5 years agogithub.com/PHPCSStandards/PHPCSUtils - d6ddf4e728cd919f3b34d4726a171c0a3d9f7b29 authored almost 5 years ago
This introduces two new utilities to allow for detecting and analyzing PHP 7.4 arrow functions.
...
... for backwards compatibility to the `BCFile::isReference()` and the sister-method `Operators:...
github.com/PHPCSStandards/PHPCSUtils - f2ebedb5f5277542bfac85f443a5c5bf750fdc76 authored almost 5 years agoPHPCS does not adjust the return type token for arrow functions to `T_STRING` until PHPCS 3.5.3/...
github.com/PHPCSStandards/PHPCSUtils - 05464c7beb790089b07c483e742ea3573698229a authored almost 5 years agoDocumentation: update `@copyright` year
github.com/PHPCSStandards/PHPCSUtils - 024e95789b3ea8f09810d51de5f5e9cd540fc2ea authored almost 5 years agogithub.com/PHPCSStandards/PHPCSUtils - 531c5b423140ab311e355ce8f08cedd66b512eac authored almost 5 years ago
Build/PHPCS: remove temporary exclusion
github.com/PHPCSStandards/PHPCSUtils - ea0d3314194ababbdced9e043f03a22c09c535c6 authored almost 5 years agogithub.com/PHPCSStandards/PHPCSUtils - b4443d902e4764477772392cd2f0ca72d156e497 authored almost 5 years ago
Travis: run sniff stage of PHP 7.4
github.com/PHPCSStandards/PHPCSUtils - 1bd121969b2cff7caad30f4d73ae1e5850b83588 authored almost 5 years agogithub.com/PHPCSStandards/PHPCSUtils - 4ed622d143d48bb252b7e13793eb34f157026c97 authored almost 5 years ago
BCFile::getCondition()/Conditions::getCondition(): sync with PHPCS 3.5.4 / new $first parameter
github.com/PHPCSStandards/PHPCSUtils - c67b2fb23ab927fe49d6386847c7ab9ebc72ea51 authored almost 5 years agoPHPCS 3.5.4 introduces a new `$first` parameter to the `File::getCondition()` function.
The PHP...
github.com/PHPCSStandards/PHPCSUtils - 0392f8f2b3e682f40cec4b16e38ad7c30e6c8a5b authored almost 5 years agoNew Utils\ControlStructures class
github.com/PHPCSStandards/PHPCSUtils - 8d9cf7b8fa6049bb7d9fda8faa61932277a19bbe authored almost 5 years ago
This adds three new utility methods:
* `hasBody()` - to check whether a control structure has a ...
Tokens\Collections::$alternativeControlStructureSyntaxCloserTokens: add missing T_ENDDECLARE
github.com/PHPCSStandards/PHPCSUtils - fa998697d20c44bf208e8b32a355b951de5a39aa authored almost 5 years agoBugfix: Composer scripts/commands broken in 0.6.0 update
github.com/PHPCSStandards/composer-installer - 8001af8eb107fbfcedc31a8b51e20b07d85b457a authored almost 5 years agogithub.com/PHPCSStandards/PHPCSUtils - 4961a93785668e7c129df547bc45b7039be8658f authored almost 5 years ago
Tokens\Collections: add new `$alternativeControlStructureSyntaxCloserTokens` property
github.com/PHPCSStandards/PHPCSUtils - f337ce93d986f7f43482bb7439d4f755e35f9c9a authored almost 5 years agogithub.com/PHPCSStandards/PHPCSUtils - e76b615734f9536af0d7af2f77d5063f05e5b0ca authored almost 5 years ago
IfElseDeclaration: fix unintentional parse error in the unit tests
github.com/PHPCSStandards/PHPCSExtra - ada74747d4144197b9add6e418642f024f68684d authored almost 5 years agogithub.com/PHPCSStandards/PHPCSExtra - 18bde833cdf1b125a338761688886fbe84cdee72 authored almost 5 years ago
After the 0.6.0 update, Composer's `scripts/post-install-cmd` and `scripts/post-update-cmd` were...
github.com/PHPCSStandards/composer-installer - 2d2882638cc95d8372f074bed0c2d803d99b50e2 authored almost 5 years agoDuplicateArrayKey: fix line nr in error message
github.com/PHPCSStandards/PHPCSExtra - 2b660547f2baa1bd1664fe1c9cbed5fe597fe9aa authored almost 5 years agoFollow up on PR 18
github.com/PHPCSStandards/PHPCSExtra - 4ea72bfa61209cbdac8fce939552c90eae4269fc authored almost 5 years agoTravis: remove redundant condition
github.com/PHPCSStandards/PHPCSUtils - e0d203504f94df0f2a6794c09667afadb360cdc0 authored almost 5 years agoIfElseDeclaration: respect tab indentation
github.com/PHPCSStandards/PHPCSExtra - 304f66bfb987c70a38a74d23480784fe4103b7e5 authored almost 5 years agoAs the tests for this repo do not use the PHPCS native test classes, there is no need for toggli...
github.com/PHPCSStandards/PHPCSUtils - d8d1d3d3c34fd2b4d69f847783d2665a4648289a authored almost 5 years agoIf tabs were replaced in the file on which the sniff was used, use the original content to make ...
github.com/PHPCSStandards/PHPCSExtra - ca888ed4957a87dd39ad03afade5c076723a4123 authored almost 5 years agoDuplicateArrayKey: improve error message
github.com/PHPCSStandards/PHPCSExtra - af3a9ab7d7f5fb3594fc0bc56812f38705b78f8d authored almost 5 years agoCLI docs: line length tweaks and one incorrect example fix
github.com/PHPCSStandards/PHPCSExtra - 243a165e17dd42e0647d284aa738994e7bd7b142 authored almost 5 years agoThe item nr doesn't really add value and can be confusing.
github.com/PHPCSStandards/PHPCSExtra - 07fa9650804991bbcead837bfedf18159c39d484 authored almost 5 years agogithub.com/PHPCSStandards/PHPCSExtra - 9039a7d5cce2d1fa6bde6e691bf2076cd210de06 authored almost 5 years ago
Fix for issue #103
github.com/PHPCSStandards/composer-installer - 2a57571bf26833442fe71503c60368b0aad8844d authored almost 5 years ago
Previously the check would only run if the plugin was require-dev.
That behaviour is incorrect, ...
If the phpcodesniffer-composer-installer plugin is installed as a dev
requirement and it is then...
1.0.0-alpha1
github.com/PHPCSStandards/PHPCSExtra - 8670f1856865c37eeee63a00fd24fed6962b6202 authored almost 5 years ago1.0.0-alpha1
github.com/PHPCSStandards/PHPCSUtils - 17c369202671ed42cfb9e653c3a865a68595fac6 authored almost 5 years agoNew `Universal.Arrays.MixedArrayKeyTypes` sniff
github.com/PHPCSStandards/PHPCSExtra - 183e887ea903c0a2f4c845b5f31cda9ac00e5582 authored almost 5 years agoNew `Universal.Arrays.MixedKeyedUnkeyedArray` sniff
github.com/PHPCSStandards/PHPCSExtra - ec3d9eab26e5b18bae1c557f0fe5006379fa667e authored almost 5 years agoNew `Universal.Arrays.DuplicateArrayKey` sniff
github.com/PHPCSStandards/PHPCSExtra - 868f9e31d64c6159b43b84994b55b651b3cdc88b authored almost 5 years agoNew `NormalizedArrays.Arrays.ArrayBraceSpacing` sniff
github.com/PHPCSStandards/PHPCSExtra - 0fce87c33c126474ffc05d7c4e9a50b3b362fc7a authored almost 5 years agoNew `NormalizedArrays.Arrays.CommaAfterLast` sniff
github.com/PHPCSStandards/PHPCSExtra - 7a78dabde3edc5cb8fa1ef6d29016883ca4328f6 authored almost 5 years agoNew `Universal.ControlStructures.IfElseDeclaration` sniff
github.com/PHPCSStandards/PHPCSExtra - 352c9a5111398fa3bad559072700829617dcc63a authored almost 5 years agoNew `Universal.UseStatements.DisallowUseConst` sniff
github.com/PHPCSStandards/PHPCSExtra - 94de0819fbeecf9a5d5b2baddc85aedd3c013efd authored almost 5 years agoNew `Universal.UseStatements.DisallowUseFunction` sniff
github.com/PHPCSStandards/PHPCSExtra - a49764e43dda369d6d1e2e011caa28b3add16869 authored almost 5 years agoNew `Universal.UseStatements.DisallowUseClass` sniff
github.com/PHPCSStandards/PHPCSExtra - 7b43ee59efca72968c8c67f1be06bef89cb5b24c authored almost 5 years agoNew `Universal.Namespaces.OneDeclarationPerFile` sniff
github.com/PHPCSStandards/PHPCSExtra - 11b6b1f922e65a95219eb0e0e06e2265b73dde49 authored almost 5 years agoNew `Universal.Namespaces.DisallowCurlyBraceSyntax` sniff
github.com/PHPCSStandards/PHPCSExtra - 401aa68f5c19be91f75d472ff893eb8f016736f8 authored almost 5 years agoNew `Universal.Namespaces.EnforceCurlyBraceSyntax` sniff
github.com/PHPCSStandards/PHPCSExtra - 889e6af57a77cf224ba8ff114de4cec2c8b6cba3 authored almost 5 years agoBest practice sniff: either have all array items with numeric keys or with string keys. Don't us...
github.com/PHPCSStandards/PHPCSExtra - badd720042f14803bcd88312ffe3c1697a6fab63 authored almost 5 years agoBest practice sniff: either have all array items with keys or none. Don't use a mix of keyed and...
github.com/PHPCSStandards/PHPCSExtra - 39148886214630f018c8e1766ac59129af3bf506 authored almost 5 years agoBest practice sniff: detects duplicate array keys in array declarations.
Includes unit tests.
I...
Enforce consistent spacing for the open/close braces of arrays.
The sniff allows for having dif...
github.com/PHPCSStandards/PHPCSExtra - 1365caa509230fdbd3bd01179b52a5795c4d45fc authored almost 5 years agoNew Fixers\SpacesFixer class
github.com/PHPCSStandards/PHPCSUtils - 0d57749c4c32dd45eea4f39d65034e0f126aebbd authored almost 5 years agoNew `Abstracts\AbstractArrayDeclarationSniff`
github.com/PHPCSStandards/PHPCSUtils - 02db423fb3ce0ab456bc775da2dab897e31d703e authored almost 5 years agoOperators::isUnaryPlusMinus(): add tests with PHP 7.4 numeric literals using underscores
github.com/PHPCSStandards/PHPCSUtils - 01238ebb16a09779b12ea4ceb56c309fbb384b56 authored almost 5 years agoConfigurable sniff to enforce/forbid a comma after the last array item.
By default, this sniff ...
github.com/PHPCSStandards/PHPCSExtra - 5163e7f43e92e8fd14a989a9418c2c97f9db53b2 authored almost 5 years agogithub.com/PHPCSStandards/PHPCSExtra - f51cacb6cc74e3312ae4165029ce0dfb1acc6107 authored almost 5 years ago
New sniff to verify that `else(if)` statements with braces are on a new line.
Sister-sniff to t...
github.com/PHPCSStandards/PHPCSExtra - 516d06be9a6a61a2e74cb3519355d53ed385162e authored almost 5 years agoSniff to forbid using import use statements for constants.
The sniff contains two error codes `...
github.com/PHPCSStandards/PHPCSExtra - 4e27fd76b3a169e7864ca03c3c98dd6e606cc6ca authored almost 5 years agoSniff to forbid using import use statements for functions.
The sniff contains two error codes `...
github.com/PHPCSStandards/PHPCSExtra - 84d205c93c1a96ec9f370fe0a241ffcf481a96bf authored almost 5 years agoSniff to forbid using import use statements for classes/traits/interfaces.
The sniff contains t...
github.com/PHPCSStandards/PHPCSExtra - 8d5bb109cf4ade0507486813bb9ac4b94a381777 authored almost 5 years agoNew sniff to disallow the use of multiple namespaces within a file.
Includes unit tests.
Includ...
New sniff to enforce using the alternative namespace syntax using curly braces:
```php
namespace...
New sniff to disallow the alternative namespace syntax using curly braces:
```php
namespace Vend...
New DisallowShortListSyntax and DisallowLongListSyntax sniffs (includes QA setup)
github.com/PHPCSStandards/PHPCSExtra - efaf0ffdd934134f697cc3c4d9ba4c90252cd32e authored almost 5 years ago... to safeguard that the function will handle these correctly.
github.com/PHPCSStandards/PHPCSUtils - 184febe009adc214eaed941ddb1054623794d07b authored almost 5 years ago
This:
* Adds a PHPUnit `phpunit.xml.dist` configuration file.
* Adds a `phpunit-bootstrap.php` f...
This new class offers one versatile utility function `checkAndFix()` to - as the name implies - ...
github.com/PHPCSStandards/PHPCSUtils - aa30b057645907727c5ad710eeedc1def0f64345 authored almost 5 years ago