@@ -62,7 +62,7 @@ |
||
| 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 | |
@@ -89,7 +89,7 @@ |
||
| 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 |
@@ -37,13 +37,13 @@ |
||
| 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 | } |
@@ -62,7 +62,7 @@ |
||
| 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; |
@@ -41,7 +41,7 @@ |
||
| 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'; |
@@ -102,7 +102,7 @@ |
||
| 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 | |
@@ -66,7 +66,7 @@ |
||
| 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 | |