@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | /** |
66 | 66 | * Set the cache filename |
67 | 67 | * |
68 | - * @param $filename |
|
68 | + * @param string $filename |
|
69 | 69 | */ |
70 | 70 | public function setFilename($filename) |
71 | 71 | { |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | * @param $variable |
145 | 145 | * @param bool|false $recursion |
146 | 146 | * |
147 | - * @return mixed|string |
|
147 | + * @return string |
|
148 | 148 | * |
149 | 149 | * @author Bas Peters <[email protected]> |
150 | 150 | */ |
@@ -31,7 +31,7 @@ |
||
31 | 31 | |
32 | 32 | $this->options = array_merge($defaultOptions, $options); |
33 | 33 | |
34 | - $this->passthru =& $passthru; |
|
34 | + $this->passthru = & $passthru; |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | /** |
@@ -32,7 +32,7 @@ |
||
32 | 32 | /** |
33 | 33 | * Converts an \Throwable into an array |
34 | 34 | * |
35 | - * @param Throwable $e |
|
35 | + * @param Exception $e |
|
36 | 36 | * |
37 | 37 | * @return string |
38 | 38 | */ |
@@ -209,7 +209,7 @@ |
||
209 | 209 | * Does the actual decoding of a JSON string |
210 | 210 | * |
211 | 211 | * @param $data |
212 | - * @param $type |
|
212 | + * @param string $type |
|
213 | 213 | * @param bool $assoc |
214 | 214 | * |
215 | 215 | * @return mixed |
@@ -1,7 +1,6 @@ |
||
1 | 1 | <?php namespace CMPayments\Json; |
2 | 2 | |
3 | 3 | use CMPayments\Cache\Cache; |
4 | -use CMPayments\Cache\Exceptions\CacheException; |
|
5 | 4 | use CMPayments\JsonLint\Exceptions\JsonLintException; |
6 | 5 | use CMPayments\JsonLint\Exceptions\ParseException; |
7 | 6 | use CMPayments\JsonLint\JsonLinter; |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | * @param $schema |
97 | 97 | * @param null|string $path |
98 | 98 | * |
99 | - * @return bool |
|
99 | + * @return boolean|null |
|
100 | 100 | */ |
101 | 101 | public function validateData($schema, $data, $path = null) |
102 | 102 | { |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | * @param $schema |
166 | 166 | * @param $data |
167 | 167 | * @param $property |
168 | - * @param $path |
|
168 | + * @param null|string $path |
|
169 | 169 | * |
170 | 170 | * @return bool |
171 | 171 | */ |
@@ -297,7 +297,7 @@ discard block |
||
297 | 297 | * Validate mandatory $schema->$property properties |
298 | 298 | * |
299 | 299 | * @param $schema |
300 | - * @param $path |
|
300 | + * @param string $path |
|
301 | 301 | * |
302 | 302 | * @return mixed |
303 | 303 | * @throws ValidateException |
@@ -323,7 +323,7 @@ discard block |
||
323 | 323 | * Validate optional $schema->$property properties |
324 | 324 | * |
325 | 325 | * @param $schema |
326 | - * @param $path |
|
326 | + * @param string $path |
|
327 | 327 | * |
328 | 328 | * @return mixed |
329 | 329 | * @throws ValidateException |
@@ -369,7 +369,7 @@ discard block |
||
369 | 369 | /** |
370 | 370 | * Validate $schema->$property |
371 | 371 | * |
372 | - * @param $input |
|
372 | + * @param string[] $input |
|
373 | 373 | * @param $schema |
374 | 374 | * @param $path |
375 | 375 | * @param bool|false $mandatory |
@@ -490,7 +490,7 @@ discard block |
||
490 | 490 | * Walk through all $schema->required items and check if there is a $schema->properties item defined for it |
491 | 491 | * |
492 | 492 | * @param $schema |
493 | - * @param $path |
|
493 | + * @param string $path |
|
494 | 494 | * |
495 | 495 | * @throws ValidateSchemaException |
496 | 496 | */ |
@@ -656,7 +656,7 @@ discard block |
||
656 | 656 | * |
657 | 657 | * @param $schema |
658 | 658 | * @param $data |
659 | - * @param $path |
|
659 | + * @param null|string $path |
|
660 | 660 | * |
661 | 661 | * @return string |
662 | 662 | * @throws ValidateException |
@@ -15,7 +15,7 @@ |
||
15 | 15 | * |
16 | 16 | * @param $data |
17 | 17 | * @param $schema |
18 | - * @param $path |
|
18 | + * @param string $path |
|
19 | 19 | */ |
20 | 20 | public function validateEnum($data, $schema, $path) |
21 | 21 | { |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | /** |
87 | 87 | * Returns a valid conjugation of the verb 'to be' |
88 | 88 | * |
89 | - * @param $count |
|
89 | + * @param integer $count |
|
90 | 90 | * |
91 | 91 | * @return string |
92 | 92 | */ |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | /** |
100 | 100 | * Returns a valid representation of 'items' (or other value) |
101 | 101 | * |
102 | - * @param $count |
|
102 | + * @param integer $count |
|
103 | 103 | * @param string $single |
104 | 104 | * @param string $plural |
105 | 105 | * |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | * |
17 | 17 | * @param $data |
18 | 18 | * @param $schema |
19 | - * @param $path |
|
19 | + * @param string $path |
|
20 | 20 | */ |
21 | 21 | public function validateFormat($data, $schema, $path) |
22 | 22 | { |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | * Validate a $datetime string and match it againt a $format |
85 | 85 | * |
86 | 86 | * @param $datetime |
87 | - * @param $format |
|
87 | + * @param string $format |
|
88 | 88 | * |
89 | 89 | * @return bool |
90 | 90 | */ |
@@ -17,7 +17,7 @@ |
||
17 | 17 | * |
18 | 18 | * @param $data |
19 | 19 | * @param $schema |
20 | - * @param $path |
|
20 | + * @param string $path |
|
21 | 21 | */ |
22 | 22 | public function validateRegex($data, $schema, $path) |
23 | 23 | { |
@@ -85,7 +85,7 @@ |
||
85 | 85 | * |
86 | 86 | * @return string |
87 | 87 | */ |
88 | - static public function getClassName(){ |
|
88 | + static public function getClassName() { |
|
89 | 89 | |
90 | 90 | return get_called_class(); |
91 | 91 | } |