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

Abstracts\AbstractArrayDeclarationSniff: new `getActualArrayKey()` method

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]>
:sparkles: New `Abstracts\AbstractArrayDeclarationSniff`

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]>
Merge pull request #62 from PHPCSStandards/feature/new-numbers-class

New Utils\Numbers class

github.com/PHPCSStandards/PHPCSUtils - d5ae80057f35805951294c36ebf5444ecd9254ca authored almost 5 years ago by Juliette <[email protected]>
Merge pull request #61 from PHPCSStandards/feature/variable-implement-textstrings-stripquotes

Variables::isSuperglobal(): implement use of TextStrings::stripQuotes()

github.com/PHPCSStandards/PHPCSUtils - 3879272fed784b44d052abbfa523e65ae594f4cf authored almost 5 years ago by Juliette <[email protected]>
:wrench: QA: add code style check for the code in this repo

This:
* Adds a custom PHPCS ruleset which uses the `PHPCSDev` ruleset to check the code style of...

github.com/PHPCSStandards/PHPCSExtra - 6168b0be490fe9a05ae464263183ccf51278b673 authored almost 5 years ago by jrfnl <[email protected]>
:wrench: QA: check all sniffs contributed are feature complete

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]>
:sparkles: New `Universal.Lists.DisallowShortListSyntax` sniff

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]>
:sparkles: New `Universal.Lists.DisallowLongListSyntax` sniff

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]>
:wrench: QA: lint PHP files in this repo

github.com/PHPCSStandards/PHPCSExtra - 9ef6a9598961e984ef622cf5a438bdf4c2a2354f authored almost 5 years ago by jrfnl <[email protected]>
:sparkles: New Utils\Numbers class

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]>
Variables::isSuperglobal(): implement use of TextStrings::stripQuotes()

github.com/PHPCSStandards/PHPCSUtils - bb245d175eeaeab0a148d148b40d6daf6f77ae9d authored almost 5 years ago by jrfnl <[email protected]>
Merge pull request #60 from PHPCSStandards/feature/new-textstrings-class

New Utils\TextStrings class

github.com/PHPCSStandards/PHPCSUtils - e72a83a5588ffb73b8db5f123acf6cf8a0e9bcbc authored almost 5 years ago by Juliette <[email protected]>
Merge pull request #59 from PHPCSStandards/feature/new-orthography-class

New Utils\Orthography class

github.com/PHPCSStandards/PHPCSUtils - e951d5454403682b51b8a69a5b5e250b7b608901 authored almost 5 years ago by Juliette <[email protected]>
Merge pull request #58 from PHPCSStandards/feature/arrays-new-getdoublearrowptr-utility

Utils\Arrays: add new getDoubleArrowPtr() utility method

github.com/PHPCSStandards/PHPCSUtils - 179baafcb6408c55e5d982f9cebb2bd19c9d00ec authored almost 5 years ago by Juliette <[email protected]>
Merge pull request #2 from PHPCSStandards/feature/add-initial-rulesets

Add the initial rulesets

github.com/PHPCSStandards/PHPCSExtra - b942d446e71f6a77d1cb60443fecda7021530923 authored almost 5 years ago by Juliette <[email protected]>
NormalizedArrays: add ruleset

github.com/PHPCSStandards/PHPCSExtra - 41e13772e8bfaf94211a3df7a0e4135a046b4e8f authored almost 5 years ago by jrfnl <[email protected]>
:wrench: QA: lint the ruleset XML files

github.com/PHPCSStandards/PHPCSExtra - 57e885d2b3675a2f56ee02d50e0c83f90c1ef2ff authored almost 5 years ago by jrfnl <[email protected]>
Universal: add ruleset

github.com/PHPCSStandards/PHPCSExtra - 2b0478e9268e85f98b4c43bb4e286f3b04839b50 authored almost 5 years ago by jrfnl <[email protected]>
:sparkles: New Utils\TextStrings class

