mirror of https://github.com/MISP/MISP
chg: [helper:ScopedCSS] Usage of PHP_EOL
parent
d384cced23
commit
1371af6377
|
@ -16,7 +16,7 @@ App::uses('AppHelper', 'View/Helper');
|
|||
private function preppendScopedId($css, $seed)
|
||||
{
|
||||
$prependSelector = sprintf('[data-scoped="%s"]', $seed);
|
||||
$cssLines = explode("\n", $css);
|
||||
$cssLines = explode(PHP_EOL, $css);
|
||||
foreach ($cssLines as $i => $line) {
|
||||
if (strlen($line) > 0) {
|
||||
if ($this->endsWith($line, "{") || $this->endsWith($line, ",")) {
|
||||
|
|
Loading…
Reference in New Issue