Skip to content

Commit 9a55462

Browse files
committed
style: formatting
1 parent 9cbac24 commit 9a55462

File tree

6 files changed

+10
-11
lines changed

6 files changed

+10
-11
lines changed

src/NotFound/Layout/Elements/AbstractLayout.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,9 @@ public function type(): string
2121

2222
/**
2323
* setLocalize
24-
*
24+
*
2525
* This option will mark the element as translatable.
2626
* Currently this will not affect the frontend at all.
27-
*
28-
* @return self
2927
*/
3028
public function setLocalize(): self
3129
{

src/NotFound/Layout/Elements/LayoutBreadcrumb.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function __construct()
2121
*
2222
* @return void
2323
*/
24-
public function addHome( ?string $title = null, string $link = '/')
24+
public function addHome(string $title = null, string $link = '/')
2525
{
2626
$this->properties->items[] = (object) ['title' => $title ?? 'Home', 'link' => $link];
2727
}
@@ -33,7 +33,7 @@ public function addHome( ?string $title = null, string $link = '/')
3333
* @param mixed $link Link (optional) Last item should always be the current path en should not link anywhere.
3434
* @return void
3535
*/
36-
public function addItem(string $title, ?string $link = null)
36+
public function addItem(string $title, string $link = null)
3737
{
3838
$this->properties->items[] = (object) ['title' => $title, 'link' => $link];
3939
}

src/NotFound/Layout/Elements/LayoutPager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
class LayoutPager extends AbstractLayout
66
{
7-
public function __construct(int $totalItems, ?int $itemsPerPage = null)
7+
public function __construct(int $totalItems, int $itemsPerPage = null)
88
{
99
parent::__construct(type: 'Pager');
1010

src/NotFound/Layout/Elements/Table/LayoutTableColumn.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ public function __construct(
1919
return $this;
2020
}
2121

22-
public function setToggleEndPoint( string $url ) : self
22+
public function setToggleEndPoint(string $url): self
2323
{
24-
if( $this->type !== 'checkbox')
25-
{
24+
if ($this->type !== 'checkbox') {
2625
throw new \Exception('Can only set toggle endpoint on checkbox type');
2726
}
2827
$this->properties->toggleEndPoint = $url;
28+
2929
return $this;
3030
}
3131

src/NotFound/Layout/Inputs/LayoutInputRepeatable.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ public function setForm(LayoutForm $form)
2020
public function showDeleted(): self
2121
{
2222
$this->properties->showDeleted = true;
23+
2324
return $this;
2425
}
2526

src/NotFound/Layout/Inputs/LayoutInputText.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function setEndpoint(string $endPoint): self
2121

2222
return $this;
2323
}
24-
24+
2525
public function setRegEx(string $regEx): self
2626
{
2727
$this->properties->regEx = $regEx;
@@ -35,4 +35,4 @@ public function getAjaxDataPost(): array
3535
'location' => 'test.jpg',
3636
];
3737
}
38-
}
38+
}

0 commit comments

Comments
 (0)