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

:sparkles: Set up the PHPCSDev ruleset

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 ago
:wrench: Initial git environment setup

github.com/PHPCSStandards/PHPCSDevCS - 2259c7357afe8bd4e0a89b20ce97df198bdee4b3 authored almost 5 years ago
Merge pull request #82 from PHPCSStandards/feature/findendofstatement-simplify-tests

FindEndOfStatementTest: simplify the tests

github.com/PHPCSStandards/PHPCSUtils - c57bcb0c8128513dd720ba3b4490026e63b0d363 authored almost 5 years ago
Merge pull request #81 from PHPCSStandards/feature/test-ifelseif-bugfix

ControlStructures/IsElseIfTest: bug fix

github.com/PHPCSStandards/PHPCSUtils - 90137f97d890f61e6b73c0dce053802f3f4598bf authored almost 5 years ago
FindEndOfStatementTest: simplify the tests

These are the same changes as pulled upstream in squizlabs/PHP_CodeSniffer 2866

* Use the `Abst...

github.com/PHPCSStandards/PHPCSUtils - b133843232590e13e003af8bb01d7b50371294a3 authored almost 5 years ago
ControlStructures/IsElseIfTest: bug fix

Three 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 ago
Merge pull request #80 from PHPCSStandards/feature/various-minor-documentation-fixes

Documentation: various minor fixes

github.com/PHPCSStandards/PHPCSUtils - cd69520c6f14cc2e14ad8e6afb695406ecbecd5d authored almost 5 years ago
Merge pull request #78 from PHPCSStandards/feature/various-minor-tidying-up

Various minor tidying up

github.com/PHPCSStandards/PHPCSUtils - 6210f71af5e7fec931bee14765312daa17568690 authored almost 5 years ago
Various minor tidying up

github.com/PHPCSStandards/PHPCSUtils - 80c736d4ec3020efd7ff23108b4f27c4f183b1c5 authored almost 5 years ago
Documentation: various minor fixes

github.com/PHPCSStandards/PHPCSUtils - 878561f62bf3d9dfbe8bdf181410da573fee5cc4 authored almost 5 years ago
Merge pull request #79 from PHPCSStandards/functiondeclarations/sync-arrow-functions-with-phpcs-3.5.5

Improve support for arrow functions / sync with phpcs 3.5.5

github.com/PHPCSStandards/PHPCSUtils - 00b8ca9bdacd466f4268fece4181349fbc198f99 authored almost 5 years ago
Improve on previous arrow function implementation in various utilities

* Change checking of the return value of the `FunctionDeclarations::getArrowFunctionOpenClose()`...

github.com/PHPCSStandards/PHPCSUtils - 37440af5171d44619b8009302a59b58b65f815e2 authored almost 5 years ago
FunctionDeclarations::isArrowFunction()/getArrowFunctionOpenClose(): sync with PHPCS 3.5.5

This brings the `FunctionDeclarations::isArrowFunction()` and `FunctionDeclarations::getArrowFun...

github.com/PHPCSStandards/PHPCSUtils - ef96ac4d79a18723094989e71bfa2b6e7b28f1e8 authored almost 5 years ago
FunctionDeclarations::getArrowFunctionOpenClose(): move fixed array to property

github.com/PHPCSStandards/PHPCSUtils - 5ecdf04b5be12d084d972184f14dd0211cf57cd6 authored almost 5 years ago
Implement use of the new `Collections::arrowFunctionTokensBC()` method

... in all applicable places.

github.com/PHPCSStandards/PHPCSUtils - d5b33dba789b28a1f46bb84ba1ecc4a6756a5abc authored almost 5 years ago
Tokens\Collections: add new `arrowFunctionTokensBC()` method

... to retrieve the tokens which can represent the arrow function keyword.

Includes unit tests.

github.com/PHPCSStandards/PHPCSUtils - e2f17bd2ca5aab49b1c6f4f72be322609a203a51 authored almost 5 years ago
Merge pull request #77 from PHPCSStandards/feature/add-support-for-arrow-functions

Add support for arrow functions

github.com/PHPCSStandards/PHPCSUtils - 2ad3390d1fc21cc98e961e2ef372fe79bacdb8b5 authored almost 5 years ago
Parentheses::getOwner()/isOwnerIn(): add support for arrow functions

