Forrest logo
back to the php-cs-fixer tool

php-cs-fixer:tldr:29022

php-cs-fixer: Display the rules that have been applied.
$ php-cs-fixer fix --verbose
try on your machine

The command "php-cs-fixer fix --verbose" is used to execute the PHP Coding Standards Fixer tool with the verbose option enabled.

Here's an explanation of each part of the command:

  • "php-cs-fixer": Refers to the PHP Coding Standards Fixer tool. This tool automatically fixes PHP code to follow a certain set of coding standards.
  • "fix": Instructs the tool to fix the code according to the defined coding standards.
  • "--verbose": Enables the verbose mode, which provides more detailed output during the fixing process. It displays additional information about the files being fixed and any changes made.

By running this command, you can automatically fix PHP code to conform to coding standards while getting a detailed report of the changes made.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the php-cs-fixer tool