Download the PHP package contao/easy-coding-standard without Composer
On this page you can find all versions of the php package contao/easy-coding-standard. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download contao/easy-coding-standard
More information about contao/easy-coding-standard
Files in contao/easy-coding-standard
Download contao/easy-coding-standard
More information about contao/easy-coding-standard
Files in contao/easy-coding-standard
Vendor contao
Package easy-coding-standard
Short Description EasyCodingStandard configurations for Contao
License LGPL-3.0-or-later
Package easy-coding-standard
Short Description EasyCodingStandard configurations for Contao
License LGPL-3.0-or-later
Please rate this library. Is it a good library?
Informations about the package easy-coding-standard
EasyCodingStandard configurations for Contao
This package includes the EasyCodingStandard configuration for Contao.
Installation
Add the package to your Contao installation via Composer:
Usage
Create a file named ecs.php
in the root directory of your project.
Then run the script like this:
What's inside?
The package contains the following custom fixers:
Class | Description |
---|---|
AssertEqualsFixer |
Replaces asserEquals() with assertSame() in unit tests unless the method is used to compare two objects. |
CaseCommentIndentationFixer |
Fixes the comment indentation before a case statement. |
ChainedMethodBlockFixer |
Adds an empty line after a block of chained method calls. |
CommentLengthFixer |
Adjusts the length of comments regardless of their indentation so that each line is about 80 characters long. |
ExpectsWithCallbackFixer |
Adjusts the indentation of $this->callback() calls inside the with() method of a unit test. |
FindByPkFixer |
Replaces findByPk() calls with findById() . |
FunctionCallWithMultilineArrayFixer |
Fixes the indentation of function calls with multi-line array arguments. |
InlinePhpdocCommentFixer |
Ensures that inline phpDoc comments are not converted to regular comments. |
IsArrayNotEmptyFixer |
Fixes the order of isset() and empty() calls in conjunction with is_array() checks. |
MockMethodChainingIndentationFixer |
Fixes the indentation of chained mock methods. |
MultiLineIfIndentationFixer |
Fixes the indentation of multi-line if statements. |
MultiLineLambdaFunctionArgumentsFixer |
Fixes the indentation of multi-line lambda function arguments. |
NoExpectsThisAnyFixer |
Removes the explicit any() assertion in unit tests. |
NoLineBreakBetweenMethodArgumentsFixer |
Fixes the indentation of method declarations. |
NoSemicolonAfterShortEchoTagFixer |
Removes the semicolon after short echo tag instructions. |
SingleLineConfigureCommandFixer |
Fixes the indentation of Symfony command arguments and options. |
TypeHintOrderFixer |
Fixes the type hint order in method declarations. |
The package contains the following custom sniffs:
Class | Description |
---|---|
ContaoFrameworkClassAliasSniff |
Prevents using aliased Contao classes instead of their originals. |
SetDefinitionCommandSniff |
Prevents using the setDefinition() method in Symfony commands. |
UseSprintfInExceptionsSniff |
Prevents using string interpolation in exception messages. |
License
Contao is licensed under the terms of the LGPLv3.
Getting support
Visit the support page to learn about the available support options.
All versions of easy-coding-standard with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1
kubawerlos/php-cs-fixer-custom-fixers Version ^3.14
slevomat/coding-standard Version ^8.0
symplify/easy-coding-standard Version ^12.1
kubawerlos/php-cs-fixer-custom-fixers Version ^3.14
slevomat/coding-standard Version ^8.0
symplify/easy-coding-standard Version ^12.1
The package contao/easy-coding-standard contains the following files
Loading the files please wait ....