original_string: public static function parseYamlFile($file): array
      {
          if (file_exists($file)) {
              $data = file_get_contents($file);
              if (!empty($data)) {
                  $data = static::replaceEnvVariables($data);
                  return Yaml::parse($data);
              }
          }
  
          return [];
      }
code: public static function parseYamlFile($file): array
      {
          if (file_exists($file)) {
              $data = file_get_contents($file);
              if (!empty($data)) {
                  $data = static::replaceEnvVariables($data);
                  return Yaml::parse($data);
              }
          }
  
          return [];
      }
code_tokens: public static function parseYamlFile ( $ file ) : array { if ( file_exists ( $ file ) ) { $ data = file_get_contents ( $ file ) ; if ( ! empty ( $ data ) ) { $ data = static :: replaceEnvVariables ( $ data ) ; return Yaml :: parse ( $ data ) ; } } return [ ] ; }
docstring: Read yaml file and parse content.
  
  @param $file
  @return array
  @throws Exception
docstring_tokens: Read yaml file and parse content .