Skip to content

Commit

Permalink
SDK-4180: Fix eol in csv (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyspryker authored Oct 20, 2023
1 parent 2a9a840 commit 4f81326
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ManifestStrategy/GlossaryManifestStrategy.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function apply(array $manifest, string $moduleName, InputOutputInterface
);
$resultGlossaryFileLines = array_merge($existingGlossaryFileLines, $glossaryFileLinesForAdd);
if (!$isDry) {
file_put_contents($this->config->getGlossaryFilePath(), implode(PHP_EOL, $resultGlossaryFileLines));
file_put_contents($this->config->getGlossaryFilePath(), implode(PHP_EOL, $resultGlossaryFileLines) . PHP_EOL);
}
$inputOutput->writeln(sprintf(
'Glossary file `%s` successfully updated',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,6 @@ public function testRunInstallationGlossary(): void
trim(file_get_contents($this->getProjectMockOriginalPath() . $glossaryPath)),
trim(file_get_contents($testResultFile)),
);
$this->assertSame(trim(file_get_contents($testFilePath)), trim(file_get_contents($testResultFile)));
$this->assertSame(file_get_contents($testFilePath), file_get_contents($testResultFile));
}
}

0 comments on commit 4f81326

Please sign in to comment.