Skip to content

Commit c697c2b

Browse files
authored
Replaced Laravel method call last with end
1 parent b9eb650 commit c697c2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/RemoveUnusedCssBasic.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ protected function filterCss()
131131
foreach (explode(',', $selectors) as $selector) {
132132

133133
if (
134-
(in_array(last(explode(' ', $selector)), array_merge($this->whitelistArray, $this->foundUsedCssElements))) ||
135-
(in_array(last(explode(' ', explode(':', $selector)[0])), array_merge($this->whitelistArray, $this->foundUsedCssElements))) ||
134+
(in_array(end(explode(' ', $selector)), array_merge($this->whitelistArray, $this->foundUsedCssElements))) ||
135+
(in_array(end(explode(' ', explode(':', $selector)[0])), array_merge($this->whitelistArray, $this->foundUsedCssElements))) ||
136136
(in_array(explode(':', $selector)[0], array_merge($this->whitelistArray, $this->foundUsedCssElements)))
137137
) {
138138
$keep = true;

0 commit comments

Comments
 (0)