| 1 | <?php |
||
| 27 | class Utility implements UtilityInterface |
||
| 28 | { |
||
| 29 | /** |
||
| 30 | * Gets country code |
||
| 31 | * |
||
| 32 | * $return mixed integer / null |
||
| 33 | */ |
||
| 34 | 2 | public function getCountryCode($country) |
|
| 40 | |||
| 41 | /** |
||
| 42 | * Gets municipality code |
||
| 43 | * |
||
| 44 | * $return mixed integer / null |
||
| 45 | */ |
||
| 46 | 2 | public function getMunicipalityCode($municipality) |
|
| 52 | |||
| 53 | /** |
||
| 54 | * Loops through csv file and stops with search |
||
| 55 | * |
||
| 56 | * @param $file_name |
||
| 57 | * @param $search |
||
| 58 | * @return array |
||
| 59 | */ |
||
| 60 | 4 | protected function getCSV($file_name, $search) |
|
| 72 | } |
||
| 73 |
This check looks for variable assignements that are either overwritten by other assignments or where the variable is not used subsequently.
Both the
$myVarassignment in line 1 and the$higherassignment in line 2 are dead. The first because$myVaris never used and the second because$higheris always overwritten for every possible time line.