Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/PHPCSStandards/PHPCSUtils

A suite of utility functions for use with PHP_CodeSniffer
https://github.com/PHPCSStandards/PHPCSUtils

BCFile::getMemberProperties(): fix compatibility with PHPCS < 3.5.0

* The `T_NULLABLE` token was only introduced in PHPCS 2.8.0, so the constant may not exist.
* Pr...

58ecf6b83918187bf580231f26ef00fc0848c418 authored about 5 years ago by jrfnl <[email protected]>
BCFile::getMemberProperties(): make the existing unit tests compatible with PHPUnit 8+

70fa3d8160f2d980425f4468d26a630bde28c3f3 authored about 5 years ago by jrfnl <[email protected]>
BCFile::getMemberProperties(): make the existing unit tests feature complete

* Test the correct determination of the token position for the `type_token` and the `type_end_to...

4e0dc85921964d463ed31519a8b676d6722c440b authored about 5 years ago by jrfnl <[email protected]>
BCFile::getMemberProperties(): add changelog for PHPCS changes

... between PHPCS 2.6.0 and now.

0d39db156db1721be9f9204a4d5d1d6fa9df3e45 authored about 5 years ago by jrfnl <[email protected]>
BCFile::getMemberProperties(): improve documentation

3b40648215a38edd6b28bbec2acde1447ca55257 authored about 5 years ago by jrfnl <[email protected]>
BCFile::getMethodProperties(): fix compatibility with PHPCS < 3.3.0

* Between PHPCS 2.4.0 and 3.2.3, return types were tokenized as `T_RETURN_TYPE`.
This has be...

e82095918c139a8e79d8de322c6488621625bf43 authored about 5 years ago by jrfnl <[email protected]>
BCFile::getMethodProperties(): make the existing unit tests feature complete

* Test the correct determination of the token position for the `return_type_token` index key.
* ...

040e6fe1950d50dd576258bc0e596b0776a2717c authored about 5 years ago by jrfnl <[email protected]>
BCFile::getMethodProperties(): add changelog for PHPCS changes

... between PHPCS 2.6.0 and now.

63926af49dd4e39a23225a3a663b698fecc494d2 authored about 5 years ago by jrfnl <[email protected]>
BCFile::getMethodProperties(): improve documentation

a238a1531471568297c02aebca3f409cdac46ed0 authored about 5 years ago by jrfnl <[email protected]>
BCFile::getMethodParameters(): fix compatibility with PHPCS < 2.8.0

* The `T_NULLABLE` token was only introduced in PHPCS 2.8.0, so the constant may not exist.
...

449e97e283ff2368bc281f261e9f68b33779d1bc authored about 5 years ago by jrfnl <[email protected]>
BCFile::getMethodParameters(): fix compatibility with PHPCS < 3.3.0

* Between PHPCS 2.4.0 and 3.2.3, array type declaration were tokenized as `T_ARRAY_HINT`.
Th...

cac1fd653131904e6adf3ab3ea667d6eba0910c4 authored about 5 years ago by jrfnl <[email protected]>
BCFile::getMethodParameters(): fix "type_hint_end_token" bleed through

Fixed a bug where a subsequent parameter without type declaration would get the `type_hint_end_t...

ecdd40d0248c9068a187148971aecb9e4889d85b authored about 5 years ago by jrfnl <[email protected]>
BCFile::getMethodParameters(): make the existing unit tests feature complete [2]

* Test the situations in which the method returns an empty array.
* Add a significant number of ...

d2e274fd22a84ab6e6436f649ff292feab9c9f5f authored about 5 years ago by jrfnl <[email protected]>
BCFile::getMethodParameters(): make the existing unit tests feature complete [1]

Test the correct determination of the token position for the various `...token` index keys.

b3ab83ea8c053b74ea6b4660195f543157bcd0f6 authored about 5 years ago by jrfnl <[email protected]>
BCFile::getMethodParameters(): re-order unit tests

List the unit tests in the order they are run.

