@@ -33,7 +33,7 @@ |
||
33 | 33 | * or not to return a status. |
34 | 34 | * |
35 | 35 | * @param String $path the api path to preform the request to |
36 | - * @param Array $data the data to send in the request. This works with both GET |
|
36 | + * @param string $data the data to send in the request. This works with both GET |
|
37 | 37 | * and Post requests |
38 | 38 | * @param String $method the method type of the request |
39 | 39 | * @param Boolean $returnStatus whether to return the status code with the |
@@ -190,7 +190,7 @@ |
||
190 | 190 | * @param Object $response the response returned by Github api |
191 | 191 | * @param Integer $status status returned by Github API |
192 | 192 | * |
193 | - * @return error string |
|
193 | + * @return string string |
|
194 | 194 | */ |
195 | 195 | protected function _getErrors($response, $status) { |
196 | 196 | $errorString = "There were some problems with the issue submission." |
@@ -16,7 +16,6 @@ |
||
16 | 16 | use Cake\Core\Configure; |
17 | 17 | use Cake\Error\Debugger; |
18 | 18 | use Cake\Filesystem\File; |
19 | -use Cake\Log\Log; |
|
20 | 19 | use Cake\View\Helper; |
21 | 20 | |
22 | 21 | /** |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use App\Controller\AppController; |
6 | 6 | use Cake\Network\Exception\NotFoundException; |
7 | -use App\Utility\Sanitize; |
|
8 | 7 | /** |
9 | 8 | * Incidents controller handling incident creation and rendering |
10 | 9 | * |
@@ -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\Network\Response|null |
|
56 | 56 | * @throws NotFoundException When the view file could not be found |
57 | 57 | * or MissingViewException in debug mode. |
58 | 58 | */ |
@@ -325,6 +325,10 @@ |
||
325 | 325 | return null; |
326 | 326 | } |
327 | 327 | } |
328 | + |
|
329 | + /** |
|
330 | + * @param string $key |
|
331 | + */ |
|
328 | 332 | protected function _findArrayList($results, $key) { |
329 | 333 | $output = array(); |
330 | 334 | foreach ($results as $row) { |
@@ -6,7 +6,6 @@ |
||
6 | 6 | use App\Utility\Sanitize; |
7 | 7 | use Cake\Core\Configure; |
8 | 8 | use Cake\Log\Log; |
9 | -use Cake\ORM\Table; |
|
10 | 9 | use Cake\ORM\TableRegistry; |
11 | 10 | use Cake\Network\Exception\NotFoundException; |
12 | 11 | /** |
@@ -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 | $incidents = TableRegistry::get('Incidents')->find('all', array( |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | /** |
108 | 108 | * Retrieves the report records that are related to the current report |
109 | 109 | * |
110 | - * @return Array the list of related reports |
|
110 | + * @return \Cake\ORM\Query the list of related reports |
|
111 | 111 | */ |
112 | 112 | public function getRelatedReports() { |
113 | 113 | return $this->find("all", array( |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | * Retrieves the incident records that are related to the current report that |
120 | 120 | * also have a description |
121 | 121 | * |
122 | - * @return Array the list of incidents ordered by description lenght desc |
|
122 | + * @return \Cake\ORM\Query the list of incidents ordered by description lenght desc |
|
123 | 123 | */ |
124 | 124 | public function getIncidentsWithDescription() { |
125 | 125 | return TableRegistry::get('Incidents')->find('all', array( |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | * Retrieves the incident records that are related to the current report that |
138 | 138 | * that have a different stacktrace |
139 | 139 | * |
140 | - * @return Array the list of incidents |
|
140 | + * @return \Cake\ORM\Query the list of incidents |
|
141 | 141 | */ |
142 | 142 | public function getIncidentsWithDifferentStacktrace() { |
143 | 143 | return TableRegistry::get('Incidents')->find('all', array( |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace App\Model\Table; |
4 | 4 | |
5 | 5 | use Cake\ORM\Table; |
6 | -use App\Model\AppModel; |
|
7 | 6 | use Cake\Model\Model; |
8 | 7 | use Cake\Routing\Router; |
9 | 8 | use Cake\ORM\TableRegistry; |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use App\Utility\Sanitize; |
6 | 6 | use App\View\Helper\AppHelper; |
7 | -use App\View\Helper\IncidentsHelper; |
|
8 | 7 | use Cake\Utility\Inflector; |
9 | 8 | use Cake\View\View; |
10 | 9 |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | * |
133 | 133 | * An object of type PackagesInterface |
134 | 134 | * |
135 | - * @return PackagesInterface |
|
135 | + * @return PackageLocator |
|
136 | 136 | * |
137 | 137 | */ |
138 | 138 | public function getPackages() |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | * |
145 | 145 | * object of type FormatterLocator |
146 | 146 | * |
147 | - * @return FormatterLocator |
|
147 | + * @return FormatterInterface |
|
148 | 148 | * |
149 | 149 | */ |
150 | 150 | public function getFormatters() |
@@ -114,7 +114,7 @@ |
||
114 | 114 | * Executes an external shell command and pipes its output to the stdout |
115 | 115 | * |
116 | 116 | * @param string $command the command to execute |
117 | - * @return void |
|
117 | + * @return false|null |
|
118 | 118 | * @throws \RuntimeException if any errors occurred during the execution |
119 | 119 | */ |
120 | 120 | public function callProcess($command) |