original_string: public function loadConfiguration(array $possibleConfigurationFiles = [], LinterConfiguration $configuration = null): LinterConfiguration
      {
          $configs = [$this->loader->load('typoscript-lint.dist.yml')];
          foreach ($possibleConfigurationFiles as $configurationFile) {
              $loadedConfig = $this->loader->load($configurationFile);
  
              // Simple mechanism to detect tslint config files ("ts" as in "TypeScript", not "Typoscript")
              // and excluding them from being loaded.
              if (isset($loadedConfig["extends"]) || isset($loadedConfig["rulesDirectory"]) || isset($loadedConfig["rules"])) {
                  continue;
              }
  
              $configs[] = $loadedConfig;
          }
  
          $configuration = $configuration ?? new LinterConfiguration();
  
          $processedConfiguration = $this->processor->processConfiguration(
              $configuration,
              $configs
          );
  
          $configuration->setConfiguration($processedConfiguration);
          return $configuration;
      }
code: public function loadConfiguration(array $possibleConfigurationFiles = [], LinterConfiguration $configuration = null): LinterConfiguration
      {
          $configs = [$this->loader->load('typoscript-lint.dist.yml')];
          foreach ($possibleConfigurationFiles as $configurationFile) {
              $loadedConfig = $this->loader->load($configurationFile);
  
              // Simple mechanism to detect tslint config files ("ts" as in "TypeScript", not "Typoscript")
              // and excluding them from being loaded.
              if (isset($loadedConfig["extends"]) || isset($loadedConfig["rulesDirectory"]) || isset($loadedConfig["rules"])) {
                  continue;
              }
  
              $configs[] = $loadedConfig;
          }
  
          $configuration = $configuration ?? new LinterConfiguration();
  
          $processedConfiguration = $this->processor->processConfiguration(
              $configuration,
              $configs
          );
  
          $configuration->setConfiguration($processedConfiguration);
          return $configuration;
      }
code_tokens: public function loadConfiguration ( array $ possibleConfigurationFiles = [ ] , LinterConfiguration $ configuration = null ) : LinterConfiguration { $ configs = [ $ this -> loader -> load ( 'typoscript-lint.dist.yml' ) ] ; foreach ( $ possibleConfigurationFiles as $ configurationFile ) { $ loadedConfig = $ this -> loader -> load ( $ configurationFile ) ; // Simple mechanism to detect tslint config files ("ts" as in "TypeScript", not "Typoscript") // and excluding them from being loaded. if ( isset ( $ loadedConfig [ "extends" ] ) || isset ( $ loadedConfig [ "rulesDirectory" ] ) || isset ( $ loadedConfig [ "rules" ] ) ) { continue ; } $ configs [ ] = $ loadedConfig ; } $ configuration = $ configuration ?? new LinterConfiguration ( ) ; $ processedConfiguration = $ this -> processor -> processConfiguration ( $ configuration , $ configs ) ; $ configuration -> setConfiguration ( $ processedConfiguration ) ; return $ configuration ; }
docstring: Loads the linter configuration.
  
  @param string[]                 $possibleConfigurationFiles A list of possible configuration files to load from. These
  files will be searched in the current working directory
  and in the typoscript-lint root directory. Contents from
  these files will also be merged with the
  typoscript-lint.dist.yml file in the typoscript-lint root
  directory.
  @param LinterConfiguration|null $configuration              The configuration on which to set the loaded configuration values.
  @return LinterConfiguration The linter configuration from the given configuration file.
docstring_tokens: Loads the linter configuration .