Skip to content

Commit 0cd6319

Browse files
committed
#104106 Small refactoring
1 parent 743b535 commit 0cd6319

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Generators/BaseGenerator.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,10 @@ protected function prepareDestinationDir(string $toDir): void
9696
$this->filesystem->cleanDirectory($toDir);
9797
}
9898

99-
protected function putWithDirectoryCheck(string $path, string $contents): int|bool
99+
protected function putWithDirectoryCheck(string $path, string $contents): void
100100
{
101101
$this->filesystem->ensureDirectoryExists(dirname($path));
102-
103-
return $this->filesystem->put($path, $contents);
102+
$this->filesystem->put($path, $contents);
104103
}
105104

106105
private function formattedGlobalParams(): array

0 commit comments

Comments
 (0)