diff --git a/src/Auth/BaseAuthenticate.php b/src/Auth/BaseAuthenticate.php index ef39472663f..4b91bcf4d82 100644 --- a/src/Auth/BaseAuthenticate.php +++ b/src/Auth/BaseAuthenticate.php @@ -58,14 +58,14 @@ abstract class BaseAuthenticate implements EventListenerInterface /** * A Component registry, used to get more components. * - * @var ComponentRegistry + * @var \Cake\Controller\ComponentRegistry */ protected $_registry; /** * Password hasher instance. * - * @var AbstractPasswordHasher + * @var \Cake\Auth\AbstractPasswordHasher */ protected $_passwordHasher; @@ -152,7 +152,7 @@ protected function _query($username) /** * Return password hasher object * - * @return AbstractPasswordHasher Password hasher instance + * @return \Cake\Auth\AbstractPasswordHasher Password hasher instance * @throws \RuntimeException If password hasher class not found or * it does not extend AbstractPasswordHasher */ diff --git a/src/Auth/BaseAuthorize.php b/src/Auth/BaseAuthorize.php index 1b7baa81bb0..a384fa2caec 100644 --- a/src/Auth/BaseAuthorize.php +++ b/src/Auth/BaseAuthorize.php @@ -31,7 +31,7 @@ abstract class BaseAuthorize /** * ComponentRegistry instance for getting more components. * - * @var ComponentRegistry + * @var \Cake\Controller\ComponentRegistry */ protected $_registry; diff --git a/src/Cache/Cache.php b/src/Cache/Cache.php index 8520f73b0b0..2d54347f0bf 100644 --- a/src/Cache/Cache.php +++ b/src/Cache/Cache.php @@ -125,7 +125,7 @@ public static function registry(ObjectRegistry $registry = null) if ($registry) { static::$_registry = $registry; } - + if (empty(static::$_registry)) { static::$_registry = new CacheRegistry(); } diff --git a/src/Cache/CacheRegistry.php b/src/Cache/CacheRegistry.php index 2c619c8b2e4..95b67cdf6e9 100644 --- a/src/Cache/CacheRegistry.php +++ b/src/Cache/CacheRegistry.php @@ -63,10 +63,10 @@ protected function _throwMissingClassError($class, $plugin) * * Part of the template method for Cake\Core\ObjectRegistry::load() * - * @param string|CacheEngine $class The classname or object to make. + * @param string|\Cake\Cache\CacheEngine $class The classname or object to make. * @param string $alias The alias of the object. * @param array $config An array of settings to use for the cache engine. - * @return CacheEngine The constructed CacheEngine class. + * @return \Cake\Cache\CacheEngine The constructed CacheEngine class. * @throws \RuntimeException when an object doesn't implement the correct interface. */ protected function _create($class, $alias, $config) diff --git a/src/Cache/Engine/MemcachedEngine.php b/src/Cache/Engine/MemcachedEngine.php index ba1b627cdb6..69d7280a64d 100644 --- a/src/Cache/Engine/MemcachedEngine.php +++ b/src/Cache/Engine/MemcachedEngine.php @@ -96,7 +96,7 @@ class MemcachedEngine extends CacheEngine * * @param array $config array of setting for the engine * @return bool True if the engine has been successfully initialized, false if not - * @throws InvalidArgumentException When you try use authentication without + * @throws \InvalidArgumentException When you try use authentication without * Memcached compiled with SASL support */ public function init(array $config = []) @@ -189,7 +189,7 @@ public function init(array $config = []) * Settings the memcached instance * * @return void - * @throws InvalidArgumentException When the Memcached extension is not built + * @throws \InvalidArgumentException When the Memcached extension is not built * with the desired serializer engine. */ protected function _setOptions() diff --git a/src/Collection/Collection.php b/src/Collection/Collection.php index 89ee7032d77..bafcd6f6340 100644 --- a/src/Collection/Collection.php +++ b/src/Collection/Collection.php @@ -34,7 +34,7 @@ class Collection extends IteratorIterator implements CollectionInterface, Serial * Constructor. You can provide an array or any traversable object * * @param array|\Traversable $items Items. - * @throws InvalidArgumentException If passed incorrect type for items. + * @throws \InvalidArgumentException If passed incorrect type for items. */ public function __construct($items) { diff --git a/src/Collection/Iterator/TreeIterator.php b/src/Collection/Iterator/TreeIterator.php index 260ffa652ed..5f0e8ad57a3 100644 --- a/src/Collection/Iterator/TreeIterator.php +++ b/src/Collection/Iterator/TreeIterator.php @@ -38,7 +38,7 @@ class TreeIterator extends RecursiveIteratorIterator /** * Constructor * - * @param RecursiveIterator $items The iterator to flatten. + * @param \RecursiveIterator $items The iterator to flatten. * @param int $mode Iterator mode. * @param int $flags Iterator flags. */ diff --git a/src/Console/ConsoleErrorHandler.php b/src/Console/ConsoleErrorHandler.php index 4ad689363f9..79da0ab2872 100644 --- a/src/Console/ConsoleErrorHandler.php +++ b/src/Console/ConsoleErrorHandler.php @@ -28,7 +28,7 @@ class ConsoleErrorHandler extends BaseErrorHandler /** * Standard error stream. * - * @var ConsoleOutput + * @var \Cake\Console\ConsoleOutput */ protected $_stderr; diff --git a/src/Console/ConsoleInputSubcommand.php b/src/Console/ConsoleInputSubcommand.php index 47caf62c9a8..ca12d710875 100644 --- a/src/Console/ConsoleInputSubcommand.php +++ b/src/Console/ConsoleInputSubcommand.php @@ -44,7 +44,7 @@ class ConsoleInputSubcommand /** * The ConsoleOptionParser for this subcommand. * - * @var ConsoleOptionParser + * @var \Cake\Console\ConsoleOptionParser */ protected $_parser; diff --git a/src/Console/Shell.php b/src/Console/Shell.php index 14d437953e1..ce1871a507a 100644 --- a/src/Console/Shell.php +++ b/src/Console/Shell.php @@ -137,7 +137,7 @@ class Shell /** * Task Collection for the command, used to create Tasks. * - * @var TaskRegistry + * @var \Cake\Console\TaskRegistry */ public $Tasks; diff --git a/src/Console/TaskRegistry.php b/src/Console/TaskRegistry.php index b63e0f8b136..732c9f73ab0 100644 --- a/src/Console/TaskRegistry.php +++ b/src/Console/TaskRegistry.php @@ -28,7 +28,7 @@ class TaskRegistry extends ObjectRegistry /** * Shell to use to set params to tasks. * - * @var Shell + * @var \Cake\Console\Shell */ protected $_Shell; diff --git a/src/Controller/ComponentRegistry.php b/src/Controller/ComponentRegistry.php index b84d321b785..a655b821372 100644 --- a/src/Controller/ComponentRegistry.php +++ b/src/Controller/ComponentRegistry.php @@ -52,7 +52,7 @@ public function __construct(Controller $controller = null) /** * Get the controller associated with the collection. * - * @return Controller Controller instance + * @return \Cake\Controller\Controller Controller instance */ public function getController() { diff --git a/src/Core/Configure.php b/src/Core/Configure.php index 7fe109314ed..547b475a392 100644 --- a/src/Core/Configure.php +++ b/src/Core/Configure.php @@ -346,7 +346,7 @@ public static function dump($key, $config = 'default', $keys = []) * Will create new PhpConfig for default if not configured yet. * * @param string $config The name of the configured adapter - * @return ConfigEngineInterface|false Engine instance or false + * @return \Cake\Core\Configure\ConfigEngineInterface|false Engine instance or false */ protected static function _getEngine($config) { diff --git a/src/Core/Configure/FileConfigTrait.php b/src/Core/Configure/FileConfigTrait.php index 50b1b04cac1..b025f8c060b 100644 --- a/src/Core/Configure/FileConfigTrait.php +++ b/src/Core/Configure/FileConfigTrait.php @@ -22,6 +22,7 @@ */ trait FileConfigTrait { + /** * The path this engine finds files on. * diff --git a/src/Database/Connection.php b/src/Database/Connection.php index 4eeb9b9be12..af4486b3ac6 100644 --- a/src/Database/Connection.php +++ b/src/Database/Connection.php @@ -80,7 +80,7 @@ class Connection implements ConnectionInterface /** * Logger object instance. * - * @var QueryLogger + * @var \Cake\Database\Log\QueryLogger */ protected $_logger = null; diff --git a/src/Database/Dialect/SqlserverDialectTrait.php b/src/Database/Dialect/SqlserverDialectTrait.php index e842af4860a..9c6e9795327 100644 --- a/src/Database/Dialect/SqlserverDialectTrait.php +++ b/src/Database/Dialect/SqlserverDialectTrait.php @@ -136,8 +136,8 @@ protected function _pagingSubquery($original, $limit, $offset) * Returns the passed query after rewriting the DISTINCT clause, so that drivers * that do not support the "ON" part can provide the actual way it should be done * - * @param Query $original The query to be transformed - * @return Query + * @param \Cake\Database\Query $original The query to be transformed + * @return \Cake\Database\Query */ protected function _transformDistinct($original) { diff --git a/src/Database/Driver.php b/src/Database/Driver.php index 3c3d16b975b..3977df82e14 100644 --- a/src/Database/Driver.php +++ b/src/Database/Driver.php @@ -52,7 +52,7 @@ abstract class Driver * Constructor * * @param array $config The configuration for the driver. - * @throws InvalidArgumentException + * @throws \InvalidArgumentException */ public function __construct($config = []) { diff --git a/src/Database/Expression/CaseExpression.php b/src/Database/Expression/CaseExpression.php index 9ac09985505..17bfc9133ec 100644 --- a/src/Database/Expression/CaseExpression.php +++ b/src/Database/Expression/CaseExpression.php @@ -44,16 +44,16 @@ class CaseExpression implements ExpressionInterface /** * The `ELSE` value for the case statement. If null then no `ELSE` will be included. * - * @var string|ExpressionInterface|array|null + * @var string|\Cake\Database\ExpressionInterface|array|null */ protected $_elseValue = null; /** * Constructs the case expression * - * @param array|ExpressionInterface $conditions The conditions to test. Must be a ExpressionInterface + * @param array|\Cake\Database\ExpressionInterface $conditions The conditions to test. Must be a ExpressionInterface * instance, or an array of ExpressionInterface instances. - * @param array|ExpressionInterface $values associative array of values to be associated with the conditions + * @param array|\Cake\Database\ExpressionInterface $values associative array of values to be associated with the conditions * passed in $conditions. If there are more $values than $conditions, the last $value is used as the `ELSE` value * @param array $types associative array of types to be associated with the values * passed in $values @@ -76,8 +76,8 @@ public function __construct($conditions = [], $values = [], $types = []) * Conditions must be a one dimensional array or a QueryExpression. * The trueValues must be a similar structure, but may contain a string value. * - * @param array|ExpressionInterface $conditions Must be a ExpressionInterface instance, or an array of ExpressionInterface instances. - * @param array|ExpressionInterface $values associative array of values of each condition + * @param array|\Cake\Database\ExpressionInterface $conditions Must be a ExpressionInterface instance, or an array of ExpressionInterface instances. + * @param array|\Cake\Database\ExpressionInterface $values associative array of values of each condition * @param array $types associative array of types to be associated with the values * * @return $this @@ -103,8 +103,8 @@ public function add($conditions = [], $values = [], $types = []) * Iterates over the passed in conditions and ensures that there is a matching true value for each. * If no matching true value, then it is defaulted to '1'. * - * @param array|ExpressionInterface $conditions Must be a ExpressionInterface instance, or an array of ExpressionInterface instances. - * @param array|ExpressionInterface $values associative array of values of each condition + * @param array|\Cake\Database\ExpressionInterface $conditions Must be a ExpressionInterface instance, or an array of ExpressionInterface instances. + * @param array|\Cake\Database\ExpressionInterface $values associative array of values of each condition * @param array $types associative array of types to be associated with the values * * @return void diff --git a/src/Database/Expression/QueryExpression.php b/src/Database/Expression/QueryExpression.php index 5c7801de381..f09654cca00 100644 --- a/src/Database/Expression/QueryExpression.php +++ b/src/Database/Expression/QueryExpression.php @@ -54,7 +54,7 @@ class QueryExpression implements ExpressionInterface, Countable * expression objects. Optionally, you can set the conjunction keyword to be used * for joining each part of this level of the expression tree. * - * @param string|array|QueryExpression $conditions tree-like array structure containing all the conditions + * @param string|array|\Cake\Database\Expression\QueryExpression $conditions tree-like array structure containing all the conditions * to be added or nested inside this expression object. * @param array|\Cake\Database\TypeMap $types associative array of types to be associated with the values * passed in $conditions. @@ -323,9 +323,9 @@ public function in($field, $values, $type = null) /** * Adds a new case expression to the expression object * - * @param array|ExpressionInterface $conditions The conditions to test. Must be a ExpressionInterface + * @param array|\Cake\Database\ExpressionInterface $conditions The conditions to test. Must be a ExpressionInterface * instance, or an array of ExpressionInterface instances. - * @param array|ExpressionInterface $values associative array of values to be associated with the conditions + * @param array|\Cake\Database\ExpressionInterface $values associative array of values to be associated with the conditions * passed in $conditions. If there are more $values than $conditions, the last $value is used as the `ELSE` value * @param array $types associative array of types to be associated with the values * passed in $values @@ -416,7 +416,7 @@ public function or_($conditions, $types = []) * "NOT ( (condition1) AND (conditions2) )" conjunction depends on the one * currently configured for this object. * - * @param string|array|QueryExpression $conditions to be added and negated + * @param string|array|\Cake\Database\Expression\QueryExpression $conditions to be added and negated * @param array $types associative array of fields pointing to the type of the * values that are being passed. Used for correctly binding values to statements. * @return $this diff --git a/src/Database/Expression/TupleComparison.php b/src/Database/Expression/TupleComparison.php index 2a61d315f60..6dda7cb0bfc 100644 --- a/src/Database/Expression/TupleComparison.php +++ b/src/Database/Expression/TupleComparison.php @@ -30,7 +30,7 @@ class TupleComparison extends Comparison * Constructor * * @param string|array $fields the fields to use to form a tuple - * @param array|ExpressionInterface $values the values to use to form a tuple + * @param array|\Cake\Database\ExpressionInterface $values the values to use to form a tuple * @param array $types the types names to use for casting each of the values, only * one type per position in the value array in needed * @param string $conjunction the operator used for comparing field and value diff --git a/src/Database/Expression/ValuesExpression.php b/src/Database/Expression/ValuesExpression.php index 02fd895b7fd..62b594b2c34 100644 --- a/src/Database/Expression/ValuesExpression.php +++ b/src/Database/Expression/ValuesExpression.php @@ -69,7 +69,7 @@ public function __construct(array $columns, $typeMap) /** * Add a row of data to be inserted. * - * @param array|Query $data Array of data to append into the insert, or + * @param array|\Cake\Database\Query $data Array of data to append into the insert, or * a query for doing INSERT INTO .. SELECT style commands * @return void * @throws \Cake\Database\Exception When mixing array + Query data types. diff --git a/src/Database/FieldTypeConverter.php b/src/Database/FieldTypeConverter.php index 71744319ca2..e502cd663bc 100644 --- a/src/Database/FieldTypeConverter.php +++ b/src/Database/FieldTypeConverter.php @@ -22,6 +22,7 @@ */ class FieldTypeConverter { + /** * An array containing the name of the fields and the Type objects * each should use when converting them. diff --git a/src/Database/FunctionsBuilder.php b/src/Database/FunctionsBuilder.php index 64fb97ff32c..451b02fabc4 100644 --- a/src/Database/FunctionsBuilder.php +++ b/src/Database/FunctionsBuilder.php @@ -32,7 +32,7 @@ class FunctionsBuilder * @param array $params list of params to be passed to the function * @param array $types list of types for each function param * @param string $return The return type of the function expression - * @return FunctionExpression + * @return \Cake\Database\Expression\FunctionExpression */ protected function _build($name, $params = [], $types = [], $return = 'string') { @@ -47,7 +47,7 @@ protected function _build($name, $params = [], $types = [], $return = 'string') * @param mixed $expression the function argument * @param array $types list of types to bind to the arguments * @param string $return The return type for the function - * @return FunctionExpression + * @return \Cake\Database\Expression\FunctionExpression */ protected function _literalArgumentFunction($name, $expression, $types = [], $return = 'string') { @@ -64,7 +64,7 @@ protected function _literalArgumentFunction($name, $expression, $types = [], $re * * @param mixed $expression the function argument * @param array $types list of types to bind to the arguments - * @return FunctionExpression + * @return \Cake\Database\Expression\FunctionExpression */ public function sum($expression, $types = []) { @@ -80,7 +80,7 @@ public function sum($expression, $types = []) * * @param mixed $expression the function argument * @param array $types list of types to bind to the arguments - * @return FunctionExpression + * @return \Cake\Database\Expression\FunctionExpression */ public function avg($expression, $types = []) { @@ -92,7 +92,7 @@ public function avg($expression, $types = []) * * @param mixed $expression the function argument * @param array $types list of types to bind to the arguments - * @return FunctionExpression + * @return \Cake\Database\Expression\FunctionExpression */ public function max($expression, $types = []) { @@ -104,7 +104,7 @@ public function max($expression, $types = []) * * @param mixed $expression the function argument * @param array $types list of types to bind to the arguments - * @return FunctionExpression + * @return \Cake\Database\Expression\FunctionExpression */ public function min($expression, $types = []) { @@ -116,7 +116,7 @@ public function min($expression, $types = []) * * @param mixed $expression the function argument * @param array $types list of types to bind to the arguments - * @return FunctionExpression + * @return \Cake\Database\Expression\FunctionExpression */ public function count($expression, $types = []) { @@ -128,7 +128,7 @@ public function count($expression, $types = []) * * @param array $args List of strings or expressions to concatenate * @param array $types list of types to bind to the arguments - * @return FunctionExpression + * @return \Cake\Database\Expression\FunctionExpression */ public function concat($args, $types = []) { @@ -140,7 +140,7 @@ public function concat($args, $types = []) * * @param array $args List of expressions to evaluate as function parameters * @param array $types list of types to bind to the arguments - * @return FunctionExpression + * @return \Cake\Database\Expression\FunctionExpression */ public function coalesce($args, $types = []) { @@ -153,7 +153,7 @@ public function coalesce($args, $types = []) * * @param array $args List of expressions to obtain the difference in days. * @param array $types list of types to bind to the arguments - * @return FunctionExpression + * @return \Cake\Database\Expression\FunctionExpression */ public function dateDiff($args, $types = []) { diff --git a/src/Database/IdentifierQuoter.php b/src/Database/IdentifierQuoter.php index 0f20b7087b3..f9a76c2c23f 100644 --- a/src/Database/IdentifierQuoter.php +++ b/src/Database/IdentifierQuoter.php @@ -191,7 +191,7 @@ protected function _quoteInsert($query) protected function _quoteUpdate($query) { $table = $query->clause('update')[0]; - + if (is_string($table)) { $query->update($this->_driver->quoteIdentifier($table)); } diff --git a/src/Database/Log/LoggingStatement.php b/src/Database/Log/LoggingStatement.php index a0f49a1bce2..75f1aa5166b 100644 --- a/src/Database/Log/LoggingStatement.php +++ b/src/Database/Log/LoggingStatement.php @@ -28,7 +28,7 @@ class LoggingStatement extends StatementDecorator /** * Logger instance responsible for actually doing the logging task * - * @var QueryLogger + * @var \Cake\Database\Log\QueryLogger */ protected $_logger; diff --git a/src/Database/Log/QueryLogger.php b/src/Database/Log/QueryLogger.php index cc26ef805b3..1dee85b15ab 100644 --- a/src/Database/Log/QueryLogger.php +++ b/src/Database/Log/QueryLogger.php @@ -28,7 +28,7 @@ class QueryLogger /** * Writes a LoggedQuery into a log * - * @param LoggedQuery $query to be written in log + * @param \Cake\Database\Log\LoggedQuery $query to be written in log * @return void */ public function log(LoggedQuery $query) @@ -43,7 +43,7 @@ public function log(LoggedQuery $query) * Wrapper function for the logger object, useful for unit testing * or for overriding in subclasses. * - * @param LoggedQuery $query to be written in log + * @param \Cake\Database\Log\LoggedQuery $query to be written in log * @return void */ protected function _log($query) @@ -55,7 +55,7 @@ protected function _log($query) * Helper function used to replace query placeholders by the real * params used to execute the query * - * @param LoggedQuery $query The query to log + * @param \Cake\Database\Log\LoggedQuery $query The query to log * @return string */ protected function _interpolate($query) diff --git a/src/Database/Query.php b/src/Database/Query.php index b149dc7b61d..e78011b2dff 100644 --- a/src/Database/Query.php +++ b/src/Database/Query.php @@ -103,14 +103,14 @@ class Query implements ExpressionInterface, IteratorAggregate * The object responsible for generating query placeholders and temporarily store values * associated to each of those. * - * @var ValueBinder + * @var \Cake\Database\ValueBinder */ protected $_valueBinder; /** * Instance of functions builder object used for generating arbitrary SQL functions. * - * @var FunctionsBuilder + * @var \Cake\Database\FunctionsBuilder */ protected $_functionsBuilder; @@ -280,7 +280,7 @@ public function traverse(callable $visitor, array $parts = []) * fields you should also call `Cake\ORM\Query::autoFields()` to select the default fields * from the table. * - * @param array|ExpressionInterface|string|callable $fields fields to be added to the list. + * @param array|\Cake\Database\ExpressionInterface|string|callable $fields fields to be added to the list. * @param bool $overwrite whether to reset fields with passed list or not * @return $this */ @@ -328,7 +328,7 @@ public function select($fields = [], $overwrite = false) * $query->distinct('name', true); * ``` * - * @param array|ExpressionInterface|string|bool $on Enable/disable distinct class + * @param array|\Cake\Database\ExpressionInterface|string|bool $on Enable/disable distinct class * or list of fields to be filtered on * @param bool $overwrite whether to reset fields with passed list or not * @return $this @@ -372,7 +372,7 @@ public function distinct($on = [], $overwrite = false) * // It will produce the SQL: SELECT HIGH_PRIORITY SQL_NO_CACHE name, city FROM products * ``` * - * @param array|ExpressionInterface|string $modifiers modifiers to be applied to the query + * @param array|\Cake\Database\ExpressionInterface|string $modifiers modifiers to be applied to the query * @param bool $overwrite whether to reset order with field list or not * @return $this */ @@ -409,7 +409,7 @@ public function modifier($modifiers, $overwrite = false) * $query->from(['sub' => $countQuery]); // FROM (SELECT ...) sub * ``` * - * @param array|ExpressionInterface|string $tables tables to be added to the list + * @param array|\Cake\Database\ExpressionInterface|string $tables tables to be added to the list * @param bool $overwrite whether to reset tables with passed list or not * @return $this */ @@ -855,7 +855,7 @@ public function where($conditions = null, $types = [], $overwrite = false) * * `WHERE (title = 'Foo') AND (author_id = 1 OR author_id = 2)` * - * @param string|array|ExpressionInterface|callback $conditions The conditions to add with AND. + * @param string|array|\Cake\Database\ExpressionInterface|callback $conditions The conditions to add with AND. * @param array $types associative array of type names used to bind values to query * @see \Cake\Database\Query::where() * @see \Cake\Database\Type @@ -917,7 +917,7 @@ public function andWhere($conditions, $types = []) * * `WHERE (title = 'Foo') OR (author_id = 1 OR author_id = 2)` * - * @param string|array|ExpressionInterface|callback $conditions The conditions to add with OR. + * @param string|array|\Cake\Database\ExpressionInterface|callback $conditions The conditions to add with OR. * @param array $types associative array of type names used to bind values to query * @see \Cake\Database\Query::where() * @see \Cake\Database\Type @@ -1063,7 +1063,7 @@ public function orderDesc($field, $overwrite = false) * $query->group('title'); * ``` * - * @param array|ExpressionInterface|string $fields fields to be added to the list + * @param array|\Cake\Database\ExpressionInterface|string $fields fields to be added to the list * @param bool $overwrite whether to reset fields with passed list or not * @return $this */ @@ -1088,7 +1088,7 @@ public function group($fields, $overwrite = false) * does. Please refer to its documentation for an insight on how to using each * parameter. * - * @param string|array|ExpressionInterface|callback $conditions The having conditions. + * @param string|array|\Cake\Database\ExpressionInterface|callback $conditions The having conditions. * @param array $types associative array of type names used to bind values to query * @param bool $overwrite whether to reset conditions with passed list or not * @see \Cake\Database\Query::where() @@ -1109,7 +1109,7 @@ public function having($conditions = null, $types = [], $overwrite = false) * the same way as the method `andWhere()` does. Please refer to its * documentation for an insight on how to using each parameter. * - * @param string|array|ExpressionInterface|callback $conditions The AND conditions for HAVING. + * @param string|array|\Cake\Database\ExpressionInterface|callback $conditions The AND conditions for HAVING. * @param array $types associative array of type names used to bind values to query * @see \Cake\Database\Query::andWhere() * @return $this @@ -1126,7 +1126,7 @@ public function andHaving($conditions, $types = []) * the same way as the method `orWhere()` does. Please refer to its * documentation for an insight on how to using each parameter. * - * @param string|array|ExpressionInterface|callback $conditions The OR conditions for HAVING. + * @param string|array|\Cake\Database\ExpressionInterface|callback $conditions The OR conditions for HAVING. * @param array $types associative array of type names used to bind values to query. * @see \Cake\Database\Query::orWhere() * @return $this @@ -1182,7 +1182,7 @@ public function page($num, $limit = null) * $query->limit($query->newExpr()->add(['1 + 1'])); // LIMIT (1 + 1) * ``` * - * @param int|ExpressionInterface $num number of records to be returned + * @param int|\Cake\Database\ExpressionInterface $num number of records to be returned * @return $this */ public function limit($num) @@ -1210,7 +1210,7 @@ public function limit($num) * $query->offset($query->newExpr()->add(['1 + 1'])); // OFFSET (1 + 1) * ``` * - * @param int|ExpressionInterface $num number of records to be skipped + * @param int|\Cake\Database\ExpressionInterface $num number of records to be skipped * @return $this */ public function offset($num) @@ -1243,7 +1243,7 @@ public function offset($num) * * `SELECT id, name FROM things d UNION SELECT id, title FROM articles a` * - * @param string|Query $query full SQL query to be used in UNION operator + * @param string|\Cake\Database\Query $query full SQL query to be used in UNION operator * @param bool $overwrite whether to reset the list of queries to be operated or not * @return $this */ @@ -1277,7 +1277,7 @@ public function union($query, $overwrite = false) * * `SELECT id, name FROM things d UNION ALL SELECT id, title FROM articles a` * - * @param string|Query $query full SQL query to be used in UNION operator + * @param string|\Cake\Database\Query $query full SQL query to be used in UNION operator * @param bool $overwrite whether to reset the list of queries to be operated or not * @return $this */ @@ -1342,7 +1342,7 @@ public function into($table) * or by providing an array of value sets. Additionally $data can be a Query * instance to insert data from another SELECT statement. * - * @param array|Query $data The data to insert. + * @param array|\Cake\Database\Query $data The data to insert. * @return $this * @throws \Cake\Database\Exception if you try to set values before declaring columns. * Or if you try to set values on non-insert queries. @@ -1411,7 +1411,7 @@ public function update($table) * }); * ``` * - * @param string|array|callable|QueryExpression $key The column name or array of keys + * @param string|array|callable|\Cake\Database\Expression\QueryExpression $key The column name or array of keys * + values to set. This can also be a QueryExpression containing a SQL fragment. * It can also be a callable, that is required to return an expression object. * @param mixed $value The value to update $key to. Can be null if $key is an @@ -1786,7 +1786,7 @@ protected function _decorateStatement($statement) * Helper function used to build conditions by composing QueryExpression objects. * * @param string $part Name of the query part to append the new part to - * @param string|null|array|ExpressionInterface|callback $append Expression or builder function to append. + * @param string|null|array|\Cake\Database\ExpressionInterface|callback $append Expression or builder function to append. * @param string $conjunction type of conjunction to be used to operate part * @param array $types associative array of type names used to bind values to query * @return void diff --git a/src/Database/SqliteCompiler.php b/src/Database/SqliteCompiler.php index 590016a0362..3c6f7207f4b 100644 --- a/src/Database/SqliteCompiler.php +++ b/src/Database/SqliteCompiler.php @@ -22,6 +22,7 @@ */ class SqliteCompiler extends QueryCompiler { + /** * SQLite does not support ORDER BY in UNION queries. * diff --git a/src/Database/SqlserverCompiler.php b/src/Database/SqlserverCompiler.php index 6081faa383e..db3d18c3a4d 100644 --- a/src/Database/SqlserverCompiler.php +++ b/src/Database/SqlserverCompiler.php @@ -22,6 +22,7 @@ */ class SqlserverCompiler extends QueryCompiler { + /** * SQLserver does not support ORDER BY in UNION queries. * diff --git a/src/Database/Type.php b/src/Database/Type.php index ab07b5d41d5..2ee6a80e46f 100644 --- a/src/Database/Type.php +++ b/src/Database/Type.php @@ -92,7 +92,7 @@ public function __construct($name = null) * * @param string $name type identifier * @throws \InvalidArgumentException If type identifier is unknown - * @return Type + * @return \Cake\Database\Type */ public static function build($name) { @@ -105,7 +105,7 @@ public static function build($name) if (is_string(static::$_types[$name])) { return static::$_builtTypes[$name] = new static::$_types[$name]($name); } - + return static::$_builtTypes[$name] = static::$_types[$name]; } diff --git a/src/Database/Type/DateType.php b/src/Database/Type/DateType.php index daf5d525249..14c4d73168f 100644 --- a/src/Database/Type/DateType.php +++ b/src/Database/Type/DateType.php @@ -19,6 +19,7 @@ class DateType extends DateTimeType { + /** * The class to use for representing date objects * diff --git a/src/Database/TypeMapTrait.php b/src/Database/TypeMapTrait.php index 6b5b24ade7a..c87827c6e5a 100644 --- a/src/Database/TypeMapTrait.php +++ b/src/Database/TypeMapTrait.php @@ -29,8 +29,8 @@ trait TypeMapTrait * Creates a new TypeMap if $typeMap is an array, otherwise returns the existing type map * or exchanges it for the given one. * - * @param array|TypeMap $typeMap Creates a TypeMap if array, otherwise sets the given TypeMap - * @return $this|TypeMap + * @param array|\Cake\Database\TypeMap $typeMap Creates a TypeMap if array, otherwise sets the given TypeMap + * @return $this|\Cake\Database\TypeMap */ public function typeMap($typeMap = null) { diff --git a/src/Datasource/QueryCacher.php b/src/Datasource/QueryCacher.php index ccb883b98a5..a784f573d1e 100644 --- a/src/Datasource/QueryCacher.php +++ b/src/Datasource/QueryCacher.php @@ -33,7 +33,7 @@ class QueryCacher * Constructor. * * @param string|\Closure $key The key or function to generate a key. - * @param string|CacheEngine $config The cache config name or cache engine instance. + * @param string|\Cake\Cache\CacheEngine $config The cache config name or cache engine instance. * @throws \RuntimeException */ public function __construct($key, $config) diff --git a/src/Datasource/RulesAwareTrait.php b/src/Datasource/RulesAwareTrait.php index 172e655f038..7164a756e3e 100644 --- a/src/Datasource/RulesAwareTrait.php +++ b/src/Datasource/RulesAwareTrait.php @@ -29,6 +29,7 @@ */ trait RulesAwareTrait { + /** * The domain rules to be applied to entities saved by this table * diff --git a/src/Error/BaseErrorHandler.php b/src/Error/BaseErrorHandler.php index 1b24542ebaf..4779103066c 100644 --- a/src/Error/BaseErrorHandler.php +++ b/src/Error/BaseErrorHandler.php @@ -153,7 +153,7 @@ public function handleError($code, $description, $file = null, $line = null, $co * then, it wraps the passed object inside another Exception object * for backwards compatibility purposes. * - * @param Exception|Error $exception The exception to handle + * @param \Exception|\Error $exception The exception to handle * @return void */ public function wrapAndHandleException($exception) diff --git a/src/Error/ExceptionRenderer.php b/src/Error/ExceptionRenderer.php index 4bde5b6c377..2d09dc050ec 100644 --- a/src/Error/ExceptionRenderer.php +++ b/src/Error/ExceptionRenderer.php @@ -54,7 +54,7 @@ class ExceptionRenderer /** * Controller instance. * - * @var Controller + * @var \Cake\Controller\Controller */ public $controller = null; @@ -84,7 +84,7 @@ class ExceptionRenderer * If the error is a Cake\Core\Exception\Exception it will be converted to either a 400 or a 500 * code error depending on the code used to construct the error. * - * @param Exception $exception Exception. + * @param \Exception $exception Exception. */ public function __construct(Exception $exception) { @@ -198,7 +198,7 @@ public function render() * Render a custom error method/template. * * @param string $method The method name to invoke. - * @param Exception $exception The exception to render. + * @param \Exception $exception The exception to render. * @return \Cake\Network\Response The response to send. */ protected function _customMethod($method, $exception) @@ -214,7 +214,7 @@ protected function _customMethod($method, $exception) /** * Get method name * - * @param Exception $exception Exception instance. + * @param \Exception $exception Exception instance. * @return string */ protected function _method(Exception $exception) @@ -233,7 +233,7 @@ protected function _method(Exception $exception) /** * Get error message. * - * @param Exception $exception Exception. + * @param \Exception $exception Exception. * @param int $code Error code. * @return string Error message */ diff --git a/src/Filesystem/File.php b/src/Filesystem/File.php index cdd936ee0a8..70c8f6e8f18 100644 --- a/src/Filesystem/File.php +++ b/src/Filesystem/File.php @@ -26,7 +26,7 @@ class File /** * Folder object of the file * - * @var Folder + * @var \Cake\Filesystem\Folder * @link http://book.cakephp.org/3.0/en/core-libraries/file-folder.html */ public $Folder = null; diff --git a/src/I18n/DateFormatTrait.php b/src/I18n/DateFormatTrait.php index d95e004545d..20d3751bf8e 100644 --- a/src/I18n/DateFormatTrait.php +++ b/src/I18n/DateFormatTrait.php @@ -24,6 +24,7 @@ */ trait DateFormatTrait { + /** * The default locale to be used for displaying formatted date strings. * diff --git a/src/Log/Log.php b/src/Log/Log.php index 6132dc8e6b0..9355d14dfb9 100644 --- a/src/Log/Log.php +++ b/src/Log/Log.php @@ -129,7 +129,7 @@ class Log /** * LogEngineRegistry class * - * @var LogEngineRegistry + * @var \Cake\Log\LogEngineRegistry */ protected static $_registry; diff --git a/src/Mailer/Email.php b/src/Mailer/Email.php index 18e85ebd8ad..182c9841cb9 100644 --- a/src/Mailer/Email.php +++ b/src/Mailer/Email.php @@ -953,7 +953,7 @@ public function emailFormat($format = null) * When setting the transport you can either use the name * of a configured transport or supply a constructed transport. * - * @param string|AbstractTransport|null $name Either the name of a configured + * @param string|\Cake\Mailer\AbstractTransport|null $name Either the name of a configured * transport, or a transport instance. * @return \Cake\Mailer\AbstractTransport|$this * @throws \LogicException When the chosen transport lacks a send method. @@ -1199,7 +1199,7 @@ public function message($type = null) * * @param string|array $key The configuration name to read/write. Or * an array of multiple transports to set. - * @param array|AbstractTransport|null $config Either an array of configuration + * @param array|\Cake\Mailer\AbstractTransport|null $config Either an array of configuration * data, or a transport instance. * @return array|null Either null when setting or an array of data when reading. * @throws \BadMethodCallException When modifying an existing configuration. diff --git a/src/Network/CorsBuilder.php b/src/Network/CorsBuilder.php index 3a1ad5dda5f..bc7e4a32ba0 100644 --- a/src/Network/CorsBuilder.php +++ b/src/Network/CorsBuilder.php @@ -30,6 +30,7 @@ */ class CorsBuilder { + /** * The response object this builder is attached to. * diff --git a/src/Network/Response.php b/src/Network/Response.php index 76025e24e1b..78222ace1e3 100644 --- a/src/Network/Response.php +++ b/src/Network/Response.php @@ -347,7 +347,7 @@ class Response /** * File object for file to be read out as response * - * @var File + * @var \Cake\Filesystem\File */ protected $_file = null; diff --git a/src/Network/Session.php b/src/Network/Session.php index 794f4210f3f..ada7f0da9a3 100644 --- a/src/Network/Session.php +++ b/src/Network/Session.php @@ -39,7 +39,7 @@ class Session /** * The Session handler instance used as an engine for persisting the session data. * - * @var SessionHandlerInterface + * @var \SessionHandlerInterface */ protected $_engine; diff --git a/src/ORM/Association.php b/src/ORM/Association.php index 6ce405b81c9..6557906954a 100644 --- a/src/ORM/Association.php +++ b/src/ORM/Association.php @@ -504,7 +504,7 @@ protected function _options(array $options) * - negateMatch: Will append a condition to the passed query for excluding matches. * with this association. * - * @param Query $query the query to be altered to include the target table data + * @param \Cake\ORM\Query $query the query to be altered to include the target table data * @param array $options Any extra options or overrides to be taken in account * @return void * @throws \RuntimeException if the query builder passed does not return a query diff --git a/src/ORM/Association/BelongsToMany.php b/src/ORM/Association/BelongsToMany.php index cb5e2cacd89..a59127abe56 100644 --- a/src/ORM/Association/BelongsToMany.php +++ b/src/ORM/Association/BelongsToMany.php @@ -321,7 +321,7 @@ protected function _generateJunctionAssociations($junction, $source, $target) * - fields: a list of fields in the target table to include in the result * - type: The type of join to be used (e.g. INNER) * - * @param Query $query the query to be altered to include the target table data + * @param \Cake\ORM\Query $query the query to be altered to include the target table data * @param array $options Any extra options or overrides to be taken in account * @return void */ diff --git a/src/ORM/AssociationCollection.php b/src/ORM/AssociationCollection.php index e57a7bb2ceb..41bad45a753 100644 --- a/src/ORM/AssociationCollection.php +++ b/src/ORM/AssociationCollection.php @@ -298,7 +298,7 @@ public function normalizeKeys($keys) /** * Allow looping through the associations * - * @return ArrayIterator + * @return \ArrayIterator */ public function getIterator() { diff --git a/src/ORM/BehaviorRegistry.php b/src/ORM/BehaviorRegistry.php index 086d1ab5d79..ebe5c7a4e87 100644 --- a/src/ORM/BehaviorRegistry.php +++ b/src/ORM/BehaviorRegistry.php @@ -122,7 +122,7 @@ protected function _throwMissingClassError($class, $plugin) * @param string $class The classname that is missing. * @param string $alias The alias of the object. * @param array $config An array of config to use for the behavior. - * @return Behavior The constructed behavior class. + * @return \Cake\ORM\Behavior The constructed behavior class. */ protected function _create($class, $alias, $config) { diff --git a/src/ORM/EagerLoader.php b/src/ORM/EagerLoader.php index 356a2e13dcd..2ae80dc0fee 100644 --- a/src/ORM/EagerLoader.php +++ b/src/ORM/EagerLoader.php @@ -551,7 +551,7 @@ protected function _resolveJoins($associations, $matching = []) * @param \Cake\ORM\Query $query The query for which to eager load external * associations * @param \Cake\Database\StatementInterface $statement The statement created after executing the $query - * @return CallbackStatement statement modified statement with extra loaders + * @return \Cake\Database\Statement\CallbackStatement statement modified statement with extra loaders */ public function loadExternal($query, $statement) { diff --git a/src/ORM/LazyEagerLoader.php b/src/ORM/LazyEagerLoader.php index 74d07891a6f..a6de5d1f611 100644 --- a/src/ORM/LazyEagerLoader.php +++ b/src/ORM/LazyEagerLoader.php @@ -93,7 +93,6 @@ protected function _getQuery($objects, $contain, $source) }) ->contain($contain); - foreach ($query->eagerLoader()->attachableAssociations($source) as $loadable) { $config = $loadable->config(); $config['includeFields'] = true; diff --git a/src/ORM/Locator/TableLocator.php b/src/ORM/Locator/TableLocator.php index 9d09e89bf0f..0fe2122992f 100644 --- a/src/ORM/Locator/TableLocator.php +++ b/src/ORM/Locator/TableLocator.php @@ -69,7 +69,7 @@ class TableLocator implements LocatorInterface * @param string|null $alias Name of the alias * @param array|null $options list of options for the alias * @return array The config data. - * @throws RuntimeException When you attempt to configure an existing table instance. + * @throws \RuntimeException When you attempt to configure an existing table instance. */ public function config($alias = null, $options = null) { diff --git a/src/ORM/Query.php b/src/ORM/Query.php index de22ba4b80a..c1f3c9ee4ff 100644 --- a/src/ORM/Query.php +++ b/src/ORM/Query.php @@ -177,7 +177,7 @@ public function __construct($connection, $table) * all the fields in the schema of the table or the association will be added to * the select clause. * - * @param array|ExpressionInterface|string|\Cake\ORM\Table|\Cake\ORM\Association $fields fields + * @param array|\Cake\Database\ExpressionInterface|string|\Cake\ORM\Table|\Cake\ORM\Association $fields fields * to be added to the list. * @param bool $overwrite whether to reset fields with passed list or not */ diff --git a/src/ORM/ResultSet.php b/src/ORM/ResultSet.php index a3192c32378..c806cc4828e 100644 --- a/src/ORM/ResultSet.php +++ b/src/ORM/ResultSet.php @@ -37,7 +37,7 @@ class ResultSet implements ResultSetInterface /** * Original query from where results were generated * - * @var Query + * @var \Cake\ORM\Query * @deprecated 3.1.6 Due to a memory leak, this property cannot be used anymore */ protected $_query; diff --git a/src/Shell/Helper/ProgressHelper.php b/src/Shell/Helper/ProgressHelper.php index 6866fc923b8..9397d7bc6f7 100644 --- a/src/Shell/Helper/ProgressHelper.php +++ b/src/Shell/Helper/ProgressHelper.php @@ -22,6 +22,7 @@ */ class ProgressHelper extends Helper { + /** * The current progress. * diff --git a/src/Shell/Helper/TableHelper.php b/src/Shell/Helper/TableHelper.php index ede36b35c51..03bb90007a7 100644 --- a/src/Shell/Helper/TableHelper.php +++ b/src/Shell/Helper/TableHelper.php @@ -21,6 +21,7 @@ */ class TableHelper extends Helper { + /** * Default config for this helper. * diff --git a/src/Shell/PluginShell.php b/src/Shell/PluginShell.php index 508e7b9895b..889ce409e3d 100644 --- a/src/Shell/PluginShell.php +++ b/src/Shell/PluginShell.php @@ -23,6 +23,7 @@ */ class PluginShell extends Shell { + /** * Tasks to load * diff --git a/src/Shell/Task/LoadTask.php b/src/Shell/Task/LoadTask.php index 778b9855e54..7608527fe10 100644 --- a/src/Shell/Task/LoadTask.php +++ b/src/Shell/Task/LoadTask.php @@ -23,6 +23,7 @@ */ class LoadTask extends Shell { + /** * Path to the bootstrap file. * diff --git a/src/Shell/Task/UnloadTask.php b/src/Shell/Task/UnloadTask.php index a0a06c540ac..6b9962a04cf 100644 --- a/src/Shell/Task/UnloadTask.php +++ b/src/Shell/Task/UnloadTask.php @@ -23,6 +23,7 @@ */ class UnloadTask extends Shell { + /** * Path to the bootstrap file. * diff --git a/src/TestSuite/Fixture/FixtureInjector.php b/src/TestSuite/Fixture/FixtureInjector.php index e3992ced5a7..e8e7143217d 100644 --- a/src/TestSuite/Fixture/FixtureInjector.php +++ b/src/TestSuite/Fixture/FixtureInjector.php @@ -89,7 +89,7 @@ public function endTestSuite(PHPUnit_Framework_TestSuite $suite) * Not Implemented * * @param \PHPUnit_Framework_Test $test The test to add errors from. - * @param Exception $e The exception + * @param \Exception $e The exception * @param float $time current time * @return void */ diff --git a/src/TestSuite/Stub/ConsoleOutput.php b/src/TestSuite/Stub/ConsoleOutput.php index 74c999a1937..df3ec08943d 100644 --- a/src/TestSuite/Stub/ConsoleOutput.php +++ b/src/TestSuite/Stub/ConsoleOutput.php @@ -31,6 +31,7 @@ */ class ConsoleOutput extends ConsoleOutputBase { + /** * Buffered messages. * diff --git a/src/Utility/CookieCryptTrait.php b/src/Utility/CookieCryptTrait.php index 09fb011e27c..4d067affa13 100644 --- a/src/Utility/CookieCryptTrait.php +++ b/src/Utility/CookieCryptTrait.php @@ -25,6 +25,7 @@ */ trait CookieCryptTrait { + /** * Valid cipher names for encrypted cookies. * @@ -76,7 +77,7 @@ protected function _encrypt($value, $encrypt, $key = null) * * @param string $encrypt The cipher name. * @return void - * @throws RuntimeException When an invalid cipher is provided. + * @throws \RuntimeException When an invalid cipher is provided. */ protected function _checkCipher($encrypt) { diff --git a/src/Utility/Security.php b/src/Utility/Security.php index 772a4e037dc..d052fd03198 100644 --- a/src/Utility/Security.php +++ b/src/Utility/Security.php @@ -196,7 +196,7 @@ protected static function _checkKey($key, $method) * @param string $key The 256 bit/32 byte key to use as a cipher key. * @param string|null $hmacSalt The salt to use for the HMAC process. Leave null to use Security.salt. * @return string Decrypted data. Any trailing null bytes will be removed. - * @throws InvalidArgumentException On invalid data or key. + * @throws \InvalidArgumentException On invalid data or key. */ public static function decrypt($cipher, $key, $hmacSalt = null) { diff --git a/src/Validation/RulesProvider.php b/src/Validation/RulesProvider.php index 4ef3bdda512..77683cc5bb5 100644 --- a/src/Validation/RulesProvider.php +++ b/src/Validation/RulesProvider.php @@ -22,6 +22,7 @@ */ class RulesProvider { + /** * The class/object to proxy. * diff --git a/src/View/Helper.php b/src/View/Helper.php index 94481624104..0cdd419fd9e 100644 --- a/src/View/Helper.php +++ b/src/View/Helper.php @@ -124,7 +124,7 @@ public function __construct(View $View, array $config = []) if (!empty($this->helpers)) { $this->_helperMap = $View->helpers()->normalizeArray($this->helpers); } - + $this->initialize($config); } diff --git a/src/View/Helper/TextHelper.php b/src/View/Helper/TextHelper.php index c8059aed7c1..cf3f0b71d97 100644 --- a/src/View/Helper/TextHelper.php +++ b/src/View/Helper/TextHelper.php @@ -117,7 +117,6 @@ public function autoLinkUrls($text, array $options = []) $this->_placeholders = []; $options += ['escape' => true]; - $pattern = '#(?)((?:https?|ftp|nntp)://[\p{L}0-9.\-_:]+' . '(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+' . '(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:\'".,<>?«»“”‘’]))#i'; diff --git a/src/View/HelperRegistry.php b/src/View/HelperRegistry.php index 229c6c24561..a3e201b90ea 100644 --- a/src/View/HelperRegistry.php +++ b/src/View/HelperRegistry.php @@ -31,7 +31,7 @@ class HelperRegistry extends ObjectRegistry implements EventDispatcherInterface /** * View object to use when making helpers. * - * @var View + * @var \Cake\View\View */ protected $_View; diff --git a/src/View/SerializedView.php b/src/View/SerializedView.php index 073443e19bd..5707a85c702 100644 --- a/src/View/SerializedView.php +++ b/src/View/SerializedView.php @@ -23,6 +23,7 @@ */ class SerializedView extends View { + /** * Response type. * diff --git a/src/View/View.php b/src/View/View.php index 4500f19ff1d..aebf996222d 100644 --- a/src/View/View.php +++ b/src/View/View.php @@ -1013,7 +1013,7 @@ public function helpers() * * @param string $name Name of the helper to load. * @param array $config Settings for the helper - * @return Helper a constructed helper object. + * @return \Cake\View\Helper a constructed helper object. * @see HelperRegistry::load() */ public function loadHelper($name, array $config = []) diff --git a/src/View/ViewBuilder.php b/src/View/ViewBuilder.php index af7ac51deda..8888a05e7be 100644 --- a/src/View/ViewBuilder.php +++ b/src/View/ViewBuilder.php @@ -30,6 +30,7 @@ */ class ViewBuilder implements JsonSerializable, Serializable { + /** * The subdirectory to the template. * diff --git a/src/View/Widget/WidgetRegistry.php b/src/View/Widget/WidgetRegistry.php index 955d5bac10d..eac3556bcce 100644 --- a/src/View/Widget/WidgetRegistry.php +++ b/src/View/Widget/WidgetRegistry.php @@ -135,7 +135,7 @@ public function add(array $widgets) * the `_default` widget is undefined. * * @param string $name The widget name to get. - * @return WidgetInterface widget interface class. + * @return \Cake\View\Widget\WidgetInterface widget interface class. * @throws \RuntimeException when widget is undefined. */ public function get($name) @@ -164,7 +164,7 @@ public function clear() * Resolves a widget spec into an instance. * * @param mixed $widget The widget to get - * @return WidgetInterface + * @return \Cake\View\Widget\WidgetInterface * @throws \RuntimeException when class cannot be loaded or does not * implement WidgetInterface. */