StyleCI

PHP Presets

We have 6 non-empty presets to choose from to make your code look totally gorgeous. Our recommended preset is enabled by default on all repos. We also have an additional preset, none, which enables no fixers.

By default, "risky" heuristic fixers are disabled. When risky mode is enabled, all risky and non-risky fixers provided by a preset will be enabled, and when risky mode is disabled, only the non-risky fixers will be enabled. For example, when enabling the psr12 preset, with risky: false or without specifying the risky mode, the no_trailing_whitespace_in_string, no_unreachable_default_argument_value, and psr4 fixers will not be enabled by the preset.

PSR-1

The preset is named psr1, and selects the following safe fixers:

The following "risky" heuristic fixers will also be selected if risky mode is enabled:

PSR-2

The preset is named psr2, and selects the following safe fixers:

The following "risky" heuristic fixers will also be selected if risky mode is enabled:

PSR-12

The preset is named psr12, and selects the following safe fixers:

The following "risky" heuristic fixers will also be selected if risky mode is enabled:

Symfony 2022

The preset is named symfony2022, and selects the following safe fixers:

The following "risky" heuristic fixers will also be selected if risky mode is enabled:

Symfony 2023

The preset is named symfony2023, and selects the following safe fixers:

The following "risky" heuristic fixers will also be selected if risky mode is enabled:

Laravel

The preset is named laravel, and selects the following safe fixers:

The following "risky" heuristic fixers will also be selected if risky mode is enabled:

Recommended

The preset is named recommended, and selects the following safe fixers:

The following "risky" heuristic fixers will also be selected if risky mode is enabled: