Another emogrifier.php array

This commit is contained in:
Mike Jolley 2016-07-26 15:52:14 +01:00
parent 4775cec578
commit b56abded63
1 changed files with 2 additions and 2 deletions

View File

@ -1172,12 +1172,12 @@ class Emogrifier
if (in_array(strtolower($match[2]), array( 'even','odd' ), true)) {
// we have "even" or "odd"
$index = strtolower($match[2]) === 'even' ? 0 : 1;
return [self::MULTIPLIER => 2, self::INDEX => $index];
return array( self::MULTIPLIER => 2, self::INDEX => $index );
}
if (stripos($match[2], 'n') === false) {
// if there is a multiplier
$index = (int) str_replace(' ', '', $match[2]);
return [self::INDEX => $index];
return array( self::INDEX => $index );
}
if (isset($match[3])) {