@@ -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 | } |
@@ -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); |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | $maxCounter = count($inMny); |
46 | 46 | for ($counter = 0; $counter < $maxCounter; $counter++) { |
47 | 47 | $crtVal = $inMny[$counter]; |
48 | - $crtDV = \DateTime::createFromFormat('Y-n-j', $crtVal['Year'].'-'.$crtVal['Month'].'-01'); |
|
48 | + $crtDV = \DateTime::createFromFormat('Y-n-j', $crtVal['Year'] . '-' . $crtVal['Month'] . '-01'); |
|
49 | 49 | $crtDateOfValue = (int) $crtDV->format('Ymd'); |
50 | 50 | if (($yearMonth <= $dtR['maximumInt']) && ($yearMonth >= $crtDateOfValue)) { |
51 | 51 | $intValue = $crtVal['Percentage']; |
@@ -165,13 +165,13 @@ discard block |
||
165 | 165 | } else { |
166 | 166 | for ($counter = 0; $counter <= $howMany; $counter++) { |
167 | 167 | if (($lngTaxBase <= $nValues[$counter]['Upper Limit Value'])) { |
168 | - $sLbl = [ |
|
168 | + $sLbl = [ |
|
169 | 169 | 'BDP' => $nValues[$counter]['Base Deducted Percentage'], |
170 | 170 | 'BDV' => $nValues[$counter]['Base Deduction Value'], |
171 | 171 | 'TFV' => $nValues[$counter]['Tax Free Value'], |
172 | 172 | ]; |
173 | 173 | $nReturn = $sLbl['TFV'] + ($lngTaxBase - $sLbl['BDV']) * $sLbl['BDP'] / 100; |
174 | - $this->txLvl['inTaxP'] = 'fx+'.$sLbl['BDP']; |
|
174 | + $this->txLvl['inTaxP'] = 'fx+' . $sLbl['BDP']; |
|
175 | 175 | $counter = $howMany; |
176 | 176 | } else { |
177 | 177 | $nReturn = $lngTaxBase * $this->txLvl['inTaxP']; |
@@ -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); |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | $crtUpperLimitDate = (int) $dtR['maximum']->format('Ymd'); |
47 | 47 | while (($valueMealTicket === 0)) { |
48 | 48 | $crtVal = $aryStngMealTickets[$indexArrayValues]; |
49 | - $crtLLDate = \DateTime::createFromFormat('Y-n-j', $crtVal['Year'].'-'.$crtVal['Month'].'-1'); |
|
49 | + $crtLLDate = \DateTime::createFromFormat('Y-n-j', $crtVal['Year'] . '-' . $crtVal['Month'] . '-1'); |
|
50 | 50 | $crtLowerLimitDate = (int) $crtLLDate->format('Ymd'); |
51 | 51 | $valueMealTicket = $this->setDynamicValues($lngDate, $crtVal, $crtLowerLimitDate, $crtUpperLimitDate); |
52 | 52 | $crtUpperLimitDate = $crtLowerLimitDate; |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | 2003 => 1800000, |
81 | 81 | 2004 => 2000000, |
82 | 82 | ]; |
83 | - $nReturn = $valuesYearly[$yrDate]; |
|
83 | + $nReturn = $valuesYearly[$yrDate]; |
|
84 | 84 | } |
85 | 85 | return (($lngDate >= 20060701) ? round($nReturn, -4) : $nReturn); |
86 | 86 | } |