This introduces two new methods:
* `getCompleteTextString()` - to retrieve the complete text str...

github.com/PHPCSStandards/PHPCSUtils - d723d2e006c5c39389fe10e4d038c8596449f44b authored almost 5 years ago by jrfnl <[email protected]>
Orthography::isLastCharPunctuation(): PHP/PHPCS cross-version compatibility fix

The default charset for the PHP iconv extension changed in PHP 5.6 from ISO-8859-1 to UTF-8.
The...

github.com/PHPCSStandards/PHPCSUtils - 190612250a97eb72e3723ac962584bb6a20ddff2 authored almost 5 years ago by jrfnl <[email protected]>
:sparkles: New Utils\Orthography class

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]>
Utils\Arrays: add new getDoubleArrowPtr() utility method

This adds a new utility method:
* `getDoubleArrowPtr()` - to find the position of a double arrow...

github.com/PHPCSStandards/PHPCSUtils - 06436970a4f50625b8431aae2d161a8a7dd28db5 authored almost 5 years ago by jrfnl <[email protected]>
Merge pull request #57 from PHPCSStandards/feature/arrays-new-getopenclose-utility

Utils\Arrays: add new getOpenClose() utility method

github.com/PHPCSStandards/PHPCSUtils - e438508d6258d00394e5c5f13bc0db938143600a authored almost 5 years ago by Juliette <[email protected]>
Initial development environment setup

github.com/PHPCSStandards/PHPCSExtra - 4e79df3724605856e9c55fdfdaf6fa82968b056d authored almost 5 years ago by jrfnl <[email protected]>
Add LGPLv3 License

github.com/PHPCSStandards/PHPCSExtra - 428bcc914c3b180a9c96dae09dc2b99b5a11fe00 authored almost 5 years ago by jrfnl <[email protected]>
Merge pull request #56 from PHPCSStandards/feature/passedparameters-fix-bc-for-short-arrays

Utils\PassedParameters: fix PHPC cross-version compatibility for short arrays

github.com/PHPCSStandards/PHPCSUtils - 01bc6e0c820368f736af9378b090e90e3254930f authored almost 5 years ago by Juliette <[email protected]>
Utils\Arrays: add new getOpenClose() utility method

This adds a new utility method:
* `getOpenClose()` - to retrieve the open and close brackets for...

github.com/PHPCSStandards/PHPCSUtils - 8d49d1bf622182ef57b8240613b083c86ed656d6 authored almost 5 years ago by jrfnl <[email protected]>
Utils\PassedParameters: fix PHPC cross-version compatibility for short arrays

... 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]>
Merge pull request #55 from PHPCSStandards/feature/variables-getmemberprops-update-docs

Variables::getMemberProperties(): minor documentation update

github.com/PHPCSStandards/PHPCSUtils - f65bd09e23fb204b224e21e4803daef098843d1a authored almost 5 years ago by Juliette <[email protected]>
Merge pull request #54 from PHPCSStandards/feature/arrays-isshortarray-make-compatible-with-older-phpcs

Arrays::isShortArray(): fix compatibility with older PHPCS versions

github.com/PHPCSStandards/PHPCSUtils - 139d8a09d794183dacf269089a95246dd96d5a1b authored almost 5 years ago by Juliette <[email protected]>
Variables::getMemberProperties(): minor documentation update

github.com/PHPCSStandards/PHPCSUtils - 7ac877d1afd3e0dfbdaa1d91a9fa48d662002bff authored almost 5 years ago by jrfnl <[email protected]>
Arrays::isShortArray(): fix compatibility with PHPCS < 2.8.0 [4]

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]>
Arrays::isShortArray(): fix compatibility with PHPCS 2.8.0 - 2.8.1 [3]

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]>
Arrays::isShortArray(): fix compatibility with PHPCS < 2.9.0 [2]

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]>
Arrays::isShortArray(): add tests for PHPCS BC compatibility

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]>
Arrays::isShortArray(): fix compatibility with PHPCS 2.8.0 - 3.2.3 [1]

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]>
Merge pull request #53 from PHPCSStandards/feature/new-arrays-class

