original_string: public function map(array $options, Banner $banner)
      {
          $bannerOptions = get_object_vars($banner);
  
          $validatedOptions = array();
          foreach ($bannerOptions as $name => $value) {
              $validatedOptions[$name] = empty($options[$name]) ? $value : $options[$name];
          }
  
          return $validatedOptions;
      }
code: public function map(array $options, Banner $banner)
      {
          $bannerOptions = get_object_vars($banner);
  
          $validatedOptions = array();
          foreach ($bannerOptions as $name => $value) {
              $validatedOptions[$name] = empty($options[$name]) ? $value : $options[$name];
          }
  
          return $validatedOptions;
      }
code_tokens: public function map ( array $ options , Banner $ banner ) { $ bannerOptions = get_object_vars ( $ banner ) ; $ validatedOptions = array ( ) ; foreach ( $ bannerOptions as $ name => $ value ) { $ validatedOptions [ $ name ] = empty ( $ options [ $ name ] ) ? $ value : $ options [ $ name ] ; } return $ validatedOptions ; }
docstring: Map additional options used by Banner object.
  
  @param array $options
  @param \EzSystems\PrivacyCookieBundle\Banner\Banner $banner
  
  @return array
docstring_tokens: Map additional options used by Banner object .