Dariusz Ruminski 2 лет назад
Родитель
Сommit
61e6165eb4

+ 1 - 1
README.md

@@ -63,7 +63,7 @@ Dedicated plugins exist for:
 
 
 ## Community
 ## Community
 
 
-The PHP CS Fixer is maintained on GitHub at https://github.com/FriendsOfPHP/PHP-CS-Fixer.
+The PHP CS Fixer is maintained on GitHub at https://github.com/PHP-CS-Fixer/PHP-CS-Fixer.
 Bug reports and ideas about new features are welcome there.
 Bug reports and ideas about new features are welcome there.
 
 
 You can reach us at https://gitter.im/PHP-CS-Fixer/Lobby about the project,
 You can reach us at https://gitter.im/PHP-CS-Fixer/Lobby about the project,

+ 1 - 1
UPGRADE-v3.md

@@ -3,7 +3,7 @@ UPGRADE GUIDE FROM 2.x to 3.0
 
 
 This is guide for upgrade from version 2.x to 3.0 for using the CLI tool.
 This is guide for upgrade from version 2.x to 3.0 for using the CLI tool.
 
 
-*Before following this guide, install [v2.19](https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/tag/v2.19.0) and run in verbose mode (`php-cs-fixer fix -v`) or in future mode (`PHP_CS_FIXER_FUTURE_MODE=1 php-cs-fixer fix`) to identify deprecations and fix them first.*
+*Before following this guide, install [v2.19](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/releases/tag/v2.19.0) and run in verbose mode (`php-cs-fixer fix -v`) or in future mode (`PHP_CS_FIXER_FUTURE_MODE=1 php-cs-fixer fix`) to identify deprecations and fix them first.*
 
 
 Rename of files
 Rename of files
 ---------------
 ---------------

+ 1 - 1
doc/cookbook_fixers.rst

@@ -27,7 +27,7 @@ Assumptions
 -----------
 -----------
 
 
 * You are familiar with Test Driven Development.
 * You are familiar with Test Driven Development.
-* Forked FriendsOfPHP/PHP-CS-Fixer into your own GitHub Account.
+* Forked PHP-CS-Fixer/PHP-CS-Fixer into your own GitHub Account.
 * Cloned your forked repository locally.
 * Cloned your forked repository locally.
 * Installed the dependencies of PHP CS Fixer using Composer_.
 * Installed the dependencies of PHP CS Fixer using Composer_.
 * You have read `CONTRIBUTING.md`_.
 * You have read `CONTRIBUTING.md`_.

+ 1 - 1
doc/installation.rst

@@ -29,7 +29,7 @@ or with specified version:
 
 
 .. code-block:: console
 .. code-block:: console
 
 
-    wget https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v3.0.1/php-cs-fixer.phar -O php-cs-fixer
+    wget https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/releases/download/v3.13.0/php-cs-fixer.phar -O php-cs-fixer
 
 
 or with curl:
 or with curl:
 
 

+ 1 - 1
php-cs-fixer

@@ -37,7 +37,7 @@ set_error_handler(static function ($severity, $message, $file, $line) {
         } else {
         } else {
             fwrite(STDERR, "To ignore this requirement please set `PHP_CS_FIXER_IGNORE_ENV`.\n");
             fwrite(STDERR, "To ignore this requirement please set `PHP_CS_FIXER_IGNORE_ENV`.\n");
             fwrite(STDERR, "If you use PHP version higher than supported, you may experience code modified in a wrong way.\n");
             fwrite(STDERR, "If you use PHP version higher than supported, you may experience code modified in a wrong way.\n");
-            fwrite(STDERR, "Please report such cases at https://github.com/FriendsOfPHP/PHP-CS-Fixer .\n");
+            fwrite(STDERR, "Please report such cases at https://github.com/PHP-CS-Fixer/PHP-CS-Fixer .\n");
 
 
             exit(1);
             exit(1);
         }
         }

+ 2 - 2
src/Console/Command/SelfUpdateCommand.php

@@ -76,7 +76,7 @@ final class SelfUpdateCommand extends Command
                 <<<'EOT'
                 <<<'EOT'
 The <info>%command.name%</info> command replace your php-cs-fixer.phar by the
 The <info>%command.name%</info> command replace your php-cs-fixer.phar by the
 latest version released on:
 latest version released on:
-<comment>https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases</comment>
+<comment>https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/releases</comment>
 
 
 <info>$ php php-cs-fixer.phar %command.name%</info>
 <info>$ php php-cs-fixer.phar %command.name%</info>
 
 
