@@ -512,7 +512,7 @@ discard block |
||
512 | 512 | * Private method to list directories and files in each directory |
513 | 513 | * |
514 | 514 | * @param string $path |
515 | - * @param $hidden |
|
515 | + * @param boolean $hidden |
|
516 | 516 | * |
517 | 517 | * @internal param $ $ = boolean $hidden |
518 | 518 | * @access private |
@@ -752,7 +752,7 @@ discard block |
||
752 | 752 | * |
753 | 753 | * @param array $options (to, from, chmod, skip) |
754 | 754 | * |
755 | - * @return boolean Success |
|
755 | + * @return string|false Success |
|
756 | 756 | * @access public |
757 | 757 | */ |
758 | 758 | public function move($options) |
@@ -341,6 +341,10 @@ |
||
341 | 341 | return $file; |
342 | 342 | } |
343 | 343 | |
344 | + /** |
|
345 | + * @param string $class |
|
346 | + * @param string $ext |
|
347 | + */ |
|
344 | 348 | private function findFileWithExtension($class, $ext) |
345 | 349 | { |
346 | 350 | // PSR-4 lookup |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | * @param string $jwt The JWT |
43 | 43 | * @param string|array|null $key The key, or map of keys. |
44 | 44 | * If the algorithm used is asymmetric, this is the public key |
45 | - * @param array $allowed_algs List of supported verification algorithms |
|
45 | + * @param string[] $allowed_algs List of supported verification algorithms |
|
46 | 46 | * Supported algorithms are 'HS256', 'HS384', 'HS512' and 'RS256' |
47 | 47 | * |
48 | 48 | * @return object The JWT's payload as a PHP object |
@@ -131,6 +131,7 @@ discard block |
||
131 | 131 | * @param string $alg The signing algorithm. |
132 | 132 | * Supported algorithms are 'HS256', 'HS384', 'HS512' and 'RS256' |
133 | 133 | * @param array $head An array with header elements to attach |
134 | + * @param string $keyId |
|
134 | 135 | * |
135 | 136 | * @return string A signed JWT |
136 | 137 | * |
@@ -161,7 +162,7 @@ discard block |
||
161 | 162 | * Sign a string with a given key and algorithm. |
162 | 163 | * |
163 | 164 | * @param string $msg The message to sign |
164 | - * @param string|resource $key The secret key |
|
165 | + * @param string $key The secret key |
|
165 | 166 | * @param string $alg The signing algorithm. |
166 | 167 | * Supported algorithms are 'HS256', 'HS384', 'HS512' and 'RS256' |
167 | 168 | * |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | * @param string $left The left argument |
30 | 30 | * @param string $right The right argument |
31 | 31 | * |
32 | - * @return A base-10 string of the sum of the two arguments |
|
32 | + * @return string base-10 string of the sum of the two arguments |
|
33 | 33 | */ |
34 | 34 | public function add($left, $right) { |
35 | 35 | return bcadd($left, $right, 0); |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | * @param string $left The left argument |
42 | 42 | * @param string $right The right argument |
43 | 43 | * |
44 | - * @return A base-10 string of the difference of the two arguments |
|
44 | + * @return string base-10 string of the difference of the two arguments |
|
45 | 45 | */ |
46 | 46 | public function subtract($left, $right) { |
47 | 47 | return bcsub($left, $right); |
@@ -117,7 +117,7 @@ |
||
117 | 117 | * @param string $left The left argument |
118 | 118 | * @param string $right The right argument |
119 | 119 | * |
120 | - * @return string The binary result |
|
120 | + * @return string[] The binary result |
|
121 | 121 | */ |
122 | 122 | protected function subtractBinary($left, $right) { |
123 | 123 | $len = max(strlen($left), strlen($right)); |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | * @param mixed $value The value this instance represents |
50 | 50 | * @param boolean $strict Not Implemented at this time |
51 | 51 | * |
52 | - * @return void |
|
52 | + * @return Strength |
|
53 | 53 | * @throws UnexpectedValueException If the value is not a constant |
54 | 54 | */ |
55 | 55 | public function __construct($value = null, $strict = false) { |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | /** |
70 | 70 | * Cast the current object to a string and return its value |
71 | 71 | * |
72 | - * @return mixed the current value of the instance |
|
72 | + * @return string the current value of the instance |
|
73 | 73 | */ |
74 | 74 | public function __toString() { |
75 | 75 | return (string) $this->value; |
@@ -160,6 +160,9 @@ discard block |
||
160 | 160 | } |
161 | 161 | |
162 | 162 | |
163 | + /** |
|
164 | + * @param string $type |
|
165 | + */ |
|
163 | 166 | private static function _colorize( $text, $type, $nlAfter = true ) |
164 | 167 | { |
165 | 168 | $nlAfter = $nlAfter ? PHP_EOL : ''; |
@@ -201,6 +204,10 @@ discard block |
||
201 | 204 | } |
202 | 205 | |
203 | 206 | |
207 | + /** |
|
208 | + * @param string $char |
|
209 | + * @param integer $repeat |
|
210 | + */ |
|
204 | 211 | private static function _char( $char, $repeat = null ) |
205 | 212 | { |
206 | 213 | switch ( Kint::enabled() ) { |
@@ -221,6 +228,9 @@ discard block |
||
221 | 228 | return $repeat ? str_repeat( $char, $repeat ) : $char; |
222 | 229 | } |
223 | 230 | |
231 | + /** |
|
232 | + * @param string $text |
|
233 | + */ |
|
224 | 234 | private static function _title( $text ) |
225 | 235 | { |
226 | 236 | $escaped = kintParser::escape( $text ); |
@@ -171,7 +171,6 @@ |
||
171 | 171 | /** |
172 | 172 | * called for each dump, opens the html tag |
173 | 173 | * |
174 | - * @param array $callee caller information taken from debug backtrace |
|
175 | 174 | * |
176 | 175 | * @return string |
177 | 176 | */ |
@@ -234,6 +234,9 @@ |
||
234 | 234 | } |
235 | 235 | |
236 | 236 | |
237 | + /** |
|
238 | + * @return string|null |
|
239 | + */ |
|
237 | 240 | public static function escape( $value, $encoding = null ) |
238 | 241 | { |
239 | 242 | if ( empty( $value ) ) return $value; |