@@ -48,9 +48,8 @@ discard block  | 
                                                    ||
| 48 | 48 | |
| 49 | 49 | private static function tagAttributes($tag, $items)  | 
                                                        
| 50 | 50 |      { | 
                                                        
| 51 | - $attr = $tag==='div' ?  | 
                                                        |
| 52 | - ['id' => $items . '-list', 'class' => 'table'] :  | 
                                                        |
| 53 | - ['id' => $items . '-table', 'data-table' => 'js'];  | 
                                                        |
| 51 | + $attr = $tag === 'div' ?  | 
                                                        |
| 52 | + ['id' => $items . '-list', 'class' => 'table'] : ['id' => $items . '-table', 'data-table' => 'js'];  | 
                                                        |
| 54 | 53 |          if (array_key_exists($tag, self::$attributes)) { | 
                                                        
| 55 | 54 | $attr += self::$attributes[$tag];  | 
                                                        
| 56 | 55 | }  | 
                                                        
@@ -76,8 +75,7 @@ discard block  | 
                                                    ||
| 76 | 75 |              if (isset($arg['width'])) { // Width attribute -> style | 
                                                        
| 77 | 76 | $width = 'width:' . $arg['width'] . ';';  | 
                                                        
| 78 | 77 | $arg['style'] = isset($arg['style']) ?  | 
                                                        
| 79 | - $width . $arg['style'] :  | 
                                                        |
| 80 | - $width;  | 
                                                        |
| 78 | + $width . $arg['style'] : $width;  | 
                                                        |
| 81 | 79 | }  | 
                                                        
| 82 | 80 | |
| 83 | 81 |              if (($del = isset($arg['type']) && $arg['type'] == 'delete')) { | 
                                                        
@@ -88,10 +86,9 @@ discard block  | 
                                                    ||
| 88 | 86 | }  | 
                                                        
| 89 | 87 | |
| 90 | 88 | $sort = $sortable ?  | 
                                                        
| 91 | - (isset($arg['sort']) ? $arg['sort'] : $col) :  | 
                                                        |
| 92 | - null;  | 
                                                        |
| 89 | + (isset($arg['sort']) ? $arg['sort'] : $col) : null;  | 
                                                        |
| 93 | 90 | |
| 94 | - $attr = array_diff_key((array) $arg, ['sort', 'type', 'width']);  | 
                                                        |
| 91 | + $attr = array_diff_key((array)$arg, ['sort', 'type', 'width']);  | 
                                                        |
| 95 | 92 | |
| 96 | 93 | $ths[] = self::th($i, $attr, $sort, $del, $lbl);  | 
                                                        
| 97 | 94 | }  | 
                                                        
@@ -107,8 +104,7 @@ discard block  | 
                                                    ||
| 107 | 104 |          if (!$del) { | 
                                                        
| 108 | 105 |              if ($sort == self::$t['order']['col']) { | 
                                                        
| 109 | 106 | $span = self::$t['order']['dir'] === 'desc' ?  | 
                                                        
| 110 | -                        self::config('UTF8_DESC_SYMBOL') : | 
                                                        |
| 111 | -                        self::config('UTF8_ASC_SYMBOL'); | 
                                                        |
| 107 | +                        self::config('UTF8_DESC_SYMBOL') : self::config('UTF8_ASC_SYMBOL'); | 
                                                        |
| 112 | 108 |              } else { | 
                                                        
| 113 | 109 | $span = "";  | 
                                                        
| 114 | 110 | }  |