MarkdownInterface::defaultTransform()
last analyzed

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 1
1
<?php
2
#
3
# Markdown  -  A text-to-HTML conversion tool for web writers
4
#
5
# PHP Markdown
6
# Copyright (c) 2004-2013 Michel Fortin
7
# <http://michelf.com/projects/php-markdown/>
8
#
9
# Original Markdown
10
# Copyright (c) 2004-2006 John Gruber
11
# <http://daringfireball.net/projects/markdown/>
12
#
13
namespace Michelf;
14
15
16
#
17
# Markdown Parser Interface
18
#
19
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
36
37
?>
0 ignored issues
show
Best Practice introduced by
It is not recommended to use PHP's closing tag ?> in files other than templates.

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.

Loading history...