Browse Source

Fix: Typos

Andreas Möller 8 years ago
parent
commit
709a18bee4

+ 2 - 2
README.rst

@@ -153,7 +153,7 @@ using ``-name_of_fixer``:
 
     $ php php-cs-fixer.phar fix /path/to/dir --rules=-full_opening_tag,-indentation_type
 
-When using combinations of exact and blacklist rules, applying exact ruless along with above blacklisted results:
+When using combinations of exact and blacklist rules, applying exact rules along with above blacklisted results:
 
 .. code-block:: bash
 
@@ -188,7 +188,7 @@ Choose from the list of available rules:
 
 * **blank_line_after_opening_tag** [@Symfony]
    | Ensure there is no code on the same line as the PHP open tag and it is
-   | followed by a blankline.
+   | followed by a blank line.
 
 * **blank_line_before_return** [@Symfony]
    | An empty line feed should precede a return statement.

+ 1 - 1
src/Console/Command/DescribeCommand.php

@@ -104,7 +104,7 @@ final class DescribeCommand extends Command
         if ($fixer instanceof DefinedFixerInterface) {
             $definition = $fixer->getDefinition();
         } else {
-            $definition = new ShortFixerDefinition('Description is not availble.');
+            $definition = new ShortFixerDefinition('Description is not available.');
         }
 
         $output->writeln(sprintf('<info>Description of</info> %s <info>rule</info>.', $name));

+ 1 - 1
src/Console/Command/FixCommandHelp.php

@@ -63,7 +63,7 @@ using <comment>-name_of_fixer</comment>:
 
     <info>$ php %command.full_name% /path/to/dir --rules=-full_opening_tag,-indentation_type</info>
 
-When using combinations of exact and blacklist rules, applying exact ruless along with above blacklisted results:
+When using combinations of exact and blacklist rules, applying exact rules along with above blacklisted results:
 
     <info>$ php %command.full_name% /path/to/project --rules=@Symfony,-@PSR1,-blank_line_before_return,strict_comparison</info>
 

+ 1 - 1
src/Fixer/PhpTag/BlankLineAfterOpeningTagFixer.php

@@ -81,6 +81,6 @@ final class BlankLineAfterOpeningTagFixer extends AbstractFixer implements White
      */
     protected function getDescription()
     {
-        return 'Ensure there is no code on the same line as the PHP open tag and it is followed by a blankline.';
+        return 'Ensure there is no code on the same line as the PHP open tag and it is followed by a blank line.';
     }
 }

+ 1 - 1
src/FixerNameValidator.php

@@ -20,7 +20,7 @@ namespace PhpCsFixer;
 final class FixerNameValidator
 {
     /**
-     * @param strnig $name
+     * @param string $name
      * @param bool   $isCustom
      *
      * @return bool