Use short array syntax

This commit is contained in:
Ben Word
2015-01-18 16:45:18 -06:00
parent 747882c85e
commit a903e08b86
13 changed files with 40 additions and 39 deletions

View File

@@ -20,12 +20,12 @@ class Sage_Sidebar {
public $display = true;
function __construct($conditionals = array(), $templates = array()) {
function __construct($conditionals = [], $templates = []) {
$this->conditionals = $conditionals;
$this->templates = $templates;
$conditionals = array_map(array($this, 'check_conditional_tag'), $this->conditionals);
$templates = array_map(array($this, 'check_page_template'), $this->templates);
$conditionals = array_map([$this, 'check_conditional_tag'], $this->conditionals);
$templates = array_map([$this, 'check_page_template'], $this->templates);
if (in_array(true, $conditionals) || in_array(true, $templates)) {
$this->display = false;