Completed
Push — master ( 1fa67c...2dbfbb )
by Daniel
03:46
created
Salariu/Bonuses.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
Salariu/Taxation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@
 block discarded – undo
120 120
         $howMany = count($nValues);
121 121
         for ($counter = 0; $counter <= $howMany; $counter++) {
122 122
             if (($lngTaxBase <= $nValues[$counter]['Upper Limit Value'])) {
123
-                $sLbl    = [
123
+                $sLbl = [
124 124
                     'BDP' => $nValues[$counter]['Base Deducted Percentage'],
125 125
                     'BDV' => $nValues[$counter]['Base Deduction Value'],
126 126
                     'TFV' => $nValues[$counter]['Tax Free Value'],
Please login to merge, or discard this patch.
Salariu/Salariu.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -313,7 +313,7 @@  discard block
 block discarded – undo
313 313
         $sReturn[]   = $this->setFormRow(sprintf($ovTime['m'], $ovTime[1], '175%'), ($ovTimeVal['os175'] * pow(10, 4)));
314 314
         $sReturn[]   = $this->setFormRow(sprintf($ovTime['m'], $ovTime[2], '200%'), ($ovTimeVal['os200'] * pow(10, 4)));
315 315
         $sReturn[]   = $this->setFormRow($this->tApp->gettext('i18n_Form_Label_BruttoSalary'), $brut);
316
-        $brut        += $this->tCmnSuperGlobals->get('afet') * pow(10, 4);
316
+        $brut += $this->tCmnSuperGlobals->get('afet') * pow(10, 4);
317 317
         $amount      = $this->getValues($brut, $aryStngs);
318 318
         $sReturn[]   = $this->setFormRow($this->tApp->gettext('i18n_Form_Label_PensionFund'), $amount['cas']);
319 319
         $sReturn[]   = $this->setFormRow($this->tApp->gettext('i18n_Form_Label_UnemploymentTax'), $amount['somaj']);
@@ -372,7 +372,7 @@  discard block
 block discarded – undo
372 372
 
373 373
     private function setFormRowAmount($value, $defaultCellStyle)
374 374
     {
375
-        $cellValue                 = [];
375
+        $cellValue = [];
376 376
         $defaultCellStyle['style'] .= 'text-align:right;';
377 377
         foreach ($this->currencyDetails['CX'] as $key2 => $value2) {
378 378
             $fmt         = new \NumberFormatter($value2['locale'], \NumberFormatter::CURRENCY);
@@ -389,7 +389,7 @@  discard block
 block discarded – undo
389 389
             'class' => 'labelS',
390 390
             'style' => 'color:#000;',
391 391
         ];
392
-        $fieldsStyled     = $this->buildArrayOfFieldsStyled();
392
+        $fieldsStyled = $this->buildArrayOfFieldsStyled();
393 393
         if (array_key_exists($text, $fieldsStyled)) {
394 394
             $defaultCellStyle['style'] = $this->buildStyleForCellFormat($fieldsStyled[$text]);
395 395
         }
@@ -419,7 +419,7 @@  discard block
 block discarded – undo
419 419
         $sReturn   = '';
420 420
         if (is_array($labelInfo)) {
421 421
             if (count($labelInfo) == 3) {
422
-                $pieces  = [
422
+                $pieces = [
423 423
                     $this->tApp->gettext($labelInfo[0]),
424 424
                     $this->tApp->gettext($labelInfo[1]),
425 425
                 ];
Please login to merge, or discard this patch.
Doc Comments   +26 added lines patch added patch discarded remove patch
@@ -77,6 +77,9 @@  discard block
 block discarded – undo
77 77
         return implode(';', $sReturn) . ';';
78 78
     }
79 79
 
80
+    /**
81
+     * @param double $lngBase
82
+     */
80 83
     private function getIncomeTaxValue($inDate, $lngBase, $vBA, $aryDeductions, $arySettings)
81 84
     {
82 85
         $rest = $lngBase - array_sum($aryDeductions);
@@ -103,6 +106,9 @@  discard block
 block discarded – undo
103 106
         ];
104 107
     }
105 108
 
109
+    /**
110
+     * @param double $lngBase
111
+     */
106 112
     private function getValues($lngBase, $aStngs, $shLabels)
107 113
     {
108 114
         $inDate             = $this->tCmnSuperGlobals->get('ym');
@@ -124,6 +130,9 @@  discard block
 block discarded – undo
124 130
         return $aReturn;
125 131
     }
126 132
 
133
+    /**
134
+     * @param integer $wkDay
135
+     */
127 136
     private function getValuesPrimary($inDate, $wkDay, $lngBase, $aStngs, $shLbl)
128 137
     {
129 138
         $nMealDays        = ($wkDay - $this->tCmnSuperGlobals->get('zfb'));
@@ -266,6 +275,11 @@  discard block
 block discarded – undo
266 275
         return $this->setArrayToSelect($temp, $this->tCmnSuperGlobals->get('ym'), 'ym', ['size' => 1]);
267 276
     }
268 277
 
278
+    /**
279
+     * @param string $inName
280
+     * @param integer $inSize
281
+     * @param string $inAfterLabel
282
+     */
269 283
     private function setFormInputText($inName, $inSize, $inAfterLabel)
270 284
     {
271 285
         $inputParameters = [
@@ -278,6 +292,9 @@  discard block
 block discarded – undo
278 292
         return $this->setStringIntoShortTag('input', $inputParameters) . ' ' . $inAfterLabel;
279 293
     }
280 294
 
295
+    /**
296
+     * @param string $configPath
297
+     */
281 298
     private function setFormOutput($configPath, $shLabels)
282 299
     {
283 300
         $aryStngs    = $this->readTypeFromJsonFileUniversal($configPath, 'valuesToCompute');
@@ -344,6 +361,9 @@  discard block
 block discarded – undo
344 361
                 ]), 'fieldset', ['style' => 'float: left;']);
345 362
     }
346 363
 
364
+    /**
365
+     * @param string $text
366
+     */
347 367
     private function setFormRow($text, $value, $type = 'amount')
348 368
     {
349 369
         $defaultCellStyle = $this->setFormatRow($text, $value);
@@ -406,6 +426,9 @@  discard block
 block discarded – undo
406 426
             . '<h1>' . $this->tApp->gettext('i18n_ApplicationName') . '</h1>';
407 427
     }
408 428
 
429
+    /**
430
+     * @param string $labelId
431
+     */
409 432
     private function setLabel($labelId)
410 433
     {
411 434
         $labelInfo = $this->appFlags['FI'][$labelId]['Label'];
@@ -424,6 +447,9 @@  discard block
 block discarded – undo
424 447
         return $this->setLabelSuffix($sReturn);
425 448
     }
426 449
 
450
+    /**
451
+     * @param string $text
452
+     */
427 453
     private function setLabelSuffix($text)
428 454
     {
429 455
         $suffix = '';
Please login to merge, or discard this patch.