Skip to content

Commit

Permalink
Fix up templates.
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Nov 11, 2024
1 parent c8ec4e5 commit 671ee3d
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 10 deletions.
2 changes: 2 additions & 0 deletions templates/Dto/element/method_set_or_fail.twig
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
*
{% endif %}
* @param {{ type }} ${{ name }}
{% if not typeHint %}
*
* @throws \RuntimeException If value is not present.
{% endif %}
*
* @return $this
*/
Expand Down
4 changes: 0 additions & 4 deletions tests/test_app/plugins/Sandbox/src/Dto/Github/LabelDto.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,6 @@ public function setName(?string $name) {
/**
* @param string $name
*
* @throws \RuntimeException If value is not present.
*
* @return $this
*/
public function setNameOrFail(string $name) {
Expand Down Expand Up @@ -141,8 +139,6 @@ public function setColor(?string $color) {
/**
* @param string $color
*
* @throws \RuntimeException If value is not present.
*
* @return $this
*/
public function setColorOrFail(string $color) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -514,8 +514,6 @@ public function setHead(?\Sandbox\Dto\Github\HeadDto $head) {
/**
* @param \Sandbox\Dto\Github\HeadDto $head
*
* @throws \RuntimeException If value is not present.
*
* @return $this
*/
public function setHeadOrFail(\Sandbox\Dto\Github\HeadDto $head) {
Expand Down Expand Up @@ -567,8 +565,6 @@ public function setBase(?\Sandbox\Dto\Github\BaseDto $base) {
/**
* @param \Sandbox\Dto\Github\BaseDto $base
*
* @throws \RuntimeException If value is not present.
*
* @return $this
*/
public function setBaseOrFail(\Sandbox\Dto\Github\BaseDto $base) {
Expand Down
2 changes: 0 additions & 2 deletions tests/test_app/plugins/Sandbox/src/Dto/Jira/IssueDto.php
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,6 @@ public function setVersion(?string $version) {
/**
* @param string $version
*
* @throws \RuntimeException If value is not present.
*
* @return $this
*/
public function setVersionOrFail(string $version) {
Expand Down

0 comments on commit 671ee3d

Please sign in to comment.