Changing our coding standards slightly:
[isso.git] / PrinterBaseElement.php
index 99e22fb666f6f206c810f231c706beb4a9c39546..438d709691ca2a4ef90bdfe04e5d361212782bc0 100644 (file)
@@ -198,7 +198,7 @@ class BSPrinterBaseElement extends BSPrinterElement
                        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':
@@ -223,7 +223,7 @@ class BSPrinterBaseElement extends BSPrinterElement
                        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');
                                }