Skip to content

Commit cf6d4f3

Browse files
Remove unused code and unnecessary else branches
1 parent ea697ac commit cf6d4f3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Builder/ClassBuilder.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function build(): string
8282
}
8383
}
8484

85-
$content = strtr('<?php
85+
return strtr('<?php
8686
8787
namespace NAMESPACE;
8888
@@ -95,8 +95,6 @@ class CLASS IMPLEMENTS
9595
BODY
9696
}
9797
', ['NAMESPACE' => $this->namespace, 'REQUIRE' => $require, 'USE' => $use, 'CLASS' => $this->getName(), 'IMPLEMENTS' => $implements, 'BODY' => $body]);
98-
99-
return $content;
10098
}
10199

102100
public function addRequire(self $class): void

0 commit comments

Comments
 (0)