diff --git a/table.php b/table.php index fc123b6..34a4602 100644 --- a/table.php +++ b/table.php @@ -7,7 +7,7 @@ class table public static function create($arr = []) { $str = ''; - foreach($arr as $k => $v) { + foreach ($arr as $k => $v) { $name = $v['name']; $str .= self::$name($v); } @@ -20,22 +20,22 @@ public static function open($arr = []) } public static function column($arr = []) { - $tpl = $arr['tpl']??[]; + $tpl = $arr['tpl'] ?? []; unset($arr['tpl']); $str = "\n"; - if($tpl) { + if ($tpl) { $str .= "