Skip to content

Commit

Permalink
🎨 Tidy up variable syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Log1x committed Feb 17, 2024
1 parent 77dfa13 commit d37bfff
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/Roots/Acorn/View/Composer.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,9 @@ public function compose(View $view)
*/
protected function merge()
{
[$with, $override] = [$this->with(), $this->override()];

$withOutcome = $this->with();
$overrideOutcome = $this->override();

if (! $withOutcome && ! $overrideOutcome) {
if (! $with && ! $override) {
return array_merge(
$this->extractPublicProperties(),
$this->extractPublicMethods(),
Expand All @@ -103,9 +101,9 @@ protected function merge()
}

return array_merge(
$withOutcome,
$with,
$this->view->getData(),
$overrideOutcome
$override
);
}

Expand Down

0 comments on commit d37bfff

Please sign in to comment.