| Conditions | 5 |
| Paths | 8 |
| Total Lines | 16 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | public static function wrap($input, $js=NULL, $separator=' ', $valueQuote='"') { |
||
| 10 | $output=""; |
||
| 11 | if (is_string($input)) { |
||
| 12 | $output=$input; |
||
| 13 | } |
||
| 14 | if (is_array($input)) { |
||
| 15 | if (sizeof($input)>0) { |
||
| 16 | $value1=reset($input); |
||
| 17 | if (is_object($value1)) { |
||
| 18 | $output=PropertyWrapper::wrapObjects($input, $js, $separator=' '); |
||
| 19 | } else |
||
| 20 | $output=PropertyWrapper::wrapStrings($input, $separator=' ', $valueQuote='"'); |
||
| 21 | } |
||
| 22 | } |
||
| 23 | return $output; |
||
| 24 | } |
||
| 25 | |||
| 45 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.