@@ -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 | } |
@@ -57,6 +57,9 @@ discard block |
||
| 57 | 57 | echo $this->setFooterHtml($interfaceElements['Application']); |
| 58 | 58 | } |
| 59 | 59 | |
| 60 | + /** |
|
| 61 | + * @param double $lngBase |
|
| 62 | + */ |
|
| 60 | 63 | private function getIncomeTaxValue($inDate, $lngBase, $vBA, $aryDeductions, $arySettings) |
| 61 | 64 | { |
| 62 | 65 | $rest = $lngBase - array_sum($aryDeductions); |
@@ -83,6 +86,9 @@ discard block |
||
| 83 | 86 | ]; |
| 84 | 87 | } |
| 85 | 88 | |
| 89 | + /** |
|
| 90 | + * @param double $lngBase |
|
| 91 | + */ |
|
| 86 | 92 | private function getValues($lngBase, $aStngs, $shLabels) |
| 87 | 93 | { |
| 88 | 94 | $inDate = $this->tCmnSuperGlobals->request->get('ym'); |
@@ -173,6 +179,11 @@ discard block |
||
| 173 | 179 | return $sReturn; |
| 174 | 180 | } |
| 175 | 181 | |
| 182 | + /** |
|
| 183 | + * @param string $inName |
|
| 184 | + * @param integer $inSize |
|
| 185 | + * @param string $inAfterLabel |
|
| 186 | + */ |
|
| 176 | 187 | private function setFormInputText($inName, $inSize, $inAfterLabel) |
| 177 | 188 | { |
| 178 | 189 | $inputParameters = [ |
@@ -185,6 +196,9 @@ discard block |
||
| 185 | 196 | return $this->setStringIntoShortTag('input', $inputParameters) . ' ' . $inAfterLabel; |
| 186 | 197 | } |
| 187 | 198 | |
| 199 | + /** |
|
| 200 | + * @param string $configPath |
|
| 201 | + */ |
|
| 188 | 202 | private function setFormOutput($configPath, $shLabels) |
| 189 | 203 | { |
| 190 | 204 | $aryStngs = $this->readTypeFromJsonFileUniversal($configPath, 'valuesToCompute'); |
@@ -303,6 +317,10 @@ discard block |
||
| 303 | 317 | return implode('', $cellValue); |
| 304 | 318 | } |
| 305 | 319 | |
| 320 | + /** |
|
| 321 | + * @param string $text1 |
|
| 322 | + * @param string $text2 |
|
| 323 | + */ |
|
| 306 | 324 | private function setFormRowTwoLabels($text1, $text2, $value) |
| 307 | 325 | { |
| 308 | 326 | return str_replace(':</td>', ':</td><td class="labelS" style="text-align:right;">' |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | $this->initializeSprGlbAndSession(); |
| 51 | 51 | $this->handleLocalizationSalariu($interfaceElements['Application']); |
| 52 | 52 | echo $this->setHeaderHtml(); |
| 53 | - $ymValues = $this->buildYMvalues(); |
|
| 53 | + $ymValues = $this->buildYMvalues(); |
|
| 54 | 54 | $this->processFormInputDefaults($this->tCmnSuperGlobals, $interfaceElements['Values Filter Rules'], $ymValues); |
| 55 | 55 | echo $this->setFormInput($ymValues); |
| 56 | 56 | $this->setExchangeRateValues($interfaceElements['Application'], $interfaceElements['Relevant Currencies']); |
@@ -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 | |
@@ -221,7 +221,7 @@ discard block |
||
| 221 | 221 | $sReturn[] = $this->setFormRowTwoLabels(sprintf($ovTime['m'], $ovTime[2]), '<span style="font-size:smaller;">' |
| 222 | 222 | . $ovTime['o2'] . 'h x 200%</span>', $ovTime[22]); |
| 223 | 223 | $sReturn[] = $this->setFormRowTwoLabels($this->setLabel('sb'), ' ', $brut); |
| 224 | - $brut += $this->tCmnSuperGlobals->request->get('afet') * pow(10, 4); |
|
| 224 | + $brut += $this->tCmnSuperGlobals->request->get('afet') * pow(10, 4); |
|
| 225 | 225 | $amount = $this->getValues($brut, $aryStngs, $shLabels); |
| 226 | 226 | $casValue = $this->txLvl['cas']; |
| 227 | 227 | $sReturn[] = $this->setFormRowTwoLabels($this->setLabel('cas'), $this->txLvl['casP'] . '%', $casValue); |
@@ -297,7 +297,7 @@ discard block |
||
| 297 | 297 | |
| 298 | 298 | private function setFormRowAmount($value, $defaultCellStyle) |
| 299 | 299 | { |
| 300 | - $cellValue = []; |
|
| 300 | + $cellValue = []; |
|
| 301 | 301 | $defaultCellStyle['style'] .= 'text-align:right;'; |
| 302 | 302 | foreach ($this->currencyDetails['CX'] as $key2 => $value2) { |
| 303 | 303 | $fmt = new \NumberFormatter($value2['locale'], \NumberFormatter::CURRENCY); |
@@ -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 | } |