Browse Source

NativeFunctionCasingFixer - move to Symfony level

Dariusz Ruminski 9 years ago
parent
commit
32f6f442bf

+ 5 - 5
README.rst

@@ -387,6 +387,11 @@ Choose from the list of available fixers:
                         shouldn't contain leading
                         whitespace.
 
+* **native_function_casing** [symfony]
+                        Function defined by PHP should
+                        be called using the correct
+                        casing.
+
 * **new_with_braces** [symfony]
                         All instances created with new
                         keyword must be followed by
@@ -634,11 +639,6 @@ Choose from the list of available fixers:
                         closing semicolon are
                         prohibited.
 
-* **native_function_casing** [contrib]
-                        Function defined by PHP should
-                        be called using the correct
-                        casing.
-
 * **newline_after_open_tag** [contrib]
                         Ensure there is no code on the
                         same line as the PHP open tag.

+ 1 - 1
Symfony/CS/Fixer/Contrib/NativeFunctionCasingFixer.php → Symfony/CS/Fixer/Symfony/NativeFunctionCasingFixer.php

@@ -9,7 +9,7 @@
  * with this source code in the file LICENSE.
  */
 
-namespace Symfony\CS\Fixer\Contrib;
+namespace Symfony\CS\Fixer\Symfony;
 
 use Symfony\CS\AbstractFixer;
 use Symfony\CS\Tokenizer\Tokens;

+ 4 - 2
Symfony/CS/Tests/Fixer/Contrib/NativeFunctionCasingFixerTest.php → Symfony/CS/Tests/Fixer/Symfony/NativeFunctionCasingFixerTest.php

@@ -9,14 +9,16 @@
  * with this source code in the file LICENSE.
  */
 
-namespace Symfony\CS\Tests\Fixer\Contrib;
+namespace Symfony\CS\Tests\Fixer\Symfony;
 
 use Symfony\CS\Tests\Fixer\AbstractFixerTestBase;
 
 /**
  * @author SpacePossum
+ *
+ * @internal
  */
-class NativeFunctionCasingFixerTest extends AbstractFixerTestBase
+final class NativeFunctionCasingFixerTest extends AbstractFixerTestBase
 {
     /**
      * @dataProvider provideFixCases