Browse files

Fix docblock/function signature mismatches (parameter name typos, wro…

…ng parameter types, missing parameter tags, invalid/wrong/missing return types, missing/unnecessary leading backslashes for namespaces, etc...)
  • Loading branch information...
1 parent 3077199 commit 29caa951c328ba43c4ed2869a7d4ae1aa1091c64 @ndm2 ndm2 committed Feb 21, 2014
Showing with 171 additions and 136 deletions.
  1. +1 −1 src/Cache/CacheEngine.php
  2. +1 −1 src/Collection/CollectionTrait.php
  3. +2 −2 src/Collection/Iterator/SortIterator.php
  4. +5 −5 src/Configure/Engine/IniConfig.php
  5. +2 −2 src/Console/ConsoleInputArgument.php
  6. +2 −2 src/Console/ConsoleInputOption.php
  7. +2 −2 src/Console/ConsoleInputSubcommand.php
  8. +1 −1 src/Controller/Component/Acl/AclInterface.php
  9. +1 −1 src/Controller/Component/Acl/IniAcl.php
  10. +1 −1 src/Controller/Component/Acl/PhpAcl.php
  11. +1 −1 src/Controller/Component/Auth/BaseAuthorize.php
  12. +2 −2 src/Controller/Component/Auth/BasicAuthenticate.php
  13. +1 −1 src/Controller/Component/Auth/CrudAuthorize.php
  14. +3 −3 src/Controller/Component/CookieComponent.php
  15. +1 −1 src/Core/App.php
  16. +2 −2 src/Database/Expression/Comparison.php
  17. +1 −1 src/Database/Expression/IdentifierExpression.php
  18. +2 −2 src/Database/Expression/QueryExpression.php
  19. +2 −2 src/Database/Expression/TupleComparison.php
  20. +1 −1 src/Database/Expression/ValuesExpression.php
  21. +2 −2 src/Database/FunctionsBuilder.php
  22. +4 −4 src/Database/Query.php
  23. +1 −1 src/Database/ValueBinder.php
  24. +1 −1 src/Error/BadRequestException.php
  25. +1 −1 src/Error/Exception.php
  26. +1 −1 src/Error/ForbiddenException.php
  27. +1 −1 src/Error/InternalErrorException.php
  28. +1 −1 src/Error/MethodNotAllowedException.php
  29. +1 −1 src/Error/NotFoundException.php
  30. +1 −1 src/Error/PrivateActionException.php
  31. +1 −1 src/Error/UnauthorizedException.php
  32. +1 −1 src/I18n/I18n.php
  33. +1 −1 src/Log/Engine/FileLog.php
  34. +2 −2 src/Network/Http/Auth/Basic.php
  35. +2 −2 src/Network/Http/Auth/Oauth.php
  36. +1 −1 src/Network/Request.php
  37. +5 −5 src/Network/Response.php
  38. +2 −2 src/Network/Session/CacheSession.php
  39. +2 −2 src/Network/Session/DatabaseSession.php
  40. +1 −1 src/ORM/Association.php
  41. +1 −1 src/ORM/Association/ExternalAssociationTrait.php
  42. +2 −2 src/ORM/EntityValidator.php
  43. +1 −1 src/ORM/Marshaller.php
  44. +9 −9 src/ORM/Table.php
  45. +1 −1 src/Routing/DispatcherFilter.php
  46. +1 −1 src/Routing/Route/RedirectRoute.php
  47. +4 −1 src/TestSuite/Fixture/FixtureInjector.php
  48. +1 −1 src/TestSuite/Fixture/TestFixture.php
  49. +17 −17 src/TestSuite/Reporter/BaseReporter.php
  50. +7 −7 src/TestSuite/Reporter/HtmlReporter.php
  51. +5 −6 src/TestSuite/TestCase.php
  52. +2 −2 src/TestSuite/TestPermutationDecorator.php
  53. +1 −1 src/TestSuite/TestRunner.php
  54. +2 −2 src/Utility/File.php
  55. +3 −3 src/Utility/Hash.php
  56. +1 −1 src/Utility/ObjectRegistry.php
  57. +1 −1 src/View/View.php
  58. +2 −1 src/View/Widget/IdGeneratorTrait.php
  59. +1 −1 src/View/Widget/InputRegistry.php
  60. +1 −0 tests/TestCase/Cache/Engine/ApcEngineTest.php
  61. +1 −0 tests/TestCase/Cache/Engine/FileEngineTest.php
  62. +1 −0 tests/TestCase/Cache/Engine/MemcachedEngineTest.php
  63. +1 −0 tests/TestCase/Cache/Engine/RedisEngineTest.php
  64. +1 −0 tests/TestCase/Cache/Engine/WincacheEngineTest.php
  65. +1 −0 tests/TestCase/Cache/Engine/XcacheEngineTest.php
  66. +1 −1 tests/TestCase/Console/ShellDispatcherTest.php
  67. +2 −1 tests/TestCase/Controller/Component/CookieComponentTest.php
  68. +1 −0 tests/TestCase/Controller/Component/PaginatorComponentTest.php
  69. +2 −2 tests/TestCase/Controller/Component/SecurityComponentTest.php
  70. +6 −2 tests/TestCase/Controller/ControllerTest.php
  71. +1 −0 tests/TestCase/Core/ObjectTest.php
  72. +1 −1 tests/TestCase/Database/Expression/IdentifierExpressionTest.php
  73. +1 −0 tests/TestCase/Database/QueryTest.php
  74. +1 −0 tests/TestCase/Database/Schema/MysqlSchemaTest.php
  75. +1 −0 tests/TestCase/Database/Schema/PostgresSchemaTest.php
  76. +1 −0 tests/TestCase/Error/ExceptionRendererTest.php
  77. +7 −0 tests/TestCase/I18n/I18nTest.php
  78. +1 −0 tests/TestCase/Log/Engine/FileLogTest.php
  79. +1 −0 tests/TestCase/Model/Behavior/TranslateBehaviorTest.php
  80. +1 −1 tests/TestCase/Network/Email/SmtpTransportTest.php
  81. +1 −1 tests/TestCase/ORM/EntityTest.php
  82. +0 −1 tests/TestCase/Utility/TimeTest.php
  83. +2 −1 tests/TestCase/Validation/ValidationTest.php
  84. +1 −0 tests/TestCase/View/Helper/FormHelperTest.php
  85. +1 −0 tests/test_app/TestApp/Controller/AjaxAuthController.php
  86. +2 −0 tests/test_app/TestApp/Controller/RequestHandlerTestController.php
  87. +1 −0 tests/test_app/TestApp/Controller/SomePostsController.php
  88. +1 −0 tests/test_app/TestApp/Controller/TestCachedPagesController.php