New Utils\Arrays class

github.com/PHPCSStandards/PHPCSUtils - 64b31cc785f4c377c10c4d87ab5e9c718ff196fc authored almost 5 years ago by Juliette <[email protected]>
:sparkles: New Utils\Arrays class

This adds a new utility method:
* `isShortArray()` - to check whether a short array is in actual...

github.com/PHPCSStandards/PHPCSUtils - f31e4d9d3f6824b95c899560299759d42bcc0c70 authored almost 5 years ago by jrfnl <[email protected]>
Merge pull request #52 from PHPCSStandards/feature/lists-new-getassignments-utility

Utils\Lists: add new getAssignments() utility method

github.com/PHPCSStandards/PHPCSUtils - a6f4fae6f8557861885aa7919a6405958848ea53 authored almost 5 years ago by Juliette <[email protected]>
Utils\Lists: add new getAssignments() utility method

This adds a new utility method:
* `getAssignments()` - to retrieve information on the assignment...

github.com/PHPCSStandards/PHPCSUtils - f3ad3506bbeeff6861c10da9c0b2f8ed48a6eb5c authored almost 5 years ago by jrfnl <[email protected]>
Merge pull request #51 from PHPCSStandards/feature/lists-getopenclose-utility

Utils\Lists: add new getOpenClose() utility method

github.com/PHPCSStandards/PHPCSUtils - ed74c0739c03265b48ebfde3cfbab1f76f79c207 authored almost 5 years ago by Juliette <[email protected]>
Utils\Lists: add new getOpenClose() utility method

This adds a new utility method:
* `getOpenClose()` - to retrieve the open and close brackets for...

github.com/PHPCSStandards/PHPCSUtils - e34f278907bfbbf3a0fec257742e9b62ac905c9b authored almost 5 years ago by jrfnl <[email protected]>
Merge pull request #50 from PHPCSStandards/feature/collections-minor-docs-fix

Tokens\Collections: minor documentation tweak

github.com/PHPCSStandards/PHPCSUtils - 7e292c3ff0f01763e0222159f403ad61f3db09d0 authored almost 5 years ago by Juliette <[email protected]>
Tokens\Collections: minor documentation tweak

github.com/PHPCSStandards/PHPCSUtils - cec4d243aa4988bb3938ea4b9e4b4ae383a54754 authored almost 5 years ago by jrfnl <[email protected]>
Merge pull request #49 from PHPCSStandards/feature/new-lists-class

New Utils\Lists class

github.com/PHPCSStandards/PHPCSUtils - d8d28a1cc55e047597684c0dd422abf6e92d4300 authored almost 5 years ago by Juliette <[email protected]>
Merge pull request #48 from PHPCSStandards/feature/new-passed-parameters-class

New Utils\PassedParameters class

github.com/PHPCSStandards/PHPCSUtils - 01aa0d13efc202aa62c2023b46bfee750d224f87 authored almost 5 years ago by Juliette <[email protected]>
Merge pull request #47 from PHPCSStandards/feature/operators-new-isshortternary-utility

Utils\Operators: add new isShortTernary() utility method

github.com/PHPCSStandards/PHPCSUtils - 1bb684a157e5c56754e86c408d6ca1fd1b2f2ac8 authored almost 5 years ago by Juliette <[email protected]>
Lists::isShortList(): fix compatibility with PHPCS < 2.8.0 [3]

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]>
Lists::isShortList(): safeguard PHPCS cross-version compatibility [2]

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]>
Lists::isShortList(): fix compatibility with PHPCS 2.8.0 - 3.2.3 [1]

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]>
:sparkles: New Utils\Lists class

