Completed
Push — master ( bf4509...0aeec2 )
by Daniel
03:40
created
Salariu/InputValidation.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -64,6 +64,9 @@
 block discarded – undo
64 64
         return $validValue;
65 65
     }
66 66
 
67
+    /**
68
+     * @param string $optionLabel
69
+     */
67 70
     private function getValidOption($value, $inValuesFilterRules, $optionLabel)
68 71
     {
69 72
         $valReturn = $inValuesFilterRules[$optionLabel];
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
                 'min_range' => mktime(0, 0, 0, 1, 1, 2001),
41 41
             ]
42 42
         ];
43
-        $validYM  = filter_var($this->tCmnSuperGlobals->request->get('ym'), FILTER_VALIDATE_INT, $validOpt);
43
+        $validYM = filter_var($this->tCmnSuperGlobals->request->get('ym'), FILTER_VALIDATE_INT, $validOpt);
44 44
         $this->tCmnSuperGlobals->request->set('ym', $validYM);
45 45
     }
46 46
 
Please login to merge, or discard this patch.
Salariu/Salariu.php 2 patches
Doc Comments   +18 added lines patch added patch discarded remove patch
@@ -57,6 +57,9 @@  discard block
 block discarded – undo
57 57
         echo $this->setFooterHtml($interfaceElements['Application']);
58 58
     }
59 59
 
60
+    /**
61
+     * @param double $lngBase
62
+     */
60 63
     private function getIncomeTaxValue($inDate, $lngBase, $vBA, $aryDeductions, $arySettings)
61 64
     {
62 65
         $rest = $lngBase - array_sum($aryDeductions);
@@ -83,6 +86,9 @@  discard block
 block discarded – undo
83 86
         ];
84 87
     }
85 88
 
89
+    /**
90
+     * @param double $lngBase
91
+     */
86 92
     private function getValues($lngBase, $aStngs, $shLabels)
87 93
     {
88 94
         $inDate             = $this->tCmnSuperGlobals->request->get('ym');
@@ -173,6 +179,11 @@  discard block
 block discarded – undo
173 179
         return $sReturn;
174 180
     }
175 181
 
182
+    /**
183
+     * @param string $inName
184
+     * @param integer $inSize
185
+     * @param string $inAfterLabel
186
+     */
176 187
     private function setFormInputText($inName, $inSize, $inAfterLabel)
177 188
     {
178 189
         $inputParameters = [
@@ -185,6 +196,9 @@  discard block
 block discarded – undo
185 196
         return $this->setStringIntoShortTag('input', $inputParameters) . ' ' . $inAfterLabel;
186 197
     }
187 198
 
199
+    /**
200
+     * @param string $configPath
201
+     */
188 202
     private function setFormOutput($configPath, $shLabels)
189 203
     {
190 204
         $aryStngs    = $this->readTypeFromJsonFileUniversal($configPath, 'valuesToCompute');
@@ -303,6 +317,10 @@  discard block
 block discarded – undo
303 317
         return implode('', $cellValue);
304 318
     }
305 319
 
320
+    /**
321
+     * @param string $text1
322
+     * @param string $text2
323
+     */
306 324
     private function setFormRowTwoLabels($text1, $text2, $value)
307 325
     {
308 326
         return str_replace(':</td>', ':</td><td class="labelS" style="text-align:right;">'
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
             $this->tCmnSuperGlobals->request->get('pc'),
129 129
         ];
130 130
         $this->tCmnSuperGlobals->request->set('wkDays', $this->setWorkingDaysInMonth($components[0], $components[1]));
131
-        $vDays      = $this->tCmnSuperGlobals->request->get('wkDays') - $this->tCmnSuperGlobals->request->get('zfb');
131
+        $vDays = $this->tCmnSuperGlobals->request->get('wkDays') - $this->tCmnSuperGlobals->request->get('zfb');
132 132
         $this->tCmnSuperGlobals->request->set('nDays', max($vDays, 0));
133 133
     }
134 134
 
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
         $sReturn[]   = $this->setFormRowTwoLabels(sprintf($ovTime['m'], $ovTime[1]), '175%', $ovTime[11]);
217 217
         $sReturn[]   = $this->setFormRowTwoLabels(sprintf($ovTime['m'], $ovTime[2]), '200%', $ovTime[22]);
218 218
         $sReturn[]   = $this->setFormRowTwoLabels($this->setLabel('sb'), '&nbsp;', $brut);
219
-        $brut        += $this->tCmnSuperGlobals->request->get('afet') * pow(10, 4);
219
+        $brut += $this->tCmnSuperGlobals->request->get('afet') * pow(10, 4);
220 220
         $amount      = $this->getValues($brut, $aryStngs, $shLabels);
221 221
         $casValue    = $this->txLvl['cas'];
222 222
         $sReturn[]   = $this->setFormRowTwoLabels($this->setLabel('cas'), $this->txLvl['casP'] . '%', $casValue);
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
 
293 293
     private function setFormRowAmount($value, $defaultCellStyle)
294 294
     {
295
-        $cellValue                 = [];
295
+        $cellValue = [];
296 296
         $defaultCellStyle['style'] .= 'text-align:right;';
297 297
         foreach ($this->currencyDetails['CX'] as $key2 => $value2) {
298 298
             $fmt         = new \NumberFormatter($value2['locale'], \NumberFormatter::CURRENCY);
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
@@ -118,7 +118,7 @@
 block discarded – undo
118 118
         $howMany = count($nValues);
119 119
         for ($counter = 0; $counter <= $howMany; $counter++) {
120 120
             if (($lngTaxBase <= $nValues[$counter]['Upper Limit Value'])) {
121
-                $sLbl                  = [
121
+                $sLbl = [
122 122
                     'BDP' => $nValues[$counter]['Base Deducted Percentage'],
123 123
                     'BDV' => $nValues[$counter]['Base Deduction Value'],
124 124
                     'TFV' => $nValues[$counter]['Tax Free Value'],
Please login to merge, or discard this patch.