Allow for the `PHPCSUtils\Utils\Parentheses::getOwner()` and `PHPCSUtils\Utils\Parentheses::isOw...

github.com/PHPCSStandards/PHPCSUtils - 020627d0a950da599ffdd302401c318b7dea4109 authored almost 5 years ago
BCFile::findStartOfStatement(): add support for arrow functions

* Add support for arrow functions to the `BCFile::findStartOfStatement()` method as per upstrea...

github.com/PHPCSStandards/PHPCSUtils - 6179eb0782bf06a21a71a7c3d7fc46944a798c8d authored almost 5 years ago
PassedParameters: add unit test with arrow function

github.com/PHPCSStandards/PHPCSUtils - dfdaccb0ee9cdd4e6783da1a4dac5dc534c68868 authored almost 5 years ago
BCFile::findEndOfStatement(): fix backward compatibility with PHPCS < 3.5.3/3.5.4

github.com/PHPCSStandards/PHPCSUtils - 10cf39d24ca81811aeb308fe3c9418dbe281ca66 authored almost 5 years ago
Arrays::getDoubleArrowPtr(): handle arrow functions

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
BCFile::findEndOfStatement(): add support for arrow functions

* Add support for arrow functions to the `BCFile::findEndOfStatement()` method as per upstream ...

github.com/PHPCSStandards/PHPCSUtils - 23c5d8984d921ad5e17858ff73781e0c0e8a2aba authored almost 5 years ago
FunctionDeclaration::getProperties(): document bug fix - 'has_body' = `false` for unfinished arrow functions

The `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 ago
BCFile::getDeclarationName(): fix backward compatibility with PHPCS < 3.5.3

github.com/PHPCSStandards/PHPCSUtils - 087409092b64325fcb5f3d6b52ee2e8621ec3142 authored almost 5 years ago
BCFile::getDeclarationName(): allow functions to be called "fn"

... for backwards compatibility.

As per upstream commit squizlabs/PHP_CodeSniffer@37dda44ed3bf3...

github.com/PHPCSStandards/PHPCSUtils - 5d50b94a5336b3ce209aa1f52fe59044bffc7b7c authored almost 5 years ago
BCFile/FunctionDeclarations::get[Method]Properties(): add support for arrow functions

Add support for arrow functions to the `BCFile::getMethodProperties()` and the sister-method `Fu...

github.com/PHPCSStandards/PHPCSUtils - 10f0daeb5a6d289ada0216519635c4ca6dbf37cf authored almost 5 years ago
BCFile/FunctionDeclarations::get[Method]Properties(): fix backward compatibility with PHPCS < 3.5.3

* Use the `FunctionDeclarations::getArrowFunctionOpenClose()` utility to determine whether a tok...

github.com/PHPCSStandards/PHPCSUtils - a4abd344a396c18c15186463b93e2a1289a723dc authored almost 5 years ago
BCFile/FunctionDeclarations::get[Method]Parameters(): fix backward compatibility with PHPCS < 3.5.3

* Use the `FunctionDeclarations::isArrowFunction()` utility to determine whether a token is an a...

github.com/PHPCSStandards/PHPCSUtils - 2cd5342eff2c7623f13ab8c2dfc2e2b2b3715b74 authored almost 5 years ago
BCFile/FunctionDeclarations::get[Method]Parameters(): add support for arrow functions

Add support for arrow functions to the `BCFile::getMethodParameters()` and the sister-method `Fu...

github.com/PHPCSStandards/PHPCSUtils - defe04f3c122ad051dc6451646730cca43ae2c07 authored almost 5 years ago
BCFile/Operators::isReference(): fix backward compatibility with PHPCS < 3.5.3

github.com/PHPCSStandards/PHPCSUtils - d6ddf4e728cd919f3b34d4726a171c0a3d9f7b29 authored almost 5 years ago
Utils\FunctionDeclarations: new arrow function helper utilities

This introduces two new utilities to allow for detecting and analyzing PHP 7.4 arrow functions.
...

github.com/PHPCSStandards/PHPCSUtils - c22a30a7ab18511609aa440378423ebddb3cc4ca authored almost 5 years ago
BCFile/Operators::isReference(): allow for arrow functions returning by reference

