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