From ce4974893009f946a704eaaed1942a1a30434749 Mon Sep 17 00:00:00 2001 From: Matthew Weier O'Phinney Date: Mon, 25 Nov 2024 16:09:49 -0600 Subject: [PATCH] qa: indent heredocs This has been supported since PHP 7.3, and helps improve readability Signed-off-by: Matthew Weier O'Phinney --- test/ComponentInstallerTest.php | 146 ++++++++++++++++---------------- 1 file changed, 73 insertions(+), 73 deletions(-) diff --git a/test/ComponentInstallerTest.php b/test/ComponentInstallerTest.php index d155343..ca2b5b1 100644 --- a/test/ComponentInstallerTest.php +++ b/test/ComponentInstallerTest.php @@ -297,16 +297,16 @@ public function testMissingDependency(): void $this->createModuleClass( $installPath . '/src/SomeComponent/Module.php', <<createMock(PackageInterface::class); @@ -1469,66 +1469,66 @@ public function setUpModuleDependencies(string $path): void $this->createModuleClass( $path . '/src/Psr0Too/DoesNotExist/Module.php', <<createModuleClass( $path . '/src/Psr4/Module.php', <<createModuleClass( $path . '/src/ClassmappedToo/Module.php', <<createModuleClass( $path . '/src/File/Module.php', << [ - 'Laminas\Router', - 'Laminas\Validator', - 'Application' - ] -]; -CONFIG; + [ + 'Laminas\Router', + 'Laminas\Validator', + 'Application' + ] + ]; + CONFIG; $this->createConfigFile('modules.config.php', $moduleConfigContent); $configContents = <<<'CONFIG' - [ - ] -]; -CONFIG; + [ + ] + ]; + CONFIG; foreach (['development.config.php.dist', 'development.config.php'] as $configName) { $this->createConfigFile($configName, $configContents); } @@ -1688,15 +1688,15 @@ public function testOnPostPackageInstallDoesNotPromptForAutoInstallablePackages( public function testInstallAutoInstallableDevModuleWithUniqueInjector(): void { $moduleConfigContent = <<<'CONFIG' - [ - 'Laminas\Router', - 'Laminas\Validator', - 'Application', - ] -]; -CONFIG; + [ + 'Laminas\Router', + 'Laminas\Validator', + 'Application', + ] + ]; + CONFIG; $this->createConfigFile('modules.config.php', $moduleConfigContent);