From ebb70c4810aff0f2bcca87aa3b9226e69d8e853c Mon Sep 17 00:00:00 2001 From: Juan Basso Date: Sun, 31 Jul 2011 18:03:28 -0400 Subject: [PATCH] Fixed type to parameters that is defined in the code. --- lib/Cake/Controller/Scaffold.php | 2 +- lib/Cake/Error/ExceptionRenderer.php | 2 +- lib/Cake/Model/Datasource/Database/Oracle.php | 3 --- lib/Cake/Model/Datasource/Database/Sqlite.php | 2 +- lib/Cake/Model/Datasource/DboSource.php | 2 +- lib/Cake/Network/Email/CakeEmail.php | 2 +- 6 files changed, 5 insertions(+), 8 deletions(-) diff --git a/lib/Cake/Controller/Scaffold.php b/lib/Cake/Controller/Scaffold.php index 1e786b02a97..764127d0c8c 100644 --- a/lib/Cake/Controller/Scaffold.php +++ b/lib/Cake/Controller/Scaffold.php @@ -285,7 +285,7 @@ protected function _scaffoldSave(CakeRequest $request, $action = 'edit') { /** * Performs a delete on given scaffolded Model. * - * @param CareRequest $request Request for scaffolding + * @param CakeRequest $request Request for scaffolding * @return mixed Success on delete, error if delete fails * @throws MethodNotAllowedException, NotFoundException */ diff --git a/lib/Cake/Error/ExceptionRenderer.php b/lib/Cake/Error/ExceptionRenderer.php index ffc5d6dba55..d3514237597 100644 --- a/lib/Cake/Error/ExceptionRenderer.php +++ b/lib/Cake/Error/ExceptionRenderer.php @@ -170,7 +170,7 @@ public function render() { /** * Generic handler for the internal framework errors CakePHP can generate. * - * @param CakeExeption $error + * @param CakeException $error * @return void */ protected function _cakeError(CakeException $error) { diff --git a/lib/Cake/Model/Datasource/Database/Oracle.php b/lib/Cake/Model/Datasource/Database/Oracle.php index d6ffcb51b4f..d6d6c0eb7b2 100644 --- a/lib/Cake/Model/Datasource/Database/Oracle.php +++ b/lib/Cake/Model/Datasource/Database/Oracle.php @@ -749,7 +749,6 @@ public function name($name) { /** * Begin a transaction * - * @param unknown_type $model * @return boolean True on success, false on fail * (i.e. if the database/model does not support transactions). */ @@ -761,7 +760,6 @@ public function begin() { /** * Rollback a transaction * - * @param unknown_type $model * @return boolean True on success, false on fail * (i.e. if the database/model does not support transactions, * or a transaction has not started). @@ -773,7 +771,6 @@ public function rollback() { /** * Commit a transaction * - * @param unknown_type $model * @return boolean True on success, false on fail * (i.e. if the database/model does not support transactions, * or a transaction has not started). diff --git a/lib/Cake/Model/Datasource/Database/Sqlite.php b/lib/Cake/Model/Datasource/Database/Sqlite.php index 8b3467c07c8..df648e720ec 100644 --- a/lib/Cake/Model/Datasource/Database/Sqlite.php +++ b/lib/Cake/Model/Datasource/Database/Sqlite.php @@ -522,7 +522,7 @@ public function hasResult() { /** * Generate a "drop table" statement for the given Schema object * - * @param object $schema An instance of a subclass of CakeSchema + * @param CakeSchema $schema An instance of a subclass of CakeSchema * @param string $table Optional. If specified only the table name given will be generated. * Otherwise, all tables defined in the schema are generated. * @return string diff --git a/lib/Cake/Model/Datasource/DboSource.php b/lib/Cake/Model/Datasource/DboSource.php index ea67c422814..cd042b41122 100644 --- a/lib/Cake/Model/Datasource/DboSource.php +++ b/lib/Cake/Model/Datasource/DboSource.php @@ -1113,7 +1113,7 @@ public function read(Model $model, $queryData = array(), $recursive = null) { * Passes association results thru afterFind filters of corresponding model * * @param array $results Reference of resultset to be filtered - * @param object $model Instance of model to operate against + * @param Model $model Instance of model to operate against * @param array $filtered List of classes already filtered, to be skipped * @return array Array of results that have been filtered through $model->afterFind */ diff --git a/lib/Cake/Network/Email/CakeEmail.php b/lib/Cake/Network/Email/CakeEmail.php index ae25bb2d070..a605bcb7059 100644 --- a/lib/Cake/Network/Email/CakeEmail.php +++ b/lib/Cake/Network/Email/CakeEmail.php @@ -1029,7 +1029,7 @@ public static function deliver($to = null, $subject = null, $message = null, $tr /** * Apply the config to an instance * - * @param object $obj CakeEmail + * @param CakeEmail $obj CakeEmail * @param array $config * @return void */