Browse Source

renamed namespace "Symfony\CS" to "PhpCsFixer"

Gregor Harlan 9 years ago
parent
commit
4cccddb4b4

+ 2 - 2
.php_cs.dist

@@ -9,7 +9,7 @@ This source file is subject to the MIT license that is bundled
 with this source code in the file LICENSE.
 EOF;
 
-return Symfony\CS\Config::create()
+return PhpCsFixer\Config::create()
     ->setRiskyAllowed(true)
     ->setRules(array(
         '@Symfony' => true,
@@ -22,7 +22,7 @@ return Symfony\CS\Config::create()
         'strict_param' => true,
     ))
     ->finder(
-        Symfony\CS\Finder::create()
+        PhpCsFixer\Finder::create()
             ->exclude('tests/Fixtures')
             ->in(__DIR__)
     )

+ 10 - 10
COOKBOOK-FIXERS.md

@@ -59,10 +59,10 @@ Put this content inside:
  * with this source code in the file LICENSE.
  */
 
-namespace Symfony\CS\Fixer\Contrib;
+namespace PhpCsFixer\Fixer\Contrib;
 
-use Symfony\CS\AbstractFixer;
-use Symfony\CS\Tokenizer\Tokens;
+use PhpCsFixer\AbstractFixer;
+use PhpCsFixer\Tokenizer\Tokens;
 
 /**
  * @author Your name <your@email.com>
@@ -93,9 +93,9 @@ content inside:
  * with this source code in the file LICENSE.
  */
 
-namespace Symfony\CS\Tests\Fixer\Contrib;
+namespace PhpCsFixer\Tests\Fixer\Contrib;
 
-use Symfony\CS\Tests\Fixer\AbstractFixerTestBase;
+use PhpCsFixer\Tests\Fixer\AbstractFixerTestBase;
 
 /**
  * @author Your name <your@email.com>
@@ -178,9 +178,9 @@ like:
  * with this source code in the file LICENSE.
  */
 
-namespace Symfony\CS\Tests\Fixer\Contrib;
+namespace PhpCsFixer\Tests\Fixer\Contrib;
 
-use Symfony\CS\Tests\Fixer\AbstractFixerTestBase;
+use PhpCsFixer\Tests\Fixer\AbstractFixerTestBase;
 
 /**
  * @author Your name <your@email.com>
@@ -359,10 +359,10 @@ So the fixer in the end looks like this:
  *
  */
 
-namespace Symfony\CS\Fixer\Contrib;
+namespace PhpCsFixer\Fixer\Contrib;
 
-use Symfony\CS\AbstractFixer;
-use Symfony\CS\Tokenizer\Tokens;
+use PhpCsFixer\AbstractFixer;
+use PhpCsFixer\Tokenizer\Tokens;
 
 /**
  * @author Your name <your@email.com>

+ 7 - 7
README.rst

@@ -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')
     ;
 

+ 2 - 2
composer.json

@@ -28,10 +28,10 @@
         "satooshi/php-coveralls": "^1.0"
     },
     "autoload": {
-        "psr-4": { "Symfony\\CS\\": "src/" }
+        "psr-4": { "PhpCsFixer\\": "src/" }
     },
     "autoload-dev": {
-        "psr-4": { "Symfony\\CS\\Tests\\": "tests/" }
+        "psr-4": { "PhpCsFixer\\Tests\\": "tests/" }
     },
     "bin": ["php-cs-fixer"],
     "scripts": {

+ 1 - 1
php-cs-fixer

@@ -38,7 +38,7 @@ if (file_exists($a = __DIR__.'/../../autoload.php')) {
     require_once __DIR__.'/vendor/autoload.php';
 }
 
-use Symfony\CS\Console\Application;
+use PhpCsFixer\Console\Application;
 
 $application = new Application();
 $application->run();

+ 2 - 2
src/AbstractAlignFixer.php

@@ -9,9 +9,9 @@
  * with this source code in the file LICENSE.
  */
 
-namespace Symfony\CS;
+namespace PhpCsFixer;
 
-use Symfony\CS\Tokenizer\Tokens;
+use PhpCsFixer\Tokenizer\Tokens;
 
 /**
  * @author Carlos Cirello <carlos.cirello.nl@gmail.com>

+ 3 - 3
src/AbstractAnnotationRemovalFixer.php

@@ -9,10 +9,10 @@
  * with this source code in the file LICENSE.
  */
 
-namespace Symfony\CS;
+namespace PhpCsFixer;
 
-use Symfony\CS\DocBlock\DocBlock;
-use Symfony\CS\Tokenizer\Tokens;
+use PhpCsFixer\DocBlock\DocBlock;
+use PhpCsFixer\Tokenizer\Tokens;
 
 /**
  * @author Graham Campbell <graham@mineuk.com>

+ 1 - 1
src/AbstractFixer.php

@@ -9,7 +9,7 @@
  * with this source code in the file LICENSE.
  */
 
-namespace Symfony\CS;
+namespace PhpCsFixer;
 
 /**
  * @author Dariusz Rumiński <dariusz.ruminski@gmail.com>

+ 2 - 2
src/AbstractLinesBeforeNamespaceFixer.php

@@ -9,9 +9,9 @@
  * with this source code in the file LICENSE.
  */
 
-namespace Symfony\CS;
+namespace PhpCsFixer;
 
-use Symfony\CS\Tokenizer\Tokens;
+use PhpCsFixer\Tokenizer\Tokens;
 
 /**
  * This abstract fixer is responsible for ensuring that a certain number of

+ 3 - 3
src/AbstractPhpdocTagsFixer.php

@@ -9,10 +9,10 @@
  * with this source code in the file LICENSE.
  */
 
-namespace Symfony\CS;
+namespace PhpCsFixer;
 
-use Symfony\CS\DocBlock\DocBlock;
-use Symfony\CS\Tokenizer\Tokens;
+use PhpCsFixer\DocBlock\DocBlock;
+use PhpCsFixer\Tokenizer\Tokens;
 
 /**
  * This abstract fixer provides a base for fixers to rename tags.

Some files were not shown because too many files changed in this diff