rspec/rules/S2000/php/rule.adoc
2022-02-04 16:28:24 +00:00

45 lines
622 B
Plaintext

Having characters before ``++<?php++`` can cause "Cannot modify header information" errors and similar problems with Ajax requests.
== Noncompliant Code Example
[source,php]
----
test<?php //Noncompliant
// ...
----
and
[source,php]
----
// Noncompliant; newline before opening tag
<?php
// ...
----
== Compliant Solution
[source,php]
----
<?php
// ...
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::message.adoc[]
'''
== Comments And Links
(visible only on this page)
include::comments-and-links.adoc[]
endif::env-github,rspecator-view[]