@@ -130,7 +130,7 @@ EOT
             && true !== $input->getOption('force')
             && true !== $input->getOption('force')
         ) {
         ) {
             $output->writeln(sprintf('<info>A new major version of PHP CS Fixer is available</info> (<comment>%s</comment>)', $latestVersion));
             $output->writeln(sprintf('<info>A new major version of PHP CS Fixer is available</info> (<comment>%s</comment>)', $latestVersion));
-            $output->writeln(sprintf('<info>Before upgrading please read</info> https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/%s/UPGRADE-v%s.md', $latestVersion, $currentMajor + 1));
+            $output->writeln(sprintf('<info>Before upgrading please read</info> https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/%s/UPGRADE-v%s.md', $latestVersion, $currentMajor + 1));
             $output->writeln('<info>If you are ready to upgrade run this command with</info> <comment>-f</comment>');
             $output->writeln('<info>If you are ready to upgrade run this command with</info> <comment>-f</comment>');
             $output->writeln('<info>Checking for new minor/patch version...</info>');
             $output->writeln('<info>Checking for new minor/patch version...</info>');
 
 

+ 1 - 1
src/Console/ConfigurationResolver.php

@@ -791,7 +791,7 @@ final class ConfigurationResolver
             $message = substr($message, 0, -2).'.';
             $message = substr($message, 0, -2).'.';
 
 
             if ($hasOldRule) {
             if ($hasOldRule) {
-                $message .= "\nFor more info about updating see: https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/v3.0.0/UPGRADE-v3.md#renamed-ruless.";
+                $message .= "\nFor more info about updating see: https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v3.0.0/UPGRADE-v3.md#renamed-ruless.";
             }
             }
 
 
             throw new InvalidConfigurationException($message);
             throw new InvalidConfigurationException($message);

+ 2 - 2
src/Console/SelfUpdate/GithubClient.php

@@ -24,14 +24,14 @@ final class GithubClient implements GithubClientInterface
      */
      */
     public function getTags(): array
     public function getTags(): array
     {
     {
-        $url = 'https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/tags';
+        $url = 'https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/tags';
 
 
         $result = @file_get_contents(
         $result = @file_get_contents(
             $url,
             $url,
             false,
             false,
             stream_context_create([
             stream_context_create([
                 'http' => [
                 'http' => [
-                    'header' => 'User-Agent: FriendsOfPHP/PHP-CS-Fixer',
+                    'header' => 'User-Agent: PHP-CS-Fixer/PHP-CS-Fixer',
                 ],
                 ],
             ])
             ])
         );
         );

+ 1 - 1
src/Console/WarningsDetector.php

@@ -42,7 +42,7 @@ final class WarningsDetector
         // $currentMajorVersion = \intval(explode('.', Application::VERSION)[0], 10);
         // $currentMajorVersion = \intval(explode('.', Application::VERSION)[0], 10);
         // $nextMajorVersion = $currentMajorVersion + 1;
         // $nextMajorVersion = $currentMajorVersion + 1;
         // $this->warnings[] = "You are running PHP CS Fixer v{$currentMajorVersion}, which is not maintained anymore. Please update to v{$nextMajorVersion}.";
         // $this->warnings[] = "You are running PHP CS Fixer v{$currentMajorVersion}, which is not maintained anymore. Please update to v{$nextMajorVersion}.";
-        // $this->warnings[] = "You may find an UPGRADE guide at https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/v{$nextMajorVersion}.0.0/UPGRADE-v{$nextMajorVersion}.md .";
+        // $this->warnings[] = "You may find an UPGRADE guide at https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v{$nextMajorVersion}.0.0/UPGRADE-v{$nextMajorVersion}.md .";
     }
     }
 
 
     public function detectOldVendor(): void
     public function detectOldVendor(): void

+ 1 - 1
src/Tokenizer/Tokens.php

@@ -818,7 +818,7 @@ class Tokens extends \SplFixedArray
      * Insert a slices or individual Tokens into multiple places in a single run.
      * Insert a slices or individual Tokens into multiple places in a single run.
      *
      *
      * This approach is kind-of an experiment - it's proven to improve performance a lot for big files that needs plenty of new tickets to be inserted,
      * This approach is kind-of an experiment - it's proven to improve performance a lot for big files that needs plenty of new tickets to be inserted,
-     * like edge case example of 3.7h vs 4s (https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/3996#issuecomment-455617637),
+     * like edge case example of 3.7h vs 4s (https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/3996#issuecomment-455617637),
      * yet at same time changing a logic of fixers in not-always easy way.
      * yet at same time changing a logic of fixers in not-always easy way.
      *
      *
      * To be discussed:
      * To be discussed:

Некоторые файлы не были показаны из-за большого количества измененных файлов