Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions Block/Tab/Content/PhpInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ protected function _toHtml()
return $this->showPhpInfo();
}

/**
* Return PHP Info CSS
*/
protected function phpInfoCssLambda($value) {
return ".phpinfodisplay " . preg_replace( "/,/", ",.phpinfodisplay ", $value );
}

public function showPhpInfo()
{
Expand All @@ -25,10 +31,7 @@ public function showPhpInfo()
return "<style type='text/css'>" . PHP_EOL .
join( PHP_EOL,
array_map(
create_function(
'$i',
'return ".phpinfodisplay " . preg_replace( "/,/", ",.phpinfodisplay ", $i );'
),
array(&$this, "phpInfoCssLambda"),
preg_split( '/\n/', trim($matches[1]))
)
). PHP_EOL .
Expand All @@ -42,4 +45,4 @@ public function showPhpInfo()
}
}

}
}