egeloen / ivory-google-map

Google Map API v3 integration for PHP 5.6+.
MIT License
325 stars 185 forks source link

Serious typo "test/css" in StylesheetTagRenderer.php #276

Open Defcon0 opened 6 years ago

Defcon0 commented 6 years ago

Hello,

at first thanks for the great plugin you've put together!!

I found an issue in StylesheetTagRenderer.php. Currently in that file we have:

return $this->getTagRenderer()->render(
            'style',
            $formatter->renderLines([
                $name.$formatter->renderSeparator().'{',
                $formatter->renderIndentation($formatter->renderLines($tagStylesheets, true, false)),
                '}',
            ], !empty($tagStylesheets), false),
            array_merge(['type' => 'test/css'], $attributes),
            $newLine
        );

But it needs to be

return $this->getTagRenderer()->render(
            'style',
            $formatter->renderLines([
                $name.$formatter->renderSeparator().'{',
                $formatter->renderIndentation($formatter->renderLines($tagStylesheets, true, false)),
                '}',
            ], !empty($tagStylesheets), false),
            array_merge(['type' => 'text/css'], $attributes),
            $newLine
        );

The type of the style element is 'type' => 'test/css' but it needs to be 'type' => 'text/css'.

Thanks in advance for fixing this ;-)

Bye Defcon0