case 'button':
case 'submit':
case 'reset':
- return '<input type="' . $this->type . '"' . $attrs . (($this->type == 'text' OR $this->type == 'password') ? ' size="35" maxlength="255"' : ''). $this->_prepareStyle() . ' />';
+ return '<input type="' . $this->type . '"' . $attrs . (($this->type == 'text' || $this->type == 'password') ? ' size="35" maxlength="255"' : ''). $this->_prepareStyle() . ' />';
break;
case 'hidden':
break;
case 'textarea':
- if (!isset($this->style['height']) OR !isset($this->style['width']))
+ if (!isset($this->style['height']) || !isset($this->style['width']))
{
throw new Exception('BSPrinterBaseElement of type "textarea" require a "height" and "width" style attribute');
}