Passed
Push — master ( db6850...325277 )
by Plamen
01:40
created
thead.php 1 patch
Spacing   +4 added lines, -7 removed lines patch added patch discarded remove patch
@@ -46,8 +46,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
trait_tfoot_setter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.