@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | /** |
96 | 96 | * Determine if the payload contains a non-empty value for a given key. |
97 | 97 | * |
98 | - * @param string|array $keys |
|
98 | + * @param string|null $keys |
|
99 | 99 | * |
100 | 100 | * @return bool |
101 | 101 | */ |
@@ -356,7 +356,7 @@ discard block |
||
356 | 356 | /** |
357 | 357 | * Return a value from the array identified from the key. |
358 | 358 | * |
359 | - * @param $key |
|
359 | + * @param string|null $key |
|
360 | 360 | * @param $data |
361 | 361 | * @return mixed |
362 | 362 | */ |
@@ -29,31 +29,31 @@ |
||
29 | 29 | * @var array Supported Formats |
30 | 30 | */ |
31 | 31 | private $supported_formats = [ |
32 | - // XML |
|
32 | + // XML |
|
33 | 33 | 'application/xml' => XML::class, |
34 | 34 | 'text/xml' => XML::class, |
35 | 35 | 'xml' => XML::class, |
36 | - // JSON |
|
36 | + // JSON |
|
37 | 37 | 'application/json' => JSON::class, |
38 | 38 | 'application/x-javascript' => JSON::class, |
39 | 39 | 'text/javascript' => JSON::class, |
40 | 40 | 'text/x-javascript' => JSON::class, |
41 | 41 | 'text/x-json' => JSON::class, |
42 | 42 | 'json' => JSON::class, |
43 | - // BSON |
|
43 | + // BSON |
|
44 | 44 | 'application/bson' => BSON::class, |
45 | 45 | 'bson' => BSON::class, |
46 | - // YAML |
|
46 | + // YAML |
|
47 | 47 | 'text/yaml' => YAML::class, |
48 | 48 | 'text/x-yaml' => YAML::class, |
49 | 49 | 'application/yaml' => YAML::class, |
50 | 50 | 'application/x-yaml' => YAML::class, |
51 | 51 | 'yaml' => YAML::class, |
52 | - // MSGPACK |
|
52 | + // MSGPACK |
|
53 | 53 | 'application/msgpack' => MSGPack::class, |
54 | 54 | 'application/x-msgpack' => MSGPack::class, |
55 | 55 | 'msgpack' => MSGPack::class, |
56 | - // MISC |
|
56 | + // MISC |
|
57 | 57 | 'application/vnd.php.serialized' => Serialize::class, |
58 | 58 | 'serialize' => Serialize::class, |
59 | 59 | 'application/x-www-form-urlencoded' => QueryStr::class, |
@@ -35,7 +35,7 @@ |
||
35 | 35 | /** |
36 | 36 | * Get the services provided by the provider. |
37 | 37 | * |
38 | - * @return array |
|
38 | + * @return string[] |
|
39 | 39 | */ |
40 | 40 | public function provides() |
41 | 41 | { |