@@ -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,28 +29,28 @@ |
||
29 | 29 | * @var array Supported Formats |
30 | 30 | */ |
31 | 31 | private $supported_formats = array ( |
32 | - // XML |
|
33 | - 'application/xml' => 'xml', |
|
34 | - 'text/xml' => 'xml', |
|
35 | - // JSON |
|
36 | - 'application/json' => 'json', |
|
37 | - 'application/x-javascript' => 'json', |
|
38 | - 'text/javascript' => 'json', |
|
39 | - 'text/x-javascript' => 'json', |
|
40 | - 'text/x-json' => 'json', |
|
41 | - // BSON |
|
32 | + // XML |
|
33 | + 'application/xml' => 'xml', |
|
34 | + 'text/xml' => 'xml', |
|
35 | + // JSON |
|
36 | + 'application/json' => 'json', |
|
37 | + 'application/x-javascript' => 'json', |
|
38 | + 'text/javascript' => 'json', |
|
39 | + 'text/x-javascript' => 'json', |
|
40 | + 'text/x-json' => 'json', |
|
41 | + // BSON |
|
42 | 42 | 'application/bson' => 'bson', |
43 | - // YAML |
|
44 | - 'text/yaml' => 'yaml', |
|
45 | - 'text/x-yaml' => 'yaml', |
|
46 | - 'application/yaml' => 'yaml', |
|
47 | - 'application/x-yaml' => 'yaml', |
|
48 | - // MSGPACK |
|
43 | + // YAML |
|
44 | + 'text/yaml' => 'yaml', |
|
45 | + 'text/x-yaml' => 'yaml', |
|
46 | + 'application/yaml' => 'yaml', |
|
47 | + 'application/x-yaml' => 'yaml', |
|
48 | + // MSGPACK |
|
49 | 49 | 'application/msgpack' => 'msgpack', |
50 | 50 | 'application/x-msgpack' => 'msgpack', |
51 | - // MISC |
|
52 | - 'application/vnd.php.serialized' => 'serialize', |
|
53 | - 'application/x-www-form-urlencoded' => 'querystr' |
|
51 | + // MISC |
|
52 | + 'application/vnd.php.serialized' => 'serialize', |
|
53 | + 'application/x-www-form-urlencoded' => 'querystr' |
|
54 | 54 | ); |
55 | 55 | |
56 | 56 | /* ------------ Access Methods/Helpers ------------ */ |
@@ -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 | { |