protected function checkIfFileNameIsSafe(string $fileName)
    {
        $allowedFileNames = $this->getLanguageFiles(true);

        if (!in_array($fileName, $allowedFileNames)) {
            return false;
        }

        return true;
    }
protected function checkIfFileNameIsSafe(string $fileName)
    {
        $allowedFileNames = $this->getLanguageFiles(true);

        if (!in_array($fileName, $allowedFileNames)) {
            return false;
        }

        return true;
    }
protected function checkIfFileNameIsSafe ( string $ fileName ) { $ allowedFileNames = $ this -> getLanguageFiles ( true ) ; if ( ! in_array ( $ fileName , $ allowedFileNames ) ) { return false ; } return true ; }
Check if input file name is safe, i.e. if the default locale contains a file with the same name.

@param  string $fileName

@return bool
Check if input file name is safe i . e . if the default locale contains a file with the same name .