original_string: public function createForDocumentation(array $files): array
      {
          if (in_array(Constants::TEST_TYPE_DOCUMENTATION, $this->types)) {
              $definitions = [];
              foreach ($files as $file) {
                  $key = $this->getTestGroupNameForDocumentationFile($file);
                  $definitions[$key] = $this->collectDefinitionsForFile($file);
              }
  
              return $definitions;
          }
  
          return [];
      }
code: public function createForDocumentation(array $files): array
      {
          if (in_array(Constants::TEST_TYPE_DOCUMENTATION, $this->types)) {
              $definitions = [];
              foreach ($files as $file) {
                  $key = $this->getTestGroupNameForDocumentationFile($file);
                  $definitions[$key] = $this->collectDefinitionsForFile($file);
              }
  
              return $definitions;
          }
  
          return [];
      }
code_tokens: public function createForDocumentation ( array $ files ) : array { if ( in_array ( Constants :: TEST_TYPE_DOCUMENTATION , $ this -> types ) ) { $ definitions = [ ] ; foreach ( $ files as $ file ) { $ key = $ this -> getTestGroupNameForDocumentationFile ( $ file ) ; $ definitions [ $ key ] = $ this -> collectDefinitionsForFile ( $ file ) ; } return $ definitions ; } return [ ] ; }
docstring: Create the test definitions for the given documentation files
  
  @param FileInterface[] $files
  @return DefinitionInterface[][]
docstring_tokens: Create the test definitions for the given documentation files