View
2 src/Cache/CacheEngine.php
@@ -148,7 +148,7 @@ public function gc($expires = null) {
* to decide whether actually delete the keys or just simulate it to achieve
* the same result.
*
- * @param string $groups name of the group to be cleared
+ * @param string $group name of the group to be cleared
* @return boolean
*/
public function clearGroup($group) {
View
2 src/Collection/CollectionTrait.php
@@ -665,7 +665,7 @@ public function append($items) {
* or a function returning the indexing key out of the provided element
* @param callable|string $valuePath the column name path to use as the array value
* or a function returning the value out of the provided element
- * @param callable|string $valuePath the column name path to use as the parent
+ * @param callable|string $groupPath the column name path to use as the parent
* grouping key or a function returning the key out of the provided element
* @return \Cake\Collection\Collection
*/
View
4 src/Collection/Iterator/SortIterator.php
@@ -87,11 +87,11 @@ class SortIterator extends SplHeap {
* @param integer $type the type of comparison to perform, either SORT_STRING
* SORT_NUMERIC or SORT_NATURAL
*/
- public function __construct($items, $c, $dir = SORT_DESC, $type = SORT_NUMERIC) {
+ public function __construct($items, $callback, $dir = SORT_DESC, $type = SORT_NUMERIC) {
$this->_items = $items;
$this->_dir = $dir;
$this->_type = $type;
- $this->_callback = $this->_propertyExtractor($c);
+ $this->_callback = $this->_propertyExtractor($callback);
}
/**
View
10 src/Configure/Engine/IniConfig.php
@@ -186,17 +186,17 @@ public function dump($key, $data) {
* @param mixed $value to export.
* @return string String value for ini file.
*/
- protected function _value($val) {
- if ($val === null) {
+ protected function _value($value) {
+ if ($value === null) {
return 'null';
}
- if ($val === true) {
+ if ($value === true) {
return 'true';
}
- if ($val === false) {
+ if ($value === false) {
return 'false';
}
- return (string)$val;
+ return (string)$value;
}
/**
View
4 src/Console/ConsoleInputArgument.php
@@ -154,8 +154,8 @@ public function validChoice($value) {
/**
* Append this arguments XML representation to the passed in SimpleXml object.
*
- * @param SimpleXmlElement $parent The parent element.
- * @return SimpleXmlElement The parent with this argument appended.
+ * @param \SimpleXmlElement $parent The parent element.
+ * @return \SimpleXmlElement The parent with this argument appended.
*/
public function xml(\SimpleXmlElement $parent) {
$option = $parent->addChild('argument');
View
4 src/Console/ConsoleInputOption.php
@@ -199,8 +199,8 @@ public function validChoice($value) {
/**
* Append the option's xml into the parent.
*
- * @param SimpleXmlElement $parent The parent element.
- * @return SimpleXmlElement The parent with this option appended.
+ * @param \SimpleXmlElement $parent The parent element.
+ * @return \SimpleXmlElement The parent with this option appended.
*/
public function xml(\SimpleXmlElement $parent) {
$option = $parent->addChild('option');
View
4 src/Console/ConsoleInputSubcommand.php
@@ -107,8 +107,8 @@ public function parser() {
/**
* Append this subcommand to the Parent element
*
- * @param SimpleXmlElement $parent The parent element.
- * @return SimpleXmlElement The parent with this subcommand appended.
+ * @param \SimpleXmlElement $parent The parent element.
+ * @return \SimpleXmlElement The parent with this subcommand appended.
*/
public function xml(\SimpleXmlElement $parent) {
$command = $parent->addChild('command');
View
2 src/Controller/Component/Acl/AclInterface.php
@@ -66,7 +66,7 @@ public function inherit($aro, $aco, $action = "*");
/**
* Initialization method for the Acl implementation
*
- * @param AclComponent $component
+ * @param Component $component
* @return void
*/
public function initialize(Component $component);
View
2 src/Controller/Component/Acl/IniAcl.php
@@ -45,7 +45,7 @@ class IniAcl extends Object implements AclInterface {
/**
* Initialize method
*
- * @param AclBase $component
+ * @param Component $component
* @return void
*/
public function initialize(Component $component) {
View
2 src/Controller/Component/Acl/PhpAcl.php
@@ -82,7 +82,7 @@ public function __construct() {
/**
* Initialize method
*
- * @param AclComponent $Component Component instance
+ * @param Component $Component Component instance
* @return void
*/
public function initialize(Component $Component) {
View
2 src/Controller/Component/Auth/BaseAuthorize.php
@@ -72,7 +72,7 @@
* Constructor
*
* @param ComponentRegistry $registry The controller for this request.
- * @param string $settings An array of settings. This class does not use any settings.
+ * @param array $settings An array of settings. This class does not use any settings.
*/
public function __construct(ComponentRegistry $registry, $settings = array()) {
$this->_registry = $registry;
View
4 src/Controller/Component/Auth/BasicAuthenticate.php
@@ -77,8 +77,8 @@ public function getUser(Request $request) {
/**
* Handles an unauthenticated access attempt by sending appropriate login headers
*
- * @param CakeRequest $request A request object.
- * @param CakeResponse $response A response object.
+ * @param Request $request A request object.
+ * @param Response $response A response object.
* @return void
* @throws \Cake\Error\UnauthorizedException
*/
View
2 src/Controller/Component/Auth/CrudAuthorize.php
@@ -39,7 +39,7 @@ class CrudAuthorize extends BaseAuthorize {
* Sets up additional actionMap values that match the configured `Routing.prefixes`.
*
* @param ComponentRegistry $registry The component registry from the controller.
- * @param string $settings An array of settings. This class does not use any settings.
+ * @param array $settings An array of settings. This class does not use any settings.
*/
public function __construct(ComponentRegistry $registry, $settings = array()) {
parent::__construct($registry, $settings);
View
6 src/Controller/Component/CookieComponent.php
@@ -308,10 +308,10 @@ public function read($key = null) {
}
/**
- * Returns true if given variable is set in cookie.
+ * Returns true if given key is set in the cookie.
*
- * @param string $var Variable name to check for
- * @return boolean True if variable is there
+ * @param string $key Key to check for
+ * @return boolean True if the key exists
*/
public function check($key = null) {
if (empty($key)) {
View
2 src/Core/App.php
@@ -72,7 +72,7 @@ class App {
* application/plugin, otherwise try to load from the CakePHP core
*
* @param string $class Classname
- * @param strign $type Type of class
+ * @param string $type Type of class
* @param string $suffix Classname suffix
* @return boolean|string False if the class is not found or namespaced classname
*/
View
4 src/Database/Expression/Comparison.php
@@ -54,10 +54,10 @@ class Comparison extends QueryExpression {
* @param string $type the type name used to cast the value
* @param string $conjunction the operator used for comparing field and value
*/
- public function __construct($field, $value, $type, $conjuntion) {
+ public function __construct($field, $value, $type, $conjunction) {
$this->field($field);
$this->value($value);
- $this->type($conjuntion);
+ $this->type($conjunction);
if (is_string($type)) {
$this->_type = $type;
View
2 src/Database/Expression/IdentifierExpression.php
@@ -74,7 +74,7 @@ public function sql(ValueBinder $generator) {
* This method is a no-op, this is a leaf type of expression,
* hence there is nothing to traverse
*
- * @param callable $visitor
+ * @param callable $callable
* @return void
*/
public function traverse(callable $callable) {
View
4 src/Database/Expression/QueryExpression.php
@@ -242,7 +242,7 @@ public function notLike($field, $value, $type = null) {
* "field IN (value1, value2)".
*
* @param string $field database field to be compared against value
- * @param array $value the value to be bound to $field for comparison
+ * @param array $values the value to be bound to $field for comparison
* @param string $type the type name for $value as configured using the Type map.
* @return QueryExpression
*/
@@ -258,7 +258,7 @@ public function in($field, $values, $type = null) {
* "field NOT IN (value1, value2)".
*
* @param string $field database field to be compared against value
- * @param array $value the value to be bound to $field for comparison
+ * @param array $values the value to be bound to $field for comparison
* @param string $type the type name for $value as configured using the Type map.
* @return QueryExpression
*/
View
4 src/Database/Expression/TupleComparison.php
@@ -33,8 +33,8 @@ class TupleComparison extends Comparison {
* one type per position in the value array in needed
* @param string $conjunction the operator used for comparing field and value
*/
- public function __construct($fields, $values, $types = [], $conjuntion = '=') {
- parent::__construct($fields, $values, $types, $conjuntion);
+ public function __construct($fields, $values, $types = [], $conjunction = '=') {
+ parent::__construct($fields, $values, $types, $conjunction);
$this->_type = (array)$types;
}
View
2 src/Database/Expression/ValuesExpression.php
@@ -110,7 +110,7 @@ public function columns($cols = null) {
* Sets the values to be inserted. If no params are passed, then it returns
* the currently stored values
*
- * @param array $cols arrays with values to be inserted
+ * @param array $values arrays with values to be inserted
* @return array|ValuesExpression
*/
public function values($values = null) {
View
4 src/Database/FunctionsBuilder.php
@@ -141,8 +141,8 @@ public function coalesce($args, $types = []) {
* @param array $types list of types to bind to the arguments
* @return FunctionExpression
*/
- public function dateDiff($dates, $types = []) {
- return $this->_build('DATEDIFF', $dates, $types);
+ public function dateDiff($args, $types = []) {
+ return $this->_build('DATEDIFF', $args, $types);
}
/**
View
8 src/Database/Query.php
@@ -1129,13 +1129,13 @@ public function orHaving($conditions, $types = []) {
* @param integer $num The page number you want.
* @return Query
*/
- public function page($page) {
+ public function page($num) {
$limit = $this->clause('limit');
if ($limit === null) {
$limit = 25;
$this->limit($limit);
}
- $this->offset(($page - 1) * $limit);
+ $this->offset(($num - 1) * $limit);
return $this;
}
@@ -1304,7 +1304,7 @@ protected function _buildValuesPart($parts, $generator) {
* Helper function used to covert ExpressionInterface objects inside an array
* into their string representation
*
- * @param array $expression list of strings and ExpressionInterface objects
+ * @param array $expressions list of strings and ExpressionInterface objects
* @param \Cake\Database\ValueBinder $generator the placeholder generator to be used in expressions
* @return array
*/
@@ -1673,7 +1673,7 @@ public function defaultTypes(array $types = null) {
* will create as many placeholders as values are in it. For example "string[]"
* will create several placeholders of type string.
*
- * @param string|integer $token placeholder to be replaced with quoted version
+ * @param string|integer $param placeholder to be replaced with quoted version
* of $value
* @param mixed $value the value to be bound
* @param string|integer $type the mapped type name, used for casting when sending
View
2 src/Database/ValueBinder.php
@@ -40,7 +40,7 @@ class ValueBinder {
/**
* Associates a query placeholder to a value and a type
*
- * @param string|integer $token placeholder to be replaced with quoted version
+ * @param string|integer $param placeholder to be replaced with quoted version
* of $value
* @param mixed $value the value to be bound
* @param string|integer $type the mapped type name, used for casting when sending
View
2 src/Error/BadRequestException.php
@@ -27,7 +27,7 @@ class BadRequestException extends HttpException {
* Constructor
*
* @param string $message If no message is given 'Bad Request' will be the message
- * @param string $code Status code, defaults to 400
+ * @param integer $code Status code, defaults to 400
*/
public function __construct($message = null, $code = 400) {
if (empty($message)) {
View
2 src/Error/Exception.php
@@ -47,7 +47,7 @@ class Exception extends BaseException {
*
* @param string|array $message Either the string of the error message, or an array of attributes
* that are made available in the view, and sprintf()'d into Exception::$_messageTemplate
- * @param string $code The code of the error, is also the HTTP status code for the error.
+ * @param integer $code The code of the error, is also the HTTP status code for the error.
*/
public function __construct($message, $code = 500) {
if (is_array($message)) {
View
2 src/Error/ForbiddenException.php
@@ -27,7 +27,7 @@ class ForbiddenException extends HttpException {
* Constructor
*
* @param string $message If no message is given 'Forbidden' will be the message
- * @param string $code Status code, defaults to 403
+ * @param integer $code Status code, defaults to 403
*/
public function __construct($message = null, $code = 403) {
if (empty($message)) {
View
2 src/Error/InternalErrorException.php
@@ -27,7 +27,7 @@ class InternalErrorException extends HttpException {
* Constructor
*
* @param string $message If no message is given 'Internal Server Error' will be the message
- * @param string $code Status code, defaults to 500
+ * @param integer $code Status code, defaults to 500
*/
public function __construct($message = null, $code = 500) {
if (empty($message)) {
View
2 src/Error/MethodNotAllowedException.php
@@ -27,7 +27,7 @@ class MethodNotAllowedException extends HttpException {
* Constructor
*
* @param string $message If no message is given 'Method Not Allowed' will be the message
- * @param string $code Status code, defaults to 405
+ * @param integer $code Status code, defaults to 405
*/
public function __construct($message = null, $code = 405) {
if (empty($message)) {
View
2 src/Error/NotFoundException.php
@@ -27,7 +27,7 @@ class NotFoundException extends HttpException {
* Constructor
*
* @param string $message If no message is given 'Not Found' will be the message
- * @param string $code Status code, defaults to 404
+ * @param integer $code Status code, defaults to 404
*/
public function __construct($message = null, $code = 404) {
if (empty($message)) {
View
2 src/Error/PrivateActionException.php
@@ -33,7 +33,7 @@ class PrivateActionException extends Exception {
*
* @param string $message Excception message
* @param integer $code Exception code
- * @param \Exception $previous Previous exception
+ * @param Exception $previous Previous exception
*/
public function __construct($message, $code = 404, Exception $previous = null) {
parent::__construct($message, $code, $previous);
View
2 src/Error/UnauthorizedException.php
@@ -27,7 +27,7 @@ class UnauthorizedException extends HttpException {
* Constructor
*
* @param string $message If no message is given 'Unauthorized' will be the message
- * @param string $code Status code, defaults to 401
+ * @param integer $code Status code, defaults to 401
*/
public function __construct($message = null, $code = 401) {
if (empty($message)) {
View
2 src/I18n/I18n.php
@@ -138,7 +138,7 @@ public static function getInstance() {
* @param string $plural Plural string (if any)
* @param string $domain Domain The domain of the translation. Domains are often used by plugin translations.
* If null, the default domain will be used.
- * @param string $category Category The integer value of the category to use.
+ * @param integer $category Category The integer value of the category to use.
* @param integer $count Count Count is used with $plural to choose the correct plural form.
* @param string $language Language to translate string to.
* If null it checks for language in session followed by Config.language configuration variable.
View
2 src/Log/Engine/FileLog.php
@@ -75,7 +75,7 @@ class FileLog extends BaseLog {
* - `mask` A mask is applied when log files are created. Left empty no chmod
* is made.
*
- * @param array $options Options for the FileLog, see above.
+ * @param array $config Options for the FileLog, see above.
*/
public function __construct($config = array()) {
$config = Hash::merge($this->_defaults, $config);
View
4 src/Network/Http/Auth/Basic.php
@@ -41,8 +41,8 @@ public function authentication(Request $request, $credentials) {
/**
* Proxy Authentication
*
- * @param HttpSocket $http
- * @param array $proxyInfo
+ * @param Request $request
+ * @param array $credentials
* @return void
* @see http://www.ietf.org/rfc/rfc2617.txt
*/
View
4 src/Network/Http/Auth/Oauth.php
@@ -33,7 +33,7 @@ class Oauth {
* Add headers for Oauth authorization.
*
* @param Request $request
- * @param array $options
+ * @param array $credentials
* @return void
* @throws \Cake\Error\Exception On invalid signature types.
*/
@@ -228,7 +228,7 @@ protected function _normalizedParams($request, $oauthValues) {
/**
* Builds the Oauth Authorization header value.
*
- * @param array $values The oauth_* values to build
+ * @param array $data The oauth_* values to build
* @return string
*/
protected function _buildAuth($data) {
View
2 src/Network/Request.php
@@ -384,7 +384,7 @@ protected static function _base() {
/**
* Process uploaded files and move things onto the post data.
*
- * @param array $data Post data to merge files onto.
+ * @param array $post Post data to merge files onto.
* @param array $files Uploaded files to merge in.
* @return array merged post + file data.
*/
View
10 src/Network/Response.php
@@ -1034,14 +1034,14 @@ public function vary($cacheVariances = null) {
*
* If no parameters are passed, current Etag header is returned.
*
- * @param string $hash the unique has that identifies this response
+ * @param string $hash the unique hash that identifies this response
* @param boolean $weak whether the response is semantically the same as
* other with the same hash or not
* @return string
*/
- public function etag($tag = null, $weak = false) {
- if ($tag !== null) {
- $this->_headers['Etag'] = sprintf('%s"%s"', ($weak) ? 'W/' : null, $tag);
+ public function etag($hash = null, $weak = false) {
+ if ($hash !== null) {
+ $this->_headers['Etag'] = sprintf('%s"%s"', ($weak) ? 'W/' : null, $hash);
}
if (isset($this->_headers['Etag'])) {
return $this->_headers['Etag'];
@@ -1142,7 +1142,7 @@ public function length($bytes = null) {
* the Last-Modified etag response header before calling this method. Otherwise
* a comparison will not be possible.
*
- * @param CakeRequest $request Request object
+ * @param Request $request Request object
* @return boolean whether the response was marked as not modified or not.
*/
public function checkNotModified(Request $request) {
View
4 src/Network/Session/CacheSession.php
@@ -30,8 +30,8 @@ class CacheSession implements SessionHandlerInterface {
/**
* Method called on open of a database session.
*
- * @param The path where to store/retrieve the session.
- * @param The session name.
+ * @param string $savePath The path where to store/retrieve the session.
+ * @param string $name The session name.
* @return boolean Success
*/
public function open($savePath, $name) {
View
4 src/Network/Session/DatabaseSession.php
@@ -63,8 +63,8 @@ public function __construct() {
/**
* Method called on open of a database session.
*
- * @param The path where to store/retrieve the session.
- * @param The session name.
+ * @param string $savePath The path where to store/retrieve the session.
+ * @param string $name The session name.
* @return boolean Success
*/
public function open($savePath, $name) {
View
2 src/ORM/Association.php
@@ -445,7 +445,7 @@ public function attachTo(Query $query, array $options = []) {
* Correctly nests a result row associated values into the correct array keys inside the
* source results.
*
- * @param array $result
+ * @param array $row
* @return array
*/
public function transformRow($row) {
View
2 src/ORM/Association/ExternalAssociationTrait.php
@@ -92,7 +92,7 @@ public function requiresKeys($options = []) {
* Correctly nests a result row associated values into the correct array keys inside the
* source results.
*
- * @param array $result
+ * @param array $row
* @return array
*/
public function transformRow($row) {
View
4 src/ORM/EntityValidator.php
@@ -116,10 +116,10 @@ public function one(Entity $entity, $options = []) {
* associations to also be validated.
* @return boolean true if all validations passed, false otherwise
*/
- public function many(array $entities, $include = []) {
+ public function many(array $entities, $options = []) {
$valid = true;
foreach ($entities as $entity) {
- $valid = $this->one($entity, $include) && $valid;
+ $valid = $this->one($entity, $options) && $valid;
}
return $valid;
}
View
2 src/ORM/Marshaller.php
@@ -153,7 +153,7 @@ public function many(array $data, $include = []) {
* for junction table entities.
*
* @param Association $assoc The association to marshall.
- * @param array $values The data to convert into entities.
+ * @param array $data The data to convert into entities.
* @param array $include The nested associations to convert.
* @return array An array of built entities.
*/
View
18 src/ORM/Table.php
@@ -280,7 +280,7 @@ public function table($table = null) {
/**
* Returns the table alias or sets a new one
*
- * @param string $table the new table alias
+ * @param string $alias the new table alias
* @return string
*/
public function alias($alias = null) {
@@ -947,18 +947,18 @@ public function updateAll($fields, $conditions) {
* @param \Cake\Validation\Validator $validator
* @return \Cake\Validation\Validator
*/
- public function validator($name = 'default', Validator $instance = null) {
- if ($instance === null && isset($this->_validators[$name])) {
+ public function validator($name = 'default', Validator $validator = null) {
+ if ($validator === null && isset($this->_validators[$name])) {
return $this->_validators[$name];
}
- if ($instance === null) {
- $instance = new Validator();
- $instance = $this->{'validation' . ucfirst($name)}($instance);
+ if ($validator === null) {
+ $validator = new Validator();
+ $validator = $this->{'validation' . ucfirst($name)}($validator);
}
- $instance->provider('table', $this);
- return $this->_validators[$name] = $instance;
+ $validator->provider('table', $this);
+ return $this->_validators[$name] = $validator;
}
/**
@@ -1391,7 +1391,7 @@ protected function _processDelete($entity, $options) {
*
* @param string $type name of the finder to be called
* @param \Cake\ORM\Query $query The query object to apply the finder options to
- * @param array $args List of options to pass to the finder
+ * @param array $options List of options to pass to the finder
* @return \Cake\ORM\Query
* @throws \BadMethodCallException
*/
View
2 src/Routing/DispatcherFilter.php
@@ -46,7 +46,7 @@
/**
* Constructor.
*
- * @param string $setting Configuration settings for the filter.
+ * @param array $settings Configuration settings for the filter.
*/
public function __construct($settings = array()) {
$this->settings = Hash::merge($this->settings, $settings);
View
2 src/Routing/Route/RedirectRoute.php
@@ -116,7 +116,7 @@ public function match($url, $context = array()) {
* Stop execution of the current script. Wraps exit() making
* testing easier.
*
- * @param integer|string $status see http://php.net/exit for values
+ * @param integer|string $code see http://php.net/exit for values
* @return void
*/
protected function _stop($code = 0) {
View
5 src/TestSuite/Fixture/FixtureInjector.php
@@ -99,7 +99,7 @@ public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_Asser
* Not Implemented
*
* @param PHPUnit_Framework_Test $test
- * @param PHPUnit_Framework_AssertionFailedError $e
+ * @param Exception $e
* @param float $time
* @return void
*/
@@ -139,6 +139,9 @@ public function endTest(PHPUnit_Framework_Test $test, $time) {
/**
* Not Implemented
*
+ * @param PHPUnit_Framework_Test $test
+ * @param Exception $e
+ * @param float $time
* @return void
*/
public function addRiskyTest(PHPUnit_Framework_Test $test, Exception $e, $time) {
View
2 src/TestSuite/Fixture/TestFixture.php
@@ -313,7 +313,7 @@ protected function _getRecords() {
* Truncates the current fixture. Can be overwritten by classes extending
* CakeFixture to trigger other events before / after truncate.
*
- * @param Connection DboSource $db A reference to a db instance
+ * @param Connection $db A reference to a db instance
* @return boolean
*/
public function truncate(Connection $db) {
View
34 src/TestSuite/Reporter/BaseReporter.php
@@ -130,9 +130,9 @@ public function printResult(\PHPUnit_Framework_TestResult $result) {
/**
* An error occurred.
*
- * @param PHPUnit_Framework_Test $test
- * @param Exception $e
- * @param float $time
+ * @param \PHPUnit_Framework_Test $test
+ * @param \Exception $e
+ * @param float $time
*/
public function addError(\PHPUnit_Framework_Test $test, \Exception $e, $time) {
$this->paintException($e, $test);
@@ -141,9 +141,9 @@ public function addError(\PHPUnit_Framework_Test $test, \Exception $e, $time) {
/**
* A failure occurred.
*
- * @param PHPUnit_Framework_Test $test
- * @param PHPUnit_Framework_AssertionFailedError $e
- * @param float $time
+ * @param \PHPUnit_Framework_Test $test
+ * @param \PHPUnit_Framework_AssertionFailedError $e
+ * @param float $time
*/
public function addFailure(\PHPUnit_Framework_Test $test, \PHPUnit_Framework_AssertionFailedError $e, $time) {
$this->paintFail($e, $test);
@@ -152,9 +152,9 @@ public function addFailure(\PHPUnit_Framework_Test $test, \PHPUnit_Framework_Ass
/**
* Incomplete test.
*
- * @param PHPUnit_Framework_Test $test
- * @param Exception $e
- * @param float $time
+ * @param \PHPUnit_Framework_Test $test
+ * @param \Exception $e
+ * @param float $time
*/
public function addIncompleteTest(\PHPUnit_Framework_Test $test, \Exception $e, $time) {
$this->paintSkip($e, $test);
@@ -163,9 +163,9 @@ public function addIncompleteTest(\PHPUnit_Framework_Test $test, \Exception $e,
/**
* Skipped test.
*
- * @param PHPUnit_Framework_Test $test
- * @param Exception $e
- * @param float $time
+ * @param \PHPUnit_Framework_Test $test
+ * @param \Exception $e
+ * @param float $time
*/
public function addSkippedTest(\PHPUnit_Framework_Test $test, \Exception $e, $time) {
$this->paintSkip($e, $test);
@@ -174,7 +174,7 @@ public function addSkippedTest(\PHPUnit_Framework_Test $test, \Exception $e, $ti
/**
* A test suite started.
*
- * @param PHPUnit_Framework_TestSuite $suite
+ * @param \PHPUnit_Framework_TestSuite $suite
*/
public function startTestSuite(\PHPUnit_Framework_TestSuite $suite) {
if (!$this->_headerSent) {
@@ -186,24 +186,24 @@ public function startTestSuite(\PHPUnit_Framework_TestSuite $suite) {
/**
* A test suite ended.
*
- * @param PHPUnit_Framework_TestSuite $suite
+ * @param \PHPUnit_Framework_TestSuite $suite
*/
public function endTestSuite(\PHPUnit_Framework_TestSuite $suite) {
}
/**
* A test started.
*
- * @param PHPUnit_Framework_Test $test
+ * @param \PHPUnit_Framework_Test $test
*/
public function startTest(\PHPUnit_Framework_Test $test) {
}
/**
* A test ended.
*
- * @param PHPUnit_Framework_Test $test
- * @param float $time
+ * @param \PHPUnit_Framework_Test $test
+ * @param float $time
*/
public function endTest(\PHPUnit_Framework_Test $test, $time) {
$this->numAssertions += $test->getNumAssertions();
View
14 src/TestSuite/Reporter/HtmlReporter.php
@@ -280,7 +280,7 @@ public function paintFail($message, $test) {
* trail of the nesting test suites below the
* top level test.
*
- * @param PHPUnit_Framework_Test test method that just passed
+ * @param \PHPUnit_Framework_Test test method that just passed
* @param float $time time spent to run the test method
* @return void
*/
@@ -301,14 +301,14 @@ public function paintPass(\PHPUnit_Framework_Test $test, $time = null) {
* @param mixed $test
* @return void
*/
- public function paintException($message, $test) {
- $trace = $this->_getStackTrace($message);
+ public function paintException($exception, $test) {
+ $trace = $this->_getStackTrace($exception);
$testName = get_class($test) . '(' . $test->getName() . ')';
echo "<li class='fail'>\n";
- echo "<span>" . get_class($message) . "</span>";
+ echo "<span>" . get_class($exception) . "</span>";
- echo "<div class='msg'>" . $this->_htmlEntities($message->getMessage()) . "</div>\n";
+ echo "<div class='msg'>" . $this->_htmlEntities($exception->getMessage()) . "</div>\n";
echo "<div class='msg'>" . sprintf('Test case: %s', $testName) . "</div>\n";
echo "<div class='msg'>" . 'Stack trace:' . '<br />' . $trace . "</div>\n";
echo "</li>\n";
@@ -351,7 +351,7 @@ protected function _htmlEntities($message) {
/**
* Gets a formatted stack trace.
*
- * @param Exception $e Exception to get a stack trace for.
+ * @param \Exception $e Exception to get a stack trace for.
* @return string Generated stack trace.
*/
protected function _getStackTrace(\Exception $e) {
@@ -372,7 +372,7 @@ protected function _getStackTrace(\Exception $e) {
/**
* A test suite started.
*
- * @param PHPUnit_Framework_TestSuite $suite
+ * @param \PHPUnit_Framework_TestSuite $suite
* @return void
*/
public function startTestSuite(\PHPUnit_Framework_TestSuite $suite) {
View
11 src/TestSuite/TestCase.php
@@ -74,9 +74,8 @@
* If no TestResult object is passed a new one will be created.
* This method is run for each test method in this class
*
- * @param PHPUnit_Framework_TestResult $result
- * @return PHPUnit_Framework_TestResult
- * @throws InvalidArgumentException
+ * @param \PHPUnit_Framework_TestResult $result
+ * @return \PHPUnit_Framework_TestResult
*/
public function run(\PHPUnit_Framework_TestResult $result = null) {
if (!empty($this->fixtureManager)) {
@@ -212,7 +211,7 @@ public function loadFixtures() {
*
* @param string $expected The expected value.
* @param string $result The actual value.
- * @param message The message to use for failure.
+ * @param string message The message to use for failure.
* @return boolean
*/
public function assertTextNotEquals($expected, $result, $message = '') {
@@ -227,7 +226,7 @@ public function assertTextNotEquals($expected, $result, $message = '') {
*
* @param string $expected The expected value.
* @param string $result The actual value.
- * @param message The message to use for failure.
+ * @param string message The message to use for failure.
* @return boolean
*/
public function assertTextEquals($expected, $result, $message = '') {
@@ -546,7 +545,7 @@ protected function expectError($expected = false, $message = '') {
/**
* Compatibility wrapper function for setExpectedException
*
- * @param mixed $expected the name of the Exception
+ * @param mixed $name the name of the Exception
* @param string $message the text to display if the assertion is not correct
* @deprecated This is a compatiblity wrapper for 1.x. It will be removed in 3.0
* @return void
View
4 src/TestSuite/TestPermutationDecorator.php
@@ -38,8 +38,8 @@ class TestPermutationDecorator extends PHPUnit_Extensions_TestDecorator {
/**
* Constructor
*
- * @param \PHPUnit_Framework_Test The test or suite to decorate
- * @param array $permutation An array containing callable methods that will
+ * @param PHPUnit_Framework_Test $test The test or suite to decorate
+ * @param array $permutations An array containing callable methods that will
* be executed before the test suite is run
*/
public function __construct(PHPUnit_Framework_Test $test, array $permutations) {
View
2 src/TestSuite/TestRunner.php
@@ -41,7 +41,7 @@ public function __construct($loader, $params) {
/**
* Actually run a suite of tests. Cake initializes fixtures here using the chosen fixture manager
*
- * @param PHPUnit_Framework_Test $suite
+ * @param \PHPUnit_Framework_Test $suite
* @param array $arguments
* @return void
*/
View
4 src/Utility/File.php
@@ -216,7 +216,7 @@ public static function prepare($data, $forceWindows = false) {
*
* @param string $data Data to write to this File.
* @param string $mode Mode of writing. {@link http://php.net/fwrite See fwrite()}.
- * @param string $force Force the file to open
+ * @param boolean $force Force the file to open
* @return boolean Success
* @link http://book.cakephp.org/2.0/en/core-utility-libraries/file-folder.html#File::write
*/
@@ -243,7 +243,7 @@ public function write($data, $mode = 'w', $force = false) {
* Append given data string to this file.
*
* @param string $data Data to write
- * @param string $force Force the file to open
+ * @param boolean $force Force the file to open
* @return boolean Success
* @link http://book.cakephp.org/2.0/en/core-utility-libraries/file-folder.html#File::append
*/
View
6 src/Utility/Hash.php
@@ -430,7 +430,7 @@ public static function combine(array $data, $keyPath, $valuePath = null, $groupP
* The `$format` string can use any format options that `vsprintf()` and `sprintf()` do.
*
* @param array $data Source array from which to extract the data
- * @param string $paths An array containing one or more Hash::extract()-style key paths
+ * @param array $paths An array containing one or more Hash::extract()-style key paths
* @param string $format Format string into which values will be inserted, see sprintf()
* @return array An array of strings extracted from `$path` and formatted with `$format`
* @link http://book.cakephp.org/2.0/en/core-utility-libraries/hash.html#Hash::format
@@ -661,7 +661,7 @@ public static function merge(array $data, $merge) {
/**
* Checks to see if all the values in the array are numeric
*
- * @param array $array The array to check.
+ * @param array $data The array to check.
* @return boolean true if values are numeric, false otherwise
* @link http://book.cakephp.org/2.0/en/core-utility-libraries/hash.html#Hash::numeric
*/
@@ -679,7 +679,7 @@ public static function numeric(array $data) {
* If you have an un-even or heterogenous array, consider using Hash::maxDimensions()
* to get the dimensions of the array.
*
- * @param array $array Array to count dimensions on
+ * @param array $data Array to count dimensions on
* @return integer The number of dimensions in $data
* @link http://book.cakephp.org/2.0/en/core-utility-libraries/hash.html#Hash::dimensions
*/
View
2 src/Utility/ObjectRegistry.php
@@ -57,7 +57,7 @@
*
* All calls to the `Email` component would use `AliasedEmail` instead.
*
- * @param string $name The name/class of the object to load.
+ * @param string $objectName The name/class of the object to load.
* @param array $settings Additional settings to use when loading the object.
* @return mixed
*/
View
2 src/View/View.php
@@ -865,7 +865,7 @@ protected function _render($viewFile, $data = array()) {
/**
* Sandbox method to evaluate a template / view script in.
*
- * @param string $viewFn Filename of the view
+ * @param string $viewFile Filename of the view
* @param array $dataForView Data to include in rendered view.
* If empty the current View::$viewVars will be used.
* @return string Rendered output
View
3 src/View/Widget/IdGeneratorTrait.php
@@ -43,7 +43,8 @@ protected function _clearIds() {
*
* Ensures that id's for a given set of fields are unique.
*
- * @param array $radio The radio properties.
+ * @param string $name The ID attribute name.
+ * @param mixed $val The ID attribute value.
* @return string Generated id.
*/
protected function _id($name, $val) {
View
2 src/View/Widget/InputRegistry.php
@@ -104,7 +104,7 @@ public function add(array $widgets) {
* the `_default` widget is undefined.
*
* @param string $name The widget name to get.
- * @return mixed WidgetInterface widget interface class.
+ * @return WidgetInterface widget interface class.
* @throws \RuntimeException when widget is undefined.
*/
public function get($name) {
View
1 tests/TestCase/Cache/Engine/ApcEngineTest.php
@@ -56,6 +56,7 @@ public function tearDown() {
/**
* Helper method for testing.
*
+ * @param array $config
* @return void
*/
protected function _configCache($config = []) {
View
1 tests/TestCase/Cache/Engine/FileEngineTest.php
@@ -62,6 +62,7 @@ public function tearDown() {
/**
* Helper method for testing.
*
+ * @param array $config
* @return void
*/
protected function _configCache($config = []) {
View
1 tests/TestCase/Cache/Engine/MemcachedEngineTest.php
@@ -69,6 +69,7 @@ public function setUp() {
/**
* Helper method for testing.
*
+ * @param array $config
* @return void
*/
protected function _configCache($config = []) {
View
1 tests/TestCase/Cache/Engine/RedisEngineTest.php
@@ -56,6 +56,7 @@ public function tearDown() {
/**
* Helper method for testing.
*
+ * @param array $config
* @return void
*/
protected function _configCache($config = []) {
View
1 tests/TestCase/Cache/Engine/WincacheEngineTest.php
@@ -52,6 +52,7 @@ public function tearDown() {
/**
* Helper method for testing.
*
+ * @param array $config
* @return void
*/
protected function _configCache($config = []) {
View
1 tests/TestCase/Cache/Engine/XcacheEngineTest.php
@@ -43,6 +43,7 @@ public function setUp() {
/**
* Helper method for testing.
*
+ * @param array $config
* @return void
*/
protected function _configCache($config = []) {
View
2 tests/TestCase/Console/ShellDispatcherTest.php
@@ -88,7 +88,7 @@ public function getShell($shell) {
/**
* _getShell
*
- * @param string $plugin
+ * @param string $shell
* @return mixed
*/
protected function _getShell($shell) {
View
3 tests/TestCase/Controller/Component/CookieComponentTest.php
@@ -707,7 +707,8 @@ public function testDeleteChildrenNotExist() {
/**
* Helper method for generating old style encoded cookie values.
*
- * @return string.
+ * @param array $array
+ * @return string
*/
protected function _oldImplode(array $array) {
$string = '';
View
1 tests/TestCase/Controller/Component/PaginatorComponentTest.php
@@ -733,6 +733,7 @@ public function testPaginateCustomFindCount() {
/**
* Helper method for making mocks.
*
+ * @param array $methods
* @return Table
*/
protected function _getMockPosts($methods = []) {
View
4 tests/TestCase/Controller/Component/SecurityComponentTest.php
@@ -85,7 +85,7 @@ public function fail() {
* redirect method
*
* @param string|array $url
- * @param mixed $code
+ * @param mixed $status
* @param mixed $exit
* @return void
*/
@@ -665,7 +665,7 @@ public function testValidatePostFailNoDisabled() {
/**
* Test that validatePost fails when unlocked fields are changed.
*
- * @return
+ * @return void
*/
public function testValidatePostFailDisabledFieldTampering() {
$event = new Event('Controller.startup', $this->Controller);
View
8 tests/TestCase/Controller/ControllerTest.php
@@ -89,7 +89,7 @@ class TestController extends ControllerTestAppController {
* index method
*
* @param mixed $testId
- * @param mixed $test2Id
+ * @param mixed $testTwoId
* @return void
*/
public function index($testId, $testTwoId) {
@@ -103,7 +103,7 @@ public function index($testId, $testTwoId) {
* view method
*
* @param mixed $testId
- * @param mixed $test2Id
+ * @param mixed $testTwoId
* @return void
*/
public function view($testId, $testTwoId) {
@@ -149,6 +149,7 @@ public function beforeRedirect() {
/**
* initialize method
*
+ * @param Event $event
* @return void
*/
public function initialize(Event $event) {
@@ -157,6 +158,7 @@ public function initialize(Event $event) {
/**
* startup method
*
+ * @param Event $event
* @return void
*/
public function startup(Event $event) {
@@ -165,6 +167,7 @@ public function startup(Event $event) {
/**
* shutdown method
*
+ * @param Event $event
* @return void
*/
public function shutdown(Event $event) {
@@ -173,6 +176,7 @@ public function shutdown(Event $event) {
/**
* beforeRender callback
*
+ * @param Event $event
* @return void
*/
public function beforeRender(Event $event) {
View
1 tests/TestCase/Core/ObjectTest.php
@@ -150,6 +150,7 @@ public function methodWithOptionalParam($param = null) {
/**
* undocumented function
*
+ * @param array $properties
* @return void
*/
public function set($properties = array()) {
View
2 tests/TestCase/Database/Expression/IdentifierExpressionTest.php
@@ -28,7 +28,7 @@ class IdentifierExpressionTest extends TestCase {
/**
* Tests getting and setting the field
*
- * @return
+ * @return void
*/
public function testGetAndSet() {
$expression = new IdentifierExpression('foo');
View
1 tests/TestCase/Database/QueryTest.php
@@ -2402,6 +2402,7 @@ public function testQuotingInsert() {
* @param string $table
* @param integer $count
* @param array $rows
+ * @param array $conditions
* @return void
*/
public function assertTable($table, $count, $rows, $conditions = []) {
View
1 tests/TestCase/Database/Schema/MysqlSchemaTest.php
@@ -176,6 +176,7 @@ public function testConvertColumn($type, $expected) {
/**
* Helper method for testing methods.
*
+ * @param \Cake\Database\Connection $connection
* @return void
*/
protected function _createTables($connection) {
View
1 tests/TestCase/Database/Schema/PostgresSchemaTest.php
@@ -39,6 +39,7 @@ protected function _needsConnection() {
/**
* Helper method for testing methods.
*
+ * @param \Cake\Database\Connection $connection
* @return void
*/
protected function _createTables($connection) {
View
1 tests/TestCase/Error/ExceptionRendererTest.php
@@ -43,6 +43,7 @@ class BlueberryComponent extends Component {
/**
* initialize method
*
+ * @param Event $event
* @return void
*/
public function initialize(Event $event) {
View
7 tests/TestCase/I18n/I18nTest.php
@@ -1876,6 +1876,8 @@ public function testLoadLocaleDefinition() {
/**
* Singular method
*
+ * @param string $domain
+ * @param integer $category
* @return void
*/
protected function _domainCategorySingular($domain = 'test_plugin', $category = 3) {
@@ -1886,6 +1888,8 @@ protected function _domainCategorySingular($domain = 'test_plugin', $category =
/**
* Plural method
*
+ * @param string $domain
+ * @param integer $category
* @return void
*/
protected function _domainCategoryPlural($domain = 'test_plugin', $category = 3) {
@@ -1899,6 +1903,7 @@ protected function _domainCategoryPlural($domain = 'test_plugin', $category = 3)
/**
* Singular method
*
+ * @param string $domain
* @return void
*/
protected function _domainSingular($domain = 'test_plugin') {
@@ -1909,6 +1914,7 @@ protected function _domainSingular($domain = 'test_plugin') {
/**
* Plural method
*
+ * @param string $domain
* @return void
*/
protected function _domainPlural($domain = 'test_plugin') {
@@ -1922,6 +1928,7 @@ protected function _domainPlural($domain = 'test_plugin') {
/**
* category method
*
+ * @param integer $category
* @return void
*/
protected function _category($category = 3) {
View
1 tests/TestCase/Log/Engine/FileLogTest.php
@@ -183,6 +183,7 @@ public function testMaskSetting() {
/**
* helper function to clears all log files in specified directory
*
+ * @param string $dir
* @return void
*/
protected function _deleteLogs($dir) {
View
1 tests/TestCase/Model/Behavior/TranslateBehaviorTest.php
@@ -46,6 +46,7 @@ public function tearDown() {
/**
* Returns an array with all the translations found for a set of records
*
+ * @param array|\Traversable $data
* @return Collection
*/
protected function _extractTranslations($data) {
View
2 tests/TestCase/Network/Email/SmtpTransportTest.php
@@ -30,7 +30,7 @@ class SmtpTestTransport extends SmtpTransport {
/**
* Helper to change the socket
*
- * @param object $socket
+ * @param Socket $socket
* @return void
*/
public function setSocket(Socket $socket) {
View
2 tests/TestCase/ORM/EntityTest.php
@@ -969,7 +969,7 @@ public function testSetWithAccessibleWithArray() {
/**
* Test that accessible() and single property setting works.
*
- * @return
+ * @return void
*/
public function testSetWithAccessibleSingleProperty() {
$entity = new Entity(['foo' => 1, 'bar' => 2]);
View
1 tests/TestCase/Utility/TimeTest.php
@@ -61,7 +61,6 @@ public function tearDown() {
/**
* Restored the original system timezone
*
- * @param string $timezoneIdentifier Timezone string
* @return void
*/
protected function _restoreSystemTimezone() {
View
3 tests/TestCase/Validation/ValidationTest.php
@@ -30,7 +30,7 @@ class CustomValidator {
/**
* Makes sure that a given $email address is valid and unique
*
- * @param string $email
+ * @param string $check
* @return boolean
*/
public static function customValidate($check) {
@@ -60,6 +60,7 @@ public static function postal($check) {
/**
* ssn function for testing ssn pass through
*
+ * @param string $check
* @return void
*/
public static function ssn($check) {
View
1 tests/TestCase/View/Helper/FormHelperTest.php
@@ -333,6 +333,7 @@ class ValidateUsersTable extends Table {
/**
* beforeValidate method
*
+ * @param array $options
* @return void
*/
public function beforeValidate($options = array()) {
View
1 tests/test_app/TestApp/Controller/AjaxAuthController.php
@@ -50,6 +50,7 @@ class AjaxAuthController extends Controller {
/**
* beforeFilter method
*
+ * @param Event $event
* @return void
*/
public function beforeFilter(Event $event) {
View
2 tests/test_app/TestApp/Controller/RequestHandlerTestController.php
@@ -44,6 +44,8 @@ public function destination() {
/**
* test method for ajax redirection + parameter parsing
*
+ * @param string $one
+ * @param string $two
* @return void
*/
public function param_method($one = null, $two = null) {
View
1 tests/test_app/TestApp/Controller/SomePostsController.php
@@ -39,6 +39,7 @@ class SomePostsController extends Controller {
/**
* beforeFilter method
*
+ * @param Event $event
* @return void
*/
public function beforeFilter(Event $event) {
View
1 tests/test_app/TestApp/Controller/TestCachedPagesController.php
@@ -69,6 +69,7 @@ public function test_nocache_tags() {
/**
* view method
*
+ * @param $id
* @return void
*/
public function view($id = null) {

0 comments on commit 29caa95

Please sign in to comment.