Passed
Branchmaster (d1ea73)
by Plamen
02:00
created
thead.php 1 patch
Spacing   +5 added lines, -8 removed lines patch added patch discarded remove patch
@@ -45,9 +45,8 @@  discard block
 block discarded – undo
45 45
 
46 46
     private static function tagAttributes($tag, $items)
47 47
     {
48
-        $attr = $tag==='div' ?
49
-                ['id' => $items . '-list', 'class' => 'table'] : 
50
-                ['id' => $items . '-table', 'data-table' => 'js'];
48
+        $attr = $tag === 'div' ?
49
+                ['id' => $items . '-list', 'class' => 'table'] : ['id' => $items . '-table', 'data-table' => 'js'];
51 50
         if (array_key_exists($tag, self::$attributes)) {
52 51
             $attr += self::$attributes[$tag];
53 52
         }
@@ -82,8 +81,7 @@  discard block
 block discarded – undo
82 81
         if (isset($arg['width'])) { // Width attribute -> style
83 82
             $width = 'width:' . $arg['width'] . ';';
84 83
             $arg['style'] = isset($arg['style']) ?
85
-                    $width . $arg['style'] :
86
-                    $width;
84
+                    $width . $arg['style'] : $width;
87 85
         }
88 86
 
89 87
         if (($del = isset($arg['type']) && $arg['type'] == 'delete')) {
@@ -92,7 +90,7 @@  discard block
 block discarded – undo
92 90
             $sort = isset($arg['sort']) ? $arg['sort'] : $col;
93 91
         }
94 92
 
95
-        return array_diff_key((array) $arg, ['sort', 'type', 'width']);
93
+        return array_diff_key((array)$arg, ['sort', 'type', 'width']);
96 94
     }
97 95
 
98 96
     private static function th($i, $attr, $sort, $del, $lbl)
@@ -104,8 +102,7 @@  discard block
 block discarded – undo
104 102
         if (!$del) {
105 103
             if ($sort == self::$t['order']['col']) {
106 104
                 $span = self::$t['order']['dir'] === 'desc' ?
107
-                        self::config('UTF8_DESC_SYMBOL') :
108
-                        self::config('UTF8_ASC_SYMBOL');
105
+                        self::config('UTF8_DESC_SYMBOL') : self::config('UTF8_ASC_SYMBOL');
109 106
             } else {
110 107
                 $span = "";
111 108
             }
Please login to merge, or discard this patch.