Changing our coding standards slightly:
[isso.git] / PrinterTableElement.php
index 0f09eed62be58330ff2a0ae3edf821d757b4e457..c7515cbb8a71ff7b3b271766005e92a5b5925beb 100644 (file)
@@ -135,7 +135,7 @@ class BSPrinterTableElement extends BSPrinterElement
                $build = '';
                if (sizeof($children) > 0)
                {
-                       foreach ($children AS $child)
+                       foreach ($children as $child)
                        {
                                $build .= "\n\t\t\t" . $child->paint();
                        }
@@ -178,7 +178,7 @@ class BSPrinterTableElement extends BSPrinterElement
        public static function row_list($label, $name, Array $options)
        {
                $build = '';
-               foreach ($options AS $option)
+               foreach ($options as $option)
                {
                        if ($option->getType() == 'option')
                        {
@@ -211,7 +211,7 @@ class BSPrinterTableElement extends BSPrinterElement
        public static function row_checkbox($label, $name, Array $boxes)
        {
                $build = '';
-               foreach ($boxes AS $boxLabel => $box)
+               foreach ($boxes as $boxLabel => $box)
                {
                        if ($box->getType() == 'checkbox')
                        {
@@ -372,10 +372,10 @@ class BSPrinterTableElement extends BSPrinterElement
                }
                
                $i = 0;
-               foreach ($this->children AS $child)
+               foreach ($this->children as $child)
                {
                        $i++;
-                       $colspan = (($i == $numCols AND !$even) ? $cols + 1 : $cols);
+                       $colspan = (($i == $numCols && !$even) ? $cols + 1 : $cols);
                        $builder .= "\n\t\t<td" . ($colspan > 1 ? ' colspan="' . $colspan . '"' : '') . ">" . $child->paint() . "</td>";
                }