Passed
Branchmaster (d3315d)
by Plamen
01:35
created
table_setter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
             switch (gettype($c)) {
55 55
                 case 'array';
56 56
                     foreach ($c as $k => $v) {
57
-                        self::$config[$k] = $getValid((string) $k, $v);
57
+                        self::$config[$k] = $getValid((string)$k, $v);
58 58
                     }
59 59
                     break;
60 60
                 case 'string':
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
         $list = [];
86 86
         foreach ($attributes as $key => $value) {
87 87
             if (is_bool($value)) {
88
-                if ((bool) $value) {
88
+                if ((bool)$value) {
89 89
                     $list[] = $key;
90 90
                 }
91 91
             } else if (empty($value) && !is_int($value)) {
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
         extract($vars);
107 107
         ob_start();
108 108
         require $template;
109
-        return (string) ob_get_clean();
109
+        return (string)ob_get_clean();
110 110
     }
111 111
 
112 112
     protected static function filterValues(&$f, &$opts = [])
Please login to merge, or discard this patch.
table_footer_paging.php 1 patch
Spacing   +7 added lines, -8 removed lines patch added patch discarded remove patch
@@ -14,13 +14,12 @@  discard block
 block discarded – undo
14 14
 
15 15
             $limit = 10;
16 16
 
17
-            $v['start'] = $v['page'] > ($limit / 2) ?
18
-                    ($v['page'] - $limit / 2) :
19
-                    1;
17
+            $v['start'] = $v['page'] > ($limit/2) ?
18
+                    ($v['page'] - $limit/2) : 1;
20 19
 
21
-            if ($v['page'] > ($v['pages'] - ($limit / 2))) {
20
+            if ($v['page'] > ($v['pages'] - ($limit/2))) {
22 21
                 $v['final'] = $v['pages'];
23
-            } else if ($v['page'] > ($limit / 2)) {
22
+            } else if ($v['page'] > ($limit/2)) {
24 23
                 $v['final'] = $v['start'] + $limit;
25 24
             } else {
26 25
                 $v['final'] = $limit;
@@ -53,15 +52,15 @@  discard block
 block discarded – undo
53 52
             $html = $direction === '-' ? $add . $html : $html . $add;
54 53
         }
55 54
 
56
-        return $jump_exists ? self::pagingJumps($html, ($m * 10)) : $html;
55
+        return $jump_exists ? self::pagingJumps($html, ($m*10)) : $html;
57 56
     }
58 57
     
59 58
     private static function jumps($m, $direction)
60 59
     {
61 60
         if ($m >= 1000000) {
62
-            return ($direction . ($m / 1000000) . "M");
61
+            return ($direction . ($m/1000000) . "M");
63 62
         } else if ($m >= 1000) {
64
-            return ($direction . ($m / 1000) . "K");
63
+            return ($direction . ($m/1000) . "K");
65 64
         } else {
66 65
             return ($direction . $m);
67 66
         }
Please login to merge, or discard this patch.