Skip to content

Commit 637b769

Browse files
author
Mikko Peltola
committed
tweak coding standards
1 parent 48e5039 commit 637b769

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/Update/RecipePatcherTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,6 @@ public function testApplyPatchOnSubfolder(array $filesCurrentlyInApp, RecipePatc
241241
$mainProjectPath = FLEX_TEST_DIR;
242242
$subProjectPath = FLEX_TEST_DIR.'/ProjectA';
243243

244-
## init main project git repo
245244
(new Process(['git', 'init'], $mainProjectPath))->mustRun();
246245
(new Process(['git', 'config', 'user.name', 'Unit test'], $mainProjectPath))->mustRun();
247246
(new Process(['git', 'config', 'user.email', ''], $mainProjectPath))->mustRun();
@@ -280,7 +279,7 @@ public function testApplyPatchOnSubfolder(array $filesCurrentlyInApp, RecipePatc
280279

281280
public function getApplyPatchTests(string $testMethodName): iterable
282281
{
283-
$projectRootPath = ($testMethodName === "testApplyPatchOnSubfolder") ? "ProjectA/" : "";
282+
$projectRootPath = ('testApplyPatchOnSubfolder' === $testMethodName) ? 'ProjectA/' : '';
284283
$files = $this->getFilesForPatching($projectRootPath);
285284
$dotEnvClean = $files['dot_env_clean'];
286285
$packageJsonConflict = $files['package_json_conflict'];
@@ -439,7 +438,7 @@ public function getIntegrationTests(): iterable
439438
* * original_recipe
440439
* * updated_recipe.
441440
*/
442-
private function getFilesForPatching(string $projectPath=""): array
441+
private function getFilesForPatching(string $projectPath = ''): array
443442
{
444443
$files = [
445444
// .env

0 commit comments

Comments
 (0)