Skip to content

Commit

Permalink
Remove unused code and unnecessary else branches
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-daubois committed Aug 2, 2024
1 parent ea697ac commit cf6d4f3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Builder/ClassBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function build(): string
}
}

$content = strtr('<?php
return strtr('<?php
namespace NAMESPACE;
Expand All @@ -95,8 +95,6 @@ class CLASS IMPLEMENTS
BODY
}
', ['NAMESPACE' => $this->namespace, 'REQUIRE' => $require, 'USE' => $use, 'CLASS' => $this->getName(), 'IMPLEMENTS' => $implements, 'BODY' => $body]);

return $content;
}

public function addRequire(self $class): void
Expand Down

0 comments on commit cf6d4f3

Please sign in to comment.