mouf/codestylefixservice

Fix code style automatically

1.0.x-dev 2016-04-21 16:44 UTC

README

By TheCodingMachine

Description

This package makes usage of PhpCsFixer easy from PHP code ; for more information check the PHP-CS-Fixer documentation

Installation

Add to ./composer.json file

"require": {
    "mouf/codestylefixservice"
  }

or

composer install mouf/codestylefixservice

Usage

$fixService = new FixService();
$fixService->csFix("MyPhpFile.php"); // add the path to file you want to auto-clean