Skip to content

Commit

Permalink
Fixes to appease PHPCS
Browse files Browse the repository at this point in the history
  • Loading branch information
vanderlee committed Jul 8, 2015
1 parent 8bf4a87 commit 8fed3c8
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Classes/Emogrifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class Emogrifier
*/
private $css = '';

private $excludedSelectors = array();
private $excludedSelectors = [];

/**
* @var string[]
Expand Down Expand Up @@ -266,7 +266,7 @@ public function emogrify()
}

// Prepare the list of excluded nodes
$excludedNodes = array();
$excludedNodes = [];
foreach ($this->excludedSelectors as $selectorString) {
foreach (explode(',', $selectorString) as $selector) {
foreach ($xpath->query($this->translateCSStoXpath(trim($selector))) as $node) {
Expand Down Expand Up @@ -456,10 +456,9 @@ public function addExcludedSelector($selector)
*/
public function removeExcludedSelector($selector)
{
$this->excludedSelectors = array_diff($this->excludedSelectors,
array($selector));
$this->excludedSelectors = array_diff($this->excludedSelectors, [$selector]);
}

/**
* Marks a media query type to keep.
*
Expand Down

0 comments on commit 8fed3c8

Please sign in to comment.