original_string: public function getArray()
      {
          try {
              $parsed = YamlParser::parse(file_get_contents($this->context));
          } catch (ParseException $e) {
              throw new InvalidFileException($e->getMessage());
          }
  
          if (! is_array($parsed)) {
              throw new InvalidFileException('Unable to parse invalid YAML file at ' . $this->context);
          }
  
          return $parsed;
      }
code: public function getArray()
      {
          try {
              $parsed = YamlParser::parse(file_get_contents($this->context));
          } catch (ParseException $e) {
              throw new InvalidFileException($e->getMessage());
          }
  
          if (! is_array($parsed)) {
              throw new InvalidFileException('Unable to parse invalid YAML file at ' . $this->context);
          }
  
          return $parsed;
      }
code_tokens: public function getArray ( ) { try { $ parsed = YamlParser :: parse ( file_get_contents ( $ this -> context ) ) ; } catch ( ParseException $ e ) { throw new InvalidFileException ( $ e -> getMessage ( ) ) ; } if ( ! is_array ( $ parsed ) ) { throw new InvalidFileException ( 'Unable to parse invalid YAML file at ' . $ this -> context ) ; } return $ parsed ; }
docstring: Retrieve the contents of a .yaml file and convert it to an array of
  configuration options.
  
  @return array Array of configuration options
docstring_tokens: Retrieve the contents of a . yaml file and convert it to an array of configuration options .