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:
@@ -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'";
|
||||
}
|
||||
|
Reference in New Issue
Block a user