{
$vars = new BSPrinterRootElementForm($controller, $action, 'postvars');
- foreach ($postvars AS $key => $value)
+ foreach ($postvars as $key => $value)
{
$vars->addChild(new BSPrinterBaseElement('hidden', $key, $value));
}
$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));
}
{
$builder = '';
- foreach ($this->children AS $child)
+ foreach ($this->children as $child)
{
$builder .= "\n" . $child->paint() . "\n";
}
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();
}
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> — r\2</div>', constant('SVN'));
}
$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"));