2017 © Pedro Peláez
 

library php-cs-fixer-config

PHP-CS-Fixer Config

image

signpostmarv/php-cs-fixer-config

PHP-CS-Fixer Config

  • PHP
  • 10 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 60 % Grown

The README.md

SignpostMarv's PHP-CS-Fixer config

Build Status Psalm Type Coverage, (*1)

There's two different versions, one for general use & one for use on projects that use static analysis., (*2)

Installation & Usage

  1. composer require --dev signpostmarv/php-cs-fixer-config
  2. create your .php_cs or .php_cs.dist file and enter the corresponding code for the config you wish to use

General Use

return \SignpostMarv\CS\Config::createWithPaths(...[
    __FILE__,
    (__DIR__ . '/src/'),
    (__DIR__ . '/tests/'),
])

Use without PHP 7.1 Nullable return types

return \SignpostMarv\CS\ConfigUsedWithoutNullableReturn::createWithPaths(...[
    __FILE__,
    (__DIR__ . '/src/'),
    (__DIR__ . '/tests/'),
])

With Static Analysis

return \SignpostMarv\CS\ConfigUsedWithStaticAnalysis::createWithPaths(...[
    __FILE__,
    (__DIR__ . '/src/'),
    (__DIR__ . '/tests/'),
])

Use without PHP 7.1 Nullable return types

return \SignpostMarv\CS\ConfigUsedWithStaticAnalysisWithoutNullableReturn::createWithPaths(...[
    __FILE__,
    (__DIR__ . '/src/'),
    (__DIR__ . '/tests/'),
])

Customising Rules

  1. Extend SignpostMarv\CS\Config
  2. Either
    • override the SignpostMarv\CS\Config::DEFAULT_RULES array const
    • override the SignpostMarv\CS\Config::RuntimeResolveRules() static method as in ConfigUsedWithStaticAnalysis

The Versions

01/04 2018

v0.5.0

0.5.0.0

PHP-CS-Fixer Config

  Sources   Download

ISC

The Requires

 

The Development Requires

18/12 2017
28/11 2017

v0.3.1

0.3.1.0

PHP-CS-Fixer Config

  Sources   Download

ISC

The Requires

 

The Development Requires

09/07 2017

v0.3.0

0.3.0.0

PHP-CS-Fixer Config

  Sources   Download

ISC

The Requires

 

The Development Requires

07/07 2017

v0.2.0

0.2.0.0

PHP-CS-Fixer Config

  Sources   Download

ISC

The Requires

 

The Development Requires

07/07 2017

v0.1.1

0.1.1.0

PHP-CS-Fixer Config

  Sources   Download

ISC

The Requires

 

The Development Requires

06/05 2017

v0.1.0

0.1.0.0

PHP-CS-Fixer Config

  Sources   Download

ISC

The Requires

 

The Development Requires