Skip to content

Commit 20e4797

Browse files
committed
Fix the bug with empty line
1 parent ecd617f commit 20e4797

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Model/ClassModel.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ public function toLines()
7575
}
7676
$this->processProperties($lines);
7777
$this->processMethods($lines);
78+
/**
79+
* Fix the bug with empty line before closing bracket
80+
*/
81+
$lines[count($lines) - 1] = rtrim($lines[count($lines) - 1]);
7882
$lines[] = $this->ln('}');
7983

8084
return $lines;

0 commit comments

Comments
 (0)