method analyzeFile documentation in bbn\Appui\I18n
Returns the strings contained in the given file
function(string $file)
{
$res = [];
$ext = bbn\Str::fileExt($file);
if (\in_array($ext, self::$extensions, true) && is_file($file)) {
switch ($ext){
case 'html':
$res = $this->analyzeHtml($file);
break;
case 'php':
$res = $this->analyzePhp($file);
break;
case 'js':
$res = $this->analyzeJs($file);
break;
/*case 'json':
$res = $this->analyzeJson($file);
break;*/
}
}
return $res;
}
Returns the strings contained in the given file BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way
This website uses cookies to ensure you get the best experience on our website.
© 2011-2023
BBN Solutions