Conditions | 3 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | function parse() { |
||
|
|||
15 | $html = ''; |
||
16 | if (file_exists($this->page->path)) { |
||
17 | $source = file_get_contents($this->page->path); |
||
18 | if (strpos($source, 'BODYEND') === false) { |
||
19 | $source = str_replace('</body>', '{BODYEND}</body>', $source); |
||
20 | } |
||
21 | $html = $this->parseSource($source); |
||
22 | } |
||
23 | return $html; |
||
24 | } |
||
53 | } |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.