Skip to content

Commit 3a70fb4

Browse files
committed
refactor: add variable for if condition
1 parent 56f855c commit 3a70fb4

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

system/View/View.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,10 @@ public function render(string $view, ?array $options = null, ?bool $saveData = n
251251
$this->renderVars['view']
252252
);
253253

254-
if (($this->debug && (! isset($options['debug']) || $options['debug'] === true))
255-
&& in_array(DebugToolbar::class, service('filters')->getFiltersClass()['after'], true)
254+
$afterFilters = service('filters')->getFiltersClass()['after'];
255+
if (
256+
($this->debug && (! isset($options['debug']) || $options['debug'] === true))
257+
&& in_array(DebugToolbar::class, $afterFilters, true)
256258
) {
257259
$toolbarCollectors = config(Toolbar::class)->collectors;
258260

0 commit comments

Comments
 (0)