... for backwards compatibility to the `BCFile::isReference()` and the sister-method `Operators:...

github.com/PHPCSStandards/PHPCSUtils - f2ebedb5f5277542bfac85f443a5c5bf750fdc76 authored almost 5 years ago
Tokens\Collections: add `T_ARRAY` to $returnTypeTokens

PHPCS 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 ago
Merge pull request #76 from PHPCSStandards/feature/docs/update-copyright-years

Documentation: update `@copyright` year

github.com/PHPCSStandards/PHPCSUtils - 024e95789b3ea8f09810d51de5f5e9cd540fc2ea authored almost 5 years ago
Documentation: update `@copyright` year

github.com/PHPCSStandards/PHPCSUtils - 531c5b423140ab311e355ce8f08cedd66b512eac authored almost 5 years ago
Merge pull request #75 from PHPCSStandards/feature/phpcs-ruleset-remove-temporary-exclusion

Build/PHPCS: remove temporary exclusion

github.com/PHPCSStandards/PHPCSUtils - ea0d3314194ababbdced9e043f03a22c09c535c6 authored almost 5 years ago
Build/PHPCS: remove temporary exclusion now PHPCS 3.5.4 has been released

github.com/PHPCSStandards/PHPCSUtils - b4443d902e4764477772392cd2f0ca72d156e497 authored almost 5 years ago
Merge pull request #74 from PHPCSStandards/feature/travis-sniff-stage-on-php-7.4

Travis: run sniff stage of PHP 7.4

github.com/PHPCSStandards/PHPCSUtils - 1bd121969b2cff7caad30f4d73ae1e5850b83588 authored almost 5 years ago
Travis: run sniff stage of PHP 7.4

github.com/PHPCSStandards/PHPCSUtils - 4ed622d143d48bb252b7e13793eb34f157026c97 authored almost 5 years ago
Merge pull request #73 from PHPCSStandards/feature/getconditions-sync-with-upstream

BCFile::getCondition()/Conditions::getCondition(): sync with PHPCS 3.5.4 / new $first parameter

github.com/PHPCSStandards/PHPCSUtils - c67b2fb23ab927fe49d6386847c7ab9ebc72ea51 authored almost 5 years ago
BCFile::getCondition()/Conditions::getCondition(): sync with PHPCS 3.5.4 / new $first parameter

PHPCS 3.5.4 introduces a new `$first` parameter to the `File::getCondition()` function.

The PHP...

github.com/PHPCSStandards/PHPCSUtils - 0392f8f2b3e682f40cec4b16e38ad7c30e6c8a5b authored almost 5 years ago
Merge pull request #70 from PHPCSStandards/feature/new-controlstructures-class

New Utils\ControlStructures class

github.com/PHPCSStandards/PHPCSUtils - 8d9cf7b8fa6049bb7d9fda8faa61932277a19bbe authored almost 5 years ago
:sparkles: New Utils\ControlStructures class

This adds three new utility methods:
* `hasBody()` - to check whether a control structure has a ...

github.com/PHPCSStandards/PHPCSUtils - 97f7bfeaa106c4d1bb461d3ca85e03a3fda23329 authored almost 5 years ago
Merge pull request #69 from PHPCSStandards/feature/tokens-collections-alt-controlstructure-tokens

Tokens\Collections::$alternativeControlStructureSyntaxCloserTokens: add missing T_ENDDECLARE

github.com/PHPCSStandards/PHPCSUtils - fa998697d20c44bf208e8b32a355b951de5a39aa authored almost 5 years ago
Merge pull request #105 from BrianHenryIE/master

Bugfix: Composer scripts/commands broken in 0.6.0 update

github.com/PHPCSStandards/composer-installer - 8001af8eb107fbfcedc31a8b51e20b07d85b457a authored almost 5 years ago
Tokens\Collections::$alternativeControlStructureSyntaxCloserTokens: add missing T_ENDDECLARE

github.com/PHPCSStandards/PHPCSUtils - 4961a93785668e7c129df547bc45b7039be8658f authored almost 5 years ago
Merge pull request #68 from PHPCSStandards/feature/tokens-collections-add-new-property

Tokens\Collections: add new `$alternativeControlStructureSyntaxCloserTokens` property

github.com/PHPCSStandards/PHPCSUtils - f337ce93d986f7f43482bb7439d4f755e35f9c9a authored almost 5 years ago
Tokens\Collections: add new `$alternativeControlStructureSyntaxCloserTokens` property

github.com/PHPCSStandards/PHPCSUtils - e76b615734f9536af0d7af2f77d5063f05e5b0ca authored almost 5 years ago
Merge pull request #21 from PHPCSStandards/feature/ifelsedeclaration-minor-fix-unit-tests

IfElseDeclaration: fix unintentional parse error in the unit tests

github.com/PHPCSStandards/PHPCSExtra - ada74747d4144197b9add6e418642f024f68684d authored almost 5 years ago
IfElseDeclaration: fix unintentional parse error in the unit tests

github.com/PHPCSStandards/PHPCSExtra - 18bde833cdf1b125a338761688886fbe84cdee72 authored almost 5 years ago
Bugfix: Composer broken in 0.6.0 update

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 ago
Merge pull request #20 from PHPCSStandards/feature/duplicatearraykey-fix-line-nr-in-msg

DuplicateArrayKey: fix line nr in error message

github.com/PHPCSStandards/PHPCSExtra - 2b660547f2baa1bd1664fe1c9cbed5fe597fe9aa authored almost 5 years ago
DuplicateArrayKey: fix line nr in error message

Follow up on PR 18

github.com/PHPCSStandards/PHPCSExtra - 4ea72bfa61209cbdac8fce939552c90eae4269fc authored almost 5 years ago
Merge pull request #67 from PHPCSStandards/feature/travis-remove-redundant-phpunit-toggle

Travis: remove redundant condition

github.com/PHPCSStandards/PHPCSUtils - e0d203504f94df0f2a6794c09667afadb360cdc0 authored almost 5 years ago
Merge pull request #19 from PHPCSStandards/feature/ifelsedeclaration-use-orig-content

IfElseDeclaration: respect tab indentation

github.com/PHPCSStandards/PHPCSExtra - 304f66bfb987c70a38a74d23480784fe4103b7e5 authored almost 5 years ago
Travis: remove redundant condition

As 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 ago
IfElseDeclaration: respect tab indentation

If 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 ago
Merge pull request #18 from PHPCSStandards/feature/duplicatearraykey-improve-error-message

DuplicateArrayKey: improve error message

github.com/PHPCSStandards/PHPCSExtra - af3a9ab7d7f5fb3594fc0bc56812f38705b78f8d authored almost 5 years ago
Merge pull request #17 from PHPCSStandards/feature/fix-cli-docs-line-length

CLI docs: line length tweaks and one incorrect example fix

github.com/PHPCSStandards/PHPCSExtra - 243a165e17dd42e0647d284aa738994e7bd7b142 authored almost 5 years ago
DuplicateArrayKey: improve error message

The item nr doesn't really add value and can be confusing.

github.com/PHPCSStandards/PHPCSExtra - 07fa9650804991bbcead837bfedf18159c39d484 authored almost 5 years ago
CLI docs: line length tweaks and one incorrect example fix

github.com/PHPCSStandards/PHPCSExtra - 9039a7d5cce2d1fa6bde6e691bf2076cd210de06 authored almost 5 years ago
Merge pull request #104 from potherca-contrib/issue/103-exit-code-on-unistall

Fix for issue #103

github.com/PHPCSStandards/composer-installer - 2a57571bf26833442fe71503c60368b0aad8844d authored almost 5 years ago
Change "is plugin uninstalled?" check to always run

Previously the check would only run if the plugin was require-dev.
That behaviour is incorrect, ...

github.com/PHPCSStandards/composer-installer - 8a008d5e0ba06d21d975fbb38c4c4229cd01aa6b authored almost 5 years ago
Fix for issue #103

If the phpcodesniffer-composer-installer plugin is installed as a dev
requirement and it is then...

github.com/PHPCSStandards/composer-installer - dc6d0e2b2ad11dc41f0716c99fad66e9ea11c074 authored almost 5 years ago
Merge pull request #16 from PHPCSStandards/develop

1.0.0-alpha1

github.com/PHPCSStandards/PHPCSExtra - 8670f1856865c37eeee63a00fd24fed6962b6202 authored almost 5 years ago
Merge pull request #66 from PHPCSStandards/develop

1.0.0-alpha1

github.com/PHPCSStandards/PHPCSUtils - 17c369202671ed42cfb9e653c3a865a68595fac6 authored almost 5 years ago
Merge pull request #15 from PHPCSStandards/feature/new-arrays-mixedarraykeytypes-sniff

New `Universal.Arrays.MixedArrayKeyTypes` sniff

github.com/PHPCSStandards/PHPCSExtra - 183e887ea903c0a2f4c845b5f31cda9ac00e5582 authored almost 5 years ago
Merge pull request #14 from PHPCSStandards/feature/new-arrays-mixedkeyedunkeyed-sniff

New `Universal.Arrays.MixedKeyedUnkeyedArray` sniff

github.com/PHPCSStandards/PHPCSExtra - ec3d9eab26e5b18bae1c557f0fe5006379fa667e authored almost 5 years ago
Merge pull request #13 from PHPCSStandards/feature/new-arrays-duplicatearraykey-sniff

New `Universal.Arrays.DuplicateArrayKey` sniff

github.com/PHPCSStandards/PHPCSExtra - 868f9e31d64c6159b43b84994b55b651b3cdc88b authored almost 5 years ago
Merge pull request #12 from PHPCSStandards/feature/new-arrays-arraybracespacing-sniff

New `NormalizedArrays.Arrays.ArrayBraceSpacing` sniff

github.com/PHPCSStandards/PHPCSExtra - 0fce87c33c126474ffc05d7c4e9a50b3b362fc7a authored almost 5 years ago
Merge pull request #11 from PHPCSStandards/feature/new-arrays-commafterlast-sniff

New `NormalizedArrays.Arrays.CommaAfterLast` sniff

github.com/PHPCSStandards/PHPCSExtra - 7a78dabde3edc5cb8fa1ef6d29016883ca4328f6 authored almost 5 years ago
Merge pull request #10 from PHPCSStandards/feature/new-ifelsedeclaration-sniff

New `Universal.ControlStructures.IfElseDeclaration` sniff

github.com/PHPCSStandards/PHPCSExtra - 352c9a5111398fa3bad559072700829617dcc63a authored almost 5 years ago
Merge pull request #9 from PHPCSStandards/feature/new-usestatements-disallowuseconst-sniff

New `Universal.UseStatements.DisallowUseConst` sniff

github.com/PHPCSStandards/PHPCSExtra - 94de0819fbeecf9a5d5b2baddc85aedd3c013efd authored almost 5 years ago
Merge pull request #8 from PHPCSStandards/feature/new-usestatements-disallowusefunction-sniff

New `Universal.UseStatements.DisallowUseFunction` sniff

github.com/PHPCSStandards/PHPCSExtra - a49764e43dda369d6d1e2e011caa28b3add16869 authored almost 5 years ago
Merge pull request #7 from PHPCSStandards/feature/new-usestatements-disallowuseclass-sniff

New `Universal.UseStatements.DisallowUseClass` sniff

github.com/PHPCSStandards/PHPCSExtra - 7b43ee59efca72968c8c67f1be06bef89cb5b24c authored almost 5 years ago
Merge pull request #6 from PHPCSStandards/feature/new-namespaces-one-declaration-per-file-sniff

New `Universal.Namespaces.OneDeclarationPerFile` sniff

github.com/PHPCSStandards/PHPCSExtra - 11b6b1f922e65a95219eb0e0e06e2265b73dde49 authored almost 5 years ago
Merge pull request #4 from PHPCSStandards/feature/new-namespaces-disallow-curly-braces-sniff

New `Universal.Namespaces.DisallowCurlyBraceSyntax` sniff

github.com/PHPCSStandards/PHPCSExtra - 401aa68f5c19be91f75d472ff893eb8f016736f8 authored almost 5 years ago
Merge pull request #5 from PHPCSStandards/feature/new-namespaces-enforce-curly-braces-sniff

New `Universal.Namespaces.EnforceCurlyBraceSyntax` sniff

github.com/PHPCSStandards/PHPCSExtra - 889e6af57a77cf224ba8ff114de4cec2c8b6cba3 authored almost 5 years ago
:sparkles: New `Universal.Arrays.MixedArrayKeyTypes` sniff

Best 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 ago
:sparkles: New `Universal.Arrays.MixedKeyedUnkeyedArray` sniff

Best 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 ago
:sparkles: New `Universal.Arrays.DuplicateArrayKey` sniff

Best practice sniff: detects duplicate array keys in array declarations.

Includes unit tests.
I...

github.com/PHPCSStandards/PHPCSExtra - 9b8ef156dcb3bdf51b370f6c9f441f33b530552a authored almost 5 years ago
:sparkles: New `NormalizedArrays.Arrays.ArrayBraceSpacing` sniff

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 ago
Merge pull request #65 from PHPCSStandards/feature/new-spacesfixer-class

New Fixers\SpacesFixer class

github.com/PHPCSStandards/PHPCSUtils - 0d57749c4c32dd45eea4f39d65034e0f126aebbd authored almost 5 years ago
Merge pull request #64 from PHPCSStandards/feature/new-abstractarraydeclaration-basesniff-class

New `Abstracts\AbstractArrayDeclarationSniff`

github.com/PHPCSStandards/PHPCSUtils - 02db423fb3ce0ab456bc775da2dab897e31d703e authored almost 5 years ago
Merge pull request #63 from PHPCSStandards/feature/operators-isunaryplusminus-add-tests-php74-numeric-literals

Operators::isUnaryPlusMinus(): add tests with PHP 7.4 numeric literals using underscores

github.com/PHPCSStandards/PHPCSUtils - 01238ebb16a09779b12ea4ceb56c309fbb384b56 authored almost 5 years ago
:sparkles: New `NormalizedArrays.Arrays.CommaAfterLast` sniff

Configurable sniff to enforce/forbid a comma after the last array item.

By default, this sniff ...

github.com/PHPCSStandards/PHPCSExtra - 5163e7f43e92e8fd14a989a9418c2c97f9db53b2 authored almost 5 years ago
PHPCS ruleset: add temporary exclusion for bug in PHPCS upstream

github.com/PHPCSStandards/PHPCSExtra - f51cacb6cc74e3312ae4165029ce0dfb1acc6107 authored almost 5 years ago
:sparkles: New `Universal.ControlStructures.IfElseDeclaration` sniff

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 ago
:sparkles: New `Universal.UseStatements.DisallowUseConst` sniff

Sniff to forbid using import use statements for constants.

The sniff contains two error codes `...

