Skip to content

Commit d44e1e3

Browse files
committed
cs and old php version attempt
1 parent caeeb8f commit d44e1e3

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/Update/DiffHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public static function removeFilesFromPatch(string $patch, array $files, array &
1818
foreach ($files as $filename) {
1919
$start = strpos($patch, sprintf('diff --git a/%s b/%s', $filename, $filename));
2020
if (false === $start) {
21-
throw new \LogicException(sprintf('Could not find file "%s" in the patch', $filename));
21+
throw new \LogicException(sprintf('Could not find file "%s" in the patch.', $filename));
2222
}
2323

2424
$end = strpos($patch, 'diff --git a/', $start + 1);

tests/Configurator/ComposerScriptsConfiguratorTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,8 @@ public function testUpdate()
185185
}
186186
}
187187
188-
EOF;
188+
EOF
189+
;
189190
$this->assertSame(['composer.json' => $expectedComposerJsonOriginal], $recipeUpdate->getOriginalFiles());
190191

191192
$expectedComposerJsonNew = <<<EOF
@@ -205,7 +206,8 @@ public function testUpdate()
205206
}
206207
}
207208
208-
EOF;
209+
EOF
210+
;
209211
$this->assertSame(['composer.json' => $expectedComposerJsonNew], $recipeUpdate->getNewFiles());
210212
}
211213
}

0 commit comments

Comments
 (0)