@@ -103,7 +103,7 @@ |
||
| 103 | 103 | 2003 => 1800000, |
| 104 | 104 | 2004 => 2000000, |
| 105 | 105 | ]; |
| 106 | - $nReturn = $valuesYearly[$yrDate]; |
|
| 106 | + $nReturn = $valuesYearly[$yrDate]; |
|
| 107 | 107 | } elseif ($yr == 2001) { |
| 108 | 108 | $nReturn = $this->setPersonalDeductionSimple2001($lngDate); |
| 109 | 109 | } |
@@ -173,6 +173,9 @@ |
||
| 173 | 173 | . '<h1>' . $this->tApp->gettext('i18n_ApplicationName') . '</h1>'; |
| 174 | 174 | } |
| 175 | 175 | |
| 176 | + /** |
|
| 177 | + * @param string $labelId |
|
| 178 | + */ |
|
| 176 | 179 | private function setLabel($labelId) |
| 177 | 180 | { |
| 178 | 181 | $labelInfo = $this->appFlags['FI'][$labelId]['Label']; |
@@ -112,7 +112,7 @@ |
||
| 112 | 112 | $sReturn = ''; |
| 113 | 113 | if (is_array($labelInfo)) { |
| 114 | 114 | if (count($labelInfo) == 3) { |
| 115 | - $pieces = [ |
|
| 115 | + $pieces = [ |
|
| 116 | 116 | $this->tApp->gettext($labelInfo[0]), |
| 117 | 117 | $this->tApp->gettext($labelInfo[1]), |
| 118 | 118 | ]; |
@@ -90,7 +90,7 @@ |
||
| 90 | 90 | 'class' => 'labelS', |
| 91 | 91 | 'style' => 'color:#000;', |
| 92 | 92 | ]; |
| 93 | - $fieldsStyled = $this->buildArrayOfFieldsStyled(); |
|
| 93 | + $fieldsStyled = $this->buildArrayOfFieldsStyled(); |
|
| 94 | 94 | if (array_key_exists($text, $fieldsStyled)) { |
| 95 | 95 | $defaultCellStyle['style'] = $this->buildStyleForCellFormat($fieldsStyled[$text]); |
| 96 | 96 | } |
@@ -118,7 +118,7 @@ |
||
| 118 | 118 | $howMany = count($nValues); |
| 119 | 119 | for ($counter = 0; $counter <= $howMany; $counter++) { |
| 120 | 120 | if (($lngTaxBase <= $nValues[$counter]['Upper Limit Value'])) { |
| 121 | - $sLbl = [ |
|
| 121 | + $sLbl = [ |
|
| 122 | 122 | 'BDP' => $nValues[$counter]['Base Deducted Percentage'], |
| 123 | 123 | 'BDV' => $nValues[$counter]['Base Deduction Value'], |
| 124 | 124 | 'TFV' => $nValues[$counter]['Tax Free Value'], |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | 'min_range' => mktime(0, 0, 0, 1, 1, 2001), |
| 41 | 41 | ] |
| 42 | 42 | ]; |
| 43 | - $validYM = filter_var($tCSG->get('ym'), FILTER_VALIDATE_INT, $validOpt); |
|
| 43 | + $validYM = filter_var($tCSG->get('ym'), FILTER_VALIDATE_INT, $validOpt); |
|
| 44 | 44 | if (!array_key_exists($validYM, $ymValues)) { |
| 45 | 45 | $validYM = mktime(0, 0, 0, date('m'), 1, date('Y')); |
| 46 | 46 | } |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | $this->tCmnSuperGlobals->request->get('pc'), |
| 130 | 130 | ]; |
| 131 | 131 | $this->tCmnSuperGlobals->request->set('wkDays', $this->setWorkingDaysInMonth($components[0], $components[1])); |
| 132 | - $vDays = $this->tCmnSuperGlobals->request->get('wkDays') - $this->tCmnSuperGlobals->request->get('zfb'); |
|
| 132 | + $vDays = $this->tCmnSuperGlobals->request->get('wkDays') - $this->tCmnSuperGlobals->request->get('zfb'); |
|
| 133 | 133 | $this->tCmnSuperGlobals->request->set('nDays', max($vDays, 0)); |
| 134 | 134 | } |
| 135 | 135 | |
@@ -329,7 +329,7 @@ discard block |
||
| 329 | 329 | |
| 330 | 330 | private function setFormRowAmount($value, $defaultCellStyle) |
| 331 | 331 | { |
| 332 | - $cellValue = []; |
|
| 332 | + $cellValue = []; |
|
| 333 | 333 | $defaultCellStyle['style'] .= 'text-align:right;'; |
| 334 | 334 | foreach ($this->currencyDetails['CX'] as $key2 => $value2) { |
| 335 | 335 | $fmt = new \NumberFormatter($value2['locale'], \NumberFormatter::CURRENCY); |
@@ -71,6 +71,9 @@ discard block |
||
| 71 | 71 | ]; |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | + /** |
|
| 75 | + * @param double $lngBase |
|
| 76 | + */ |
|
| 74 | 77 | private function getValues($dtR, $lngBase, $aStngs, $shLabels) |
| 75 | 78 | { |
| 76 | 79 | $inDate = $this->tCmnSuperGlobals->request->get('ym'); |
@@ -173,6 +176,9 @@ discard block |
||
| 173 | 176 | return $sReturn; |
| 174 | 177 | } |
| 175 | 178 | |
| 179 | + /** |
|
| 180 | + * @param string $frm |
|
| 181 | + */ |
|
| 176 | 182 | private function setFormInputIntoFieldSet($frm) |
| 177 | 183 | { |
| 178 | 184 | $aryFieldSet = [ |
@@ -182,6 +188,11 @@ discard block |
||
| 182 | 188 | return $this->setStringIntoTag(implode('', $aryFieldSet), 'fieldset', ['style' => 'float: left;']); |
| 183 | 189 | } |
| 184 | 190 | |
| 191 | + /** |
|
| 192 | + * @param string $inName |
|
| 193 | + * @param integer $inSize |
|
| 194 | + * @param string $inAfterLabel |
|
| 195 | + */ |
|
| 185 | 196 | private function setFormInputText($inName, $inSize, $inAfterLabel, $crtMinWage = 0) |
| 186 | 197 | { |
| 187 | 198 | $inputParameters = [ |
@@ -252,6 +263,9 @@ discard block |
||
| 252 | 263 | ]); |
| 253 | 264 | } |
| 254 | 265 | |
| 266 | + /** |
|
| 267 | + * @param double $amntLAA |
|
| 268 | + */ |
|
| 255 | 269 | private function setFormOutputBonuses($snValue, $wkDays, $amntLAA, $ovTimeVal) |
| 256 | 270 | { |
| 257 | 271 | $sRt = []; |
@@ -289,6 +303,9 @@ discard block |
||
| 289 | 303 | return implode('', $sReturn) . '</tr></thead></tbody>'; |
| 290 | 304 | } |
| 291 | 305 | |
| 306 | + /** |
|
| 307 | + * @param double $brut |
|
| 308 | + */ |
|
| 292 | 309 | private function setFormOutputTaxations($brut, $amnt) |
| 293 | 310 | { |
| 294 | 311 | $sRn = []; |
@@ -341,6 +358,10 @@ discard block |
||
| 341 | 358 | return implode('', $cellValue); |
| 342 | 359 | } |
| 343 | 360 | |
| 361 | + /** |
|
| 362 | + * @param string $text1 |
|
| 363 | + * @param string $text2 |
|
| 364 | + */ |
|
| 344 | 365 | private function setFrmRowTwoLbls($text1, $text2, $value) |
| 345 | 366 | { |
| 346 | 367 | return str_replace(':</td>', ':</td><td class="labelS" style="text-align:right;">' |