Browse Source

Updated code formatting and PHP 7 usage

tags/3.0.0-alpha1
243083df 7 years ago committed by Alexander Makarov
parent
commit
cac4462e7a
  1. 2
      framework/grid/RadioButtonColumn.php
  2. 4
      framework/helpers/BaseHtml.php

2
framework/grid/RadioButtonColumn.php

@ -86,7 +86,7 @@ class RadioButtonColumn extends Column
$options['value'] = is_array($key) ? json_encode($key, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE) : $key;
}
}
$checked = isset($options['checked']) ? $options['checked'] : false;
$checked = $options['checked'] ?? false;
return Html::radio($this->name, $checked, $options);
}
}

4
framework/helpers/BaseHtml.php

@ -147,7 +147,7 @@ class BaseHtml
if ($name === null || $name === false) {
return $content;
}
$html = "<$name" . static::renderTagAttributes($options) . '>';
$html = '<' .$name . static::renderTagAttributes($options) . '>';
return isset(static::$voidElements[strtolower($name)]) ? $html : "$html$content</$name>";
}
@ -168,7 +168,7 @@ class BaseHtml
return '';
}
return "<$name" . static::renderTagAttributes($options) . '>';
return '<' . $name . static::renderTagAttributes($options) . '>';
}
/**

Loading…
Cancel
Save