Skip to content

Commit

Permalink
style: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
64knl committed Jul 17, 2023
1 parent 9cbac24 commit 9a55462
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 11 deletions.
4 changes: 1 addition & 3 deletions src/NotFound/Layout/Elements/AbstractLayout.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,9 @@ public function type(): string

/**
* setLocalize
*
*
* This option will mark the element as translatable.
* Currently this will not affect the frontend at all.
*
* @return self
*/
public function setLocalize(): self
{
Expand Down
4 changes: 2 additions & 2 deletions src/NotFound/Layout/Elements/LayoutBreadcrumb.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function __construct()
*
* @return void
*/
public function addHome( ?string $title = null, string $link = '/')
public function addHome(string $title = null, string $link = '/')
{
$this->properties->items[] = (object) ['title' => $title ?? 'Home', 'link' => $link];
}
Expand All @@ -33,7 +33,7 @@ public function addHome( ?string $title = null, string $link = '/')
* @param mixed $link Link (optional) Last item should always be the current path en should not link anywhere.
* @return void
*/
public function addItem(string $title, ?string $link = null)
public function addItem(string $title, string $link = null)
{
$this->properties->items[] = (object) ['title' => $title, 'link' => $link];
}
Expand Down
2 changes: 1 addition & 1 deletion src/NotFound/Layout/Elements/LayoutPager.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

class LayoutPager extends AbstractLayout
{
public function __construct(int $totalItems, ?int $itemsPerPage = null)
public function __construct(int $totalItems, int $itemsPerPage = null)
{
parent::__construct(type: 'Pager');

Expand Down
6 changes: 3 additions & 3 deletions src/NotFound/Layout/Elements/Table/LayoutTableColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ public function __construct(
return $this;
}

public function setToggleEndPoint( string $url ) : self
public function setToggleEndPoint(string $url): self
{
if( $this->type !== 'checkbox')
{
if ($this->type !== 'checkbox') {
throw new \Exception('Can only set toggle endpoint on checkbox type');
}
$this->properties->toggleEndPoint = $url;

return $this;
}

Expand Down
1 change: 1 addition & 0 deletions src/NotFound/Layout/Inputs/LayoutInputRepeatable.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public function setForm(LayoutForm $form)
public function showDeleted(): self
{
$this->properties->showDeleted = true;

return $this;
}

Expand Down
4 changes: 2 additions & 2 deletions src/NotFound/Layout/Inputs/LayoutInputText.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function setEndpoint(string $endPoint): self

return $this;
}

public function setRegEx(string $regEx): self
{
$this->properties->regEx = $regEx;
Expand All @@ -35,4 +35,4 @@ public function getAjaxDataPost(): array
'location' => 'test.jpg',
];
}
}
}

0 comments on commit 9a55462

Please sign in to comment.