original_string: public function filter($value)
      {
          if (!$value instanceof User) {
              return array();
          }
  
          $info = $value->getInfo();
  
          return array(
              'id' => $value->getId(),
              'name' => $info->displayName,
              'image' => $info->image ? $info->image->uri : '',
              'email' => $info->email,
          );
      }
code: public function filter($value)
      {
          if (!$value instanceof User) {
              return array();
          }
  
          $info = $value->getInfo();
  
          return array(
              'id' => $value->getId(),
              'name' => $info->displayName,
              'image' => $info->image ? $info->image->uri : '',
              'email' => $info->email,
          );
      }
code_tokens: public function filter ( $ value ) { if ( ! $ value instanceof User ) { return array ( ) ; } $ info = $ value -> getInfo ( ) ; return array ( 'id' => $ value -> getId ( ) , 'name' => $ info -> displayName , 'image' => $ info -> image ? $ info -> image -> uri : '' , 'email' => $ info -> email , ) ; }
docstring: Filters an user to a search result array.
  
  @return array
  @see \Zend\Filter\FilterInterface::filter()
docstring_tokens: Filters an user to a search result array .