POC ClassKeywordFixer

by @keradus

Some issues have been detected in this pull request

Issues that can be fixed by applying a patch

Review the proposed patch then download it to apply it manually or execute the following command from the repository root directory:

$ curl http://fabbot.io/patch/FriendsOfPHP/PHP-CS-Fixer/2918/33be6913f8d4f076e382aed6ce4e5eb14e262373/cs.diff | patch -p0
diff -ru src/Fixer/LanguageConstruct/ClassKeywordFixer.php src/Fixer/LanguageConstruct/ClassKeywordFixer.php
--- src/Fixer/LanguageConstruct/ClassKeywordFixer.php	2017-07-15 05:49:30.128809923 +0000
+++ src/Fixer/LanguageConstruct/ClassKeywordFixer.php	2017-07-15 05:49:31.064782681 +0000
@@ -16,11 +16,8 @@
 use PhpCsFixer\FixerDefinition\FixerDefinition;
 use PhpCsFixer\FixerDefinition\VersionSpecification;
 use PhpCsFixer\FixerDefinition\VersionSpecificCodeSample;
-use PhpCsFixer\Tokenizer\CT;
-use PhpCsFixer\Tokenizer\Token;
-use PhpCsFixer\Tokenizer\Tokens;
-use PhpCsFixer\Tokenizer\TokensAnalyzer;
 use PhpCsFixer\Indicator\ClassyExistanceIndicator;
+use PhpCsFixer\Tokenizer\Tokens;
 
 /**
  * @author Dariusz RumiƄski <dariusz.ruminski@gmail.com>
@@ -86,7 +83,7 @@
                         $token->clear();
                         $tokens->insertAt($index, $substitution);
                     } catch (\Error $e) {
-                        var_dump("error with parsing class", $name);
+                        var_dump('error with parsing class', $name);
                         var_dump($e->getMessage());
                     }
                 }

0
Common Typos

0
File Permissions