This adds a new utility method:
* `isShortList()` - to check whether a short array is in actual ...

github.com/PHPCSStandards/PHPCSUtils - 1de47018398381dea5bb1b58d558433dcb8b63c8 authored almost 5 years ago by jrfnl <[email protected]>
:sparkles: New Utils\PassedParameters class

This introduces four new methods to PHPCSUtils.

These methods are intended for use with:
* `T_S...

github.com/PHPCSStandards/PHPCSUtils - 7c03cc1331568e29e5647f317b0d6616cda1043b authored almost 5 years ago by jrfnl <[email protected]>
Utils\Operators: add new isShortTernary() utility method

This adds a new utility method:
* `isShortTernary()` - to check whether a ternary then/else oper...

github.com/PHPCSStandards/PHPCSUtils - 6f3c1ab09194853e75ef6df97625e2101b7defcb authored almost 5 years ago by jrfnl <[email protected]>
Merge pull request #46 from PHPCSStandards/feature/operators-new-isunaryplusminus-utility

Utils\Operators: add new isUnaryPlusMinus() utility method

github.com/PHPCSStandards/PHPCSUtils - 72a6c3cb7521e8444f25ee2111b92e497343b78f authored almost 5 years ago by Juliette <[email protected]>
Operators::isUnaryPlusMinus(): fix compatibility with PHPCS < 3.1.0

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]>
Utils\Operators: add new isUnaryPlusMinus() utility method

This adds a new utility method:
* `isUnaryPlusMinus()` - to check whether a plus/minus sign is a...

github.com/PHPCSStandards/PHPCSUtils - 5d9b4d2ec815f334af33ff2597fd482349b9dd9e authored almost 5 years ago by jrfnl <[email protected]>
Merge pull request #45 from PHPCSStandards/feature/operators-isreference-various-improvements

Operators::isReference(): various improvements

github.com/PHPCSStandards/PHPCSUtils - 42829256819e523decc48f1ebd9a7e7903f79b75 authored almost 5 years ago by Juliette <[email protected]>
Operators::isReference(): fix compatibility with PHPCS 2.8.0 - 3.2.3

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]>
Operators::isReference(): add tests for select tokenizer issues

github.com/PHPCSStandards/PHPCSUtils - 8e2079ed90b1e4f40a7af99612ccec4e397ef317 authored almost 5 years ago by jrfnl <[email protected]>
Operators::isReference(): improve defensive coding

Includes unit test.

github.com/PHPCSStandards/PHPCSUtils - b2b68ef82e751c5cde2dfdd71431ae3dce4208e0 authored almost 5 years ago by jrfnl <[email protected]>
Operators::isReference(): implement use of the Parentheses and FunctionDeclarations classes

...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]>
Merge pull request #44 from PHPCSStandards/feature/new-operators-class

New Utils\Operators class

github.com/PHPCSStandards/PHPCSUtils - 760b438d2b925cf7d563f2149a6573d6e4d4c97b authored almost 5 years ago by Juliette <[email protected]>
Merge pull request #43 from PHPCSStandards/feature/new-namespaces-class

New Utils\Namespaces class

github.com/PHPCSStandards/PHPCSUtils - 1005985e13687a0244bfd82f4cf333085150909f authored almost 5 years ago by Juliette <[email protected]>
Merge pull request #42 from PHPCSStandards/feature/functiondeclarations-getparams-use-isclosureuse

FunctionDeclarations::getParameters(): implement use of UseStatements::isClosureUse()

github.com/PHPCSStandards/PHPCSUtils - 8f4303fbb6d25d84f112fac9fabcd69933033da2 authored almost 5 years ago by Juliette <[email protected]>
PHPCS ruleset: add temporary exclusion for bug in PHPCS upstream

github.com/PHPCSStandards/PHPCSUtils - 40201e785dfcae6c5c89df39a0960417da99662d authored almost 5 years ago by jrfnl <[email protected]>
:sparkles: New Utils\Operators class

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]>
Namespaces::findNamespacePtr(): fix compatibility with PHPCS < 3.3.0

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]>
:sparkles: New Utils\Namespaces class

This introduces six new methods to PHPCSUtils.

Methods:
* `getType()` - to determine what a T_N...

github.com/PHPCSStandards/PHPCSUtils - 52f1a964801829147122314c7bc78954c1578eeb authored almost 5 years ago by jrfnl <[email protected]>
FunctionDeclarations::getParameters(): implement use of UseStatements::isClosureUse()

... 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]>
Merge pull request #41 from PHPCSStandards/feature/new-usestatements-class

New Utils\UseStatements class

github.com/PHPCSStandards/PHPCSUtils - 590189a266b26ec9e38067482202d3fb450ff2dc authored almost 5 years ago by Juliette <[email protected]>
UseStatements::splitImportUseStatement(): fix PHPCS cross-version compatibility

For this class to be compatible with PHPCS 2.6.0 - `master`, two work-arounds need to be added:
...

github.com/PHPCSStandards/PHPCSUtils - 3feb7cdeeb2e86b833d681e82ec833e02caeead9 authored almost 5 years ago by jrfnl <[email protected]>
:sparkles: New Utils\UseStatements class

This introduces five new utility methods to PHPCSUtils.

Methods:
* `getType()` - to determine t...

github.com/PHPCSStandards/PHPCSUtils - ab51452c6c979e487f622a7d3b0b9e013b7e3243 authored almost 5 years ago by jrfnl <[email protected]>
Merge pull request #40 from PHPCSStandards/feature/variables-add-new-reserved-name-utilities

Utils\Variables: add new reserved name related utility methods

github.com/PHPCSStandards/PHPCSUtils - cc7cf360992ca83d176140906eac080b5e78325c authored almost 5 years ago by Juliette <[email protected]>
Utils\Variables: add new reserved name related utility methods

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]>
Merge pull request #39 from PHPCSStandards/feature/variables-getmemberproperties-various-improvements

Variables::getMemberProperties(): various improvements

github.com/PHPCSStandards/PHPCSUtils - ff2cbd5dbf642af01bb48c5be1249197c91022cc authored almost 5 years ago by Juliette <[email protected]>
Variables::getMemberProperties(): minor code reorganization

* 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]>
Variables::getMemberProperties(): improve defensive coding

Includes unit test.

github.com/PHPCSStandards/PHPCSUtils - 4b9d20d28227d0a71ff7d9349a4445afabaeb306 authored almost 5 years ago by jrfnl <[email protected]>
Variables::getMemberProperties(): implement use of Scopes class and remove parse error warning

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]>
Merge pull request #38 from PHPCSStandards/feature/new-variables-class

New Utils\Variables class

github.com/PHPCSStandards/PHPCSUtils - ab45a9b2bb92a461d999097cd86c8587a694676d authored almost 5 years ago by Juliette <[email protected]>
:sparkles: New Utils\Variables class

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]>
Merge pull request #37 from PHPCSStandards/feature/functiondeclarations-add-reserved-name-utilities

Util\FunctionDeclarations: add new reserved name related utility methods

github.com/PHPCSStandards/PHPCSUtils - c8c37be01b414cfa7924ee994eb6dd63d5b7abc7 authored almost 5 years ago by Juliette <[email protected]>
Merge pull request #36 from PHPCSStandards/feature/bcfile-getmethodparameters-test-minor-docs-fix

BCFile:GetMethodParametersTest: minor documentation fix

github.com/PHPCSStandards/PHPCSUtils - aa0ebd0d58119aa394bb1248fe40c5a27eb19463 authored almost 5 years ago by Juliette <[email protected]>
Util\FunctionDeclarations: add new reserved name related utility methods

Add three new properties related to PHP reserved function names:
* `$magicFunctions`
* `$magicMe...

