|
@@ -713,7 +713,7 @@ fixed but without actually modifying them:
|
|
|
|
|
|
Instead of using command line options to customize the fixer, you can save the
|
|
|
project configuration in a ``.php_cs.dist`` file in the root directory
|
|
|
-of your project. The file must return an instance of ``Symfony\CS\ConfigInterface``,
|
|
|
+of your project. The file must return an instance of ``PhpCsFixer\ConfigInterface``,
|
|
|
which lets you configure the rules, the files and directories that
|
|
|
need to be analyzed. You may also create ``.php_cs`` file, which is
|
|
|
the local configuration that will be used instead of the project configuration. It
|
|
@@ -727,12 +727,12 @@ The example below will add two fixers to the default list of PSR2 set fixers:
|
|
|
|
|
|
<?php
|
|
|
|
|
|
- $finder = Symfony\CS\Finder::create()
|
|
|
+ $finder = PhpCsFixer\Finder::create()
|
|
|
->exclude('somedir')
|
|
|
->in(__DIR__)
|
|
|
;
|
|
|
|
|
|
- return Symfony\CS\Config::create()
|
|
|
+ return PhpCsFixer\Config::create()
|
|
|
->setRules(array(
|
|
|
'@PSR2' => true,
|
|
|
'strict_param' => true,
|
|
@@ -748,12 +748,12 @@ The following example shows how to use all ``Symfony`` Fixers but the ``full_ope
|
|
|
|
|
|
<?php
|
|
|
|
|
|
- $finder = Symfony\CS\Finder::create()
|
|
|
+ $finder = PhpCsFixer\Finder::create()
|
|
|
->exclude('somedir')
|
|
|
->in(__DIR__)
|
|
|
;
|
|
|
|
|
|
- return Symfony\CS\Config::create()
|
|
|
+ return PhpCsFixer\Config::create()
|
|
|
->setRules(array(
|
|
|
'@Symfony' => true,
|
|
|
'full_opening_tag' => false,
|
|
@@ -779,7 +779,7 @@ Cache can be disabled via ``--using-cache`` option or config file:
|
|
|
|
|
|
<?php
|
|
|
|
|
|
- return Symfony\CS\Config::create()
|
|
|
+ return PhpCsFixer\Config::create()
|
|
|
->setUsingCache(false)
|
|
|
;
|
|
|
|
|
@@ -789,7 +789,7 @@ Cache file can be specified via ``--cache-file`` option or config file:
|
|
|
|
|
|
<?php
|
|
|
|
|
|
- return Symfony\CS\Config::create()
|
|
|
+ return PhpCsFixer\Config::create()
|
|
|
->setCacheFile(__DIR__.'/.php_cs.cache')
|
|
|
;
|
|
|
|