| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | function setNoCookieDomain($searchString, $url) |
||
|
|
|||
| 13 | { |
||
| 14 | if (preg_match('#https?://(www\.)?youtube\.com#i', $searchString)) { |
||
| 15 | $searchString = preg_replace( |
||
| 16 | '#(https?:)?//(www\.)?youtube\.com#i', |
||
| 17 | '$1//$2youtube-nocookie.com', |
||
| 18 | $searchString |
||
| 19 | ); |
||
| 20 | } |
||
| 21 | |||
| 22 | return $searchString; |
||
| 23 | } |
||
| 24 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.