| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | function testEmailForUrl() |
||
| 18 | { |
||
| 19 | $sanitise = $this->security->sanitise(); |
||
| 20 | $email = '[email protected]'; |
||
| 21 | echo "\nUnclean String: " . $email; |
||
| 22 | echo "\n"; |
||
| 23 | echo "\nSanitised Url: " . $sanitise->removeUrl($email); |
||
| 24 | if ($sanitise->isSanitised()) { |
||
| 25 | echo "\n1"; |
||
| 26 | } |
||
| 27 | } |
||
| 28 | |||
| 60 |
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.