@@ -46,8 +46,7 @@ discard block |
||
46 | 46 | private static function tagAttributes($tag, $items) |
47 | 47 | { |
48 | 48 | $attr = $tag === 'div' ? |
49 | - ['id' => $items . '-list', 'class' => 'table'] : |
|
50 | - ['id' => $items . '-table', 'data-table' => 'js', |
|
49 | + ['id' => $items . '-list', 'class' => 'table'] : ['id' => $items . '-table', 'data-table' => 'js', |
|
51 | 50 | 'data-sort-a' => self::config('UTF8_ASC_SYMBOL'), |
52 | 51 | 'data-sort-d' => self::config('UTF8_DESC_SYMBOL')]; |
53 | 52 | if (array_key_exists($tag, self::$attributes)) { |
@@ -84,8 +83,7 @@ discard block |
||
84 | 83 | if (isset($arg['width'])) { // Width attribute -> style |
85 | 84 | $width = 'width:' . $arg['width'] . ';'; |
86 | 85 | $arg['style'] = isset($arg['style']) ? |
87 | - $width . $arg['style'] : |
|
88 | - $width; |
|
86 | + $width . $arg['style'] : $width; |
|
89 | 87 | } |
90 | 88 | |
91 | 89 | if (($del = isset($arg['type']) && $arg['type'] == 'delete')) { |
@@ -94,7 +92,7 @@ discard block |
||
94 | 92 | $sort = isset($arg['sort']) ? $arg['sort'] : $col; |
95 | 93 | } |
96 | 94 | |
97 | - return array_diff_key((array) $arg, ['sort', 'type', 'width']); |
|
95 | + return array_diff_key((array)$arg, ['sort', 'type', 'width']); |
|
98 | 96 | } |
99 | 97 | |
100 | 98 | private static function th($i, $attr, $sort, $del, $lbl) |
@@ -106,8 +104,7 @@ discard block |
||
106 | 104 | if (!$del) { |
107 | 105 | if ($sort == self::$t['order']['col']) { |
108 | 106 | $span = self::$t['order']['dir'] === 'desc' ? |
109 | - self::config('UTF8_DESC_SYMBOL') : |
|
110 | - self::config('UTF8_ASC_SYMBOL'); |
|
107 | + self::config('UTF8_DESC_SYMBOL') : self::config('UTF8_ASC_SYMBOL'); |
|
111 | 108 | } else { |
112 | 109 | $span = ""; |
113 | 110 | } |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | switch (gettype($c)) { |
48 | 48 | case 'array'; |
49 | 49 | foreach ($c as $k => $v) { |
50 | - self::$config[$k] = self::getValid((string) $k, $v); |
|
50 | + self::$config[$k] = self::getValid((string)$k, $v); |
|
51 | 51 | } |
52 | 52 | break; |
53 | 53 | case 'string': |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | extract($vars); |
159 | 159 | ob_start(); |
160 | 160 | require $template; |
161 | - return (string) ob_get_clean(); |
|
161 | + return (string)ob_get_clean(); |
|
162 | 162 | } |
163 | 163 | |
164 | 164 | /** Needed for more than one table on page |