| Conditions | 3 | 
| Paths | 4 | 
| Total Lines | 12 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 13 | public static function processFieldAliases($fields)  | 
            ||
| 14 |     { | 
            ||
| 15 |         if (!is_array($fields)) { | 
            ||
| 16 |             $fields = array_filter(explode(',', $fields)); | 
            ||
| 17 | }  | 
            ||
| 18 | $transformed_fields = [];  | 
            ||
| 19 |         foreach ($fields as $field) { | 
            ||
| 20 |             list($machine_name,$label) = explode(' as ', $field) + [$field, preg_replace('#.*\.#', '', $field)]; | 
            ||
| 21 | $transformed_fields[$machine_name] = $label;  | 
            ||
| 22 | }  | 
            ||
| 23 | return $transformed_fields;  | 
            ||
| 24 | }  | 
            ||
| 25 | |||
| 30 | 
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.