Skip to content

Commit 0337d92

Browse files
authored
Merge pull request #146 from dsavina/fix/trait-usage-code-style
Remove superfluous trailing line in trait usage generated code
2 parents f7cb98e + a8164d7 commit 0337d92

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/Generator/TraitUsageGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,6 @@ public function generate()
437437
}
438438
}
439439

440-
return $output . self::LINE_FEED . $indent . '}' . self::LINE_FEED . self::LINE_FEED;
440+
return $output . $indent . '}' . self::LINE_FEED . self::LINE_FEED;
441441
}
442442
}

test/Generator/ClassGeneratorTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1167,7 +1167,6 @@ class myClass
11671167
hisTrait::foo as public test;
11681168
myTrait::bar insteadof hisTrait;
11691169
myTrait::bar insteadof thatTrait;
1170-
11711170
}
11721171
}
11731172

0 commit comments

Comments
 (0)