1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-11 00:54:08 +02:00

Code style: Indent long statements

This commit is contained in:
Jakub Vrana
2025-03-05 14:59:13 +01:00
parent 293e031498
commit ed5de27dd3
15 changed files with 139 additions and 108 deletions

View File

@@ -315,12 +315,14 @@ function default_value($field) {
* @return string class=''
*/
function type_class($type) {
foreach (array(
'char' => 'text',
'date' => 'time|year',
'binary' => 'blob',
'enum' => 'set',
) as $key => $val) {
foreach (
array(
'char' => 'text',
'date' => 'time|year',
'binary' => 'blob',
'enum' => 'set',
) as $key => $val
) {
if (preg_match("~$key|$val~", $type)) {
return " class='$key'";
}