Download the PHP package kubawerlos/php-cs-fixer-custom-fixers without Composer

On this page you can find all versions of the php package kubawerlos/php-cs-fixer-custom-fixers. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package php-cs-fixer-custom-fixers

PHP CS Fixer: custom fixers

Latest stable version PHP version Tests Downloads

CI status Code coverage Mutation testing badge Psalm type coverage

A set of custom fixers for PHP CS Fixer.

Installation

PHP CS Fixer: custom fixers can be installed by running:

Usage

In your PHP CS Fixer configuration register fixers and use them:

:warning: When PHP CS Fixer is installed via php-cs-fixer/shim package, requiring bootstrap may be needed to load PhpCsFixerCustomFixers classes:

Fixers

CommentSurroundedBySpacesFixer

Comments must be surrounded by spaces.

CommentedOutFunctionFixer

The configured functions must be commented out. Risky: when any of the configured functions have side effects or are overwritten. Configuration options:

ConstructorEmptyBracesFixer

Constructor's empty braces must be on a single line.

DataProviderNameFixer

Data provider names must match the name of the test. DEPRECATED: use php_unit_data_provider_name instead. Risky: when relying on name of data provider function. Configuration options:

DataProviderReturnTypeFixer

The return type of PHPUnit data provider must be iterable. DEPRECATED: use php_unit_data_provider_return_type instead. Risky: when relying on signature of data provider.

DataProviderStaticFixer

Data providers must be static. DEPRECATED: use php_unit_data_provider_static instead. Risky: when force is set to true. Configuration options:

DeclareAfterOpeningTagFixer

Declare statement for strict types must be placed on the same line, after the opening tag.

EmptyFunctionBodyFixer

Empty function body must be abbreviated as {} and placed on the same line as the previous symbol, separated with a space.

InternalClassCasingFixer

Classes defined internally by an extension or the core must be referenced with the correct case. DEPRECATED: use class_reference_name_casing instead.

IssetToArrayKeyExistsFixer

Function array_key_exists must be used instead of isset when possible. Risky: when array is not defined, is multi-dimensional or behaviour is relying on the null value.

MultilineCommentOpeningClosingAloneFixer

Multiline comments or PHPDocs must contain an opening and closing line with no additional content.

MultilinePromotedPropertiesFixer

Promoted properties must be on separate lines. Configuration options:

NoCommentedOutCodeFixer

There must be no commented out code.

NoDoctrineMigrationsGeneratedCommentFixer

There must be no comments generated by Doctrine Migrations.

NoDuplicatedArrayKeyFixer

There must be no duplicate array keys. Configuration options:

NoDuplicatedImportsFixer

There must be no duplicate use statements.

NoImportFromGlobalNamespaceFixer

There must be no imports from the global namespace.

NoLeadingSlashInGlobalNamespaceFixer

Classes in the global namespace cannot contain leading slashes.

NoNullableBooleanTypeFixer

There must be no nullable boolean types. Risky: when the null is used.

NoPhpStormGeneratedCommentFixer

There must be no comments generated by PhpStorm.

NoReferenceInFunctionDefinitionFixer

There must be no parameters passed by reference in functions. Risky: when rely on reference.

NoSuperfluousConcatenationFixer

There must be no superfluous concatenation of literal strings. Configuration options:

NoTrailingCommaInSinglelineFixer

An element list written on one line cannot contain a trailing comma.

NoUselessCommentFixer

There must be no useless comments.

NoUselessDirnameCallFixer

There must be no useless dirname calls.

NoUselessDoctrineRepositoryCommentFixer

There can be no comments generated by Doctrine ORM.

NoUselessParenthesisFixer

There must be no useless parentheses.

NoUselessStrlenFixer

Functions strlen and mb_strlen must not be compared to 0. Risky: when the function strlen is overridden.

NumericLiteralSeparatorFixer

Numeric literals must have configured separators. DEPRECATED: use numeric_literal_separator instead. Configuration options:

PhpUnitAssertArgumentsOrderFixer

PHPUnit assertions must have expected argument before actual one. Risky: when original PHPUnit methods are overwritten.

PhpUnitDedicatedAssertFixer

PHPUnit assertions like assertCount and assertInstanceOf must be used over assertEquals/assertSame. Risky: when original PHPUnit methods are overwritten.

PhpUnitNoUselessReturnFixer

PHPUnit fail, markTestIncomplete and markTestSkipped functions must not be directly followed by return. Risky: when original PHPUnit methods are overwritten.

PhpdocArrayStyleFixer

Generic array style should be used in PHPDoc. DEPRECATED: use phpdoc_array_type instead.

PhpdocNoIncorrectVarAnnotationFixer

The @var annotations must be used correctly in code.

PhpdocNoSuperfluousParamFixer

There must be no superfluous parameters in PHPDoc.

PhpdocOnlyAllowedAnnotationsFixer

Only the listed annotations are allowed in PHPDoc. Configuration options:

PhpdocParamOrderFixer

Orders all @param annotations in DocBlocks according to method signature. DEPRECATED: use phpdoc_param_order instead.

PhpdocParamTypeFixer

The @param annotations must have a type.

PhpdocSelfAccessorFixer

In PHPDoc, the class or interface element self must be used instead of the class name itself.

PhpdocSingleLineVarFixer

The @var annotation must be on a single line if it is the only content.

PhpdocTypeListFixer

PHPDoc type list must be used instead of array without a key type. DEPRECATED: use phpdoc_list_type instead.

PhpdocTypesCommaSpacesFixer

PHPDoc types commas must not be preceded by a whitespace, and must be succeeded by a single whitespace.

PhpdocTypesTrimFixer

PHPDoc types must be trimmed.

PhpdocVarAnnotationToAssertFixer

Converts @var annotations to assert calls when used in assignments.

PromotedConstructorPropertyFixer

Constructor properties must be promoted if possible. Configuration options:

ReadonlyPromotedPropertiesFixer

Promoted properties must be declared as read-only. Risky: when property is written.

SingleSpaceAfterStatementFixer

Statements not followed by a semicolon must be followed by a single space. Configuration options:

SingleSpaceBeforeStatementFixer

Statements not preceded by a line break must be preceded by a single space.

StringableInterfaceFixer

A class that implements the __toString() method must explicitly implement the Stringable interface.

Contributing

Request a feature or report a bug by creating an issue.

Alternatively, fork the repository, commit your changes, and make sure everything is fine:

and submit a pull request.


All versions of php-cs-fixer-custom-fixers with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 || ^8.0
ext-filter Version *
ext-tokenizer Version *
friendsofphp/php-cs-fixer Version ^3.50
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package kubawerlos/php-cs-fixer-custom-fixers contains the following files

Loading the files please wait ....