Completed
Push — master ( da2a08...b6c749 )
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   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -107,15 +107,15 @@  discard block
 block discarded – undo
107 107
             $aReturn['somaj'],
108 108
             $aReturn['pd'],
109 109
         ];
110
-        $rest              = $lngBase - array_sum($restArrayToDeduct);
110
+        $rest = $lngBase - array_sum($restArrayToDeduct);
111 111
         if ($inDate >= mktime(0, 0, 0, 7, 1, 2010)) {
112 112
             $rest += round($aReturn['ba'], -4);
113 113
             if ($inDate >= mktime(0, 0, 0, 10, 1, 2010)) {
114 114
                 $aReturn['gbns'] = $this->tCmnSuperGlobals->get('gbns') * pow(10, 4);
115
-                $rest            += round($aReturn['gbns'], -4);
115
+                $rest += round($aReturn['gbns'], -4);
116 116
             }
117 117
         }
118
-        $rest               += $this->tCmnSuperGlobals->get('afet') * pow(10, 4);
118
+        $rest += $this->tCmnSuperGlobals->get('afet') * pow(10, 4);
119 119
         $aReturn['impozit'] = $this->setIncomeTax($inDate, $rest, $aStngs['Income Tax']);
120 120
         return $aReturn;
121 121
     }
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
         $sReturn[]   = $this->setFormRow(sprintf($ovTime['m'], $ovTime[1], '175%'), ($ovTimeVal['os175'] * pow(10, 4)));
310 310
         $sReturn[]   = $this->setFormRow(sprintf($ovTime['m'], $ovTime[2], '200%'), ($ovTimeVal['os200'] * pow(10, 4)));
311 311
         $sReturn[]   = $this->setFormRow($this->tApp->gettext('i18n_Form_Label_BruttoSalary'), $brut);
312
-        $brut        += $this->tCmnSuperGlobals->get('afet') * pow(10, 4);
312
+        $brut += $this->tCmnSuperGlobals->get('afet') * pow(10, 4);
313 313
         $amount      = $this->getValues($brut, $aryStngs);
314 314
         $sReturn[]   = $this->setFormRow($this->tApp->gettext('i18n_Form_Label_PensionFund'), $amount['cas']);
315 315
         $sReturn[]   = $this->setFormRow($this->tApp->gettext('i18n_Form_Label_UnemploymentTax'), $amount['somaj']);
@@ -368,7 +368,7 @@  discard block
 block discarded – undo
368 368
 
369 369
     private function setFormRowAmount($value, $defaultCellStyle)
370 370
     {
371
-        $cellValue                 = [];
371
+        $cellValue = [];
372 372
         $defaultCellStyle['style'] .= 'text-align:right;';
373 373
         foreach ($this->currencyDetails['CX'] as $key2 => $value2) {
374 374
             $fmt         = new \NumberFormatter($value2['locale'], \NumberFormatter::CURRENCY);
@@ -385,7 +385,7 @@  discard block
 block discarded – undo
385 385
             'class' => 'labelS',
386 386
             'style' => 'color:#000;',
387 387
         ];
388
-        $fieldsStyled     = $this->buildArrayOfFieldsStyled();
388
+        $fieldsStyled = $this->buildArrayOfFieldsStyled();
389 389
         if (array_key_exists($text, $fieldsStyled)) {
390 390
             $defaultCellStyle['style'] = $this->buildStyleForCellFormat($fieldsStyled[$text]);
391 391
         }
@@ -415,7 +415,7 @@  discard block
 block discarded – undo
415 415
         $sReturn   = '';
416 416
         if (is_array($labelInfo)) {
417 417
             if (count($labelInfo) == 3) {
418
-                $pieces  = [
418
+                $pieces = [
419 419
                     $this->tApp->gettext($labelInfo[0]),
420 420
                     $this->tApp->gettext($labelInfo[1]),
421 421
                 ];
Please login to merge, or discard this patch.