Browse Source

Cleanup - Undefined classes

ndm2 11 years ago
parent
commit
72770e576e

+ 1 - 1
src/Cache/Engine/MemcachedEngine.php

@@ -303,7 +303,7 @@ class MemcachedEngine extends CacheEngine {
  * Read many keys from the cache at once
  *
  * @param array $keys An array of identifiers for the data
- * @return An array containing, for each of the given $keys, the cached data or
+ * @return array An array containing, for each of the given $keys, the cached data or
  *   false if cached data could not be retrieved.
  */
 	public function readMany($keys) {

+ 0 - 1
src/Controller/Controller.php

@@ -15,7 +15,6 @@
 namespace Cake\Controller;
 
 use Cake\Controller\Exception\MissingActionException;
-use Cake\Controller\Exception\PrivateActionException;
 use Cake\Event\Event;
 use Cake\Event\EventListenerInterface;
 use Cake\Event\EventManagerTrait;

+ 2 - 2
src/Database/Query.php

@@ -1308,7 +1308,7 @@ class Query implements ExpressionInterface, IteratorAggregate {
  *  ->epilog('RETURNING id');
  * }}}
  *
- * @param string|\Cake\Database\QueryExpression $expression The expression to be appended
+ * @param string|\Cake\Database\Expression\QueryExpression $expression The expression to be appended
  * @return $this
  */
 	public function epilog($expression = null) {
@@ -1342,7 +1342,7 @@ class Query implements ExpressionInterface, IteratorAggregate {
  * }}}
  *
  * @param mixed $rawExpression A string, array or anything you want wrapped in an expression object
- * @return \Cake\Database\QueryExpression
+ * @return \Cake\Database\Expression\QueryExpression
  */
 	public function newExpr($rawExpression = null) {
 		$expression = new QueryExpression([], $this->typeMap());

+ 2 - 2
src/Database/TypeMap.php

@@ -62,7 +62,7 @@ class TypeMap {
  *
  * @param array $defaults associative array where keys are field names and values
  * are the correspondent type.
- * @return this|array
+ * @return $this|array
  */
 	public function defaults(array $defaults = null) {
 		if ($defaults === null) {
@@ -85,7 +85,7 @@ class TypeMap {
  *
  * @param array $types associative array where keys are field names and values
  * are the correspondent type.
- * @return this|array
+ * @return $this|array
  */
 	public function types(array $types = null) {
 		if ($types === null) {

+ 0 - 1
src/Shell/BakeShell.php

@@ -20,7 +20,6 @@ use Cake\Core\Configure;
 use Cake\Core\ConventionsTrait;
 use Cake\Core\Plugin;
 use Cake\Datasource\ConnectionManager;
-use Cake\Model\Model;
 use Cake\Utility\Inflector;
 
 /**

+ 1 - 1
src/TestSuite/ControllerTestCase.php

@@ -199,7 +199,7 @@ abstract class ControllerTestCase extends TestCase {
  *
  * @param string $name The name of the function
  * @param array $arguments Array of arguments
- * @return the return of _testAction
+ * @return mixed the return of _testAction
  * @throws \BadMethodCallException when you call methods that don't exist.
  */
 	public function __call($name, $arguments) {

+ 1 - 1
src/TestSuite/Fixture/FixtureManager.php

@@ -309,7 +309,7 @@ class FixtureManager {
  * Creates a single fixture table and loads data into it.
  *
  * @param string $name of the fixture
- * @param DataSource $db DataSource instance or leave null to get DataSource from the fixture
+ * @param \Cake\Database\Connection $db Connection instance or leave null to get a Connection from the fixture
  * @param bool $dropTables Whether or not tables should be dropped and re-created.
  * @return void
  * @throws \UnexpectedValueException if $name is not a previously loaded class

+ 0 - 1
src/View/View.php

@@ -45,7 +45,6 @@ use LogicException;
  * template file `plugins/SuperHot/Template/Posts/index.ctp`. If a theme template
  * is not found for the current action the default app template file is used.
  *
- * @property      \Cake\View\Helper\CacheHelper $Cache
  * @property      \Cake\View\Helper\FormHelper $Form
  * @property      \Cake\View\Helper\HtmlHelper $Html
  * @property      \Cake\View\Helper\NumberHelper $Number

+ 2 - 2
src/View/Widget/DateTimeWidget.php

@@ -30,7 +30,7 @@ class DateTimeWidget implements WidgetInterface {
 /**
  * Select box widget.
  *
- * @var \Cake\View\Widget\SelectBox
+ * @var \Cake\View\Widget\SelectBoxWidget
  */
 	protected $_select;
 
@@ -177,7 +177,7 @@ class DateTimeWidget implements WidgetInterface {
 /**
  * Deconstructs the passed date value into all time units
  *
- * @param string|int|array|DateTime $value Value to deconstruct.
+ * @param string|int|array|\DateTime $value Value to deconstruct.
  * @param array $options Options for conversion.
  * @return array
  */

+ 2 - 2
src/View/Widget/MultiCheckboxWidget.php

@@ -36,7 +36,7 @@ class MultiCheckboxWidget implements WidgetInterface {
 /**
  * Label widget instance.
  *
- * @var \Cake\View\Widget\Label
+ * @var \Cake\View\Widget\LabelWidget
  */
 	protected $_label;
 
@@ -52,7 +52,7 @@ class MultiCheckboxWidget implements WidgetInterface {
  *   variables.
  *
  * @param \Cake\View\StringTemplate $templates Templates list.
- * @param \Cake\View\Widget\Label $label Label widget instance.
+ * @param \Cake\View\Widget\LabelWidget $label Label widget instance.
  */
 	public function __construct($templates, $label) {
 		$this->_templates = $templates;

+ 2 - 2
src/View/Widget/RadioWidget.php

@@ -39,7 +39,7 @@ class RadioWidget implements WidgetInterface {
 /**
  * Label instance.
  *
- * @var \Cake\View\Widget\Label
+ * @var \Cake\View\Widget\LabelWidget
  */
 	protected $_label;
 
@@ -55,7 +55,7 @@ class RadioWidget implements WidgetInterface {
  *   variables.
  *
  * @param \Cake\View\StringTemplate $templates Templates list.
- * @param \Cake\View\Widget\Label $label Label widget instance.
+ * @param \Cake\View\Widget\LabelWidget $label Label widget instance.
  */
 	public function __construct($templates, $label) {
 		$this->_templates = $templates;