Skip to content

Commit 25732be

Browse files
committed
Type declaration
1 parent 813849b commit 25732be

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Presenters/ModulePresenter.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
class ModulePresenter extends Presenter
88
{
9-
public function url()
9+
public function url(): string
1010
{
1111
if ($this->entity->url !== null) {
1212
return $this->entity->url;
@@ -16,12 +16,12 @@ public function url()
1616
}
1717
}
1818

19-
public function title()
19+
public function title(): string
2020
{
2121
return __('Edit');
2222
}
2323

24-
public function title_attribute()
24+
public function title_attribute(): string
2525
{
2626
if ($this->entity->url) {
2727
return $this->entity->url;

0 commit comments

Comments
 (0)