@@ -33,6 +33,9 @@ |
||
33 | 33 | |
34 | 34 | protected $currencyDetails; |
35 | 35 | |
36 | + /** |
|
37 | + * @param \XMLReader $xml |
|
38 | + */ |
|
36 | 39 | private function getCurrencyExchangeRates($xml, $aryRelevantCurrencies) |
37 | 40 | { |
38 | 41 | switch ($xml->localName) { |
@@ -90,6 +90,9 @@ discard block |
||
90 | 90 | ]; |
91 | 91 | } |
92 | 92 | |
93 | + /** |
|
94 | + * @param double $lngBase |
|
95 | + */ |
|
93 | 96 | private function getValues($lngBase, $aStngs) |
94 | 97 | { |
95 | 98 | $inDate = $this->tCmnSuperGlobals->get('ym'); |
@@ -265,6 +268,11 @@ discard block |
||
265 | 268 | return $this->setArrayToSelect($temp, $this->tCmnSuperGlobals->get('ym'), 'ym', ['size' => 1]); |
266 | 269 | } |
267 | 270 | |
271 | + /** |
|
272 | + * @param string $inName |
|
273 | + * @param integer $inSize |
|
274 | + * @param string $inAfterLabel |
|
275 | + */ |
|
268 | 276 | private function setFormInputText($inName, $inSize, $inAfterLabel) |
269 | 277 | { |
270 | 278 | $inputParameters = [ |
@@ -277,6 +285,9 @@ discard block |
||
277 | 285 | return $this->setStringIntoShortTag('input', $inputParameters) . ' ' . $inAfterLabel; |
278 | 286 | } |
279 | 287 | |
288 | + /** |
|
289 | + * @param string $configPath |
|
290 | + */ |
|
280 | 291 | private function setFormOutput($configPath) |
281 | 292 | { |
282 | 293 | $aryStngs = $this->readTypeFromJsonFileUniversal($configPath, 'valuesToCompute'); |
@@ -338,6 +349,9 @@ discard block |
||
338 | 349 | ]), 'fieldset', ['style' => 'float: left;']); |
339 | 350 | } |
340 | 351 | |
352 | + /** |
|
353 | + * @param string $text |
|
354 | + */ |
|
341 | 355 | private function setFormRow($text, $value, $type = 'amount') |
342 | 356 | { |
343 | 357 | $defaultCellStyle = $this->setFormatRow($text, $value); |
@@ -398,6 +412,9 @@ discard block |
||
398 | 412 | . '<h1>' . $this->tApp->gettext('i18n_ApplicationName') . '</h1>'; |
399 | 413 | } |
400 | 414 | |
415 | + /** |
|
416 | + * @param string $labelId |
|
417 | + */ |
|
401 | 418 | private function setLabel($labelId) |
402 | 419 | { |
403 | 420 | $labelInfo = $this->appFlags['FI'][$labelId]['Label']; |
@@ -416,6 +433,9 @@ discard block |
||
416 | 433 | return $this->setLabelSuffix($sReturn); |
417 | 434 | } |
418 | 435 | |
436 | + /** |
|
437 | + * @param string $text |
|
438 | + */ |
|
419 | 439 | private function setLabelSuffix($text) |
420 | 440 | { |
421 | 441 | $suffix = ''; |
@@ -107,13 +107,13 @@ discard block |
||
107 | 107 | if ($this->tCmnSuperGlobals->get('ym') < mktime(0, 0, 0, 1, 1, 2008)) { |
108 | 108 | $unemploymentBase = $this->tCmnSuperGlobals->get('sn'); |
109 | 109 | } |
110 | - $aReturn = [ |
|
110 | + $aReturn = [ |
|
111 | 111 | 'ba' => $this->setFoodTicketsValue($inDate, $aStngs[$shLbl['MTV']]) * $nMealDays, |
112 | 112 | 'cas' => $this->setHealthFundTax($inDate, $lngBase, $aStngs[$shLbl['HFP']], $aStngs[$shLbl['HFUL']]), |
113 | 113 | 'sanatate' => $this->setHealthTax($inDate, $lngBase, $aStngs[$shLbl['HTP']]), |
114 | 114 | 'somaj' => $this->setUnemploymentTax($inDate, $unemploymentBase), |
115 | 115 | ]; |
116 | - $pdVal = [ |
|
116 | + $pdVal = [ |
|
117 | 117 | $inDate, |
118 | 118 | ($lngBase + $aReturn['ba']), |
119 | 119 | $this->tCmnSuperGlobals->get('pi'), |
@@ -126,15 +126,15 @@ discard block |
||
126 | 126 | $aReturn['somaj'], |
127 | 127 | $aReturn['pd'], |
128 | 128 | ]; |
129 | - $rest = $lngBase - array_sum($restArrayToDeduct); |
|
129 | + $rest = $lngBase - array_sum($restArrayToDeduct); |
|
130 | 130 | if ($inDate >= mktime(0, 0, 0, 7, 1, 2010)) { |
131 | 131 | $rest += round($aReturn['ba'], -4); |
132 | 132 | if ($inDate >= mktime(0, 0, 0, 10, 1, 2010)) { |
133 | 133 | $aReturn['gbns'] = $this->tCmnSuperGlobals->get('gbns') * pow(10, 4); |
134 | - $rest += round($aReturn['gbns'], -4); |
|
134 | + $rest += round($aReturn['gbns'], -4); |
|
135 | 135 | } |
136 | 136 | } |
137 | - $rest += $this->tCmnSuperGlobals->get('afet') * pow(10, 4); |
|
137 | + $rest += $this->tCmnSuperGlobals->get('afet') * pow(10, 4); |
|
138 | 138 | $aReturn['impozit'] = $this->setIncomeTax($inDate, $rest, $aStngs[$shLbl['IT']]); |
139 | 139 | $aReturn['zile'] = $wkDay; |
140 | 140 | return $aReturn; |
@@ -301,7 +301,7 @@ discard block |
||
301 | 301 | $sReturn[] = $this->setFormRow(sprintf($ovTime['main'], $ovTime[1], '175%'), ($overtime['os175'] * pow(10, 4))); |
302 | 302 | $sReturn[] = $this->setFormRow(sprintf($ovTime['main'], $ovTime[2], '200%'), ($overtime['os200'] * pow(10, 4))); |
303 | 303 | $sReturn[] = $this->setFormRow($this->tApp->gettext('i18n_Form_Label_BruttoSalary'), $brut); |
304 | - $brut += $this->tCmnSuperGlobals->get('afet') * pow(10, 4); |
|
304 | + $brut += $this->tCmnSuperGlobals->get('afet') * pow(10, 4); |
|
305 | 305 | $amount = $this->getValues($brut, $aryStngs); |
306 | 306 | $sReturn[] = $this->setFormRow($this->tApp->gettext('i18n_Form_Label_PensionFund'), $amount['cas']); |
307 | 307 | $sReturn[] = $this->setFormRow($this->tApp->gettext('i18n_Form_Label_UnemploymentTax'), $amount['somaj']); |
@@ -374,7 +374,7 @@ discard block |
||
374 | 374 | 'class' => 'labelS', |
375 | 375 | 'style' => 'color:#000;', |
376 | 376 | ]; |
377 | - $fieldsStyled = $this->buildArrayOfFieldsStyled(); |
|
377 | + $fieldsStyled = $this->buildArrayOfFieldsStyled(); |
|
378 | 378 | if (array_key_exists($text, $fieldsStyled)) { |
379 | 379 | $defaultCellStyle['style'] = $this->buildStyleForCellFormat($fieldsStyled[$text]); |
380 | 380 | } |
@@ -404,7 +404,7 @@ discard block |
||
404 | 404 | $sReturn = ''; |
405 | 405 | if (is_array($labelInfo)) { |
406 | 406 | if (count($labelInfo) == 3) { |
407 | - $pieces = [ |
|
407 | + $pieces = [ |
|
408 | 408 | $this->tApp->gettext($labelInfo[0]), |
409 | 409 | $this->tApp->gettext($labelInfo[1]), |
410 | 410 | ]; |