original_string: private function getAdapter(TableInterface $table, $format)
      {
          $adapters = $table->getConfig()->getExportAdapters();
  
          foreach ($adapters as $adapter) {
              if ($adapter->supports($format)) {
                  return $adapter;
              }
          }
  
          return null;
      }
code: private function getAdapter(TableInterface $table, $format)
      {
          $adapters = $table->getConfig()->getExportAdapters();
  
          foreach ($adapters as $adapter) {
              if ($adapter->supports($format)) {
                  return $adapter;
              }
          }
  
          return null;
      }
code_tokens: private function getAdapter ( TableInterface $ table , $ format ) { $ adapters = $ table -> getConfig ( ) -> getExportAdapters ( ) ; foreach ( $ adapters as $ adapter ) { if ( $ adapter -> supports ( $ format ) ) { return $ adapter ; } } return null ; }
docstring: Returns the adapter supporting the given format.
  
  @param TableInterface $table
  @param string         $format
  
  @return \Ekyna\Component\Table\Export\AdapterInterface|null
docstring_tokens: Returns the adapter supporting the given format .