Skip to content

Commit

Permalink
EventRulesController: Make getFilter method private
Browse files Browse the repository at this point in the history
  • Loading branch information
raviks789 committed May 22, 2024
1 parent 2a6e983 commit 319d6cd
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions application/controllers/EventRulesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,20 +84,6 @@ public function indexAction(): void
$this->getTabs()->activate('event-rules');
}

/**
* Get the filter created from query string parameters
*
* @return Filter\Rule
*/
protected function getFilter(): Filter\Rule
{
if ($this->filter === null) {
$this->filter = QueryString::parse((string) $this->params);
}

return $this->filter;
}

public function getTabs(): Tabs
{
if ($this->getRequest()->getActionName() === 'index') {
Expand All @@ -119,4 +105,18 @@ public function getTabs(): Tabs

return parent::getTabs();
}

/**
* Get the filter created from query string parameters
*
* @return Filter\Rule
*/
private function getFilter(): Filter\Rule
{
if ($this->filter === null) {
$this->filter = QueryString::parse((string) $this->params);
}

return $this->filter;
}
}

0 comments on commit 319d6cd

Please sign in to comment.