@@ -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 . '`'; |
@@ -20,7 +20,6 @@ |
||
20 | 20 | namespace App\Controller\Component; |
21 | 21 | |
22 | 22 | use Cake\Controller\Component; |
23 | -use Cake\ORM\TableRegistry; |
|
24 | 23 | use Cake\Mailer\Email; |
25 | 24 | use Cake\Core\Configure; |
26 | 25 |
@@ -375,6 +375,9 @@ |
||
375 | 375 | $this->set('related_entries', $relatedEntries); |
376 | 376 | } |
377 | 377 | |
378 | + /** |
|
379 | + * @param string $key |
|
380 | + */ |
|
378 | 381 | protected function _findArrayList($results, $key) |
379 | 382 | { |
380 | 383 | $output = []; |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use Cake\Core\Configure; |
6 | 6 | use Cake\ORM\TableRegistry; |
7 | 7 | use Cake\TestSuite\IntegrationTestCase; |
8 | -use Cake\Mailer\Transport\DebugTransport; |
|
9 | 8 | |
10 | 9 | class IncidentsControllerTest extends IntegrationTestCase |
11 | 10 | { |