github.com/PHPCSStandards/PHPCSExtra - 4e27fd76b3a169e7864ca03c3c98dd6e606cc6ca authored almost 5 years ago
:sparkles: New `Universal.UseStatements.DisallowUseFunction` sniff

Sniff to forbid using import use statements for functions.

The sniff contains two error codes `...

github.com/PHPCSStandards/PHPCSExtra - 84d205c93c1a96ec9f370fe0a241ffcf481a96bf authored almost 5 years ago
:sparkles: New `Universal.UseStatements.DisallowUseClass` sniff

Sniff to forbid using import use statements for classes/traits/interfaces.

The sniff contains t...

github.com/PHPCSStandards/PHPCSExtra - 8d5bb109cf4ade0507486813bb9ac4b94a381777 authored almost 5 years ago
:sparkles: New `Universal.Namespaces.OneDeclarationPerFile` sniff

New sniff to disallow the use of multiple namespaces within a file.

Includes unit tests.
Includ...

github.com/PHPCSStandards/PHPCSExtra - e033f0d77fe3b626dd7763529226d087d0d22cc1 authored almost 5 years ago
:sparkles: New `Universal.Namespaces.EnforceCurlyBraceSyntax` sniff

New sniff to enforce using the alternative namespace syntax using curly braces:
```php
namespace...

