@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use App\Controller\AppController; |
6 | 6 | use Cake\Core\Configure; |
7 | -use Cake\Log\Log; |
|
8 | 7 | use Cake\Routing\Router; |
9 | 8 | use Cake\Event\Event; |
10 | 9 | use Cake\ORM\TableRegistry; |
@@ -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." |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace App\Controller; |
4 | 4 | |
5 | 5 | use App\Controller\AppController; |
6 | -use Cake\Log\Log; |
|
7 | 6 | use Cake\Routing\Router; |
8 | 7 | use Cake\Event\Event; |
9 | 8 | use Cake\ORM\TableRegistry; |
@@ -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; |
@@ -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 | { |
@@ -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 |
@@ -2,7 +2,6 @@ |
||
2 | 2 | namespace App\Test\TestCase\Model\Table; |
3 | 3 | |
4 | 4 | use Cake\ORM\TableRegistry; |
5 | - |
|
6 | 5 | use Cake\TestSuite\TestCase; |
7 | 6 | |
8 | 7 | class ReportsTableTest extends TestCase { |
@@ -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 |
@@ -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 |