Add DeclaredClassCasingFilter

by @siad007

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 https://fabbot.io/patch/FriendsOfPHP/PHP-CS-Fixer/3969/51f0c8e23e2f89cd3c8b59a919ac53789ee02220/cs.diff | patch -p0
diff -ru src/Fixer/Casing/DeclaredClassCasingFixer.php src/Fixer/Casing/DeclaredClassCasingFixer.php
--- src/Fixer/Casing/DeclaredClassCasingFixer.php	2020-11-20 15:24:26.988957728 +0000
+++ src/Fixer/Casing/DeclaredClassCasingFixer.php	2020-11-20 15:24:27.785930926 +0000
@@ -48,10 +48,6 @@
         return $tokens->isTokenKindFound(T_STRING);
     }
 
-    /**
-     * @param \SplFileInfo $file
-     * @param Tokens       $tokens
-     */
     protected function applyFix(\SplFileInfo $file, Tokens $tokens)
     {
         if (null === self::$declaredClassNames) {
@@ -72,9 +68,7 @@
     /**
      * Get the lower case name of the declared class or null.
      *
-     * @param int    $index
-     * @param Token  $token
-     * @param Tokens $tokens
+     * @param int $index
      *
      * @return null|string
      */

0
Common Typos

0
File Permissions

Issues that cannot be fixed automatically

in Commits list, a `git rebase` is needed to remove any merges
  • Merge branch '2.12' into ClassCasingFixer
  • Merge remote-tracking branch 'origin/ClassCasingFixer' into ClassCasingFixer
  • Merge branch '2.12' into ClassCasingFixer
  • Merge branch '2.12' into ClassCasingFixer
  • Merge branch 'ClassCasingFixer' of https://github.com/siad007/PHP-CS-Fixer into ClassCasingFixer

0
Exception Messages Formatting