@@ -320,6 +320,9 @@ |
||
320 | 320 | $this->set('related_entries', $relatedEntries); |
321 | 321 | } |
322 | 322 | |
323 | + /** |
|
324 | + * @param string $key |
|
325 | + */ |
|
323 | 326 | protected function _findArrayList($results, $key) |
324 | 327 | { |
325 | 328 | $output = array(); |
@@ -228,7 +228,7 @@ discard block |
||
228 | 228 | * |
229 | 229 | * @param array $bugReport the bug report being checked |
230 | 230 | * Integer $index: for php exception type |
231 | - * @param mixed $index |
|
231 | + * @param integer $index |
|
232 | 232 | * |
233 | 233 | * @return array the first similar report or null |
234 | 234 | */ |
@@ -254,7 +254,7 @@ discard block |
||
254 | 254 | * |
255 | 255 | * @param array $bugReport the bug report the report record is being created for |
256 | 256 | * Integer $index: for php exception type |
257 | - * @param mixed $index |
|
257 | + * @param integer $index |
|
258 | 258 | * |
259 | 259 | * @return array an array with the report fields can be used with Report->save |
260 | 260 | */ |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | /** |
96 | 96 | * Retrieves the incident records that are related to the current report. |
97 | 97 | * |
98 | - * @return array the list of incidents ordered by creation date desc |
|
98 | + * @return \Cake\ORM\Query the list of incidents ordered by creation date desc |
|
99 | 99 | */ |
100 | 100 | public function getIncidents() |
101 | 101 | { |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | /** |
112 | 112 | * Retrieves the report records that are related to the current report. |
113 | 113 | * |
114 | - * @return array the list of related reports |
|
114 | + * @return \Cake\ORM\Query the list of related reports |
|
115 | 115 | */ |
116 | 116 | public function getRelatedReports() |
117 | 117 | { |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | * Retrieves the incident records that are related to the current report that |
125 | 125 | * also have a description. |
126 | 126 | * |
127 | - * @return array the list of incidents ordered by description lenght desc |
|
127 | + * @return \Cake\ORM\Query the list of incidents ordered by description lenght desc |
|
128 | 128 | */ |
129 | 129 | public function getIncidentsWithDescription() |
130 | 130 | { |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | * Retrieves the incident records that are related to the current report that |
144 | 144 | * that have a different stacktrace. |
145 | 145 | * |
146 | - * @return array the list of incidents |
|
146 | + * @return \Cake\ORM\Query the list of incidents |
|
147 | 147 | */ |
148 | 148 | public function getIncidentsWithDifferentStacktrace() |
149 | 149 | { |
@@ -29,6 +29,9 @@ |
||
29 | 29 | // but the migration itself is idempotent |
30 | 30 | } |
31 | 31 | |
32 | + /** |
|
33 | + * @param string $table |
|
34 | + */ |
|
32 | 35 | private function _sanitizeVersionsInTable($table) |
33 | 36 | { |
34 | 37 | $sql = 'SELECT `id`, `pma_version` FROM `' . $table . '`'; |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Cake\ORM\TableRegistry; |
6 | 6 | use Cake\TestSuite\IntegrationTestCase; |
7 | -use Cake\Network\Exception\NotFoundException; |
|
8 | 7 | |
9 | 8 | class ReportsControllerTest extends IntegrationTestCase |
10 | 9 | { |
@@ -109,7 +109,7 @@ |
||
109 | 109 | /** |
110 | 110 | * Validate HTTP Request recieved. |
111 | 111 | * |
112 | - * @param Request $request Request object |
|
112 | + * @param \Cake\Http\ServerRequest $request Request object |
|
113 | 113 | * |
114 | 114 | * @return int status code based on if this is a valid request |
115 | 115 | */ |
@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | * @param object $response the response returned by Github api |
232 | 232 | * @param int $status status returned by Github API |
233 | 233 | * |
234 | - * @return error string |
|
234 | + * @return string string |
|
235 | 235 | */ |
236 | 236 | protected function _getErrors($response, $status) |
237 | 237 | { |
@@ -370,7 +370,7 @@ discard block |
||
370 | 370 | * Get Incident counts for a report and |
371 | 371 | * all its related reports. |
372 | 372 | * |
373 | - * @param $reportId Report ID |
|
373 | + * @param integer $reportId Report ID |
|
374 | 374 | * |
375 | 375 | * @return $total_incident_count Total Incident count for a report |
376 | 376 | */ |
@@ -406,7 +406,7 @@ discard block |
||
406 | 406 | * |
407 | 407 | * @param $issueState Linked Github issue's state |
408 | 408 | * |
409 | - * @return Corresponding status to which the linked report should be updated to |
|
409 | + * @return string status to which the linked report should be updated to |
|
410 | 410 | */ |
411 | 411 | protected function _getReportStatusFromIssueState($issueState) |
412 | 412 | { |