@@ -58,7 +58,7 @@ |
||
| 58 | 58 | * Show the form for editing the specified resource. |
| 59 | 59 | * |
| 60 | 60 | * @param int $id |
| 61 | - * @return Response |
|
| 61 | + * @return integer |
|
| 62 | 62 | */ |
| 63 | 63 | public function edit($id) |
| 64 | 64 | { |
@@ -12,6 +12,9 @@ |
||
| 12 | 12 | $this->matchround = $matchRoundRepo; |
| 13 | 13 | } |
| 14 | 14 | |
| 15 | + /** |
|
| 16 | + * @param string $type |
|
| 17 | + */ |
|
| 15 | 18 | public function calculate($matchId, $type) |
| 16 | 19 | { |
| 17 | 20 | $rounds = $this->matchround->getByMatch($matchId); |
@@ -42,7 +42,6 @@ |
||
| 42 | 42 | /** |
| 43 | 43 | * Show the form for editing the specified resource. |
| 44 | 44 | * |
| 45 | - * @param int $id |
|
| 46 | 45 | * @return Response |
| 47 | 46 | */ |
| 48 | 47 | public function edit() |
@@ -45,7 +45,6 @@ |
||
| 45 | 45 | /** |
| 46 | 46 | * Display the specified resource. |
| 47 | 47 | * |
| 48 | - * @param int $id |
|
| 49 | 48 | * @return Response |
| 50 | 49 | */ |
| 51 | 50 | public function show($matchId) |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | /** |
| 19 | 19 | * Create a new instance of the MatchHandler |
| 20 | 20 | * |
| 21 | - * @param GolfLeague\Storage\Round\RoundRepository $roundRepo |
|
| 21 | + * @param RoundRepository $roundRepo |
|
| 22 | 22 | * @return void |
| 23 | 23 | */ |
| 24 | 24 | public function __construct(RoundRepository $roundRepo, HoleScoreRepository $holescoreRepo) |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | /** |
| 22 | 22 | * Create a new instance of the MatchHandler |
| 23 | 23 | * |
| 24 | - * @param GolfLeague\Storage\Round\RoundRepository $roundRepo |
|
| 24 | + * @param RoundRepository $roundRepo |
|
| 25 | 25 | * @return void |
| 26 | 26 | */ |
| 27 | 27 | public function __construct(RoundRepository $roundRepo) |
@@ -345,7 +345,7 @@ discard block |
||
| 345 | 345 | /** |
| 346 | 346 | * Method to get match from input Match data |
| 347 | 347 | * |
| 348 | - * @param mixed $matchdata |
|
| 348 | + * @param mixed $matchid |
|
| 349 | 349 | * @return JSON object |
| 350 | 350 | */ |
| 351 | 351 | public function get($matchid) |
@@ -356,6 +356,9 @@ discard block |
||
| 356 | 356 | |
| 357 | 357 | |
| 358 | 358 | |
| 359 | + /** |
|
| 360 | + * @param string $key |
|
| 361 | + */ |
|
| 359 | 362 | private function search($array, $key, $value) |
| 360 | 363 | { |
| 361 | 364 | $results = array(); |