mirror of
https://github.com/vrana/adminer.git
synced 2025-08-16 19:44:00 +02:00
PHPStan: Fix level 6 errors
This commit is contained in:
@@ -91,9 +91,14 @@ if ($in) {
|
||||
|
||||
<pre>
|
||||
<?php
|
||||
/** Format string as table row
|
||||
* @param string
|
||||
* @return string HTML
|
||||
*/
|
||||
function pre_tr($s) {
|
||||
return preg_replace('~^~m', '<tr>', preg_replace('~\|~', '<td>', preg_replace('~\|$~m', "", rtrim($s))));
|
||||
}
|
||||
|
||||
$table = '(\+--[-+]+\+\n)';
|
||||
$row = '(\| .* \|\n)';
|
||||
echo preg_replace_callback(
|
||||
|
Reference in New Issue
Block a user