| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | public static function wrapStrings($input, $separator=' ', $valueQuote='"') { |
||
| 27 | if (JArray::isAssociative($input)===true) { |
||
| 28 | $result=implode($separator, array_map(function ($v, $k) use($valueQuote) { |
||
| 29 | return $k.'='.$valueQuote.$v.$valueQuote; |
||
| 30 | }, $input, array_keys($input))); |
||
| 31 | } else { |
||
| 32 | $result=implode($separator, array_values($input)); |
||
| 33 | } |
||
| 34 | return $result; |
||
| 35 | } |
||
| 36 | |||
| 45 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.