Completed
Push — master ( b6c749...1fa67c )
by Daniel
03:02
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/ForeignCurrency.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -33,6 +33,9 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
Salariu/Salariu.php 2 patches
Doc Comments   +23 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)
107 113
     {
108 114
         $inDate             = $this->tCmnSuperGlobals->get('ym');
@@ -273,6 +279,11 @@  discard block
 block discarded – undo
273 279
         return $this->setArrayToSelect($temp, $this->tCmnSuperGlobals->get('ym'), 'ym', ['size' => 1]);
274 280
     }
275 281
 
282
+    /**
283
+     * @param string $inName
284
+     * @param integer $inSize
285
+     * @param string $inAfterLabel
286
+     */
276 287
     private function setFormInputText($inName, $inSize, $inAfterLabel)
277 288
     {
278 289
         $inputParameters = [
@@ -285,6 +296,9 @@  discard block
 block discarded – undo
285 296
         return $this->setStringIntoShortTag('input', $inputParameters) . ' ' . $inAfterLabel;
286 297
     }
287 298
 
299
+    /**
300
+     * @param string $configPath
301
+     */
288 302
     private function setFormOutput($configPath)
289 303
     {
290 304
         $aryStngs    = $this->readTypeFromJsonFileUniversal($configPath, 'valuesToCompute');
@@ -351,6 +365,9 @@  discard block
 block discarded – undo
351 365
                 ]), 'fieldset', ['style' => 'float: left;']);
352 366
     }
353 367
 
368
+    /**
369
+     * @param string $text
370
+     */
354 371
     private function setFormRow($text, $value, $type = 'amount')
355 372
     {
356 373
         $defaultCellStyle = $this->setFormatRow($text, $value);
@@ -413,6 +430,9 @@  discard block
 block discarded – undo
413 430
             . '<h1>' . $this->tApp->gettext('i18n_ApplicationName') . '</h1>';
414 431
     }
415 432
 
433
+    /**
434
+     * @param string $labelId
435
+     */
416 436
     private function setLabel($labelId)
417 437
     {
418 438
         $labelInfo = $this->appFlags['FI'][$labelId]['Label'];
@@ -431,6 +451,9 @@  discard block
 block discarded – undo
431 451
         return $this->setLabelSuffix($sReturn);
432 452
     }
433 453
 
454
+    /**
455
+     * @param string $text
456
+     */
434 457
     private function setLabelSuffix($text)
435 458
     {
436 459
         $suffix = '';
Please login to merge, or discard this patch.
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.