| @@ -32,6 +32,7 @@ discard block | ||
| 32 | 32 | * @param string $country Country name | 
| 33 | 33 | * | 
| 34 | 34 | * $return string | 
| 35 | + * @return string|null | |
| 35 | 36 | */ | 
| 36 | 37 | public function getCountryCode($country) | 
| 37 | 38 |      { | 
| @@ -46,6 +47,7 @@ discard block | ||
| 46 | 47 | * @param string $municipality Municipality name | 
| 47 | 48 | * | 
| 48 | 49 | * $return integer | 
| 50 | + * @return string|null | |
| 49 | 51 | */ | 
| 50 | 52 | public function getMunicipalityCode($municipality) | 
| 51 | 53 |      { | 
| @@ -71,8 +73,8 @@ discard block | ||
| 71 | 73 | /** | 
| 72 | 74 | * Loops through csv file and stops with search | 
| 73 | 75 | * | 
| 74 | - * @param $file_name | |
| 75 | - * @param $search | |
| 76 | + * @param string $file_name | |
| 77 | + * @param string $search | |
| 76 | 78 | * @return array | 
| 77 | 79 | */ | 
| 78 | 80 | protected function getCSV($file_name, $search) | 
| @@ -35,7 +35,7 @@ discard block | ||
| 35 | 35 | */ | 
| 36 | 36 | public function getCountryCode($country) | 
| 37 | 37 |      { | 
| 38 | - $rows = $this->getCSV(DIRNAME(__FILE__) . "/data/Landekoder.csv", $country); | |
| 38 | + $rows = $this->getCSV(DIRNAME(__FILE__)."/data/Landekoder.csv", $country); | |
| 39 | 39 | $stored_in_column = 1; | 
| 40 | 40 | return $rows[$stored_in_column]; | 
| 41 | 41 | } | 
| @@ -49,7 +49,7 @@ discard block | ||
| 49 | 49 | */ | 
| 50 | 50 | public function getMunicipalityCode($municipality) | 
| 51 | 51 |      { | 
| 52 | - $rows = $this->getCSV(DIRNAME(__FILE__) . "/data/Kommuner.csv", $municipality); | |
| 52 | + $rows = $this->getCSV(DIRNAME(__FILE__)."/data/Kommuner.csv", $municipality); | |
| 53 | 53 | $stored_in_column = 2; | 
| 54 | 54 | return $rows[$stored_in_column]; | 
| 55 | 55 | } | 
| @@ -98,7 +98,7 @@ discard block | ||
| 98 | 98 | */ | 
| 99 | 99 | private function substrInArray($needle, array $haystack) | 
| 100 | 100 |      { | 
| 101 | -        $filtered = array_filter($haystack, function ($item) use ($needle) { | |
| 101 | +        $filtered = array_filter($haystack, function($item) use ($needle) { | |
| 102 | 102 | return false !== strpos($item, $needle); | 
| 103 | 103 | }); | 
| 104 | 104 | |