diff --git a/README.md b/README.md index 791eb508..e8c263ab 100644 --- a/README.md +++ b/README.md @@ -111,7 +111,7 @@ section of the `composer.json`: { "scripts": { "install-codestandards": [ - "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin::run" + "PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin::run" ] } } @@ -124,7 +124,7 @@ referenced from other script configurations, as follows: { "scripts": { "install-codestandards": [ - "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin::run" + "PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin::run" ], "post-install-cmd": [ "@install-codestandards" diff --git a/composer.json b/composer.json index ba8cf7c0..bf3355ac 100644 --- a/composer.json +++ b/composer.json @@ -43,20 +43,20 @@ "prefer-stable": true, "autoload": { "psr-4": { - "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\": "src/" + "PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\": "src/" } }, "autoload-dev": { "psr-4": { - "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Tests\\": "tests/" + "PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Tests\\": "tests/" } }, "extra": { - "class": "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin" + "class": "PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin" }, "scripts": { "install-codestandards": [ - "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin::run" + "PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin::run" ], "lint": [ "@php ./vendor/php-parallel-lint/php-parallel-lint/parallel-lint . -e php --exclude vendor --exclude .git" diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 7ac1a77c..d71e5069 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -18,7 +18,7 @@ - + diff --git a/src/Plugin.php b/src/Plugin.php index 7b7f4d50..18e8c87d 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -8,7 +8,7 @@ * @license MIT */ -namespace Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer; +namespace PHPCSStandards\Composer\Plugin\Installers\PHPCodeSniffer; use Composer\Composer; use Composer\EventDispatcher\EventSubscriberInterface; diff --git a/tests/CreateComposerZipArtifacts.php b/tests/CreateComposerZipArtifacts.php index 202cdefe..33873783 100644 --- a/tests/CreateComposerZipArtifacts.php +++ b/tests/CreateComposerZipArtifacts.php @@ -8,7 +8,7 @@ * @license MIT */ -namespace Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Tests; +namespace PHPCSStandards\Composer\Plugin\Installers\PHPCodeSniffer\Tests; use DirectoryIterator; use RecursiveCallbackFilterIterator; diff --git a/tests/DebugTestListener.php b/tests/DebugTestListener.php index 226644b6..b1a5264a 100644 --- a/tests/DebugTestListener.php +++ b/tests/DebugTestListener.php @@ -8,7 +8,7 @@ * @license MIT */ -namespace Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Tests; +namespace PHPCSStandards\Composer\Plugin\Installers\PHPCodeSniffer\Tests; use PHPUnit\Framework\TestListener; use Yoast\PHPUnitPolyfills\TestListeners\TestListenerDefaultImplementation; diff --git a/tests/IntegrationTest/BaseLineTest.php b/tests/IntegrationTest/BaseLineTest.php index 655ee932..3b57aaa6 100644 --- a/tests/IntegrationTest/BaseLineTest.php +++ b/tests/IntegrationTest/BaseLineTest.php @@ -8,11 +8,11 @@ * @license MIT */ -namespace Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Tests\IntegrationTest; +namespace PHPCSStandards\Composer\Plugin\Installers\PHPCodeSniffer\Tests\IntegrationTest; -use Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Plugin; -use Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Tests\PHPCSVersions; -use Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Tests\TestCase; +use PHPCSStandards\Composer\Plugin\Installers\PHPCodeSniffer\Plugin; +use PHPCSStandards\Composer\Plugin\Installers\PHPCodeSniffer\Tests\PHPCSVersions; +use PHPCSStandards\Composer\Plugin\Installers\PHPCodeSniffer\Tests\TestCase; /** * Test baseline. diff --git a/tests/IntegrationTest/InstallUpdateEventsTest.php b/tests/IntegrationTest/InstallUpdateEventsTest.php index c52e5e1c..66b1ee95 100644 --- a/tests/IntegrationTest/InstallUpdateEventsTest.php +++ b/tests/IntegrationTest/InstallUpdateEventsTest.php @@ -8,10 +8,10 @@ * @license MIT */ -namespace Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Tests\IntegrationTest; +namespace PHPCSStandards\Composer\Plugin\Installers\PHPCodeSniffer\Tests\IntegrationTest; -use Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Plugin; -use Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Tests\TestCase; +use PHPCSStandards\Composer\Plugin\Installers\PHPCodeSniffer\Plugin; +use PHPCSStandards\Composer\Plugin\Installers\PHPCodeSniffer\Tests\TestCase; /** * Test that the plugin is hooked into the right events and doesn't get triggered when those events are blocked. @@ -42,7 +42,7 @@ final class InstallUpdateEventsTest extends TestCase ), 'scripts' => array( 'custom-runner' => array( - 'Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin::run', + 'PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin::run', ), 'post-install-cmd' => array( 'echo "post-install-cmd successfully run"', diff --git a/tests/IntegrationTest/InstalledPathsOrderTest.php b/tests/IntegrationTest/InstalledPathsOrderTest.php index 0e8a549f..070f37e7 100644 --- a/tests/IntegrationTest/InstalledPathsOrderTest.php +++ b/tests/IntegrationTest/InstalledPathsOrderTest.php @@ -8,10 +8,10 @@ * @license MIT */ -namespace Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Tests\IntegrationTest; +namespace PHPCSStandards\Composer\Plugin\Installers\PHPCodeSniffer\Tests\IntegrationTest; -use Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Plugin; -use Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Tests\TestCase; +use PHPCSStandards\Composer\Plugin\Installers\PHPCodeSniffer\Plugin; +use PHPCSStandards\Composer\Plugin\Installers\PHPCodeSniffer\Tests\TestCase; /** * Test that the plugin always registers the installed_paths in the same order. diff --git a/tests/IntegrationTest/InvalidPackagesTest.php b/tests/IntegrationTest/InvalidPackagesTest.php index 7efd9be4..1a0e9044 100644 --- a/tests/IntegrationTest/InvalidPackagesTest.php +++ b/tests/IntegrationTest/InvalidPackagesTest.php @@ -8,10 +8,10 @@ * @license MIT */ -namespace Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Tests\IntegrationTest; +namespace PHPCSStandards\Composer\Plugin\Installers\PHPCodeSniffer\Tests\IntegrationTest; -use Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Plugin; -use Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Tests\TestCase; +use PHPCSStandards\Composer\Plugin\Installers\PHPCodeSniffer\Plugin; +use PHPCSStandards\Composer\Plugin\Installers\PHPCodeSniffer\Tests\TestCase; /** * Test that the plugin does not act on packages which are not valid PHPCS standards. diff --git a/tests/IntegrationTest/NonInstallUpdateEventsTest.php b/tests/IntegrationTest/NonInstallUpdateEventsTest.php index 7e675112..7556627e 100644 --- a/tests/IntegrationTest/NonInstallUpdateEventsTest.php +++ b/tests/IntegrationTest/NonInstallUpdateEventsTest.php @@ -8,10 +8,10 @@ * @license MIT */ -namespace Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Tests\IntegrationTest; +namespace PHPCSStandards\Composer\Plugin\Installers\PHPCodeSniffer\Tests\IntegrationTest; -use Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Plugin; -use Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Tests\TestCase; +use PHPCSStandards\Composer\Plugin\Installers\PHPCodeSniffer\Plugin; +use PHPCSStandards\Composer\Plugin\Installers\PHPCodeSniffer\Tests\TestCase; /** * Test that the plugin doesn't get triggered on events it isn't hooked into. diff --git a/tests/IntegrationTest/PlayNiceWithScriptsTest.php b/tests/IntegrationTest/PlayNiceWithScriptsTest.php index 9efaae0c..2cd2f08b 100644 --- a/tests/IntegrationTest/PlayNiceWithScriptsTest.php +++ b/tests/IntegrationTest/PlayNiceWithScriptsTest.php @@ -8,10 +8,10 @@ * @license MIT */ -namespace Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Tests\IntegrationTest; +namespace PHPCSStandards\Composer\Plugin\Installers\PHPCodeSniffer\Tests\IntegrationTest; -use Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Plugin; -use Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Tests\TestCase; +use PHPCSStandards\Composer\Plugin\Installers\PHPCodeSniffer\Plugin; +use PHPCSStandards\Composer\Plugin\Installers\PHPCodeSniffer\Tests\TestCase; /** * Test that the plugin does not block other post install/update scripts from running. @@ -39,7 +39,7 @@ final class PlayNiceWithScriptsTest extends TestCase 'echo "post-update-cmd successfully run"', ), 'install-codestandards' => array( - 'Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin::run', + 'PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin::run', 'echo "install-codestandards successfully run"', ), ), diff --git a/tests/IntegrationTest/PreexistingPHPCSConfigTest.php b/tests/IntegrationTest/PreexistingPHPCSConfigTest.php index 288abc3f..f02e3dc5 100644 --- a/tests/IntegrationTest/PreexistingPHPCSConfigTest.php +++ b/tests/IntegrationTest/PreexistingPHPCSConfigTest.php @@ -8,10 +8,10 @@ * @license MIT */ -namespace Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Tests\IntegrationTest; +namespace PHPCSStandards\Composer\Plugin\Installers\PHPCodeSniffer\Tests\IntegrationTest; -use Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Tests\PHPCSVersions; -use Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Tests\TestCase; +use PHPCSStandards\Composer\Plugin\Installers\PHPCodeSniffer\Tests\PHPCSVersions; +use PHPCSStandards\Composer\Plugin\Installers\PHPCodeSniffer\Tests\TestCase; /** * Test correctly handling a pre-existing PHPCS configuration file. diff --git a/tests/IntegrationTest/PreexistingPHPCSInstalledPathsConfigTest.php b/tests/IntegrationTest/PreexistingPHPCSInstalledPathsConfigTest.php index 480ee52b..10411e47 100644 --- a/tests/IntegrationTest/PreexistingPHPCSInstalledPathsConfigTest.php +++ b/tests/IntegrationTest/PreexistingPHPCSInstalledPathsConfigTest.php @@ -8,10 +8,10 @@ * @license MIT */ -namespace Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Tests\IntegrationTest; +namespace PHPCSStandards\Composer\Plugin\Installers\PHPCodeSniffer\Tests\IntegrationTest; -use Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Tests\PHPCSVersions; -use Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Tests\TestCase; +use PHPCSStandards\Composer\Plugin\Installers\PHPCodeSniffer\Tests\PHPCSVersions; +use PHPCSStandards\Composer\Plugin\Installers\PHPCodeSniffer\Tests\TestCase; use RuntimeException; /** diff --git a/tests/IntegrationTest/RegisterExternalStandardsTest.php b/tests/IntegrationTest/RegisterExternalStandardsTest.php index 57f0930c..3604c886 100644 --- a/tests/IntegrationTest/RegisterExternalStandardsTest.php +++ b/tests/IntegrationTest/RegisterExternalStandardsTest.php @@ -8,10 +8,10 @@ * @license MIT */ -namespace Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Tests\IntegrationTest; +namespace PHPCSStandards\Composer\Plugin\Installers\PHPCodeSniffer\Tests\IntegrationTest; -use Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Tests\PHPCSVersions; -use Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Tests\TestCase; +use PHPCSStandards\Composer\Plugin\Installers\PHPCodeSniffer\Tests\PHPCSVersions; +use PHPCSStandards\Composer\Plugin\Installers\PHPCodeSniffer\Tests\TestCase; /** * Test registering external standards. diff --git a/tests/IntegrationTest/RemovePluginTest.php b/tests/IntegrationTest/RemovePluginTest.php index cff31670..02ffd0c1 100644 --- a/tests/IntegrationTest/RemovePluginTest.php +++ b/tests/IntegrationTest/RemovePluginTest.php @@ -8,10 +8,10 @@ * @license MIT */ -namespace Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Tests\IntegrationTest; +namespace PHPCSStandards\Composer\Plugin\Installers\PHPCodeSniffer\Tests\IntegrationTest; -use Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Plugin; -use Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Tests\TestCase; +use PHPCSStandards\Composer\Plugin\Installers\PHPCodeSniffer\Plugin; +use PHPCSStandards\Composer\Plugin\Installers\PHPCodeSniffer\Tests\TestCase; /** * Test plugin does not throw errors when the plugin is still in memory, but PHPCS and the plugin are uninstalled. diff --git a/tests/IntegrationTest/RootPackageHandlingTest.php b/tests/IntegrationTest/RootPackageHandlingTest.php index 47b0e51f..95bb419f 100644 --- a/tests/IntegrationTest/RootPackageHandlingTest.php +++ b/tests/IntegrationTest/RootPackageHandlingTest.php @@ -8,10 +8,10 @@ * @license MIT */ -namespace Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Tests\IntegrationTest; +namespace PHPCSStandards\Composer\Plugin\Installers\PHPCodeSniffer\Tests\IntegrationTest; -use Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Plugin; -use Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Tests\TestCase; +use PHPCSStandards\Composer\Plugin\Installers\PHPCodeSniffer\Plugin; +use PHPCSStandards\Composer\Plugin\Installers\PHPCodeSniffer\Tests\TestCase; /** * Test that the plugin correctly registers standards found in the root package if it is an external standard, diff --git a/tests/PHPCSVersions.php b/tests/PHPCSVersions.php index f7a1c83e..a3705973 100644 --- a/tests/PHPCSVersions.php +++ b/tests/PHPCSVersions.php @@ -8,7 +8,7 @@ * @license MIT */ -namespace Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Tests; +namespace PHPCSStandards\Composer\Plugin\Installers\PHPCodeSniffer\Tests; /** * Helper class to retrieve PHPCS versions suitable for the current PHP version. diff --git a/tests/TestCase.php b/tests/TestCase.php index b456cfdf..a4773111 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -8,7 +8,7 @@ * @license MIT */ -namespace Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Tests; +namespace PHPCSStandards\Composer\Plugin\Installers\PHPCodeSniffer\Tests; use RecursiveDirectoryIterator; use RecursiveIteratorIterator; @@ -243,7 +243,7 @@ protected static function writeComposerJsonFile($config, $directory) // Inject ability to run the plugin via a script. if (isset($config['scripts']['install-codestandards']) === false) { $config['scripts']['install-codestandards'] = array( - 'Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin::run', + 'PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin::run', ); } diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 67ae4650..f18de6c0 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -8,7 +8,7 @@ * @license MIT */ -namespace Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Tests; +namespace PHPCSStandards\Composer\Plugin\Installers\PHPCodeSniffer\Tests; /* * Make sure the tests always start with a clean slate.