mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-06 14:35:56 +02:00
[ticket/10824] Clean up code a bit
PHPBB3-10824
This commit is contained in:
parent
646f9826ec
commit
ed9be050ad
@ -33,7 +33,7 @@ class sanitizer
|
||||
{
|
||||
if (!empty($data))
|
||||
{
|
||||
$json_sanitizer = function (&$value, $key) {
|
||||
$json_sanitizer = function (&$value) {
|
||||
$type_cast_helper = new type_cast_helper();
|
||||
$type_cast_helper->set_var($value, $value, gettype($value), true);
|
||||
};
|
||||
|
@ -69,7 +69,7 @@ class language_file_helper
|
||||
* @param string $path
|
||||
* @return array
|
||||
*/
|
||||
public function get_language_data_from_composer_file($path)
|
||||
public function get_language_data_from_composer_file(string $path)
|
||||
{
|
||||
$json_data = file_get_contents($path);
|
||||
return $this->get_language_data_from_json(sanitizer::decode($json_data));
|
||||
|
Loading…
x
Reference in New Issue
Block a user