Browse Source

Merge pull request #2720 from bcrowe/3.0-apigen

3.0 - Remove nonexistent params and returns
Mark Story 12 years ago
parent
commit
a693097393

+ 0 - 1
src/Console/Command/UpgradeShell.php

@@ -210,7 +210,6 @@ class UpgradeShell extends Shell {
  * Replace all the App::uses() calls with `use`.
  *
  * @param string $file The file to search and replace.
- * @param boolean $dryRun Whether or not to do the thing
  * @return mixed Replacement of uses call
  */
 	protected function _replaceUses($file) {

+ 3 - 3
src/Controller/Component/Acl/IniAcl.php

@@ -57,7 +57,7 @@ class IniAcl extends Object implements AclInterface {
  * @param string $aro ARO The requesting object identifier.
  * @param string $aco ACO The controlled object identifier.
  * @param string $action Action (defaults to *)
- * @return boolean Success
+ * @return void
  */
 	public function allow($aro, $aco, $action = "*") {
 	}
@@ -68,7 +68,7 @@ class IniAcl extends Object implements AclInterface {
  * @param string $aro ARO The requesting object identifier.
  * @param string $aco ACO The controlled object identifier.
  * @param string $action Action (defaults to *)
- * @return boolean Success
+ * @return void
  */
 	public function deny($aro, $aco, $action = "*") {
 	}
@@ -79,7 +79,7 @@ class IniAcl extends Object implements AclInterface {
  * @param string $aro ARO The requesting object identifier.
  * @param string $aco ACO The controlled object identifier.
  * @param string $action Action (defaults to *)
- * @return boolean Success
+ * @return void
  */
 	public function inherit($aro, $aco, $action = "*") {
 	}

+ 4 - 3
src/Controller/Component/Auth/BaseAuthenticate.php

@@ -192,12 +192,13 @@ abstract class BaseAuthenticate {
 	}
 
 /**
- * Handle unauthenticated access attempt.
+ * Handle unauthenticated access attempt. In implementation, will return true to indicate
+ * the unauthenticated request has been dealt with and no more action is required by
+ * AuthComponent or void (default).
  *
  * @param Cake\Network\Request $request A request object.
  * @param Cake\Network\Response $response A response object.
- * @return mixed Either true to indicate the unauthenticated request has been
- *  dealt with and no more action is required by AuthComponent or void (default).
+ * @return void
  */
 	public function unauthenticated(Request $request, Response $response) {
 	}

+ 0 - 1
src/Controller/Component/PaginatorComponent.php

@@ -274,7 +274,6 @@ class PaginatorComponent extends Component {
  *
  * @param Table $object The model being paginated.
  * @param array $options The pagination options being used for this request.
- * @param array $whitelist The list of columns that can be used for sorting. If empty all keys are allowed.
  * @return array An array of options with sort + direction removed and replaced with order if possible.
  */
 	public function validateSort(Table $object, array $options) {

+ 0 - 2
src/Controller/Component/RequestHandlerComponent.php

@@ -196,7 +196,6 @@ class RequestHandlerComponent extends Component {
  *   to the $data property of the controller, which can then be saved to a model object.
  *
  * @param Event $event The startup event that was fired.
- * @param Controller $controller A reference to the controller
  * @return void
  */
 	public function startup(Event $event) {
@@ -278,7 +277,6 @@ class RequestHandlerComponent extends Component {
  * "304 Not Modified" header.
  *
  * @param Event $event The Controller.beforeRender event.
- * @param Controller $controller
  * @return boolean false if the render process should be aborted
  */
 	public function beforeRender(Event $event) {

+ 1 - 1
src/Controller/Controller.php

@@ -733,10 +733,10 @@ class Controller extends Object implements EventListener {
  *     or an absolute URL
  * @param integer $status Optional HTTP status code (eg: 404)
  * @param boolean $exit If true, exit() will be called after the redirect
- * @return mixed
  *   false to stop redirection event,
  *   string controllers a new redirection URL or
  *   array with the keys url, status and exit to be used by the redirect method.
+ * @return void
  * @link http://book.cakephp.org/2.0/en/controllers.html#request-life-cycle-callbacks
  */
 	public function beforeRedirect(Event $event, $url, $status = null, $exit = true) {

+ 0 - 1
src/Database/Connection.php

@@ -86,7 +86,6 @@ class Connection {
  * Constructor
  *
  * @param array $config configuration for connecting to database
- * @return self
  */
 	public function __construct($config) {
 		$this->_config = $config;

+ 1 - 1
src/Database/IdentifierQuoter.php

@@ -154,7 +154,7 @@ class IdentifierQuoter {
  * Quotes the table name and columns for an insert query
  *
  * @param Query $query
- * @return Query
+ * @return void
  */
 	protected function _quoteInsert($query) {
 		list($table, $columns) = $query->clause('insert');

+ 0 - 1
src/Network/Http/Message.php

@@ -167,7 +167,6 @@ class Message {
 /**
  * Get the HTTP version used.
  *
- * @param null|string $version
  * @return string
  */
 	public function version() {

+ 0 - 1
src/ORM/Associations.php

@@ -133,7 +133,6 @@ class Associations {
  *
  * @param Table $table The table entity is for.
  * @param Entity $entity The entity to save associated data for.
- * @param Entity $entity The entity to save associated data for.
  * @param array $associations The list of associations to save children from.
  *   associations not in this list will not be saved.
  * @param array $options The options for the save operation.