Skip to content

Commit

Permalink
style: resolve style guide violations
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbarnsley authored and github-actions[bot] committed May 30, 2024
1 parent 17f2936 commit 7a505ff
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
22 changes: 11 additions & 11 deletions src/Blog/Components/Concerns/HasPagination.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,6 @@ trait HasPagination

public int $page = 1;

/**
* Livewire's WithPagination trait checks whether there's an `updatedPaginators` method
* and it will fire after page has changed if the method exists.
*
* @return void
*/
public function updatedPaginators() : void
{
$this->dispatch('pageChanged');
}

public function __get($property): mixed
{
if ($property === 'page') {
Expand All @@ -48,4 +37,15 @@ public function __set($property, $value): void

throw new \Exception('Property ['.$property.'] does not exist.');
}

/**
* Livewire's WithPagination trait checks whether there's an `updatedPaginators` method
* and it will fire after page has changed if the method exists.
*
* @return void
*/
public function updatedPaginators() : void
{
$this->dispatch('pageChanged');
}
}
1 change: 0 additions & 1 deletion tests/UserInterface/Livewire/FooterContactFormTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use ARKEcosystem\Foundation\UserInterface\Mail\ContactFormSubmitted;
use Illuminate\Support\Facades\Mail;
use Livewire\Livewire;
use Symfony\Component\HttpKernel\Exception\HttpException;

beforeEach(function () {
config([
Expand Down

0 comments on commit 7a505ff

Please sign in to comment.