diff options
author | nod_ <nod_@598310.no-reply.drupal.org> | 2025-03-03 14:26:34 +0100 |
---|---|---|
committer | nod_ <nod_@598310.no-reply.drupal.org> | 2025-03-03 14:26:34 +0100 |
commit | e97a510ec3755667fb7b74cdf6287af0550a970c (patch) | |
tree | 4df2ac200f19163fa57c71c340792f017c004aff /core/modules/package_manager/tests | |
parent | 427d7455bf25376f1e4a1e1214746beddc325b4e (diff) | |
download | drupal-e97a510ec3755667fb7b74cdf6287af0550a970c.tar.gz drupal-e97a510ec3755667fb7b74cdf6287af0550a970c.zip |
Issue #3508601 by quietone: Fix LongLineDeclaration in module tests
Diffstat (limited to 'core/modules/package_manager/tests')
-rw-r--r-- | core/modules/package_manager/tests/modules/fixture_manipulator/src/FixtureManipulator.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/core/modules/package_manager/tests/modules/fixture_manipulator/src/FixtureManipulator.php b/core/modules/package_manager/tests/modules/fixture_manipulator/src/FixtureManipulator.php index d36df883087..4879aeea45f 100644 --- a/core/modules/package_manager/tests/modules/fixture_manipulator/src/FixtureManipulator.php +++ b/core/modules/package_manager/tests/modules/fixture_manipulator/src/FixtureManipulator.php @@ -120,7 +120,8 @@ class FixtureManipulator { } $repo_path = $this->addRepository($package); - if (is_null($extra_files) && isset($package['type']) && in_array($package['type'], ['drupal-module', 'drupal-theme', 'drupal-profile'], TRUE)) { + if (is_null($extra_files) && isset($package['type']) + && in_array($package['type'], ['drupal-module', 'drupal-theme', 'drupal-profile'], TRUE)) { // For Drupal projects if no files are provided create an info.yml file // that assumes the project and package names match. [, $package_name] = explode('/', $package['name']); @@ -578,7 +579,12 @@ class FixtureManipulator { // Set the `extra` property in the generated composer.json file using // `composer config`, because `composer init` does not support it. foreach ($package['extra'] ?? [] as $extra_property => $extra_value) { - $this->runComposerCommand(['config', "extra.$extra_property", '--json', json_encode($extra_value, JSON_UNESCAPED_SLASHES)]); + $this->runComposerCommand([ + 'config', + "extra.$extra_property", + '--json', + json_encode($extra_value, JSON_UNESCAPED_SLASHES), + ]); } // Restore the project root as the working directory. $this->dir = $project_root_dir; |