mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/10824] Clean up code a bit
PHPBB3-10824
This commit is contained in:
parent
646f9826ec
commit
ed9be050ad
2 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue