| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | public function afterNormalization(string $url): string |
||
| 16 | { |
||
| 17 | $url = parent::afterNormalization($url); |
||
| 18 | |||
| 19 | // strip @ and #! from the URL, eg. twitter.com/@HumanDirectEU becomes twitter.com/HumanDirectEU |
||
| 20 | $url = str_replace(['.com/@', '.com/#!/', '.com/share'], '.com/', $url); |
||
| 21 | |||
| 22 | return rtrim($url, '/'); |
||
| 23 | } |
||
| 25 |