@@ -136,7 +136,7 @@ |
||
136 | 136 | $balance[$index] = [ |
137 | 137 | 'descripcion' => $index, |
138 | 138 | 'saldo' => $linea['saldo'], |
139 | - 'saldoprev' => $linea['saldoprev'],]; |
|
139 | + 'saldoprev' => $linea['saldoprev'], ]; |
|
140 | 140 | } else { |
141 | 141 | $balance[$index]['saldo'] += $linea['saldo']; |
142 | 142 | $balance[$index]['saldoprev'] += $linea['saldoprev']; |
@@ -136,7 +136,7 @@ |
||
136 | 136 | $balance[$index] = [ |
137 | 137 | 'descripcion' => $index, |
138 | 138 | 'saldo' => $linea['saldo'], |
139 | - 'saldoprev' => $linea['saldoprev'],]; |
|
139 | + 'saldoprev' => $linea['saldoprev'], ]; |
|
140 | 140 | } else { |
141 | 141 | $balance[$index]['saldo'] += $linea['saldo']; |
142 | 142 | $balance[$index]['saldoprev'] += $linea['saldoprev']; |
@@ -299,7 +299,7 @@ |
||
299 | 299 | * We discard everything except the first page, the last one, the middle one, |
300 | 300 | * the current one, the 5 previous and 5 following ones. |
301 | 301 | */ |
302 | - if (($key2 > 1 && $key2 < $current - 5 && $key2 != $middle) || ( $key2 > $current + 5 && $key2 < $key1 - 1 && $key2 != $middle)) { |
|
302 | + if (($key2 > 1 && $key2 < $current - 5 && $key2 != $middle) || ($key2 > $current + 5 && $key2 < $key1 - 1 && $key2 != $middle)) { |
|
303 | 303 | unset($pages[$key2]); |
304 | 304 | } |
305 | 305 | } |
@@ -316,7 +316,7 @@ |
||
316 | 316 | private function sortMenu(&$result) |
317 | 317 | { |
318 | 318 | /// sort this menu |
319 | - uasort($result, function ($menu1, $menu2) { |
|
319 | + uasort($result, function($menu1, $menu2) { |
|
320 | 320 | return strcasecmp($menu1->title, $menu2->title); |
321 | 321 | }); |
322 | 322 |
@@ -394,7 +394,7 @@ |
||
394 | 394 | private function loadDocumentDataFromArray($field, &$data): bool |
395 | 395 | { |
396 | 396 | if ($this->model->loadFromCode($data[$field])) { // old data |
397 | - $this->model->loadFromData($data, ['action', 'activetab', 'code']); // new data (the web form may be not have all the fields) |
|
397 | + $this->model->loadFromData($data, ['action', 'activetab', 'code']); // new data (the web form may be not have all the fields) |
|
398 | 398 | return $this->model->test(); |
399 | 399 | } |
400 | 400 | return false; |
@@ -158,7 +158,7 @@ |
||
158 | 158 | protected function calculateAmounts($data) |
159 | 159 | { |
160 | 160 | /// Init totals values |
161 | - $this->previousBalance = 0.00; /// TODO: Calculate previous balance from generated accounting entry |
|
161 | + $this->previousBalance = 0.00; /// TODO: Calculate previous balance from generated accounting entry |
|
162 | 162 | $this->sales = 0.00; |
163 | 163 | $this->purchases = 0.00; |
164 | 164 |
@@ -103,7 +103,7 @@ |
||
103 | 103 | static::init(); |
104 | 104 | |
105 | 105 | /// sort by priority |
106 | - uasort(static::$list[$type], function ($item1, $item2) { |
|
106 | + uasort(static::$list[$type], function($item1, $item2) { |
|
107 | 107 | if ($item1['priority'] > $item2['priority']) { |
108 | 108 | return -1; |
109 | 109 | } elseif ($item1['priority'] < $item2['priority']) { |
@@ -178,7 +178,7 @@ |
||
178 | 178 | } |
179 | 179 | |
180 | 180 | /// sorting |
181 | - usort($langs, function ($objA, $objB) { |
|
181 | + usort($langs, function($objA, $objB) { |
|
182 | 182 | return strcmp($objA['title'], $objB['title']); |
183 | 183 | }); |
184 | 184 |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | $twig = new Environment($this->loader, $this->getOptions()); |
84 | 84 | |
85 | 85 | /// asset functions |
86 | - $assetFunction = new TwigFunction('asset', function ($string) { |
|
86 | + $assetFunction = new TwigFunction('asset', function($string) { |
|
87 | 87 | $path = \FS_ROUTE . '/'; |
88 | 88 | if (substr($string, 0, strlen($path)) == $path) { |
89 | 89 | return $string; |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | $twig->addFunction($assetFunction); |
94 | 94 | |
95 | 95 | /// fixHtml functions |
96 | - $fixHtmlFunction = new TwigFilter('fixHtml', function ($string) { |
|
96 | + $fixHtmlFunction = new TwigFilter('fixHtml', function($string) { |
|
97 | 97 | return Utils::fixHtml($string); |
98 | 98 | }); |
99 | 99 | $twig->addFilter($fixHtmlFunction); |