@@ -166,9 +166,9 @@ discard block |
||
| 166 | 166 | * Array_key_exists with a dot-notated key from an array. |
| 167 | 167 | * |
| 168 | 168 | * @param array $array The search array |
| 169 | - * @param mixed $key The dot-notated key or array of keys |
|
| 169 | + * @param string $key The dot-notated key or array of keys |
|
| 170 | 170 | * |
| 171 | - * @return mixed |
|
| 171 | + * @return boolean |
|
| 172 | 172 | * @since 2.0 |
| 173 | 173 | */ |
| 174 | 174 | public static function has($array, $key) |
@@ -190,7 +190,7 @@ discard block |
||
| 190 | 190 | * Unsets dot-notated key from an array |
| 191 | 191 | * |
| 192 | 192 | * @param array $array The search array |
| 193 | - * @param mixed $key The dot-notated key or array of keys |
|
| 193 | + * @param string $key The dot-notated key or array of keys |
|
| 194 | 194 | * |
| 195 | 195 | * @return mixed |
| 196 | 196 | * @since 2.0 |
@@ -1037,7 +1037,7 @@ discard block |
||
| 1037 | 1037 | * function will return a delimiter-notated key using $delimiter. |
| 1038 | 1038 | * |
| 1039 | 1039 | * @param array $array The search array |
| 1040 | - * @param mixed $value The searched value |
|
| 1040 | + * @param string $value The searched value |
|
| 1041 | 1041 | * @param string $default The default value |
| 1042 | 1042 | * @param bool $recursive Whether to get keys recursive |
| 1043 | 1043 | * @param string $delimiter The delimiter, when $recursive is true |
@@ -63,7 +63,6 @@ discard block |
||
| 63 | 63 | * Constructor |
| 64 | 64 | * |
| 65 | 65 | * @param array $data container data |
| 66 | - * @param boolean $readOnly wether the container is read-only |
|
| 67 | 66 | * @since 2.0.0 |
| 68 | 67 | */ |
| 69 | 68 | public function __construct(Array $config = array(), Array $data = array(), $wrapper = null) |
@@ -425,7 +424,7 @@ discard block |
||
| 425 | 424 | /** |
| 426 | 425 | * IteratorAggregate implementation |
| 427 | 426 | * |
| 428 | - * @return IteratorAggregate iterator |
|
| 427 | + * @return ArrayIterator iterator |
|
| 429 | 428 | * @since 2.0.0 |
| 430 | 429 | */ |
| 431 | 430 | public function getIterator() |
@@ -285,7 +285,7 @@ discard block |
||
| 285 | 285 | * Get a key's value from this bag's data |
| 286 | 286 | * |
| 287 | 287 | * @param string $key |
| 288 | - * @param mixed $default |
|
| 288 | + * @param \Closure $default |
|
| 289 | 289 | * @return mixed |
| 290 | 290 | * @since 2.0.0 |
| 291 | 291 | */ |
@@ -426,7 +426,7 @@ discard block |
||
| 426 | 426 | /** |
| 427 | 427 | * IteratorAggregate implementation |
| 428 | 428 | * |
| 429 | - * @return IteratorAggregate iterator |
|
| 429 | + * @return \ArrayIterator iterator |
|
| 430 | 430 | * @since 2.0.0 |
| 431 | 431 | */ |
| 432 | 432 | public function getIterator() |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | /** |
| 62 | 62 | * Returns the warnings and errors from the last parsing operation |
| 63 | 63 | * |
| 64 | - * @return array array of warnings and errors found while parsing a date/time string. |
|
| 64 | + * @return DateTime array of warnings and errors found while parsing a date/time string. |
|
| 65 | 65 | */ |
| 66 | 66 | public static function getLastErrors() |
| 67 | 67 | { |
@@ -438,7 +438,6 @@ discard block |
||
| 438 | 438 | /** |
| 439 | 439 | * Import YAML data |
| 440 | 440 | * |
| 441 | - * @param string $string |
|
| 442 | 441 | * @return array |
| 443 | 442 | */ |
| 444 | 443 | protected function _fromYaml($data) |
@@ -514,7 +513,6 @@ discard block |
||
| 514 | 513 | * Makes json pretty the json output. |
| 515 | 514 | * Borrowed from http://www.php.net/manual/en/function.json-encode.php#80339 |
| 516 | 515 | * |
| 517 | - * @param string $json json encoded array |
|
| 518 | 516 | * @return string|false pretty json output or false when the input was not valid |
| 519 | 517 | */ |
| 520 | 518 | protected function prettyJson($data) |
@@ -160,6 +160,7 @@ discard block |
||
| 160 | 160 | * |
| 161 | 161 | * @param string the word to pluralize |
| 162 | 162 | * @param int number of instances |
| 163 | + * @param string $word |
|
| 163 | 164 | * @return string the plural version of $word |
| 164 | 165 | */ |
| 165 | 166 | public function pluralize($word, $count = 0) |
@@ -240,6 +241,7 @@ discard block |
||
| 240 | 241 | * Takes a CamelCased string and returns an underscore separated version. |
| 241 | 242 | * |
| 242 | 243 | * @param string the CamelCased word |
| 244 | + * @param string $camel_cased_word |
|
| 243 | 245 | * @return string an underscore separated version of $camel_cased_word |
| 244 | 246 | */ |
| 245 | 247 | public function underscore($camel_cased_word) |
@@ -348,6 +350,7 @@ discard block |
||
| 348 | 350 | * Takes the class name out of a modulized string. |
| 349 | 351 | * |
| 350 | 352 | * @param string the modulized class |
| 353 | + * @param string $class_name_in_module |
|
| 351 | 354 | * @return string the string without the class name |
| 352 | 355 | */ |
| 353 | 356 | public function demodulize($class_name_in_module) |
@@ -450,6 +453,7 @@ discard block |
||
| 450 | 453 | * Checks if the given word has a plural version. |
| 451 | 454 | * |
| 452 | 455 | * @param string the word to check |
| 456 | + * @param string $word |
|
| 453 | 457 | * @return bool if the word is countable |
| 454 | 458 | */ |
| 455 | 459 | public function isCountable($word) |
@@ -167,7 +167,7 @@ |
||
| 167 | 167 | * @param int the byte number to format |
| 168 | 168 | * @param int number of decimals |
| 169 | 169 | * |
| 170 | - * @return boolean|string formatted string, or false if formatting failed |
|
| 170 | + * @return string|false formatted string, or false if formatting failed |
|
| 171 | 171 | * |
| 172 | 172 | * @since 1.0.0 |
| 173 | 173 | */ |