Skip to content

Commit a6f2d01

Browse files
authored
Fixed duplicating empty lines after install. (#1693)
1 parent 3a740d3 commit a6f2d01

16 files changed

Lines changed: 25 additions & 29 deletions

File tree

.vortex/installer/composer.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.vortex/installer/src/Prompts/Handlers/Internal.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function process(): void {
4949
];
5050
$relative_path = str_replace($t, '', $file->getPathname());
5151
if (!in_array($relative_path, $ignore_empty_line_processing)) {
52-
$content = File::replaceContent($content, '/(\n\s*\n)+/', "\n\n");
52+
$content = File::collapseRepeatedEmptyLines($content);
5353
}
5454

5555
return $content;

.vortex/installer/tests/Fixtures/install/_baseline/.dockerignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,3 @@ drush/contrib/
4646
!rector.php
4747
!scripts
4848
!tests
49-

.vortex/installer/tests/Fixtures/install/_baseline/.env

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,4 +180,3 @@ VORTEX_NOTIFY_EMAIL_RECIPIENTS="webmaster@star-wars-domain.example"
180180

181181
# URL of the database used for demonstration with URL database download type.
182182
VORTEX_DB_DOWNLOAD_URL=https://github.com/drevops/vortex/releases/download/25.4.0/db_d11.demo.sql
183-

.vortex/installer/tests/Fixtures/install/_baseline/docs/ci.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,3 @@ support.
2727

2828
Use "Run workflow" button in GitHub Actions UI to start build with SSH support
2929
that will be available for 120 minutes after the build is finished.
30-

.vortex/installer/tests/Fixtures/install/_baseline/docs/deployment.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,3 @@ Refer to https://vortex.drevops.com/workflows/deployment for more information.
1616
deployment.
1717

1818
Once PR is closed, the environment will be automatically removed.
19-

.vortex/installer/tests/Fixtures/install/deploy_type_all_circleci/.gitignore.artifact

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,3 @@ web/themes/custom/star_wars/package.json
3030
web/themes/custom/star_wars/yarn.lock
3131
web/themes/custom/star_wars/.eslintrc.json
3232
web/themes/custom/star_wars/node_modules
33-

.vortex/installer/tests/Fixtures/install/deploy_type_all_circleci/docs/ci.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
Refer to https://vortex.drevops.com/latest/usage/ci for more information.
1818

19-
@@ -21,10 +21,7 @@
19+
@@ -21,9 +21,6 @@
2020

2121
### SSH
2222

@@ -29,4 +29,3 @@
2929
+Circle CI supports shell access to the build for 120 minutes after the build is
3030
+finished when the build is started with SSH support. Use "Rerun job with SSH"
3131
+button in Circle CI UI to start build with SSH support.
32-

.vortex/installer/tests/Fixtures/install/deploy_type_all_gha/.gitignore.artifact

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,3 @@ web/themes/custom/star_wars/package.json
3030
web/themes/custom/star_wars/yarn.lock
3131
web/themes/custom/star_wars/.eslintrc.json
3232
web/themes/custom/star_wars/node_modules
33-

.vortex/installer/tests/Fixtures/install/deploy_type_artifact/.gitignore.artifact

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,3 @@ web/themes/custom/star_wars/package.json
3030
web/themes/custom/star_wars/yarn.lock
3131
web/themes/custom/star_wars/.eslintrc.json
3232
web/themes/custom/star_wars/node_modules
33-

0 commit comments

Comments
 (0)