@@ -14,7 +14,6 @@ |
||
| 14 | 14 | namespace Cake\TestSuite\Fixture; |
| 15 | 15 | |
| 16 | 16 | use Cake\Core\Exception\Exception as CakeException; |
| 17 | -use Cake\Database\Driver\Sqlite; |
|
| 18 | 17 | use Cake\Database\Schema\Table; |
| 19 | 18 | use Cake\Datasource\ConnectionInterface; |
| 20 | 19 | use Cake\Datasource\ConnectionManager; |
@@ -350,7 +350,7 @@ discard block |
||
| 350 | 350 | * - `ym` 2006/12 or 06/12 separators can be a space, period, dash, forward slash |
| 351 | 351 | * - `y` 2006 just the year without any separators |
| 352 | 352 | * |
| 353 | - * @param string|\DateTime $check a valid date string/object |
|
| 353 | + * @param string $check a valid date string/object |
|
| 354 | 354 | * @param string|array $format Use a string or an array of the keys above. |
| 355 | 355 | * Arrays should be passed as ['dmy', 'mdy', etc] |
| 356 | 356 | * @param string|null $regex If a custom regular expression is used this is the only validation that will occur. |
@@ -445,7 +445,7 @@ discard block |
||
| 445 | 445 | * Validates time as 24hr (HH:MM) or am/pm ([H]H:MM[a|p]m) |
| 446 | 446 | * Does not allow/validate seconds. |
| 447 | 447 | * |
| 448 | - * @param string|\DateTime $check a valid time string/object |
|
| 448 | + * @param string $check a valid time string/object |
|
| 449 | 449 | * @return bool Success |
| 450 | 450 | */ |
| 451 | 451 | public static function time($check) |
@@ -846,7 +846,7 @@ discard block |
||
| 846 | 846 | /** |
| 847 | 847 | * Luhn algorithm |
| 848 | 848 | * |
| 849 | - * @param string|array $check Value to check. |
|
| 849 | + * @param string $check Value to check. |
|
| 850 | 850 | * @param bool $deep If true performs deep check. |
| 851 | 851 | * @return bool Success |
| 852 | 852 | * @see http://en.wikipedia.org/wiki/Luhn_algorithm |
@@ -507,7 +507,7 @@ discard block |
||
| 507 | 507 | * |
| 508 | 508 | * @param string|array $url String or array of javascript files to include |
| 509 | 509 | * @param array $options Array of options, and html attributes see above. |
| 510 | - * @return mixed String of `<script />` tags or null if block is specified in options |
|
| 510 | + * @return string|null String of `<script />` tags or null if block is specified in options |
|
| 511 | 511 | * or if $once is true and the file has been included before. |
| 512 | 512 | * @link http://book.cakephp.org/3.0/en/views/helpers/html.html#linking-to-javascript-files |
| 513 | 513 | */ |
@@ -562,7 +562,7 @@ discard block |
||
| 562 | 562 | * @param string $script The script to wrap |
| 563 | 563 | * @param array $options The options to use. Options not listed above will be |
| 564 | 564 | * treated as HTML attributes. |
| 565 | - * @return mixed string or null depending on the value of `$options['block']` |
|
| 565 | + * @return null|string string or null depending on the value of `$options['block']` |
|
| 566 | 566 | * @link http://book.cakephp.org/3.0/en/views/helpers/html.html#creating-inline-javascript-blocks |
| 567 | 567 | */ |
| 568 | 568 | public function scriptBlock($script, array $options = []) |
@@ -614,7 +614,7 @@ discard block |
||
| 614 | 614 | * Generates a script tag inline or appends to specified view block depending on |
| 615 | 615 | * the settings used when the scriptBlock was started |
| 616 | 616 | * |
| 617 | - * @return mixed depending on the settings of scriptStart() either a script tag or null |
|
| 617 | + * @return string|null depending on the settings of scriptStart() either a script tag or null |
|
| 618 | 618 | * @link http://book.cakephp.org/3.0/en/views/helpers/html.html#creating-javascript-blocks |
| 619 | 619 | */ |
| 620 | 620 | public function scriptEnd() |
@@ -597,7 +597,7 @@ discard block |
||
| 597 | 597 | * |
| 598 | 598 | * @param string $content Content to render in a template, wrapped by the surrounding layout. |
| 599 | 599 | * @param string|null $layout Layout name |
| 600 | - * @return mixed Rendered output, or false on error |
|
| 600 | + * @return string Rendered output, or false on error |
|
| 601 | 601 | * @throws \Cake\Core\Exception\Exception if there is an error in the view. |
| 602 | 602 | * @triggers View.beforeLayout $this, [$layoutFileName] |
| 603 | 603 | * @triggers View.afterLayout $this, [$layoutFileName] |
@@ -699,7 +699,7 @@ discard block |
||
| 699 | 699 | * Appending to a new block will create the block. |
| 700 | 700 | * |
| 701 | 701 | * @param string $name Name of the block |
| 702 | - * @param mixed $value The content for the block. |
|
| 702 | + * @param string|null $value The content for the block. |
|
| 703 | 703 | * @return void |
| 704 | 704 | * @see ViewBlock::concat() |
| 705 | 705 | */ |
@@ -1162,7 +1162,7 @@ discard block |
||
| 1162 | 1162 | * Finds an element filename, returns false on failure. |
| 1163 | 1163 | * |
| 1164 | 1164 | * @param string $name The name of the element to find. |
| 1165 | - * @return mixed Either a string to the element filename or false when one can't be found. |
|
| 1165 | + * @return string|false Either a string to the element filename or false when one can't be found. |
|
| 1166 | 1166 | */ |
| 1167 | 1167 | protected function _getElementFileName($name) |
| 1168 | 1168 | { |
@@ -201,7 +201,7 @@ |
||
| 201 | 201 | /** |
| 202 | 202 | * The view theme to use. |
| 203 | 203 | * |
| 204 | - * @param string|null|false $theme Theme name. If null returns current theme. |
|
| 204 | + * @param string|false $theme Theme name. If null returns current theme. |
|
| 205 | 205 | * Use false to remove the current theme. |
| 206 | 206 | * @return string|$this |
| 207 | 207 | */ |
@@ -15,7 +15,6 @@ |
||
| 15 | 15 | |
| 16 | 16 | use Cake\Cache\CacheEngine; |
| 17 | 17 | use Cake\Cache\CacheRegistry; |
| 18 | -use Cake\Core\App; |
|
| 19 | 18 | use DebugKit\DebugTimer; |
| 20 | 19 | |
| 21 | 20 | /** |
@@ -15,8 +15,6 @@ |
||
| 15 | 15 | namespace Cake\View; |
| 16 | 16 | |
| 17 | 17 | use Cake\Core\Configure; |
| 18 | -use Cake\Event\EventManager; |
|
| 19 | -use Cake\Network\Request; |
|
| 20 | 18 | use Cake\Network\Response; |
| 21 | 19 | use Cake\Utility\Hash; |
| 22 | 20 | use Cake\Utility\Xml; |
@@ -77,7 +77,7 @@ |
||
| 77 | 77 | * of name => value |
| 78 | 78 | * |
| 79 | 79 | * @param string $url The URL to find cookies for. |
| 80 | - * @return array |
|
| 80 | + * @return string |
|
| 81 | 81 | */ |
| 82 | 82 | public function get($url) |
| 83 | 83 | { |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | 35 | * @param \Symfony\Component\Console\Output\OutputInterface $output |
| 36 | - * @return mixed |
|
| 36 | + * @return OutputInterface |
|
| 37 | 37 | */ |
| 38 | 38 | public function output(OutputInterface $output = null) |
| 39 | 39 | { |