original_string: private function _getImportantDecorator($element)
      {
          $class = get_class($element);
  
          if (strpos($class, 'JQuery')) {
              $dec = $element->getDecorator('UiWidgetElement');
          }
          if (strpos($class, 'File')) {
              $dec = $element->getDecorator('File');
          }
  
          if (!isset($dec) || $dec == false) {
              $dec = $element->getDecorator('ViewHelper');
          }
  
          return $dec;
      }
code: private function _getImportantDecorator($element)
      {
          $class = get_class($element);
  
          if (strpos($class, 'JQuery')) {
              $dec = $element->getDecorator('UiWidgetElement');
          }
          if (strpos($class, 'File')) {
              $dec = $element->getDecorator('File');
          }
  
          if (!isset($dec) || $dec == false) {
              $dec = $element->getDecorator('ViewHelper');
          }
  
          return $dec;
      }
code_tokens: private function _getImportantDecorator ( $ element ) { $ class = get_class ( $ element ) ; if ( strpos ( $ class , 'JQuery' ) ) { $ dec = $ element -> getDecorator ( 'UiWidgetElement' ) ; } if ( strpos ( $ class , 'File' ) ) { $ dec = $ element -> getDecorator ( 'File' ) ; } if ( ! isset ( $ dec ) || $ dec == false ) { $ dec = $ element -> getDecorator ( 'ViewHelper' ) ; } return $ dec ; }
docstring: Get a ViewHelper or ZendX decorator to add in front of the decorator chain
  
  @param \Zend_Form_Element $element
  @return null|\Zend_Form_Decorator_Abstract
docstring_tokens: Get a ViewHelper or ZendX decorator to add in front of the decorator chain