github.com/PHPCSStandards/PHPCSExtra - 770e23b6f81084aeb83e827d0c60a98643603d4e authored almost 5 years ago
:sparkles: New `Universal.Namespaces.DisallowCurlyBraceSyntax` sniff

New sniff to disallow the alternative namespace syntax using curly braces:
```php
namespace Vend...

github.com/PHPCSStandards/PHPCSExtra - 91f4f6fdaadeffeadfe38bc233fd65071dcea35b authored almost 5 years ago
Merge pull request #3 from PHPCSStandards/feature/universal/new-disallowlonglistsyntax-disallowshortlistsyntax-sniffs

New DisallowShortListSyntax and DisallowLongListSyntax sniffs (includes QA setup)

github.com/PHPCSStandards/PHPCSExtra - efaf0ffdd934134f697cc3c4d9ba4c90252cd32e authored almost 5 years ago
Operators::isUnaryPlusMinus(): add tests with PHP 7.4 numeric literals using underscores

... to safeguard that the function will handle these correctly.

github.com/PHPCSStandards/PHPCSUtils - 184febe009adc214eaed941ddb1054623794d07b authored almost 5 years ago
:wrench: QA: enable unit testing for the code in this repo

This:
* Adds a PHPUnit `phpunit.xml.dist` configuration file.
* Adds a `phpunit-bootstrap.php` f...

github.com/PHPCSStandards/PHPCSExtra - ab09e9723d86fb0c931fcd36b99044848559d35c authored almost 5 years ago
:sparkles: New Fixers\SpacesFixer class

This new class offers one versatile utility function `checkAndFix()` to - as the name implies - ...

github.com/PHPCSStandards/PHPCSUtils - aa30b057645907727c5ad710eeedc1def0f64345 authored almost 5 years ago