@@ -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 | } |
@@ -288,7 +288,7 @@ discard block |
||
| 288 | 288 | $sReturn[] = '<th><i class="fa fa-map-signs floatRight" style="font-size:2em;"> </i></th>'; |
| 289 | 289 | $this->appFlags['CTD'] = $this->manageCurrencyToDisplay($this->tCmnSuperGlobals); |
| 290 | 290 | foreach ($this->appFlags['CTD'] as $key => $value) { |
| 291 | - $crtPcs = [ |
|
| 291 | + $crtPcs = [ |
|
| 292 | 292 | $this->tApp->gettext('i18n_Form_Label_XofficialCurrencyUsedFrom'), |
| 293 | 293 | $this->tApp->gettext('i18n_Form_Label_CurrencyName_' . $key), |
| 294 | 294 | $this->tApp->gettext('i18n_CountryName_' . strtoupper($value['country'])), |
@@ -341,7 +341,7 @@ discard block |
||
| 341 | 341 | |
| 342 | 342 | private function setFormRowAmount($value, $defaultCellStyle) |
| 343 | 343 | { |
| 344 | - $cellValue = []; |
|
| 344 | + $cellValue = []; |
|
| 345 | 345 | $defaultCellStyle['style'] .= 'text-align:right;'; |
| 346 | 346 | foreach ($this->appFlags['CTD'] as $key2 => $value2) { |
| 347 | 347 | $fmt = new \NumberFormatter($value2['locale'], \NumberFormatter::CURRENCY); |
@@ -67,6 +67,9 @@ discard block |
||
| 67 | 67 | ]; |
| 68 | 68 | } |
| 69 | 69 | |
| 70 | + /** |
|
| 71 | + * @param double $lngBase |
|
| 72 | + */ |
|
| 70 | 73 | private function getValues($lngBase, $aStngs, $shLabels, $dtR) |
| 71 | 74 | { |
| 72 | 75 | $inDate = $this->tCmnSuperGlobals->request->get('ym'); |
@@ -207,12 +210,20 @@ discard block |
||
| 207 | 210 | return implode($sReturn, ''); |
| 208 | 211 | } |
| 209 | 212 | |
| 213 | + /** |
|
| 214 | + * @param string $frm |
|
| 215 | + */ |
|
| 210 | 216 | private function setFormInputIntoFieldSet($frm) |
| 211 | 217 | { |
| 212 | 218 | return '<div class="tabbertab" id="Input" title="' . $this->tApp->gettext('i18n_FieldsetLabel_Inputs') . '">' |
| 213 | 219 | . $frm . '</div>'; |
| 214 | 220 | } |
| 215 | 221 | |
| 222 | + /** |
|
| 223 | + * @param string $inName |
|
| 224 | + * @param integer $inSize |
|
| 225 | + * @param string $inAfterLabel |
|
| 226 | + */ |
|
| 216 | 227 | private function setFormInputText($inName, $inSize, $inAfterLabel, $crtMinWage = 0) |
| 217 | 228 | { |
| 218 | 229 | $inputParameters = [ |
@@ -293,6 +304,9 @@ discard block |
||
| 293 | 304 | . $this->setStringIntoTag(implode('', $sReturn), 'table') . '</tbody>' . '</div>'; |
| 294 | 305 | } |
| 295 | 306 | |
| 307 | + /** |
|
| 308 | + * @param double $amntLAA |
|
| 309 | + */ |
|
| 296 | 310 | private function setFormOutputBonuses($snValue, $wkDays, $amntLAA, $ovTimeVal) |
| 297 | 311 | { |
| 298 | 312 | $sRt = []; |
@@ -336,6 +350,9 @@ discard block |
||
| 336 | 350 | return implode('', $sReturn) . '</tr></thead></tbody>'; |
| 337 | 351 | } |
| 338 | 352 | |
| 353 | + /** |
|
| 354 | + * @param double $brut |
|
| 355 | + */ |
|
| 339 | 356 | private function setFormOutputTaxations($brut, $amnt) |
| 340 | 357 | { |
| 341 | 358 | $sRn = []; |
@@ -390,6 +407,10 @@ discard block |
||
| 390 | 407 | return implode('', $cellValue); |
| 391 | 408 | } |
| 392 | 409 | |
| 410 | + /** |
|
| 411 | + * @param string $text1 |
|
| 412 | + * @param string $text2 |
|
| 413 | + */ |
|
| 393 | 414 | private function setFrmRowTwoLbls($text1, $text2, $value) |
| 394 | 415 | { |
| 395 | 416 | return str_replace(':</td>', ':</td><td class="labelS" style="text-align:right;">' |
@@ -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 | } |
@@ -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'], |