| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | interface MarkdownInterface { |
||
| 21 | |||
| 22 | # |
||
| 23 | # Initialize the parser and return the result of its transform method. |
||
| 24 | # This will work fine for derived classes too. |
||
| 25 | # |
||
| 26 | public static function defaultTransform($text); |
||
| 27 | |||
| 28 | # |
||
| 29 | # Main function. Performs some preprocessing on the input text |
||
| 30 | # and pass it through the document gamut. |
||
| 31 | # |
||
| 32 | public function transform($text); |
||
| 33 | |||
| 34 | } |
||
| 35 | |||
| 37 | ?> |
||
|
|
Using a closing tag in PHP files that only contain PHP code is not recommended as you might accidentally add whitespace after the closing tag which would then be output by PHP. This can cause severe problems, for example headers cannot be sent anymore.
A simple precaution is to leave off the closing tag as it is not required, and it also has no negative effects whatsoever.