| 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 |
Classes in PHP are usually named in CamelCase.
In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. The whole name starts with a capital letter as well.
Thus the name database provider becomes
DatabaseProvider.