Completed
Push — master ( f72997...dfc376 )
by Daniel
02:30
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
Doc Comments   +14 added lines patch added patch discarded remove patch
@@ -94,6 +94,9 @@  discard block
 block discarded – undo
94 94
         ];
95 95
     }
96 96
 
97
+    /**
98
+     * @param double $lngBase
99
+     */
97 100
     private function getValues($lngBase, $aStngs)
98 101
     {
99 102
         $inDate           = $_REQUEST['ym'];
@@ -277,6 +280,11 @@  discard block
 block discarded – undo
277 280
         return $this->setArrayToSelect($temp, $_REQUEST['ym'], 'ym', ['size' => 1]);
278 281
     }
279 282
 
283
+    /**
284
+     * @param string $inName
285
+     * @param integer $inSize
286
+     * @param string $inAfterLabel
287
+     */
280 288
     private function setFormInputText($inName, $inSize, $inAfterLabel)
281 289
     {
282 290
         $inputParameters = [
@@ -347,6 +355,9 @@  discard block
 block discarded – undo
347 355
                         ]), 'fieldset', ['style' => 'float: left;']);
348 356
     }
349 357
 
358
+    /**
359
+     * @param string $text
360
+     */
350 361
     private function setFormRow($text, $value, $type = 'amount')
351 362
     {
352 363
         $a                = '';
@@ -428,6 +439,9 @@  discard block
 block discarded – undo
428 439
                 . '<h1>' . $this->tApp->gettext('i18n_ApplicationName') . '</h1>';
429 440
     }
430 441
 
442
+    /**
443
+     * @param string $labelId
444
+     */
431 445
     private function setLabel($labelId)
432 446
     {
433 447
         $labelInfo = $this->appFlags['FI'][$labelId]['Label'];
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -110,13 +110,13 @@  discard block
 block discarded – undo
110 110
         if ($_REQUEST['ym'] < mktime(0, 0, 0, 1, 1, 2008)) {
111 111
             $unemploymentBase = $_REQUEST['sn'];
112 112
         }
113
-        $aReturn           = [
113
+        $aReturn = [
114 114
             'ba'       => $this->setFoodTicketsValue($inDate, $aStngs[$shLbl['MTV']]) * $nMealDays,
115 115
             'cas'      => $this->setHealthFundTax($inDate, $lngBase, $aStngs[$shLbl['HFP']], $aStngs[$shLbl['HFUL']]),
116 116
             'sanatate' => $this->setHealthTax($inDate, $lngBase, $aStngs[$shLbl['HTP']]),
117 117
             'somaj'    => $this->setUnemploymentTax($inDate, $unemploymentBase),
118 118
         ];
119
-        $pdVal             = [
119
+        $pdVal = [
120 120
             $inDate,
121 121
             ($lngBase + $aReturn['ba']),
122 122
             $_REQUEST['pi'],
@@ -129,15 +129,15 @@  discard block
 block discarded – undo
129 129
             $aReturn['somaj'],
130 130
             $aReturn['pd'],
131 131
         ];
132
-        $rest              = $lngBase - array_sum($restArrayToDeduct);
132
+        $rest = $lngBase - array_sum($restArrayToDeduct);
133 133
         if ($inDate >= mktime(0, 0, 0, 7, 1, 2010)) {
134 134
             $rest += round($aReturn['ba'], -4);
135 135
             if ($inDate >= mktime(0, 0, 0, 10, 1, 2010)) {
136 136
                 $aReturn['gbns'] = $_REQUEST['gbns'] * pow(10, 4);
137
-                $rest            += round($aReturn['gbns'], -4);
137
+                $rest += round($aReturn['gbns'], -4);
138 138
             }
139 139
         }
140
-        $rest               += $_REQUEST['afet'] * pow(10, 4);
140
+        $rest += $_REQUEST['afet'] * pow(10, 4);
141 141
         $aReturn['impozit'] = $this->setIncomeTax($inDate, $rest, $aStngs[$shLbl['IT']]);
142 142
         $aReturn['zile']    = $this->setWorkingDaysInMonth($inDate, $_REQUEST['pc']);
143 143
         return $aReturn;
@@ -215,11 +215,11 @@  discard block
 block discarded – undo
215 215
             'name'  => 'action',
216 216
             'value' => $_SERVER['SERVER_NAME']
217 217
         ]);
218
-        $sReturn[]    = $this->setStringIntoTag($this->setStringIntoTag($label . $hiddenField, 'td', [
218
+        $sReturn[] = $this->setStringIntoTag($this->setStringIntoTag($label . $hiddenField, 'td', [
219 219
                     'colspan' => 2,
220 220
                     'style'   => 'color: red;'
221 221
                 ]), 'tr');
222
-        $resetBtn     = $this->setStringIntoShortTag('input', [
222
+        $resetBtn = $this->setStringIntoShortTag('input', [
223 223
             'type'  => 'reset',
224 224
             'id'    => 'reset',
225 225
             'value' => $this->tApp->gettext('i18n_Form_Button_Reset'),
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
                     'id'    => 'submit',
236 236
                     'value' => $submitBtnTxt
237 237
                 ]), 1);
238
-        $frm       = $this->setStringIntoTag($this->setStringIntoTag(implode('', $sReturn), 'table'), 'form', [
238
+        $frm = $this->setStringIntoTag($this->setStringIntoTag(implode('', $sReturn), 'table'), 'form', [
239 239
             'method' => 'get',
240 240
             'action' => $_SERVER['SCRIPT_NAME']
241 241
         ]);
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
         $sReturn[] = $this->setFormRow(sprintf($ovTime['main'], $ovTime[1], '175%'), ($overtime['os175'] * pow(10, 4)));
312 312
         $sReturn[] = $this->setFormRow(sprintf($ovTime['main'], $ovTime[2], '200%'), ($overtime['os200'] * pow(10, 4)));
313 313
         $sReturn[] = $this->setFormRow($this->tApp->gettext('i18n_Form_Label_BruttoSalary'), $brut);
314
-        $brut      += $_REQUEST['afet'] * pow(10, 4);
314
+        $brut += $_REQUEST['afet'] * pow(10, 4);
315 315
         $amount    = $this->getValues($brut, $aryStngs);
316 316
         $sReturn[] = $this->setFormRow($this->tApp->gettext('i18n_Form_Label_PensionFund'), $amount['cas']);
317 317
         $sReturn[] = $this->setFormRow($this->tApp->gettext('i18n_Form_Label_UnemploymentTax'), $amount['somaj']);
@@ -433,7 +433,7 @@  discard block
 block discarded – undo
433 433
         $labelInfo = $this->appFlags['FI'][$labelId]['Label'];
434 434
         if (is_array($labelInfo)) {
435 435
             if (count($labelInfo) == 3) {
436
-                $pieces  = [
436
+                $pieces = [
437 437
                     $this->tApp->gettext($labelInfo[0]),
438 438
                     $this->tApp->gettext($labelInfo[1]),
439 439
                 ];
Please login to merge, or discard this patch.