src/bbn/appui/i18n.php
public function analyze_file(string $file): array
  {
    $res = [];
    $ext = bbn\str::file_ext($file);
    if ( \in_array($ext, self::$extensions, true) && is_file($file) ){
      switch ( $ext ){
        case 'html':
          $res = $this->analyze_php($file);
          break;
        case 'php':
          $res = $this->analyze_php($file);
          break;
        case 'js':
          $res = $this->analyze_js($file);
          break;
        /*case 'json':
          $res = $this->analyze_json($file);
          break;*/
      }
    }
    return $res;
  }
public function analyze_file(string $file): array
  {
    $res = [];
    $ext = bbn\str::file_ext($file);
    if ( \in_array($ext, self::$extensions, true) && is_file($file) ){
      switch ( $ext ){
        case 'html':
          $res = $this->analyze_php($file);
          break;
        case 'php':
          $res = $this->analyze_php($file);
          break;
        case 'js':
          $res = $this->analyze_js($file);
          break;
        /*case 'json':
          $res = $this->analyze_json($file);
          break;*/
      }
    }
    return $res;
  }
public function analyze_file ( string $ file ) : array { $ res = [ ] ; $ ext = bbn \ str :: file_ext ( $ file ) ; if ( \ in_array ( $ ext , self :: $ extensions , true ) && is_file ( $ file ) ) { switch ( $ ext ) { case 'html' : $ res = $ this -> analyze_php ( $ file ) ; break ; case 'php' : $ res = $ this -> analyze_php ( $ file ) ; break ; case 'js' : $ res = $ this -> analyze_js ( $ file ) ; break ; /*case 'json':
          $res = $this->analyze_json($file);
          break;*/ } } return $ res ; }
Returns the strings contained in the given file

@param string $file
@return array
Returns the strings contained in the given file