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 is a helper method which can optionally be used from the `processKey()` method to retrieve ...
github.com/PHPCSStandards/PHPCSUtils - c54af67e318c7e81f516b05c14763dfc5946334d authored almost 5 years ago by jrfnl <[email protected]>New abstract sniff to examine array declarations.
This abstract sets up a number of helpful pro...
github.com/PHPCSStandards/PHPCSUtils - 8dcca5ee56ed9e87f13ff7db6e934ec8b4294961 authored almost 5 years ago by jrfnl <[email protected]>New Utils\Numbers class
github.com/PHPCSStandards/PHPCSUtils - d5ae80057f35805951294c36ebf5444ecd9254ca authored almost 5 years ago by Juliette <[email protected]>Variables::isSuperglobal(): implement use of TextStrings::stripQuotes()
github.com/PHPCSStandards/PHPCSUtils - 3879272fed784b44d052abbfa523e65ae594f4cf authored almost 5 years ago by Juliette <[email protected]>
This:
* Adds a custom PHPCS ruleset which uses the `PHPCSDev` ruleset to check the code style of...
The `PHPCSDevTools` repo offers a script to check that all sniffs are "feature complete", i.e. a...
github.com/PHPCSStandards/PHPCSExtra - 3c3c7f10852d8d6ef8b1087310799f8378cede97 authored almost 5 years ago by jrfnl <[email protected]>Sister-sniff to the PHPCS native `Generic.Arrays.DisallowShortArraySyntax` sniffs to disallow th...
github.com/PHPCSStandards/PHPCSExtra - 39c2c6db2216f191352d3bab48112d7261b5774c authored almost 5 years ago by jrfnl <[email protected]>Sister-sniff to the PHPCS native `Generic.Arrays.DisallowLongArraySyntax` and the `Universal.Lis...
github.com/PHPCSStandards/PHPCSExtra - 4d3147ca251f955e5ca316d116031a3cf6d99aa8 authored almost 5 years ago by jrfnl <[email protected]>github.com/PHPCSStandards/PHPCSExtra - 9ef6a9598961e984ef622cf5a438bdf4c2a2354f authored almost 5 years ago by jrfnl <[email protected]>
PHP 7.4 introduced numeric literal separators which break number tokenization in older PHP versi...
github.com/PHPCSStandards/PHPCSUtils - 695d330fc08e8e39ce58d9e72b2e305964c97680 authored almost 5 years ago by jrfnl <[email protected]>github.com/PHPCSStandards/PHPCSUtils - bb245d175eeaeab0a148d148b40d6daf6f77ae9d authored almost 5 years ago by jrfnl <[email protected]>
New Utils\TextStrings class
github.com/PHPCSStandards/PHPCSUtils - e72a83a5588ffb73b8db5f123acf6cf8a0e9bcbc authored almost 5 years ago by Juliette <[email protected]>New Utils\Orthography class
github.com/PHPCSStandards/PHPCSUtils - e951d5454403682b51b8a69a5b5e250b7b608901 authored almost 5 years ago by Juliette <[email protected]>Utils\Arrays: add new getDoubleArrowPtr() utility method
github.com/PHPCSStandards/PHPCSUtils - 179baafcb6408c55e5d982f9cebb2bd19c9d00ec authored almost 5 years ago by Juliette <[email protected]>Add the initial rulesets
github.com/PHPCSStandards/PHPCSExtra - b942d446e71f6a77d1cb60443fecda7021530923 authored almost 5 years ago by Juliette <[email protected]>github.com/PHPCSStandards/PHPCSExtra - 41e13772e8bfaf94211a3df7a0e4135a046b4e8f authored almost 5 years ago by jrfnl <[email protected]>
github.com/PHPCSStandards/PHPCSExtra - 57e885d2b3675a2f56ee02d50e0c83f90c1ef2ff authored almost 5 years ago by jrfnl <[email protected]>
github.com/PHPCSStandards/PHPCSExtra - 2b0478e9268e85f98b4c43bb4e286f3b04839b50 authored almost 5 years ago by jrfnl <[email protected]>
This introduces two new methods:
* `getCompleteTextString()` - to retrieve the complete text str...
The default charset for the PHP iconv extension changed in PHP 5.6 from ISO-8859-1 to UTF-8.
The...
This class adds three new utility methods for dealing with the contents of arbitrary text string...
github.com/PHPCSStandards/PHPCSUtils - 844f2199cc36d116df2cf44cdd8477f18c2c21d2 authored almost 5 years ago by jrfnl <[email protected]>
This adds a new utility method:
* `getDoubleArrowPtr()` - to find the position of a double arrow...
Utils\Arrays: add new getOpenClose() utility method
github.com/PHPCSStandards/PHPCSUtils - e438508d6258d00394e5c5f13bc0db938143600a authored almost 5 years ago by Juliette <[email protected]>github.com/PHPCSStandards/PHPCSExtra - 4e79df3724605856e9c55fdfdaf6fa82968b056d authored almost 5 years ago by jrfnl <[email protected]>
github.com/PHPCSStandards/PHPCSExtra - 428bcc914c3b180a9c96dae09dc2b99b5a11fe00 authored almost 5 years ago by jrfnl <[email protected]>
Utils\PassedParameters: fix PHPC cross-version compatibility for short arrays
github.com/PHPCSStandards/PHPCSUtils - 01bc6e0c820368f736af9378b090e90e3254930f authored almost 5 years ago by Juliette <[email protected]>
This adds a new utility method:
* `getOpenClose()` - to retrieve the open and close brackets for...
... by implementing support for passing a `T_OPEN_SQUARE_BRACKET` token, as well as making sure ...
github.com/PHPCSStandards/PHPCSUtils - 8cf8ee385222dff2eccda40a6f588d9d81fc0c81 authored almost 5 years ago by jrfnl <[email protected]>Variables::getMemberProperties(): minor documentation update
github.com/PHPCSStandards/PHPCSUtils - f65bd09e23fb204b224e21e4803daef098843d1a authored almost 5 years ago by Juliette <[email protected]>Arrays::isShortArray(): fix compatibility with older PHPCS versions
github.com/PHPCSStandards/PHPCSUtils - 139d8a09d794183dacf269089a95246dd96d5a1b authored almost 5 years ago by Juliette <[email protected]>github.com/PHPCSStandards/PHPCSUtils - 7ac877d1afd3e0dfbdaa1d91a9fa48d662002bff authored almost 5 years ago by jrfnl <[email protected]>
Work around a bug in the tokenizer of PHPCS < 2.8.0 where a `[` would be tokenized as T_OPEN_SQU...
github.com/PHPCSStandards/PHPCSUtils - 5ebc2024faa42bb0e261778b5b60bdcb982e81ec authored almost 5 years ago by jrfnl <[email protected]>Work around a bug in the tokenizer of PHPCS 2.8.0 and 2.8.1 where array dereferencing of a varia...
github.com/PHPCSStandards/PHPCSUtils - cd2fd3ee0b70ea68210d6d7cd7ea5facfecccc71 authored almost 5 years ago by jrfnl <[email protected]>Work around a bug in the tokenizer of PHPCS < 2.9.0 where array dereferencing of short arrays an...
github.com/PHPCSStandards/PHPCSUtils - 7ac307b5df267d1b22c37a7f8cfd36d9b14f62ae authored almost 5 years ago by jrfnl <[email protected]>The PHPCS tokenizer has had a number of issues over the years where the brackets for short array...
github.com/PHPCSStandards/PHPCSUtils - 16aadca3b358c459b2ef499de68a29a6c104ab95 authored almost 5 years ago by jrfnl <[email protected]>PHPCS 2.8.0 - 3.2.3 contained a bug where a square open bracket `[` as the first code content af...
github.com/PHPCSStandards/PHPCSUtils - a1af576d48021a4c9514a0ebd72b7e2c5d4ba475 authored almost 5 years ago by jrfnl <[email protected]>New Utils\Arrays class
github.com/PHPCSStandards/PHPCSUtils - 64b31cc785f4c377c10c4d87ab5e9c718ff196fc authored almost 5 years ago by Juliette <[email protected]>
This adds a new utility method:
* `isShortArray()` - to check whether a short array is in actual...
Utils\Lists: add new getAssignments() utility method
github.com/PHPCSStandards/PHPCSUtils - a6f4fae6f8557861885aa7919a6405958848ea53 authored almost 5 years ago by Juliette <[email protected]>
This adds a new utility method:
* `getAssignments()` - to retrieve information on the assignment...
Utils\Lists: add new getOpenClose() utility method
github.com/PHPCSStandards/PHPCSUtils - ed74c0739c03265b48ebfde3cfbab1f76f79c207 authored almost 5 years ago by Juliette <[email protected]>
This adds a new utility method:
* `getOpenClose()` - to retrieve the open and close brackets for...
Tokens\Collections: minor documentation tweak
github.com/PHPCSStandards/PHPCSUtils - 7e292c3ff0f01763e0222159f403ad61f3db09d0 authored almost 5 years ago by Juliette <[email protected]>github.com/PHPCSStandards/PHPCSUtils - cec4d243aa4988bb3938ea4b9e4b4ae383a54754 authored almost 5 years ago by jrfnl <[email protected]>
New Utils\Lists class
github.com/PHPCSStandards/PHPCSUtils - d8d28a1cc55e047597684c0dd422abf6e92d4300 authored almost 5 years ago by Juliette <[email protected]>New Utils\PassedParameters class
github.com/PHPCSStandards/PHPCSUtils - 01aa0d13efc202aa62c2023b46bfee750d224f87 authored almost 5 years ago by Juliette <[email protected]>Utils\Operators: add new isShortTernary() utility method
github.com/PHPCSStandards/PHPCSUtils - 1bb684a157e5c56754e86c408d6ca1fd1b2f2ac8 authored almost 5 years ago by Juliette <[email protected]>PHPCS < 2.8.0 contained a bug where a square open bracket `[` directly following a closing curly...
github.com/PHPCSStandards/PHPCSUtils - 9e895f718587bb55fe04b2ab5d8ef385f9aa80cb authored almost 5 years ago by jrfnl <[email protected]>Add unit tests safeguarding that the method handles upstream tokenizer bug 1381 correctly.
Ref:...
github.com/PHPCSStandards/PHPCSUtils - e892a7dd13484e40b5c0fc302ca65f9f64912366 authored almost 5 years ago by jrfnl <[email protected]>PHPCS 2.8.0 - 3.2.3 contained a bug where a square open bracket `[` as the first code content af...
github.com/PHPCSStandards/PHPCSUtils - ae786c1cd9747c4d53842067fd5ec110f601f130 authored almost 5 years ago by jrfnl <[email protected]>
This adds a new utility method:
* `isShortList()` - to check whether a short array is in actual ...
This introduces four new methods to PHPCSUtils.
These methods are intended for use with:
* `T_S...
This adds a new utility method:
* `isShortTernary()` - to check whether a ternary then/else oper...
Utils\Operators: add new isUnaryPlusMinus() utility method
github.com/PHPCSStandards/PHPCSUtils - 72a6c3cb7521e8444f25ee2111b92e497343b78f authored almost 5 years ago by Juliette <[email protected]>The PHP 5.5 `T_YIELD` token was not backfilled in PHPCS until version 3.1.0.
This commit adds w...
github.com/PHPCSStandards/PHPCSUtils - a35f5edb1f71c7af8529348b4d68ed9597bf4397 authored almost 5 years ago by jrfnl <[email protected]>
This adds a new utility method:
* `isUnaryPlusMinus()` - to check whether a plus/minus sign is a...
Operators::isReference(): various improvements
github.com/PHPCSStandards/PHPCSUtils - 42829256819e523decc48f1ebd9a7e7903f79b75 authored almost 5 years ago by Juliette <[email protected]>PHPCS 2.8.0 - 3.2.3 contained a bug where a square open bracket `[` as the first code content af...
github.com/PHPCSStandards/PHPCSUtils - 95fc47e5c1ce9e78921cae4d137df70bbb2d9b40 authored almost 5 years ago by jrfnl <[email protected]>github.com/PHPCSStandards/PHPCSUtils - 8e2079ed90b1e4f40a7af99612ccec4e397ef317 authored almost 5 years ago by jrfnl <[email protected]>
Includes unit test.
github.com/PHPCSStandards/PHPCSUtils - b2b68ef82e751c5cde2dfdd71431ae3dce4208e0 authored almost 5 years ago by jrfnl <[email protected]>...and remove redundant code from the "is this a function parameter passed by reference" check.
github.com/PHPCSStandards/PHPCSUtils - e964ee7558fa99ba8aa38c7954a8883039dc9a21 authored almost 5 years ago by jrfnl <[email protected]>New Utils\Operators class
github.com/PHPCSStandards/PHPCSUtils - 760b438d2b925cf7d563f2149a6573d6e4d4c97b authored almost 5 years ago by Juliette <[email protected]>New Utils\Namespaces class
github.com/PHPCSStandards/PHPCSUtils - 1005985e13687a0244bfd82f4cf333085150909f authored almost 5 years ago by Juliette <[email protected]>FunctionDeclarations::getParameters(): implement use of UseStatements::isClosureUse()
github.com/PHPCSStandards/PHPCSUtils - 8f4303fbb6d25d84f112fac9fabcd69933033da2 authored almost 5 years ago by Juliette <[email protected]>github.com/PHPCSStandards/PHPCSUtils - 40201e785dfcae6c5c89df39a0960417da99662d authored almost 5 years ago by jrfnl <[email protected]>
New `PHPCSUtils\Utils\Operators` class which will initially hold an improved version of the `Fil...
github.com/PHPCSStandards/PHPCSUtils - e25c326f10c11889412203a4ca46498a80d988ce authored almost 5 years ago by jrfnl <[email protected]>This method runs into a bug in PHPCS where curlies for variable variables received an incorrect ...
github.com/PHPCSStandards/PHPCSUtils - 0f9f99958ae45fe7562d0d2bc503150417028e1e authored almost 5 years ago by jrfnl <[email protected]>This introduces six new methods to PHPCSUtils.
Methods:
* `getType()` - to determine what a T_N...
... and improve the exception message thrown when a non-closure `T_USE` token was passed.
github.com/PHPCSStandards/PHPCSUtils - ef04c0bc37810986cc78a239a799c7142ede0b7d authored almost 5 years ago by jrfnl <[email protected]>New Utils\UseStatements class
github.com/PHPCSStandards/PHPCSUtils - 590189a266b26ec9e38067482202d3fb450ff2dc authored almost 5 years ago by Juliette <[email protected]>
For this class to be compatible with PHPCS 2.6.0 - `master`, two work-arounds need to be added:
...
This introduces five new utility methods to PHPCSUtils.
Methods:
* `getType()` - to determine t...
Utils\Variables: add new reserved name related utility methods
github.com/PHPCSStandards/PHPCSUtils - cc7cf360992ca83d176140906eac080b5e78325c authored almost 5 years ago by Juliette <[email protected]>
Add a new property related to PHP reserved variables names:
* `$phpReservedVars`
Also adds thre...
github.com/PHPCSStandards/PHPCSUtils - ac4219bab8fa1afbee99768fff8c7a0890d30cd6 authored almost 5 years ago by jrfnl <[email protected]>Variables::getMemberProperties(): various improvements
github.com/PHPCSStandards/PHPCSUtils - ff2cbd5dbf642af01bb48c5be1249197c91022cc authored almost 5 years ago by Juliette <[email protected]>* Move the modifier keywords token array to a class property in the `PHPCSUtils\Tokens\Collectio...
github.com/PHPCSStandards/PHPCSUtils - 7b05d705c60e2d4ea56f1c211c07c462ad05c73a authored almost 5 years ago by jrfnl <[email protected]>Includes unit test.
github.com/PHPCSStandards/PHPCSUtils - 4b9d20d28227d0a71ff7d9349a4445afabaeb306 authored almost 5 years ago by jrfnl <[email protected]>The parse error warning is the purpose of this method, so doesn't belong here.
As an "interface...
github.com/PHPCSStandards/PHPCSUtils - 5f4b1d652777b41bc8908d3408807befce965c84 authored almost 5 years ago by jrfnl <[email protected]>New Utils\Variables class
github.com/PHPCSStandards/PHPCSUtils - ab45a9b2bb92a461d999097cd86c8587a694676d authored almost 5 years ago by Juliette <[email protected]>New `PHPCSUtils\Utils\Variables` class which will hold an improved version of the `File::getMemb...
github.com/PHPCSStandards/PHPCSUtils - ee1100660cfa88b32ba553dce58805c95001d3b1 authored almost 5 years ago by jrfnl <[email protected]>Util\FunctionDeclarations: add new reserved name related utility methods
github.com/PHPCSStandards/PHPCSUtils - c8c37be01b414cfa7924ee994eb6dd63d5b7abc7 authored almost 5 years ago by Juliette <[email protected]>BCFile:GetMethodParametersTest: minor documentation fix
github.com/PHPCSStandards/PHPCSUtils - aa0ebd0d58119aa394bb1248fe40c5a27eb19463 authored almost 5 years ago by Juliette <[email protected]>
Add three new properties related to PHP reserved function names:
* `$magicFunctions`
* `$magicMe...
Tokens\Collections: New `$parameterTypeTokens` token array
github.com/PHPCSStandards/PHPCSUtils - e4686d20e1d18b0a9a2b3caa04c1382d5a520192 authored almost 5 years ago by Juliette <[email protected]>FunctionDeclarations::getParameters(): various improvements
github.com/PHPCSStandards/PHPCSUtils - 1f6d1aeffe8a4b9e677394a1506766ad513b2e85 authored almost 5 years ago by Juliette <[email protected]>github.com/PHPCSStandards/PHPCSUtils - 6ffc65d88ce2986f872667e5651f864ab445bfe2 authored almost 5 years ago by jrfnl <[email protected]>
github.com/PHPCSStandards/PHPCSUtils - d387025a797040a6a37e78f6c346ec8431977267 authored almost 5 years ago by jrfnl <[email protected]>
Once the equal sign has been found, we know that everything else until the end of the parameter ...
github.com/PHPCSStandards/PHPCSUtils - d3823774afe15e3cbe1d2fbd6b3c45bc90a50606 authored almost 5 years ago by jrfnl <[email protected]>Prevent the method from walking far, far ahead if it would have been passed an import `use` or a...
github.com/PHPCSStandards/PHPCSUtils - 8bda08b5563e853536e31cf1b4e8c5d8d15d48b7 authored almost 5 years ago by jrfnl <[email protected]>No change in behaviour (yet).
github.com/PHPCSStandards/PHPCSUtils - c84294b34e53f055274ba289b4292389e2a344d5 authored almost 5 years ago by jrfnl <[email protected]>Includes unit test.
github.com/PHPCSStandards/PHPCSUtils - bf7a9d32a75199d32255b1720cfcb5a65ba9f566 authored almost 5 years ago by jrfnl <[email protected]>github.com/PHPCSStandards/PHPCSUtils - e233aff81671aba33f23868998d3cc1a9d2583cc authored almost 5 years ago by jrfnl <[email protected]>
FunctionDeclarations::getProperties(): various improvements
github.com/PHPCSStandards/PHPCSUtils - 60e120edb015ea3aee91a6bf2bc9107604143f2b authored almost 5 years ago by Juliette <[email protected]>The `getParameters()` method already returns stack pointers to both the "start" and "end" of a p...
github.com/PHPCSStandards/PHPCSUtils - 766bfe1c3b3b8a39aff8b609636eea268253de5e authored almost 5 years ago by jrfnl <[email protected]>
No need to walk the same set of tokens twice to determine whether a function has a body.
We alre...
* Move the return type tokens array to a class property in the `PHPCSUtils\Tokens\Collections` c...
github.com/PHPCSStandards/PHPCSUtils - e47ed7d3a098bdfb09f7b785563bba98b8427cf4 authored almost 5 years ago by jrfnl <[email protected]>Includes unit test.
github.com/PHPCSStandards/PHPCSUtils - 37e7788265b7edf64d68526162ae3693f52e230a authored almost 5 years ago by jrfnl <[email protected]>While probably unlikely to come across in the wild, the utility should handle this type of code ...
github.com/PHPCSStandards/PHPCSUtils - 648bd4143d5fff7bf834d4f59387e2aeaae95f10 authored almost 5 years ago by jrfnl <[email protected]>New Utils\FunctionDeclarations class
github.com/PHPCSStandards/PHPCSUtils - 39b8a3d93ef59c5dfcd39d459c18efb81daa5aa8 authored almost 5 years ago by Juliette <[email protected]>New `PHPCSUtils\Utils\FunctionDeclarations` class which will hold improved versions of the `File...
github.com/PHPCSStandards/PHPCSUtils - dcf10fbd1762e8d80343810adf9b277974858541 authored almost 5 years ago by jrfnl <[email protected]>