Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
mydnic authored and github-actions[bot] committed Sep 1, 2024
1 parent e42289f commit 86800ef
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/CommitMessageTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php

function normalizeLineEndings($string) {
function normalizeLineEndings($string)
{
return str_replace("\r\n", "\n", $string);
}

Expand All @@ -11,7 +12,7 @@ function normalizeLineEndings($string) {
'author' => [
'date' => '2021-01-01T00:00:00Z',
],
'message' => normalizeLineEndings(<<<EOF
'message' => normalizeLineEndings(<<<'EOF'
feat: fix issue with authentication
> You can now login without any issue
Expand All @@ -35,7 +36,7 @@ function normalizeLineEndings($string) {
'author' => [
'date' => '2021-01-01T00:00:00Z',
],
'message' => normalizeLineEndings(<<<EOF
'message' => normalizeLineEndings(<<<'EOF'
feat: fix issue with authentication
Refactor the code
Expand All @@ -56,7 +57,7 @@ function normalizeLineEndings($string) {
'author' => [
'date' => '2021-01-01T00:00:00Z',
],
'message' => normalizeLineEndings(<<<EOF
'message' => normalizeLineEndings(<<<'EOF'
feat: fix issue with authentication
Refactor the code
Expand All @@ -71,7 +72,7 @@ function normalizeLineEndings($string) {
'author' => [
'date' => '2021-01-01T00:00:00Z',
],
'message' => normalizeLineEndings(<<<EOF
'message' => normalizeLineEndings(<<<'EOF'
feat: fix issue with authentication
> You can now login without any issue
Expand Down

0 comments on commit 86800ef

Please sign in to comment.