rspec/rules/S1757/php/rule.adoc

18 lines
348 B
Plaintext
Raw Normal View History

2021-04-28 16:49:39 +02:00
Coding conventions allow teams to collaborate effectively. For maximum standardization and readability, PHP code should use the long ``++<?php ?>++`` tags or the short-echo ``++<?= ?>++`` tags; it should not use the other tag variations.
== Noncompliant Code Example
----
<?
$foo = 1;
?>
----
== Compliant Solution
----
<?php
$foo = 1;
?>
----