github.com/PHPCSStandards/PHPCSUtils - 621f195039dba187e9252c52435c04f71e688b35 authored almost 5 years ago by jrfnl <[email protected]>
Merge pull request #35 from PHPCSStandards/feature/token-collections-add-paramtypetokens

Tokens\Collections: New `$parameterTypeTokens` token array

github.com/PHPCSStandards/PHPCSUtils - e4686d20e1d18b0a9a2b3caa04c1382d5a520192 authored almost 5 years ago by Juliette <[email protected]>
Merge pull request #34 from PHPCSStandards/feature/functiondeclarations-getparameters-various-improvements

FunctionDeclarations::getParameters(): various improvements

github.com/PHPCSStandards/PHPCSUtils - 1f6d1aeffe8a4b9e677394a1506766ad513b2e85 authored almost 5 years ago by Juliette <[email protected]>
BCFile:GetMethodParametersTest: minor documentation fix

github.com/PHPCSStandards/PHPCSUtils - 6ffc65d88ce2986f872667e5651f864ab445bfe2 authored almost 5 years ago by jrfnl <[email protected]>
Tokens\Collections: New `$parameterTypeTokens` token array

github.com/PHPCSStandards/PHPCSUtils - d387025a797040a6a37e78f6c346ec8431977267 authored almost 5 years ago by jrfnl <[email protected]>
FunctionDeclarations::getParameters(): code simplification and efficiency fix

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]>
FunctionDeclarations::getParameters(): efficiency fix / use type determination

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]>
FunctionDeclarations::getParameters(): switch over to using GetTokensAsString class

