Skip to content

Commit 99eff6f

Browse files
committed
Remove unneeded local var
1 parent e43681b commit 99eff6f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Controller/Component/ApiPaginationComponent.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,7 @@ public function beforeRender(Event $event)
7878
*/
7979
protected function setAliases()
8080
{
81-
$aliases = $this->config('aliases');
82-
foreach ($aliases as $key => $value) {
81+
foreach ($this->config('aliases') as $key => $value) {
8382
$this->pagingInfo[$value] = $this->pagingInfo[$key];
8483
unset($this->pagingInfo[$key]);
8584
}

0 commit comments

Comments
 (0)