@@ -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 | } |
@@ -74,7 +74,7 @@ |
||
| 74 | 74 | 2003 => 1800000, |
| 75 | 75 | 2004 => 2000000, |
| 76 | 76 | ]; |
| 77 | - $nReturn = $valuesYearly[$yrDate]; |
|
| 77 | + $nReturn = $valuesYearly[$yrDate]; |
|
| 78 | 78 | } |
| 79 | 79 | return (($lngDate >= 20060701) ? round($nReturn, -4) : $nReturn); |
| 80 | 80 | } |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | 'min_range' => $dtR['minimum']->format('Ymd'), |
| 52 | 52 | ] |
| 53 | 53 | ]; |
| 54 | - $validYM = filter_var($tCSG->get('ym'), FILTER_VALIDATE_INT, $validOpt); |
|
| 54 | + $validYM = filter_var($tCSG->get('ym'), FILTER_VALIDATE_INT, $validOpt); |
|
| 55 | 55 | if (!array_key_exists($validYM, $ymValues)) { |
| 56 | 56 | $validYM = $validOpt['options']['default']; |
| 57 | 57 | } |
@@ -155,6 +155,9 @@ |
||
| 155 | 155 | return $nReturn; |
| 156 | 156 | } |
| 157 | 157 | |
| 158 | + /** |
|
| 159 | + * @param integer $yrDate |
|
| 160 | + */ |
|
| 158 | 161 | private function setIncomeTaxFromJson($lngTaxBase, $nValues, $yrDate) { |
| 159 | 162 | $nReturn = 0; |
| 160 | 163 | $howMany = count($nValues); |
@@ -163,7 +163,7 @@ |
||
| 163 | 163 | for ($counter = 0; $counter <= $howMany; $counter++) { |
| 164 | 164 | $nReturn = $lngTaxBase * $this->txLvl['inTaxP']; |
| 165 | 165 | if (($lngTaxBase <= $nValues[$counter]['Upper Limit Value'])) { |
| 166 | - $sLbl = [ |
|
| 166 | + $sLbl = [ |
|
| 167 | 167 | 'BDP' => $nValues[$counter]['Base Deducted Percentage'], |
| 168 | 168 | 'BDV' => $nValues[$counter]['Base Deduction Value'], |
| 169 | 169 | 'TFV' => $nValues[$counter]['Tax Free Value'], |
@@ -65,6 +65,9 @@ discard block |
||
| 65 | 65 | ]; |
| 66 | 66 | } |
| 67 | 67 | |
| 68 | + /** |
|
| 69 | + * @param double $lngBase |
|
| 70 | + */ |
|
| 68 | 71 | private function getValues($lngBase, $aStngs, $shLabels, $dtR) { |
| 69 | 72 | $inDate = $this->tCmnSuperGlobals->request->get('ym'); |
| 70 | 73 | $aReturn = $this->getValuesPrimary($inDate, $lngBase, $aStngs, $shLabels, $dtR); |
@@ -203,11 +206,19 @@ discard block |
||
| 203 | 206 | return implode($sReturn, ''); |
| 204 | 207 | } |
| 205 | 208 | |
| 209 | + /** |
|
| 210 | + * @param string $frm |
|
| 211 | + */ |
|
| 206 | 212 | private function setFormInputIntoFieldSet($frm) { |
| 207 | 213 | return '<div class="tabbertab" id="Input" title="' . $this->tApp->gettext('i18n_FieldsetLabel_Inputs') . '">' |
| 208 | 214 | . $frm . '</div>'; |
| 209 | 215 | } |
| 210 | 216 | |
| 217 | + /** |
|
| 218 | + * @param string $inName |
|
| 219 | + * @param integer $inSize |
|
| 220 | + * @param string $inAfterLabel |
|
| 221 | + */ |
|
| 211 | 222 | private function setFormInputText($inName, $inSize, $inAfterLabel, $crtMinWage = 0) { |
| 212 | 223 | $inputParameters = [ |
| 213 | 224 | 'type' => 'text', |
@@ -286,6 +297,9 @@ discard block |
||
| 286 | 297 | . $this->setStringIntoTag(implode('', $sReturn), 'table') . '</tbody>' . '</div>'; |
| 287 | 298 | } |
| 288 | 299 | |
| 300 | + /** |
|
| 301 | + * @param double $amntLAA |
|
| 302 | + */ |
|
| 289 | 303 | private function setFormOutputBonuses($snValue, $wkDays, $amntLAA, $ovTimeVal) { |
| 290 | 304 | $sRt = []; |
| 291 | 305 | $sMin = $this->tCmnSuperGlobals->request->get('sm') * pow(10, 4); |
@@ -327,6 +341,9 @@ discard block |
||
| 327 | 341 | return implode('', $sReturn) . '</tr></thead></tbody>'; |
| 328 | 342 | } |
| 329 | 343 | |
| 344 | + /** |
|
| 345 | + * @param double $brut |
|
| 346 | + */ |
|
| 330 | 347 | private function setFormOutputTaxations($brut, $amnt) { |
| 331 | 348 | $sRn = []; |
| 332 | 349 | $limitDisplayBase = false; |
@@ -378,6 +395,10 @@ discard block |
||
| 378 | 395 | return implode('', $cellValue); |
| 379 | 396 | } |
| 380 | 397 | |
| 398 | + /** |
|
| 399 | + * @param string $text1 |
|
| 400 | + * @param string $text2 |
|
| 401 | + */ |
|
| 381 | 402 | private function setFrmRowTwoLbls($text1, $text2, $value) { |
| 382 | 403 | return str_replace(':</td>', ':</td><td class="labelS" style="text-align:right;">' |
| 383 | 404 | . $text2 . '</td>', $this->setFormRow($text1, $value, 'amount')); |
@@ -315,7 +315,7 @@ discard block |
||
| 315 | 315 | $sReturn[] = '<th><i class="fa fa-map-signs floatRight" style="font-size:2em;"> </i></th>'; |
| 316 | 316 | $this->appFlags['CTD'] = $this->manageCurrencyToDisplay($this->tCmnSuperGlobals); |
| 317 | 317 | foreach ($this->appFlags['CTD'] as $key => $value) { |
| 318 | - $crtPcs = [ |
|
| 318 | + $crtPcs = [ |
|
| 319 | 319 | $this->tApp->gettext('i18n_Form_Label_XofficialCurrencyUsedFrom'), |
| 320 | 320 | $this->tApp->gettext('i18n_Form_Label_CurrencyName_' . $key), |
| 321 | 321 | $this->tApp->gettext('i18n_CountryName_' . strtoupper($value['country'])), |
@@ -367,7 +367,7 @@ discard block |
||
| 367 | 367 | } |
| 368 | 368 | |
| 369 | 369 | private function setFormRowAmount($value, $defaultCellStyle) { |
| 370 | - $cellValue = []; |
|
| 370 | + $cellValue = []; |
|
| 371 | 371 | $defaultCellStyle['style'] .= 'text-align:right;'; |
| 372 | 372 | foreach ($this->appFlags['CTD'] as $key2 => $value2) { |
| 373 | 373 | $fmt = new \NumberFormatter($value2['locale'], \NumberFormatter::CURRENCY); |