c5d3bf7ab27f9dac6acc678fee3e751526510318 authored about 5 years ago by jrfnl <[email protected]>
BCFile::getMethodParameters(): add changelog for PHPCS changes

... between PHPCS 2.6.0 and now.

b475c0fa2410ca14a26a9be72c49599abd7a52d7 authored about 5 years ago by jrfnl <[email protected]>
BCFile::getDeclarationName(): add changelog for PHPCS changes

... between PHPCS 2.6.0 and now.

5d40250b846aee9567489cf953fdafc21bf5650e authored about 5 years ago by jrfnl <[email protected]>
BCFile::getDeclarationName(): improve documentation

a40df92766b1b445971c779671b050cd3b046864 authored about 5 years ago by jrfnl <[email protected]>
BackCompat\BCFile: adjust docs & CS (unit tests)

Minimal adjustments to the docs and code style to make the classes fit into PHPCSUtils properly....

c1bd924f82489ca2d0aa54ad7f125f4dbbcb37a6 authored about 5 years ago by jrfnl <[email protected]>
BackCompat\BCFile: adjust docs & CS

Minimal adjustments to the docs and code style to make the class fit into PHPCSUtils properly.

...

07ef9ce16b481d5d065a8a82e71d0d8d2d343dc2 authored about 5 years ago by jrfnl <[email protected]>
BackCompat\BCFile: adjust to work within PHPCSUtils

* Adjust namespace.
* Minor adjustments to import use statements.
* Adjust class name.
The c...

798a63f900c65477ab5173f238ab0d4fad6a86d4 authored about 5 years ago by jrfnl <[email protected]>
BackCompat\BCFile: give credit where credit is due

Add author and copyright information for all the imported code.

Note: the names and email addre...

f91f17edd61afbd5a81aa613d3812ac54f1fda86 authored about 5 years ago by jrfnl <[email protected]>
BackCompat\BCFile: adjust to work within PHPCSUtils (unit tests)

Adjust namespace statement, import use statements and the calls to the functions being tested to...

21423b64785efb16179e4b66b938a5fdff5a1fe8 authored about 5 years ago by jrfnl <[email protected]>
BackCompat\BCFile: import from PHPCS 3.5.0

Import the PHPCS native utility methods from the `File` class as per PHPCS 3.5.0, as well as any...

714fe77e9244aa0384c6a6f6a9435e3f0d00e866 authored about 5 years ago by jrfnl <[email protected]>
Merge pull request #11 from PHPCSStandards/feature/backcompat-new-bctokens-class

New BackCompat\BCTokens class

7346987e66ddefa8736076b77e6e53988c39f424 authored about 5 years ago by Juliette <[email protected]>
:sparkles: New BackCompat\BCTokens class

PHPCS provides a number of static token arrays in the `PHP_CodeSniffer\Util\Tokens` class.
Some ...

50706862bed1d4bddceeca7b9de0e74b097a38f7 authored about 5 years ago by jrfnl <[email protected]>
Merge pull request #10 from PHPCSStandards/feature/helper-add-additional-methods

BackCompat\Helper: add additional PHPCS cross version utility functions

71f2b8d95c912939562eb2fbf50eae2c69448d48 authored about 5 years ago by Juliette <[email protected]>
BackCompat\Helper: add additional PHPCS cross version utility functions

This adds the following additional methods:
* `getCommandLineData()` - get PHPCS config data whi...

f8c8c0afa047733f091b649903e90d54834ca570 authored about 5 years ago by jrfnl <[email protected]>
Merge pull request #9 from PHPCSStandards/feature/testutils-add-utility-method-testcase

New `TestUtils\UtilityMethodTestCase`

3be274417d58f2d958c501b4131450c60fe50c64 authored about 5 years ago by Juliette <[email protected]>
:sparkles: New `TestUtils\UtilityMethodTestCase`

This `PHPCSUtils\TestUtils\UtilityMethodTestCase` can be used to test arbitrary utility methods ...

3978de5d4d8a491c61b9eb6e5fa8535bdc73a043 authored about 5 years ago by jrfnl <[email protected]>
Merge pull request #8 from PHPCSStandards/feature/backcompat-add-phpcs-config-helper

