original_string: public function getIgnores()
      {
          $configFile = $this->directory.'/.moodle-plugin-ci.yml';
  
          if (!is_file($configFile)) {
              return [];
          }
  
          $config = Yaml::parse(file_get_contents($configFile));
  
          // Search for context (AKA command) specific filter first.
          if (!empty($this->context) && array_key_exists('filter-'.$this->context, $config)) {
              return $config['filter-'.$this->context];
          }
  
          return array_key_exists('filter', $config) ? $config['filter'] : [];
      }
code: public function getIgnores()
      {
          $configFile = $this->directory.'/.moodle-plugin-ci.yml';
  
          if (!is_file($configFile)) {
              return [];
          }
  
          $config = Yaml::parse(file_get_contents($configFile));
  
          // Search for context (AKA command) specific filter first.
          if (!empty($this->context) && array_key_exists('filter-'.$this->context, $config)) {
              return $config['filter-'.$this->context];
          }
  
          return array_key_exists('filter', $config) ? $config['filter'] : [];
      }
code_tokens: public function getIgnores ( ) { $ configFile = $ this -> directory . '/.moodle-plugin-ci.yml' ; if ( ! is_file ( $ configFile ) ) { return [ ] ; } $ config = Yaml :: parse ( file_get_contents ( $ configFile ) ) ; // Search for context (AKA command) specific filter first. if ( ! empty ( $ this -> context ) && array_key_exists ( 'filter-' . $ this -> context , $ config ) ) { return $ config [ 'filter-' . $ this -> context ] ; } return array_key_exists ( 'filter' , $ config ) ? $ config [ 'filter' ] : [ ] ; }
docstring: Get ignore file information.
  
  @return array
docstring_tokens: Get ignore file information .