Completed
Push — master ( c80ec8...da2a08 )
by Daniel
02:43
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   +20 added lines patch added patch discarded remove patch
@@ -90,6 +90,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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 = '';
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -107,13 +107,13 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
         $sReturn[]   = $this->setFormRow(sprintf($ovTime['m'], $ovTime[1], '175%'), ($ovTimeVal['os175'] * pow(10, 4)));
306 306
         $sReturn[]   = $this->setFormRow(sprintf($ovTime['m'], $ovTime[2], '200%'), ($ovTimeVal['os200'] * pow(10, 4)));
307 307
         $sReturn[]   = $this->setFormRow($this->tApp->gettext('i18n_Form_Label_BruttoSalary'), $brut);
308
-        $brut        += $this->tCmnSuperGlobals->get('afet') * pow(10, 4);
308
+        $brut += $this->tCmnSuperGlobals->get('afet') * pow(10, 4);
309 309
         $amount      = $this->getValues($brut, $aryStngs);
310 310
         $sReturn[]   = $this->setFormRow($this->tApp->gettext('i18n_Form_Label_PensionFund'), $amount['cas']);
311 311
         $sReturn[]   = $this->setFormRow($this->tApp->gettext('i18n_Form_Label_UnemploymentTax'), $amount['somaj']);
@@ -364,7 +364,7 @@  discard block
 block discarded – undo
364 364
 
365 365
     private function setFormRowAmount($value, $defaultCellStyle)
366 366
     {
367
-        $cellValue                 = [];
367
+        $cellValue = [];
368 368
         $defaultCellStyle['style'] .= 'text-align:right;';
369 369
         foreach ($this->currencyDetails['CX'] as $key2 => $value2) {
370 370
             $fmt         = new \NumberFormatter($value2['locale'], \NumberFormatter::CURRENCY);
@@ -381,7 +381,7 @@  discard block
 block discarded – undo
381 381
             'class' => 'labelS',
382 382
             'style' => 'color:#000;',
383 383
         ];
384
-        $fieldsStyled     = $this->buildArrayOfFieldsStyled();
384
+        $fieldsStyled = $this->buildArrayOfFieldsStyled();
385 385
         if (array_key_exists($text, $fieldsStyled)) {
386 386
             $defaultCellStyle['style'] = $this->buildStyleForCellFormat($fieldsStyled[$text]);
387 387
         }
@@ -411,7 +411,7 @@  discard block
 block discarded – undo
411 411
         $sReturn   = '';
412 412
         if (is_array($labelInfo)) {
413 413
             if (count($labelInfo) == 3) {
414
-                $pieces  = [
414
+                $pieces = [
415 415
                     $this->tApp->gettext($labelInfo[0]),
416 416
                     $this->tApp->gettext($labelInfo[1]),
417 417
                 ];
Please login to merge, or discard this patch.