@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use League\Route\Http\JsonResponse as Response; |
6 | 6 | use Ps2alerts\Api\Controller\EndpointBaseController; |
7 | -use Ps2alerts\Api\QueryObjects\QueryObject; |
|
8 | 7 | use Ps2alerts\Api\Loader\ResultLoader; |
9 | 8 | use Symfony\Component\HttpFoundation\Request; |
10 | 9 |
@@ -116,7 +116,6 @@ discard block |
||
116 | 116 | * Reads all records based off a simple where statement |
117 | 117 | * |
118 | 118 | * @param array $fields |
119 | - * @param string $value |
|
120 | 119 | * |
121 | 120 | * @return array |
122 | 121 | */ |
@@ -136,8 +135,7 @@ discard block |
||
136 | 135 | /** |
137 | 136 | * Reads the count of records based off a where statement |
138 | 137 | * |
139 | - * @param array $field |
|
140 | - * @param string $value |
|
138 | + * @param array $fields |
|
141 | 139 | * |
142 | 140 | * @return array |
143 | 141 | */ |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | $key = $this->returnKeyType($keyType); |
90 | 90 | |
91 | 91 | $query->cols(['*']) |
92 | - ->where("`{$key}` = '{$id}'"); |
|
92 | + ->where("`{$key}` = '{$id}'"); |
|
93 | 93 | |
94 | 94 | return $this->fireStatementAndReturn($query, true); |
95 | 95 | } |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | $key = $this->returnKeyType($keyType); |
108 | 108 | |
109 | 109 | $query->cols(['*']) |
110 | - ->where("`{$key}` = '{$id}'"); |
|
110 | + ->where("`{$key}` = '{$id}'"); |
|
111 | 111 | |
112 | 112 | return $this->fireStatementAndReturn($query); |
113 | 113 | } |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | |
127 | 127 | $query->cols(['*']); |
128 | 128 | |
129 | - foreach($fields as $field => $value) { |
|
129 | + foreach ($fields as $field => $value) { |
|
130 | 130 | $query->where("`{$field}` = '{$value}'"); |
131 | 131 | } |
132 | 132 | |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | |
149 | 149 | $query->cols(["COUNT({$key}) as COUNT"]); |
150 | 150 | |
151 | - foreach($fields as $field => $value) { |
|
151 | + foreach ($fields as $field => $value) { |
|
152 | 152 | $query->where("`{$field}` = '{$value}'"); |
153 | 153 | } |
154 | 154 |
@@ -15,9 +15,9 @@ discard block |
||
15 | 15 | /** |
16 | 16 | * Construct |
17 | 17 | * |
18 | - * @param Ps2alerts\Api\Repository\AlertRepository $repository |
|
19 | - * @param Ps2alerts\Api\Transformer\AlertTransformer $transformer |
|
20 | - * @param League\Fractal\Manager $fractal |
|
18 | + * @param AlertRepository $repository |
|
19 | + * @param AlertTransformer $transformer |
|
20 | + * @param Manager $fractal |
|
21 | 21 | */ |
22 | 22 | public function __construct( |
23 | 23 | AlertRepository $repository, |
@@ -34,11 +34,11 @@ discard block |
||
34 | 34 | * |
35 | 35 | * @see AbstractEndpointController::respondWithItem |
36 | 36 | * |
37 | - * @param Symfony\Component\HttpFoundation\Request $request |
|
38 | - * @param Symfony\Component\HttpFoundation\Response $response |
|
37 | + * @param Request $request |
|
38 | + * @param Response $response |
|
39 | 39 | * @param array $args |
40 | 40 | * |
41 | - * @return array |
|
41 | + * @return Response |
|
42 | 42 | */ |
43 | 43 | public function getSingle(Request $request, Response $response, array $args) |
44 | 44 | { |
@@ -65,11 +65,10 @@ discard block |
||
65 | 65 | /** |
66 | 66 | * Returns the victories of each faction and the totals |
67 | 67 | * |
68 | - * @param Symfony\Component\HttpFoundation\Request $request |
|
69 | - * @param Symfony\Component\HttpFoundation\Response $response |
|
70 | - * @param array $args |
|
68 | + * @param Request $request |
|
69 | + * @param Response $response |
|
71 | 70 | * |
72 | - * @return array |
|
71 | + * @return Response |
|
73 | 72 | */ |
74 | 73 | public function getVictories(Request $request, Response $response) |
75 | 74 | { |
@@ -91,10 +90,10 @@ discard block |
||
91 | 90 | /** |
92 | 91 | * Returns the dominations of each faction and the totals |
93 | 92 | * |
94 | - * @param Symfony\Component\HttpFoundation\Request $request |
|
95 | - * @param Symfony\Component\HttpFoundation\Response $response |
|
93 | + * @param Request $request |
|
94 | + * @param Response $response |
|
96 | 95 | * |
97 | - * @return array |
|
96 | + * @return Response |
|
98 | 97 | */ |
99 | 98 | public function getDominations(Request $request, Response $response) |
100 | 99 | { |