Completed
Push — 1.2 ( 261ddf...fd7ca1 )
by David
15:45 queued 09:58
created
lib/plugins/builtin/functions/counter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
             if ($start !== null) {
63 63
                 $this->counters[$name]['count'] = (int) $start;
64 64
             } else {
65
-                $this->counters[$name]['count'] += ($this->counters[$name]['skip'] * $this->counters[$name]['direction']);
65
+                $this->counters[$name]['count'] += ($this->counters[$name]['skip']*$this->counters[$name]['direction']);
66 66
             }
67 67
         }
68 68
 
Please login to merge, or discard this patch.
lib/plugins/builtin/functions/math.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
                 preg_match('#.*?'.str_replace('.', '\\.', $close).'#', substr($equation, 2), $m);
90 90
             }
91 91
             $out .= substr($m[0], 0, -2);
92
-            $equation = substr($equation, strlen($m[0]) + 2);
92
+            $equation = substr($equation, strlen($m[0])+2);
93 93
             $ptr = 0;
94 94
         } elseif ($substr === '(') {
95 95
             // opening parenthesis
Please login to merge, or discard this patch.
lib/plugins/builtin/functions/truncate.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -37,13 +37,13 @@
 block discarded – undo
37 37
         return $value;
38 38
     }
39 39
 
40
-    $length = max($length - strlen($etc), 0);
40
+    $length = max($length-strlen($etc), 0);
41 41
     if ($break === false && $middle === false) {
42
-        $value = preg_replace('#\s+(\S*)?$#', '', substr($value, 0, $length + 1));
42
+        $value = preg_replace('#\s+(\S*)?$#', '', substr($value, 0, $length+1));
43 43
     }
44 44
     if ($middle === false) {
45 45
         return substr($value, 0, $length).$etc;
46 46
     }
47 47
 
48
-    return substr($value, 0, ceil($length / 2)).$etc.substr($value, -floor($length / 2));
48
+    return substr($value, 0, ceil($length/2)).$etc.substr($value, -floor($length/2));
49 49
 }
Please login to merge, or discard this patch.
lib/plugins/builtin/functions/include.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
     }
63 63
 
64 64
     if (count($rest)) {
65
-        $vars = $rest + $vars;
65
+        $vars = $rest+$vars;
66 66
     }
67 67
 
68 68
     $clone = clone $dwoo;
Please login to merge, or discard this patch.
lib/plugins/builtin/functions/date_format.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
 
42 42
     // Credits for that windows compat block to Monte Ohrt who made smarty's date_format plugin
43 43
     if (DIRECTORY_SEPARATOR == '\\') {
44
-        $_win_from = array('%D',       '%h', '%n', '%r',          '%R',    '%t', '%T');
44
+        $_win_from = array('%D', '%h', '%n', '%r', '%R', '%t', '%T');
45 45
         $_win_to = array('%m/%d/%y', '%b', "\n", '%I:%M:%S %p', '%H:%M', "\t", '%H:%M:%S');
46 46
         if (strpos($format, '%e') !== false) {
47 47
             $_win_from[] = '%e';
Please login to merge, or discard this patch.
lib/plugins/builtin/functions/dump.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
 
103 103
         $list = (array) $obj;
104 104
 
105
-        $protectedLength = strlen(get_class($obj)) + 2;
105
+        $protectedLength = strlen(get_class($obj))+2;
106 106
 
107 107
         $out = array();
108 108
 
Please login to merge, or discard this patch.
lib/plugins/builtin/processors/pre.smarty_compat.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
         $params = array();
67 67
         $index = 1;
68 68
         while (!empty($matches[$index]) && $index < 13) {
69
-            $params[$matches[$index]] = $matches[$index + 1];
69
+            $params[$matches[$index]] = $matches[$index+1];
70 70
             $index += 2;
71 71
         }
72 72
 
Please login to merge, or discard this patch.