original_string: protected function behatTagsFactory(array $tags)
      {
          $fileTokens = [];
  
          $files = Finder::create()->files()->in($this->plugin->directory)->path('tests/behat')->name('*.feature')->getIterator();
          foreach ($files as $file) {
              $fileTokens[] = FileTokens::create($file->getRelativePathname())->mustHaveAll($tags);
          }
  
          return $fileTokens;
      }
code: protected function behatTagsFactory(array $tags)
      {
          $fileTokens = [];
  
          $files = Finder::create()->files()->in($this->plugin->directory)->path('tests/behat')->name('*.feature')->getIterator();
          foreach ($files as $file) {
              $fileTokens[] = FileTokens::create($file->getRelativePathname())->mustHaveAll($tags);
          }
  
          return $fileTokens;
      }
code_tokens: protected function behatTagsFactory ( array $ tags ) { $ fileTokens = [ ] ; $ files = Finder :: create ( ) -> files ( ) -> in ( $ this -> plugin -> directory ) -> path ( 'tests/behat' ) -> name ( '*.feature' ) -> getIterator ( ) ; foreach ( $ files as $ file ) { $ fileTokens [ ] = FileTokens :: create ( $ file -> getRelativePathname ( ) ) -> mustHaveAll ( $ tags ) ; } return $ fileTokens ; }
docstring: Factory method for generating FileTokens instances for all feature files in a plugin.
  
  @param array $tags
  
  @return FileTokens[]
docstring_tokens: Factory method for generating FileTokens instances for all feature files in a plugin .