| Total Complexity | 3 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | abstract class Transformer |
||
| 19 | { |
||
| 20 | |||
| 21 | const URL_REGEX = "/(http|https|ftp|ftps)\:\/\/[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(\/\S*)?/"; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Strips HTML tags from the given string. |
||
| 25 | * @param string $message The string that does/may contain HTML tags. |
||
| 26 | * @return string |
||
| 27 | */ |
||
| 28 | 18 | protected function stripHtml($message) |
|
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Retrieves the formatted text. |
||
| 35 | * @return string |
||
| 36 | */ |
||
| 37 | 18 | public function get() |
|
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Default __toString() method to return the formatted text. |
||
| 44 | * @return string |
||
| 45 | */ |
||
| 46 | 18 | public function __toString() |
|
| 51 |