No change in behaviour (yet).

github.com/PHPCSStandards/PHPCSUtils - c84294b34e53f055274ba289b4292389e2a344d5 authored almost 5 years ago by jrfnl <[email protected]>
FunctionDeclarations::getParameters(): improve defensive coding

Includes unit test.

github.com/PHPCSStandards/PHPCSUtils - bf7a9d32a75199d32255b1720cfcb5a65ba9f566 authored almost 5 years ago by jrfnl <[email protected]>
FunctionDeclarations::getParameters(): improve documentation

github.com/PHPCSStandards/PHPCSUtils - e233aff81671aba33f23868998d3cc1a9d2583cc authored almost 5 years ago by jrfnl <[email protected]>
Merge pull request #33 from PHPCSStandards/feature/functiondeclarations-getproperties-various-improvements

FunctionDeclarations::getProperties(): various improvements

github.com/PHPCSStandards/PHPCSUtils - 60e120edb015ea3aee91a6bf2bc9107604143f2b authored almost 5 years ago by Juliette <[email protected]>
FunctionDeclarations::getProperties(): add 'return_type_end_token' to the array

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]>
FunctionDeclarations::getProperties(): has_body determination - efficiency fix + bug fix

No need to walk the same set of tokens twice to determine whether a function has a body.
We alre...

github.com/PHPCSStandards/PHPCSUtils - 198371590e10d7064ae2e19715285a1ed6201896 authored almost 5 years ago by jrfnl <[email protected]>
FunctionDeclarations::getProperties(): minor code reorganization

* 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]>
FunctionDeclarations::getProperties(): improve defensive coding

Includes unit test.

github.com/PHPCSStandards/PHPCSUtils - 37e7788265b7edf64d68526162ae3693f52e230a authored almost 5 years ago by jrfnl <[email protected]>
FunctionDeclarations::getProperties(): fix handling of PHPCS annotations

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]>
Merge pull request #32 from PHPCSStandards/feature/new-functiondeclarations-class

New Utils\FunctionDeclarations class

github.com/PHPCSStandards/PHPCSUtils - 39b8a3d93ef59c5dfcd39d459c18efb81daa5aa8 authored almost 5 years ago by Juliette <[email protected]>
:sparkles: New Utils\FunctionDeclarations class

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]>