original_string: protected function searchEncoder($needle) {
      if (is_array($needle)) {
        foreach ($needle as $n) {
          $result = $this->searchEncoder($n);
          if ($result) {
            return $result;
          }
        }
        return false;
      }
  
      $encoders = $this->getEncoders();
      foreach ($encoders as $encoder) {
        if (strpos($encoder, $needle) !== false) {
          return $encoder;
        }
      }
      return false;
    }
code: protected function searchEncoder($needle) {
      if (is_array($needle)) {
        foreach ($needle as $n) {
          $result = $this->searchEncoder($n);
          if ($result) {
            return $result;
          }
        }
        return false;
      }
  
      $encoders = $this->getEncoders();
      foreach ($encoders as $encoder) {
        if (strpos($encoder, $needle) !== false) {
          return $encoder;
        }
      }
      return false;
    }
code_tokens: protected function searchEncoder ( $ needle ) { if ( is_array ( $ needle ) ) { foreach ( $ needle as $ n ) { $ result = $ this -> searchEncoder ( $ n ) ; if ( $ result ) { return $ result ; } } return false ; } $ encoders = $ this -> getEncoders ( ) ; foreach ( $ encoders as $ encoder ) { if ( strpos ( $ encoder , $ needle ) !== false ) { return $ encoder ; } } return false ; }
docstring: Search for matching encoder
  
  @param string|array $needle Encoder type
  @return mixed
docstring_tokens: Search for matching encoder