@@ -32,12 +32,12 @@ |
||
| 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 bool $returnStatus whether to return the status code with the |
| 39 | 39 | * request |
| 40 | - * @param mixed $access_token |
|
| 40 | + * @param string $access_token |
|
| 41 | 41 | * |
| 42 | 42 | * @return array the returned response decoded and optionally the status code, |
| 43 | 43 | * see GithubApiComponent::sendRequest() |
@@ -200,7 +200,7 @@ |
||
| 200 | 200 | * @param object $response the response returned by Github api |
| 201 | 201 | * @param int $status status returned by Github API |
| 202 | 202 | * |
| 203 | - * @return error string |
|
| 203 | + * @return string string |
|
| 204 | 204 | */ |
| 205 | 205 | protected function _getErrors($response, $status) |
| 206 | 206 | { |
@@ -21,7 +21,6 @@ |
||
| 21 | 21 | |
| 22 | 22 | use Cake\Core\Configure; |
| 23 | 23 | use Cake\Event\Event; |
| 24 | -use Cake\Log\Log; |
|
| 25 | 24 | use Cake\Network\Exception\NotFoundException; |
| 26 | 25 | use Cake\ORM\TableRegistry; |
| 27 | 26 | use Cake\Routing\Router; |
@@ -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 . '`'; |