Skip to content

Commit

Permalink
Replaced Laravel method call last with end
Browse files Browse the repository at this point in the history
  • Loading branch information
BenGriffiths authored Oct 8, 2020
1 parent b9eb650 commit c697c2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/RemoveUnusedCssBasic.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ protected function filterCss()
foreach (explode(',', $selectors) as $selector) {

if (
(in_array(last(explode(' ', $selector)), array_merge($this->whitelistArray, $this->foundUsedCssElements))) ||
(in_array(last(explode(' ', explode(':', $selector)[0])), array_merge($this->whitelistArray, $this->foundUsedCssElements))) ||
(in_array(end(explode(' ', $selector)), array_merge($this->whitelistArray, $this->foundUsedCssElements))) ||
(in_array(end(explode(' ', explode(':', $selector)[0])), array_merge($this->whitelistArray, $this->foundUsedCssElements))) ||
(in_array(explode(':', $selector)[0], array_merge($this->whitelistArray, $this->foundUsedCssElements)))
) {
$keep = true;
Expand Down

0 comments on commit c697c2b

Please sign in to comment.