@@ -20,7 +20,6 @@ |
||
20 | 20 | */ |
21 | 21 | namespace App\Controller; |
22 | 22 | |
23 | -use App\Utility\Sanitize; |
|
24 | 23 | use Cake\Controller\Controller; |
25 | 24 | use Cake\Event\Event; |
26 | 25 | use Cake\ORM\TableRegistry; |
@@ -32,7 +32,7 @@ |
||
32 | 32 | * or not to return a status. |
33 | 33 | * |
34 | 34 | * @param String $path the api path to preform the request to |
35 | - * @param Array $data the data to send in the request. This works with both GET |
|
35 | + * @param string $data the data to send in the request. This works with both GET |
|
36 | 36 | * and Post requests |
37 | 37 | * @param String $method the method type of the request |
38 | 38 | * @param Boolean $returnStatus whether to return the status code with the |
@@ -19,7 +19,6 @@ |
||
19 | 19 | namespace App\Controller\Component; |
20 | 20 | |
21 | 21 | use Cake\Controller\Component; |
22 | -use Cake\Routing\Router; |
|
23 | 22 | |
24 | 23 | /** |
25 | 24 | * Github api component handling comunication with github |
@@ -193,7 +193,7 @@ |
||
193 | 193 | * @param Object $response the response returned by Github api |
194 | 194 | * @param Integer $status status returned by Github API |
195 | 195 | * |
196 | - * @return error string |
|
196 | + * @return string string |
|
197 | 197 | */ |
198 | 198 | protected function _getErrors($response, $status) { |
199 | 199 | $errorString = "There were some problems with the issue submission." |
@@ -19,7 +19,6 @@ |
||
19 | 19 | |
20 | 20 | use App\Controller\AppController; |
21 | 21 | use Cake\Network\Exception\NotFoundException; |
22 | -use App\Utility\Sanitize; |
|
23 | 22 | |
24 | 23 | /** |
25 | 24 | * Incidents controller handling incident creation and rendering |
@@ -52,7 +52,7 @@ |
||
52 | 52 | * Displays a view |
53 | 53 | * |
54 | 54 | * @param mixed What page to display |
55 | - * @return void |
|
55 | + * @return \Cake\Http\Response|null |
|
56 | 56 | * @throws NotFoundException When the view file could not be found |
57 | 57 | * or MissingViewException in debug mode. |
58 | 58 | */ |
@@ -323,6 +323,9 @@ |
||
323 | 323 | $this->set("related_entries", $relatedEntries); |
324 | 324 | } |
325 | 325 | |
326 | + /** |
|
327 | + * @param string $key |
|
328 | + */ |
|
326 | 329 | protected function _findArrayList($results, $key) |
327 | 330 | { |
328 | 331 | $output = array(); |
@@ -21,7 +21,6 @@ |
||
21 | 21 | use App\Utility\Sanitize; |
22 | 22 | use Cake\Core\Configure; |
23 | 23 | use Cake\Log\Log; |
24 | -use Cake\ORM\Table; |
|
25 | 24 | use Cake\ORM\TableRegistry; |
26 | 25 | use Cake\Network\Exception\NotFoundException; |
27 | 26 |
@@ -17,7 +17,6 @@ |
||
17 | 17 | */ |
18 | 18 | namespace App\Model\Table; |
19 | 19 | |
20 | -use App\Model\AppModel; |
|
21 | 20 | use Cake\ORM\Table; |
22 | 21 | use Cake\ORM\TableRegistry; |
23 | 22 | use Cake\Log\Log; |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | /** |
94 | 94 | * Retrieves the incident records that are related to the current report |
95 | 95 | * |
96 | - * @return Array the list of incidents ordered by creation date desc |
|
96 | + * @return \Cake\ORM\Query the list of incidents ordered by creation date desc |
|
97 | 97 | */ |
98 | 98 | public function getIncidents() |
99 | 99 | { |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | /** |
109 | 109 | * Retrieves the report records that are related to the current report |
110 | 110 | * |
111 | - * @return Array the list of related reports |
|
111 | + * @return \Cake\ORM\Query the list of related reports |
|
112 | 112 | */ |
113 | 113 | public function getRelatedReports() |
114 | 114 | { |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | * Retrieves the incident records that are related to the current report that |
122 | 122 | * also have a description |
123 | 123 | * |
124 | - * @return Array the list of incidents ordered by description lenght desc |
|
124 | + * @return \Cake\ORM\Query the list of incidents ordered by description lenght desc |
|
125 | 125 | */ |
126 | 126 | public function getIncidentsWithDescription() |
127 | 127 | { |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | * Retrieves the incident records that are related to the current report that |
141 | 141 | * that have a different stacktrace |
142 | 142 | * |
143 | - * @return Array the list of incidents |
|
143 | + * @return \Cake\ORM\Query the list of incidents |
|
144 | 144 | */ |
145 | 145 | public function getIncidentsWithDifferentStacktrace() |
146 | 146 | { |