<?xml version="1.0"?>
<ruleset name="My Custom Standard">
<description>If you are using a custom ruleset, please enter it here.</description>
<rule ref="Squiz.PHP.EmbeddedPhp.ContentAfterEnd"/>
</ruleset>
To reproduce
Steps to reproduce the behavior:
Create a file called test.php with the code sample above...
Run phpcbf test.php ...
phpcbf created invalid HTML
?>
<!DOCTYPE html>
Expected behavior
There is no space allowed before the DOCTYPE tag - any space before the DOCTYPE will cause browsers to run quirks mode.
Versions (please complete the following information):
Describe the bug
Code sample
Custom ruleset
To reproduce Steps to reproduce the behavior:
test.php
with the code sample above...phpcbf test.php ...
Expected behavior There is no space allowed before the DOCTYPE tag - any space before the DOCTYPE will cause browsers to run quirks mode.
Versions (please complete the following information):