Completed
Push — master ( 76756b...bf4509 )
by Daniel
02:36
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/BasicSalariu.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -173,6 +173,9 @@
 block discarded – undo
173 173
             . '<h1>' . $this->tApp->gettext('i18n_ApplicationName') . '</h1>';
174 174
     }
175 175
 
176
+    /**
177
+     * @param string $labelId
178
+     */
176 179
     private function setLabel($labelId)
177 180
     {
178 181
         $labelInfo = $this->appFlags['FI'][$labelId]['Label'];
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@
 block discarded – undo
112 112
         $sReturn   = '';
113 113
         if (is_array($labelInfo)) {
114 114
             if (count($labelInfo) == 3) {
115
-                $pieces  = [
115
+                $pieces = [
116 116
                     $this->tApp->gettext($labelInfo[0]),
117 117
                     $this->tApp->gettext($labelInfo[1]),
118 118
                 ];
Please login to merge, or discard this patch.
Salariu/Salariu.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
         $sReturn[]   = $this->setFormRow(sprintf($ovTime['m'], $ovTime[1], '175%'), ($ovTimeVal['os175'] * pow(10, 4)));
197 197
         $sReturn[]   = $this->setFormRow(sprintf($ovTime['m'], $ovTime[2], '200%'), ($ovTimeVal['os200'] * pow(10, 4)));
198 198
         $sReturn[]   = $this->setFormRow($this->setLabel('sb'), $brut);
199
-        $brut        += $this->tCmnSuperGlobals->get('afet') * pow(10, 4);
199
+        $brut += $this->tCmnSuperGlobals->get('afet') * pow(10, 4);
200 200
         $amount      = $this->getValues($brut, $aryStngs, $shLabels);
201 201
         $sReturn[]   = $this->setFormRow($this->setLabel('cas'), $amount['cas']);
202 202
         $sReturn[]   = $this->setFormRow($this->setLabel('somaj'), $amount['somaj']);
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
 
254 254
     private function setFormRowAmount($value, $defaultCellStyle)
255 255
     {
256
-        $cellValue                 = [];
256
+        $cellValue = [];
257 257
         $defaultCellStyle['style'] .= 'text-align:right;';
258 258
         foreach ($this->currencyDetails['CX'] as $key2 => $value2) {
259 259
             $fmt         = new \NumberFormatter($value2['locale'], \NumberFormatter::CURRENCY);
Please login to merge, or discard this patch.
Doc Comments   +21 added lines patch added patch discarded remove patch
@@ -56,6 +56,9 @@  discard block
 block discarded – undo
56 56
         echo $this->setFooterHtml($interfaceElements['Application']);
57 57
     }
58 58
 
59
+    /**
60
+     * @param double $lngBase
61
+     */
59 62
     private function getIncomeTaxValue($inDate, $lngBase, $vBA, $aryDeductions, $arySettings)
60 63
     {
61 64
         $rest = $lngBase - array_sum($aryDeductions);
@@ -82,6 +85,9 @@  discard block
 block discarded – undo
82 85
         ];
83 86
     }
84 87
 
88
+    /**
89
+     * @param double $lngBase
90
+     */
85 91
     private function getValues($lngBase, $aStngs, $shLabels)
86 92
     {
87 93
         $inDate             = $this->tCmnSuperGlobals->get('ym');
@@ -103,6 +109,9 @@  discard block
 block discarded – undo
103 109
         return $aReturn;
104 110
     }
105 111
 
112
+    /**
113
+     * @param integer $wkDay
114
+     */
106 115
     private function getValuesPrimary($inDate, $wkDay, $lngBase, $aStngs, $shLbl)
107 116
     {
108 117
         $this->setHealthFundTax($inDate, $lngBase, $aStngs[$shLbl['HFP']], $aStngs[$shLbl['HFUL']]);
@@ -161,6 +170,11 @@  discard block
 block discarded – undo
161 170
         return $sReturn;
162 171
     }
163 172
 
173
+    /**
174
+     * @param string $inName
175
+     * @param integer $inSize
176
+     * @param string $inAfterLabel
177
+     */
164 178
     private function setFormInputText($inName, $inSize, $inAfterLabel)
165 179
     {
166 180
         $inputParameters = [
@@ -173,6 +187,9 @@  discard block
 block discarded – undo
173 187
         return $this->setStringIntoShortTag('input', $inputParameters) . ' ' . $inAfterLabel;
174 188
     }
175 189
 
190
+    /**
191
+     * @param string $configPath
192
+     */
176 193
     private function setFormOutput($configPath, $shLabels)
177 194
     {
178 195
         $aryStngs    = $this->readTypeFromJsonFileUniversal($configPath, 'valuesToCompute');
@@ -275,6 +292,10 @@  discard block
 block discarded – undo
275 292
         return implode('', $cellValue);
276 293
     }
277 294
 
295
+    /**
296
+     * @param string $text1
297
+     * @param string $text2
298
+     */
278 299
     private function setFormRowTwoLabels($text1, $text2, $value)
279 300
     {
280 301
         return str_replace(':</td>', ':</td><td class="labelS" style="text-align:right;">'
Please login to merge, or discard this patch.
Salariu/FormattingSalariu.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
90 90
             'class' => 'labelS',
91 91
             'style' => 'color:#000;',
92 92
         ];
93
-        $fieldsStyled     = $this->buildArrayOfFieldsStyled();
93
+        $fieldsStyled = $this->buildArrayOfFieldsStyled();
94 94
         if (array_key_exists($text, $fieldsStyled)) {
95 95
             $defaultCellStyle['style'] = $this->buildStyleForCellFormat($fieldsStyled[$text]);
96 96
         }
Please login to merge, or discard this patch.