Skip to content

Commit f46d938

Browse files
committed
Remove nonexistent params and returns
1 parent 6d46bdc commit f46d938

File tree

10 files changed

+0
-16
lines changed

10 files changed

+0
-16
lines changed

src/Console/Command/UpgradeShell.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,6 @@ public function app_uses() {
210210
* Replace all the App::uses() calls with `use`.
211211
*
212212
* @param string $file The file to search and replace.
213-
* @param boolean $dryRun Whether or not to do the thing
214-
* @return mixed Replacement of uses call
215213
*/
216214
protected function _replaceUses($file) {
217215
$pattern = '#App::uses\([\'"]([a-z0-9_]+)[\'"],\s*[\'"]([a-z0-9/_]+)(?:\.([a-z0-9/_]+))?[\'"]\)#i';

src/Controller/Component/Acl/IniAcl.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ public function initialize(Component $component) {
5757
* @param string $aro ARO The requesting object identifier.
5858
* @param string $aco ACO The controlled object identifier.
5959
* @param string $action Action (defaults to *)
60-
* @return boolean Success
6160
*/
6261
public function allow($aro, $aco, $action = "*") {
6362
}
@@ -68,7 +67,6 @@ public function allow($aro, $aco, $action = "*") {
6867
* @param string $aro ARO The requesting object identifier.
6968
* @param string $aco ACO The controlled object identifier.
7069
* @param string $action Action (defaults to *)
71-
* @return boolean Success
7270
*/
7371
public function deny($aro, $aco, $action = "*") {
7472
}
@@ -79,7 +77,6 @@ public function deny($aro, $aco, $action = "*") {
7977
* @param string $aro ARO The requesting object identifier.
8078
* @param string $aco ACO The controlled object identifier.
8179
* @param string $action Action (defaults to *)
82-
* @return boolean Success
8380
*/
8481
public function inherit($aro, $aco, $action = "*") {
8582
}

src/Controller/Component/Auth/BaseAuthenticate.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,6 @@ public function getUser(Request $request) {
196196
*
197197
* @param Cake\Network\Request $request A request object.
198198
* @param Cake\Network\Response $response A response object.
199-
* @return mixed Either true to indicate the unauthenticated request has been
200-
* dealt with and no more action is required by AuthComponent or void (default).
201199
*/
202200
public function unauthenticated(Request $request, Response $response) {
203201
}

src/Controller/Component/PaginatorComponent.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,6 @@ public function getDefaults($alias, $defaults) {
274274
*
275275
* @param Table $object The model being paginated.
276276
* @param array $options The pagination options being used for this request.
277-
* @param array $whitelist The list of columns that can be used for sorting. If empty all keys are allowed.
278277
* @return array An array of options with sort + direction removed and replaced with order if possible.
279278
*/
280279
public function validateSort(Table $object, array $options) {

src/Controller/Component/RequestHandlerComponent.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@ protected function _setExtension() {
196196
* to the $data property of the controller, which can then be saved to a model object.
197197
*
198198
* @param Event $event The startup event that was fired.
199-
* @param Controller $controller A reference to the controller
200199
* @return void
201200
*/
202201
public function startup(Event $event) {
@@ -278,7 +277,6 @@ public function beforeRedirect(Event $event, $url, $response) {
278277
* "304 Not Modified" header.
279278
*
280279
* @param Event $event The Controller.beforeRender event.
281-
* @param Controller $controller
282280
* @return boolean false if the render process should be aborted
283281
*/
284282
public function beforeRender(Event $event) {

src/Controller/Controller.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,6 @@ public function beforeRender(Event $event) {
733733
* or an absolute URL
734734
* @param integer $status Optional HTTP status code (eg: 404)
735735
* @param boolean $exit If true, exit() will be called after the redirect
736-
* @return mixed
737736
* false to stop redirection event,
738737
* string controllers a new redirection URL or
739738
* array with the keys url, status and exit to be used by the redirect method.
@@ -746,7 +745,6 @@ public function beforeRedirect(Event $event, $url, $status = null, $exit = true)
746745
* Called after the controller action is run and rendered.
747746
*
748747
* @param Event $event An Event instance
749-
* @return void
750748
* @link http://book.cakephp.org/2.0/en/controllers.html#request-life-cycle-callbacks
751749
*/
752750
public function afterFilter(Event $event) {

src/Database/Connection.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ class Connection {
8686
* Constructor
8787
*
8888
* @param array $config configuration for connecting to database
89-
* @return self
9089
*/
9190
public function __construct($config) {
9291
$this->_config = $config;

src/Database/IdentifierQuoter.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@ protected function _quoteJoins($joins) {
154154
* Quotes the table name and columns for an insert query
155155
*
156156
* @param Query $query
157-
* @return Query
158157
*/
159158
protected function _quoteInsert($query) {
160159
list($table, $columns) = $query->clause('insert');

src/Network/Http/Message.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ public function cookies() {
167167
/**
168168
* Get the HTTP version used.
169169
*
170-
* @param null|string $version
171170
* @return string
172171
*/
173172
public function version() {

src/ORM/Associations.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ public function saveParents(Table $table, Entity $entity, $associations, $option
133133
*
134134
* @param Table $table The table entity is for.
135135
* @param Entity $entity The entity to save associated data for.
136-
* @param Entity $entity The entity to save associated data for.
137136
* @param array $associations The list of associations to save children from.
138137
* associations not in this list will not be saved.
139138
* @param array $options The options for the save operation.

0 commit comments

Comments
 (0)