rspec/rules/S2000/php/rule.adoc

42 lines
583 B
Plaintext

Having characters before ``++<?php++`` can cause "Cannot modify header information" errors and similar problems with Ajax requests.
== Noncompliant Code Example
----
test<?php //Noncompliant
// ...
----
and
----
// Noncompliant; newline before opening tag
<?php
// ...
----
== Compliant Solution
----
<?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[]