fix: spacing in init

This commit is contained in:
Nuno Maduro
2023-03-17 15:19:22 +00:00
parent 0b99c72937
commit b828843974
2 changed files with 18 additions and 10 deletions

View File

@ -66,7 +66,7 @@ final class Init implements HandlesArguments
/**
* Initializes the tests directory.
*/
private function init(): never
private function init(): void
{
$testsBaseDir = "{$this->testSuite->rootPath}/tests";
@ -97,7 +97,9 @@ final class Init implements HandlesArguments
continue;
}
@mkdir(dirname($toPath));
if (! is_dir(dirname($toPath))) {
mkdir(dirname($toPath));
}
copy($fromPath, $toPath);