Changing our coding standards slightly:
[isso.git] / PrinterRootElementPage.php
index 3130c3e8444ceadc159cd716b30f59a3600e6b77..33c29ab5f8ae36e3c64b364dec7f2a49c111d9b0 100644 (file)
@@ -143,7 +143,7 @@ class BSPrinterRootElementPage extends BSPrinterRootElement
                {
                        $vars = new BSPrinterRootElementForm($controller, $action, 'postvars');
                        
-                       foreach ($postvars AS $key => $value)
+                       foreach ($postvars as $key => $value)
                        {
                                $vars->addChild(new BSPrinterBaseElement('hidden', $key, $value));
                        }
@@ -216,7 +216,7 @@ class BSPrinterRootElementPage extends BSPrinterRootElement
                $page = new BSPrinterRootElementPage(_('Confirm'));
                
                $form = new BSPrinterRootElementForm($controller, $action);
-               foreach ($params AS $key => $value)
+               foreach ($params as $key => $value)
                {
                        $form->addChild(new BSPrinterBaseElement('hidden', $key, $value));
                }
@@ -271,7 +271,7 @@ class BSPrinterRootElementPage extends BSPrinterRootElement
        {
                $builder = '';
                
-               foreach ($this->children AS $child)
+               foreach ($this->children as $child)
                {
                        $builder .= "\n" . $child->paint() . "\n";
                }
@@ -294,14 +294,14 @@ class BSPrinterRootElementPage extends BSPrinterRootElement
                echo "\n\t<link rel=\"stylesheet\" href=\"" . BSPrinter::get_stylesheet() . "\" />";
                echo "\n</head>\n<body>\n";
                
-               if ($this->navigator AND (!defined('ISSO_PRINTER_NO_NAVIGATION') OR !constant('ISSO_PRINTER_NO_NAVIGATION')))
+               if ($this->navigator && (!defined('ISSO_PRINTER_NO_NAVIGATION') || !constant('ISSO_PRINTER_NO_NAVIGATION')))
                {
                        echo $this->navigator->constructHeaderHtml();
                }
                
                echo $this->_paintChildren();
                
-               if ($this->navigator AND (!defined('ISSO_PRINTER_NO_NAVIGATION') OR !constant('ISSO_PRINTER_NO_NAVIGATION')))
+               if ($this->navigator && (!defined('ISSO_PRINTER_NO_NAVIGATION') || !constant('ISSO_PRINTER_NO_NAVIGATION')))
                {
                        echo $this->navigator->constructFooterHtml();
                }
@@ -316,7 +316,7 @@ class BSPrinterRootElementPage extends BSPrinterRootElement
                        
                        if (BSApp::get_debug())
                        {
-                               if (defined('SVN') AND preg_match('#^\$Id:?#', constant('SVN')))
+                               if (defined('SVN') && preg_match('#^\$Id:?#', constant('SVN')))
                                {
                                        echo preg_replace('#\$' . 'Id: (.+?) ([0-9].+?) [0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}(.+?) (.+?) \$#', "\n<br />\n" . '<div align="center"><strong>\1</strong> &mdash; r\2</div>', constant('SVN'));
                                }
@@ -338,7 +338,7 @@ class BSPrinterRootElementPage extends BSPrinterRootElement
                                        $head->setCssClass('thead');
                                        $table->addHeadingChild($head);
                                        
-                                       foreach ($queries AS $query)
+                                       foreach ($queries as $query)
                                        {
                                                $tr = new BSPrinterTableElement();
                                                $tr->addChild(new BSPrinterLabelElement("\n\t\t\t" . $query['query'] . "\n\n\t\t\t<div class=\"smallfont\">(" . $query['time'] . ")</div>\n<!--\n" . $query['trace'] . "\n-->\n\t\t"));