New BackCompat\Helper class (includes unit test setup)

4b1fdbcd76df3800dfd763ccc8d7277a256a2373 authored about 5 years ago by Juliette <[email protected]>
:wrench: QA: enable code coverage recording & checking

Enable Coveralls for code coverage checking.

Includes:
* Convenience script for code coverage c...

da6b7c5e13845f065d0e1d2d313b59f613868f1b authored about 5 years ago by jrfnl <[email protected]>
:wrench: QA: enable unit testing for the code in this repo

This:
* Adds a PHPUnit `phpunit.xml.dist` configuration file.
* Adds a `Tests/bootstrap.php` fil...

1dbf241cf8352807a05d480a4868ccbf09b1fc88 authored about 5 years ago by jrfnl <[email protected]>
:sparkles: New BackCompat\Helper class

Add a `PHPCSUtils\BackCompat\Helper` class for external standards which provides a number of uti...

0d6ada95ced44191965600c06c856ea4d6b9a9e3 authored about 5 years ago by jrfnl <[email protected]>
Merge pull request #7 from PHPCSStandards/feature/add-the-base-rulesets

Add the base rulesets

8a17759d0a20c32a67d91ad62dd6d42120c14db5 authored about 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...

ded69195245beea92463cf6e4e700eb321097e98 authored about 5 years ago by jrfnl <[email protected]>
:wrench: QA: lint PHP files in this repo

d6fac72413e820e019336650500831b8b114ebad authored about 5 years ago by jrfnl <[email protected]>
:wrench: QA: lint the ruleset XML files

25b10b95240068866f0dabf0660b967f4375f7d7 authored about 5 years ago by jrfnl <[email protected]>
PHPCS23Utils: add support for PHPCS 2.x

This commit is two-fold:

1. It enhances the `phpcsutils-autoload.php` file to contain class ali...

7dde2d06e7b0b4a3c3dae4c4a3b9ca26c7380923 authored about 5 years ago by jrfnl <[email protected]>
PHPCSUtils: add an (optional) autoloader

... for external standards which have their own test suite.

In PHPCS > 3.0.2+, when using the P...

bb0807336523540a49b2b393f27d734222d2b0b6 authored about 5 years ago by jrfnl <[email protected]>
PHPCSUtils: add the ruleset file

This will allow PHPCS to recognize PHPCSUtils as if it were an external PHPCS standard and handl...

d25e0e9059036b41546f246bcf6aac7f96bf0fed authored about 5 years ago by jrfnl <[email protected]>
Merge pull request #6 from PHPCSStandards/feature/improve-initial-dev-setup

Some small improvements to the initial dev setup

39c56715a75702c16063bcc1bee0e54d191f9449 authored about 5 years ago by Juliette <[email protected]>
Composer: remove the security-advisories `dev` dependency

... as it would block unit testing this repo on old PHPCS versions.

37cd24d1fd334f537a0ff0b8d4f912ea2479d7a3 authored about 5 years ago by jrfnl <[email protected]>
Composer: make the version requirement for the Composer PHPCS plugin more flexible

... to prevent conflicts with projects, be it external standards or end-user projects, which req...

fd9ce5ec85b8ce79beadb5cd8bf145e336853944 authored about 5 years ago by jrfnl <[email protected]>
Composer: set minimum PHPCS 3.x version to `^3.1.0`

When `installed_paths` is set via a custom, the PHPCS native autoloader cannot find non-sniff fi...

d7a2e4314aeec563c4e13d21cdb44fa757f17663 authored about 5 years ago by jrfnl <[email protected]>
:wrench: Initial development environment setup

0c0e8327438310562a41d76cee93824c1d799bbf authored over 5 years ago by jrfnl <[email protected]>
Add LGPLv3 License

647281871e87ff611d6cddf64305769f9c95480a authored over 5 years ago by Juliette <[email protected]>
Initial commit

f00807655d68095be5f3e8cd5686322a8a733cee authored over 5 years ago by Juliette <[email protected]>