@@ -42,6 +42,7 @@ discard block |
||
42 | 42 | * Gets municipality code |
43 | 43 | * |
44 | 44 | * $return integer |
45 | + * @return string|null |
|
45 | 46 | */ |
46 | 47 | public function getMunicipalityCode($municipality) |
47 | 48 | { |
@@ -53,7 +54,7 @@ discard block |
||
53 | 54 | /** |
54 | 55 | * Loops through csv file and stops with search |
55 | 56 | * |
56 | - * @param $file_name |
|
57 | + * @param string $file_name |
|
57 | 58 | * @param $search |
58 | 59 | * @return array |
59 | 60 | */ |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | */ |
34 | 34 | public function getCountryCode($country) |
35 | 35 | { |
36 | - $rows = $this->getCSV(DIRNAME(__FILE__) . "/data/Landekoder.csv", $country); |
|
36 | + $rows = $this->getCSV(DIRNAME(__FILE__)."/data/Landekoder.csv", $country); |
|
37 | 37 | $stored_in_column = 2; |
38 | 38 | return $rows[$stored_in_column]; |
39 | 39 | } |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | */ |
46 | 46 | public function getMunicipalityCode($municipality) |
47 | 47 | { |
48 | - $rows = $this->getCSV(DIRNAME(__FILE__) . "/data/Kommuner.csv", $municipality); |
|
48 | + $rows = $this->getCSV(DIRNAME(__FILE__)."/data/Kommuner.csv", $municipality); |
|
49 | 49 | $stored_in_column = 2; |
50 | 50 | return $rows[$stored_in_column]; |
51 | 51 | } |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | */ |
81 | 81 | private function substrInArray($needle, array $haystack) |
82 | 82 | { |
83 | - $filtered = array_filter($haystack, function ($item) use ($needle) { |
|
83 | + $filtered = array_filter($haystack, function($item) use ($needle) { |
|
84 | 84 | return false !== strpos($item, $needle); |
85 | 85 | }); |
86 | 86 |