Better quotes usage in strings

- Use single quote where interpolation isn't necessary
- Use interpolation when it's better than concatenation
This commit is contained in:
Alexander Makarov
2015-10-10 00:23:52 +03:00
parent 3a313ac652
commit 5ab4f0f090
36 changed files with 118 additions and 118 deletions

View File

@ -226,7 +226,7 @@ class BaseHtml
return self::wrapIntoCondition(static::tag('link', '', $options), $condition);
} elseif (isset($options['noscript']) && $options['noscript'] === true) {
unset($options['noscript']);
return "<noscript>" . static::tag('link', '', $options) . "</noscript>";
return '<noscript>' . static::tag('link', '', $options) . '</noscript>';
} else {
return static::tag('link', '', $options);
}
@ -1153,10 +1153,10 @@ class BaseHtml
if (empty($lines)) {
// still render the placeholder for client-side validation use
$content = "<ul></ul>";
$content = '<ul></ul>';
$options['style'] = isset($options['style']) ? rtrim($options['style'], ';') . '; display:none' : 'display:none';
} else {
$content = "<ul><li>" . implode("</li>\n<li>", $lines) . "</li></ul>";
$content = '<ul><li>' . implode("</li>\n<li>", $lines) . '</li></ul>';
}
return Html::tag('div', $header . $content . $footer, $options);
}