Skip to content

Commit 920d7a5

Browse files
committed
fix trailing return character
1 parent 8dff46c commit 920d7a5

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

generator/src/FileCreator.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ public function generatePhpFile(array $functions, string $path): void
3333
namespace Safe;
3434
3535
use Safe\\Exceptions\\".self::toExceptionName($module). ';
36-
3736
');
3837
foreach ($phpFunctions as $phpFunction) {
3938
\fwrite($stream, $phpFunction."\n");

generator/src/Method.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function getParams(): array
100100

101101
public function getPhpDoc(): string
102102
{
103-
$str = "/**\n".
103+
$str = "\n/**\n".
104104
implode("\n", array_map(function (string $line) {
105105
return rtrim(' * '.ltrim($line));
106106
}, \explode("\n", \strip_tags($this->getDocBlock()))))

generator/src/WritePhpFunction.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ private function writePhpFunction(): string
9090
}
9191

9292
$phpFunction .= $this->generateExceptionCode($moduleName, $this->method).$returnStatement. '}
93-
9493
';
9594

9695
return $phpFunction;

0 commit comments

Comments
 (0)