@@ -365,7 +365,7 @@ |
||
| 365 | 365 | /** |
| 366 | 366 | * Get md5 Checksum of file with previous check of Filesize |
| 367 | 367 | * |
| 368 | - * @param int|bool $maxsize in MB or true to force |
|
| 368 | + * @param integer $maxsize in MB or true to force |
|
| 369 | 369 | * @return string|false md5 Checksum {@link http://php.net/md5_file See md5_file()}, or false in case of an error |
| 370 | 370 | */ |
| 371 | 371 | public function md5($maxsize = 5) |
@@ -14,7 +14,6 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | namespace Cake\I18n; |
| 16 | 16 | |
| 17 | -use Cake\Core\Exception\Exception; |
|
| 18 | 17 | use Carbon\Carbon; |
| 19 | 18 | use DateTime; |
| 20 | 19 | use DateTimeZone; |
@@ -117,7 +117,7 @@ |
||
| 117 | 117 | * See Cake\Log\Log::$_levels for list of possible levels. |
| 118 | 118 | * @param string $message The message you want to log. |
| 119 | 119 | * @param array $context Additional information about the logged message |
| 120 | - * @return bool success of write. |
|
| 120 | + * @return integer success of write. |
|
| 121 | 121 | */ |
| 122 | 122 | public function log($level, $message, array $context = []) |
| 123 | 123 | { |
@@ -572,7 +572,7 @@ discard block |
||
| 572 | 572 | * |
| 573 | 573 | * @param string $name The method called |
| 574 | 574 | * @param array $params Array of parameters for the method call |
| 575 | - * @return mixed |
|
| 575 | + * @return boolean |
|
| 576 | 576 | * @throws \BadMethodCallException when an invalid method is called. |
| 577 | 577 | */ |
| 578 | 578 | public function __call($name, $params) |
@@ -655,7 +655,7 @@ discard block |
||
| 655 | 655 | /** |
| 656 | 656 | * Worker for the public is() function |
| 657 | 657 | * |
| 658 | - * @param string|array $type The type of request you want to check. If an array |
|
| 658 | + * @param string $type The type of request you want to check. If an array |
|
| 659 | 659 | * this method will return true if the request matches any type. |
| 660 | 660 | * @return bool Whether or not the request is the type you are checking. |
| 661 | 661 | */ |
@@ -895,7 +895,7 @@ discard block |
||
| 895 | 895 | * Read an HTTP header from the Request information. |
| 896 | 896 | * |
| 897 | 897 | * @param string $name Name of the header you want. |
| 898 | - * @return string|null Either null on no header being set or the value of the header. |
|
| 898 | + * @return string Either null on no header being set or the value of the header. |
|
| 899 | 899 | */ |
| 900 | 900 | public function header($name) |
| 901 | 901 | { |
@@ -1146,7 +1146,7 @@ discard block |
||
| 1146 | 1146 | * will be created for you. |
| 1147 | 1147 | * |
| 1148 | 1148 | * @param string|null $name Dot separated name of the value to read/write |
| 1149 | - * @return mixed|$this Either the value being read, or this so you can chain consecutive writes. |
|
| 1149 | + * @return string Either the value being read, or this so you can chain consecutive writes. |
|
| 1150 | 1150 | */ |
| 1151 | 1151 | public function data($name = null) |
| 1152 | 1152 | { |
@@ -1269,7 +1269,7 @@ discard block |
||
| 1269 | 1269 | * If the request would be GET, response header "Allow: POST, DELETE" will be set |
| 1270 | 1270 | * and a 405 error will be returned. |
| 1271 | 1271 | * |
| 1272 | - * @param string|array $methods Allowed HTTP request methods. |
|
| 1272 | + * @param string $methods Allowed HTTP request methods. |
|
| 1273 | 1273 | * @return bool true |
| 1274 | 1274 | * @throws \Cake\Network\Exception\MethodNotAllowedException |
| 1275 | 1275 | */ |
@@ -237,7 +237,7 @@ discard block |
||
| 237 | 237 | * |
| 238 | 238 | * @param string|\SessionHandlerInterface|null $class The session handler to use |
| 239 | 239 | * @param array $options the options to pass to the SessionHandler constructor |
| 240 | - * @return \SessionHandlerInterface|null |
|
| 240 | + * @return SessionHandlerInterface |
|
| 241 | 241 | * @throws \InvalidArgumentException |
| 242 | 242 | */ |
| 243 | 243 | public function engine($class = null, array $options = []) |
@@ -299,7 +299,7 @@ discard block |
||
| 299 | 299 | /** |
| 300 | 300 | * Starts the Session. |
| 301 | 301 | * |
| 302 | - * @return bool True if session was started |
|
| 302 | + * @return boolean|null True if session was started |
|
| 303 | 303 | * @throws \RuntimeException if the session was already started |
| 304 | 304 | */ |
| 305 | 305 | public function start() |
@@ -400,7 +400,7 @@ discard block |
||
| 400 | 400 | * Reads and deletes a variable from session. |
| 401 | 401 | * |
| 402 | 402 | * @param string $name The key to read and remove (or a path as sent to Hash.extract). |
| 403 | - * @return mixed The value of the session variable, null if session not available, |
|
| 403 | + * @return null|string The value of the session variable, null if session not available, |
|
| 404 | 404 | * session not started, or provided name not found in the session. |
| 405 | 405 | */ |
| 406 | 406 | public function consume($name) |
@@ -116,7 +116,7 @@ |
||
| 116 | 116 | /** |
| 117 | 117 | * Check whether or not the entity fields are nullable and null. |
| 118 | 118 | * |
| 119 | - * @param \Cake\ORM\EntityInterface $entity The entity to check. |
|
| 119 | + * @param EntityInterface $entity The entity to check. |
|
| 120 | 120 | * @param \Cake\ORM\Table $source The table to use schema from. |
| 121 | 121 | * @return bool |
| 122 | 122 | */ |
@@ -142,7 +142,7 @@ |
||
| 142 | 142 | * Modifies defaults property so all necessary keys are set |
| 143 | 143 | * and populates $this->names with the named routing elements. |
| 144 | 144 | * |
| 145 | - * @return array Returns a string regular expression of the compiled route. |
|
| 145 | + * @return string Returns a string regular expression of the compiled route. |
|
| 146 | 146 | */ |
| 147 | 147 | public function compile() |
| 148 | 148 | { |
@@ -605,7 +605,7 @@ discard block |
||
| 605 | 605 | * |
| 606 | 606 | * @param string $content Content to render in a template, wrapped by the surrounding layout. |
| 607 | 607 | * @param string|null $layout Layout name |
| 608 | - * @return mixed Rendered output, or false on error |
|
| 608 | + * @return string Rendered output, or false on error |
|
| 609 | 609 | * @throws \Cake\Core\Exception\Exception if there is an error in the view. |
| 610 | 610 | * @triggers View.beforeLayout $this, [$layoutFileName] |
| 611 | 611 | * @triggers View.afterLayout $this, [$layoutFileName] |
@@ -707,7 +707,7 @@ discard block |
||
| 707 | 707 | * Appending to a new block will create the block. |
| 708 | 708 | * |
| 709 | 709 | * @param string $name Name of the block |
| 710 | - * @param mixed $value The content for the block. |
|
| 710 | + * @param string|null $value The content for the block. |
|
| 711 | 711 | * @return void |
| 712 | 712 | * @see ViewBlock::concat() |
| 713 | 713 | */ |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | * Check if a path is part of cake core |
| 100 | 100 | * |
| 101 | 101 | * @param string $file File to check |
| 102 | - * @return bool |
|
| 102 | + * @return string |
|
| 103 | 103 | */ |
| 104 | 104 | protected function _isCoreFile($file) |
| 105 | 105 | { |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | * Check if a path is from APP but not a plugin |
| 111 | 111 | * |
| 112 | 112 | * @param string $file File to check |
| 113 | - * @return bool |
|
| 113 | + * @return string |
|
| 114 | 114 | */ |
| 115 | 115 | protected function _isAppFile($file) |
| 116 | 116 | { |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | * Check if a path is from a plugin |
| 122 | 122 | * |
| 123 | 123 | * @param string $file File to check |
| 124 | - * @return bool |
|
| 124 | + * @return string |
|
| 125 | 125 | */ |
| 126 | 126 | protected function _isPluginFile($file) |
| 127 | 127 | { |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | * - app for app files |
| 142 | 142 | * - core for core files |
| 143 | 143 | * - PluginName for the name of a plugin |
| 144 | - * @return bool |
|
| 144 | + * @return string |
|
| 145 | 145 | */ |
| 146 | 146 | protected function _niceFileName($file, $type) |
| 147 | 147 | { |
@@ -188,7 +188,7 @@ discard block |
||
| 188 | 188 | /** |
| 189 | 189 | * Get the number of files included in this request. |
| 190 | 190 | * |
| 191 | - * @return string |
|
| 191 | + * @return integer |
|
| 192 | 192 | */ |
| 193 | 193 | public function summary() |
| 194 | 194 | { |