/**
  * Create coveralls configuration.
  *
  * @param  array                                                  $options Processed configuration.
  * @param  string                                                 $rootDir Path to project root directory.
  * @return \Contrib\Bundle\CoverallsV1Bundle\Config\Configuration
  */
 protected function createConfiguration(array $options, $rootDir)
 {
     $configuration = new Configuration();
     $file = new Path();
     $repoToken = $options['repo_token'];
     $repoSecretToken = $options['repo_secret_token'];
     return $configuration->setRepoToken($repoToken !== null ? $repoToken : $repoSecretToken)->setServiceName($options['service_name'])->setSrcDir($this->ensureSrcDir($options['src_dir'], $rootDir, $file))->setCloverXmlPaths($this->ensureCloverXmlPaths($options['coverage_clover'], $rootDir, $file))->setJsonPath($this->ensureJsonPath($options['json_path'], $rootDir, $file))->setExcludeNoStatements($options['exclude_no_stmt']);
 }