@@ -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." |
@@ -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) { |
@@ -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( |
@@ -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) |
@@ -78,7 +78,7 @@ |
||
78 | 78 | * Execution method always used for tasks |
79 | 79 | * |
80 | 80 | * @param string|null $name The name of the table to bake. |
81 | - * @return void |
|
81 | + * @return boolean|null |
|
82 | 82 | */ |
83 | 83 | public function main($name = null) |
84 | 84 | { |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | * Execution method always used for tasks |
59 | 59 | * |
60 | 60 | * @param string|null $name The name of the plugin to bake. |
61 | - * @return void |
|
61 | + * @return false|null |
|
62 | 62 | */ |
63 | 63 | public function main($name = null) |
64 | 64 | { |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | * Also update the autoloader and the root composer.json file if it can be found |
86 | 86 | * |
87 | 87 | * @param string $plugin Name of the plugin in CamelCased format |
88 | - * @return bool |
|
88 | + * @return null|boolean |
|
89 | 89 | */ |
90 | 90 | public function bake($plugin) |
91 | 91 | { |
@@ -360,7 +360,7 @@ discard block |
||
360 | 360 | * Search the $PATH for composer. |
361 | 361 | * |
362 | 362 | * @param array $path The paths to search. |
363 | - * @return string|bool |
|
363 | + * @return string|false |
|
364 | 364 | */ |
365 | 365 | protected function _searchPath($path) |
366 | 366 | { |