@@ -262,6 +262,9 @@ discard block |
||
262 | 262 | } |
263 | 263 | } |
264 | 264 | |
265 | + /** |
|
266 | + * @param string $performerName |
|
267 | + */ |
|
265 | 268 | public function fetchPerformerIdByName($performerName, $createMissing = false) |
266 | 269 | { |
267 | 270 | $conn = $this->getDbConn(); |
@@ -638,7 +641,7 @@ discard block |
||
638 | 641 | /** |
639 | 642 | * Return SQL in appropriate dialect to concatenate the listed values |
640 | 643 | * |
641 | - * @param array $fields |
|
644 | + * @param string[] $fields |
|
642 | 645 | * |
643 | 646 | * @return string |
644 | 647 | */ |
@@ -814,6 +817,9 @@ discard block |
||
814 | 817 | return $source; |
815 | 818 | } |
816 | 819 | |
820 | + /** |
|
821 | + * @param string $platformName |
|
822 | + */ |
|
817 | 823 | public function fetchPlatformByName($platformName) |
818 | 824 | { |
819 | 825 | $platform = null; |
@@ -833,7 +839,7 @@ discard block |
||
833 | 839 | } |
834 | 840 | |
835 | 841 | /** |
836 | - * @param $songId |
|
842 | + * @param integer $songId |
|
837 | 843 | * @param array $platformIds |
838 | 844 | */ |
839 | 845 | public function storeSongPlatformLinks($songId, array $platformIds) |
@@ -887,7 +893,7 @@ discard block |
||
887 | 893 | |
888 | 894 | |
889 | 895 | /** |
890 | - * @param $songId |
|
896 | + * @param integer $songId |
|
891 | 897 | * @param array $instrumentIds |
892 | 898 | * @throws \Doctrine\DBAL\Exception\InvalidArgumentException |
893 | 899 | */ |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | $dataStore = $this; |
171 | 171 | $instruments = $dataStore->fetchInstrumentsForSongId($song['id']); |
172 | 172 | $instruments = array_map( |
173 | - function (Instrument $instrument) { |
|
173 | + function(Instrument $instrument) { |
|
174 | 174 | return $instrument->getName(); |
175 | 175 | }, |
176 | 176 | $instruments |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | |
185 | 185 | $platforms = $dataStore->fetchPlatformsForSongId($song['id']); |
186 | 186 | $platforms = array_map( |
187 | - function (Platform $platform) { |
|
187 | + function(Platform $platform) { |
|
188 | 188 | return $platform->getName(); |
189 | 189 | }, |
190 | 190 | $platforms |
@@ -914,7 +914,7 @@ discard block |
||
914 | 914 | |
915 | 915 | $dbConn = $this; |
916 | 916 | $instruments = array_map( |
917 | - function ($row) use ($dbConn) { |
|
917 | + function($row) use ($dbConn) { |
|
918 | 918 | return $dbConn->buildInstrumentFromDbRow($row); |
919 | 919 | }, |
920 | 920 | $instrumentRows |
@@ -937,7 +937,7 @@ discard block |
||
937 | 937 | |
938 | 938 | $dbConn = $this; |
939 | 939 | $platforms = array_map( |
940 | - function ($row) use ($dbConn) { |
|
940 | + function($row) use ($dbConn) { |
|
941 | 941 | return $dbConn->buildPlatformFromDbRow($row); |
942 | 942 | }, |
943 | 943 | $platformRows |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | * @param $title |
25 | 25 | * @param $songId |
26 | 26 | * |
27 | - * @return int|false |
|
27 | + * @return string|false |
|
28 | 28 | */ |
29 | 29 | public function storeNewTicket($title, $songId) |
30 | 30 | { |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | * @param $performerName |
49 | 49 | * @param bool|false $createMissing |
50 | 50 | * |
51 | - * @return mixed |
|
51 | + * @return string|boolean |
|
52 | 52 | */ |
53 | 53 | public function fetchPerformerIdByName($performerName, $createMissing = false) |
54 | 54 | { |
@@ -172,7 +172,7 @@ |
||
172 | 172 | |
173 | 173 | $datastore = $this->dataStore; |
174 | 174 | $instrumentIds = array_map( |
175 | - function ($name) use ($datastore) { |
|
175 | + function($name) use ($datastore) { |
|
176 | 176 | $instrument = $datastore->fetchInstrumentByName($name); |
177 | 177 | return $instrument ? $instrument->getId() : null; |
178 | 178 | }, |