Completed
Push — master ( 5dd1b0...143927 )
by Daniel
03:21
created
Salariu/Salariu.php 2 patches
Doc Comments   +21 added lines patch added patch discarded remove patch
@@ -65,6 +65,9 @@  discard block
 block discarded – undo
65 65
         ];
66 66
     }
67 67
 
68
+    /**
69
+     * @param double $lngBase
70
+     */
68 71
     private function getValues($lngBase, $aStngs, $shLabels, $dtR) {
69 72
         $inDate             = $this->tCmnSuperGlobals->request->get('ym');
70 73
         $aReturn            = $this->getValuesPrimary($inDate, $lngBase, $aStngs, $shLabels, $dtR);
@@ -181,11 +184,19 @@  discard block
 block discarded – undo
181 184
         return implode($sReturn, '');
182 185
     }
183 186
 
187
+    /**
188
+     * @param string $frm
189
+     */
184 190
     private function setFormInputIntoFieldSet($frm) {
185 191
         return '<div class="tabbertab" id="Input" title="'.$this->tApp->gettext('i18n_FieldsetLabel_Inputs').'">'
186 192
                 .$frm.'</div>';
187 193
     }
188 194
 
195
+    /**
196
+     * @param string $inName
197
+     * @param integer $inSize
198
+     * @param string $inAfterLabel
199
+     */
189 200
     private function setFormInputText($inName, $inSize, $inAfterLabel, $crtMinWage = 0) {
190 201
         $inputParameters = [
191 202
             'type'      => 'text',
@@ -250,6 +261,9 @@  discard block
 block discarded – undo
250 261
                 .$this->setStringIntoTag(implode('', $sReturn), 'table').'</tbody>'.'</div>';
251 262
     }
252 263
 
264
+    /**
265
+     * @param double $amntLAA
266
+     */
253 267
     private function setFormOutputBonuses($snValue, $wkDays, $amntLAA, $ovTimeVal) {
254 268
         $sRt      = [];
255 269
         $sMin     = $this->tCmnSuperGlobals->request->get('sm') * pow(10, 4);
@@ -291,6 +305,9 @@  discard block
 block discarded – undo
291 305
         return implode('', $sReturn).'</tr></thead></tbody>';
292 306
     }
293 307
 
308
+    /**
309
+     * @param double $brut
310
+     */
294 311
     private function setFormOutputTaxations($brut, $amnt) {
295 312
         $sRn              = [];
296 313
         $limitDisplayBase = false;
@@ -342,6 +359,10 @@  discard block
 block discarded – undo
342 359
         return implode('', $cellValue);
343 360
     }
344 361
 
362
+    /**
363
+     * @param string $text1
364
+     * @param string $text2
365
+     */
345 366
     private function setFrmRowTwoLbls($text1, $text2, $value) {
346 367
         return str_replace(':</td>', ':</td><td class="labelS" style="text-align:right;">'
347 368
                 .$text2.'</td>', $this->setFormRow($text1, $value, 'amount'));
Please login to merge, or discard this patch.
Spacing   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
         \danielgp\salariu\Taxation;
39 39
 
40 40
     public function __construct() {
41
-        $configPath = 'Salariu'.DIRECTORY_SEPARATOR.'config';
41
+        $configPath = 'Salariu' . DIRECTORY_SEPARATOR . 'config';
42 42
         $inElmnts   = $this->readTypeFromJsonFileUniversal($configPath, 'interfaceElements');
43 43
         $this->setPreliminarySettings($inElmnts);
44 44
         $this->establishLocalizationToDisplay();
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
             'YM range'          => $dtR,
131 131
             'fb'                => $fbValue,
132 132
         ]);
133
-        $sReturn = $this->setFormInputElements($ymValues, $minWage).$this->setFormInputBottom();
133
+        $sReturn = $this->setFormInputElements($ymValues, $minWage) . $this->setFormInputBottom();
134 134
         $frm     = $this->setStringIntoTag($this->setStringIntoTag($sReturn, 'table'), 'form', [
135 135
             'method' => 'get',
136 136
             'action' => $this->tCmnSuperGlobals->getScriptName()
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
         $xCurrency = array_diff(array_keys($this->currencyDetails['CX']), ['RON']);
144 144
         $this->applyCurrencyValidations($this->tCmnSuperGlobals, $this->appFlags['DCTD'], $xCurrency);
145 145
         foreach ($xCurrency as $value) {
146
-            $xChoices[$value] = $value.' ('.$this->tApp->gettext('i18n_Form_Label_CurrencyName_'.$value).')';
146
+            $xChoices[$value] = $value . ' (' . $this->tApp->gettext('i18n_Form_Label_CurrencyName_' . $value) . ')';
147 147
         }
148 148
         $xSelect = $this->setArrayToSelect($xChoices, $this->tCmnSuperGlobals->request->get('xMoney'), 'xMoney[]', [
149 149
             'size' => 100,
@@ -155,13 +155,13 @@  discard block
 block discarded – undo
155 155
             'id'    => 'submit',
156 156
             'value' => $this->tApp->gettext('i18n_Form_Button_Recalculate')
157 157
         ]);
158
-        return $this->setFormRow('&nbsp;', $btn, 1).$sRow.'</tbody>';
158
+        return $this->setFormRow('&nbsp;', $btn, 1) . $sRow . '</tbody>';
159 159
     }
160 160
 
161 161
     private function setFormInputElements($ymValues, $crtMinWage) {
162 162
         $sReturn   = [];
163
-        $sReturn[] = '<thead><tr><th>'.$this->tApp->gettext('i18n_Form_Label_InputElements')
164
-                .'</th><th>'.$this->tApp->gettext('i18n_Form_Label_InputValues').'</th></tr></thead><tbody>';
163
+        $sReturn[] = '<thead><tr><th>' . $this->tApp->gettext('i18n_Form_Label_InputElements')
164
+                .'</th><th>' . $this->tApp->gettext('i18n_Form_Label_InputValues') . '</th></tr></thead><tbody>';
165 165
         $sReturn[] = $this->setFormRow($this->setLabel('ym'), $this->setFormInputSelectYM($ymValues), 1);
166 166
         $sReturn[] = $this->setFormRow($this->setLabel('fb'), $this->setFormInputText('fb', 5, 'RON'), 1);
167 167
         $sReturn[] = $this->setFormRow($this->setLabel('sm'), $this->setFormInputText('sm', 10, 'RON', $crtMinWage), 1);
@@ -182,8 +182,8 @@  discard block
 block discarded – undo
182 182
     }
183 183
 
184 184
     private function setFormInputIntoFieldSet($frm) {
185
-        return '<div class="tabbertab" id="Input" title="'.$this->tApp->gettext('i18n_FieldsetLabel_Inputs').'">'
186
-                .$frm.'</div>';
185
+        return '<div class="tabbertab" id="Input" title="' . $this->tApp->gettext('i18n_FieldsetLabel_Inputs') . '">'
186
+                .$frm . '</div>';
187 187
     }
188 188
 
189 189
     private function setFormInputText($inName, $inSize, $inAfterLabel, $crtMinWage = 0) {
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
             $inputParameters['value']    = $crtMinWage;
200 200
             $this->tCmnSuperGlobals->request->set('sm', $crtMinWage);
201 201
         }
202
-        return $this->setStringIntoShortTag('input', $inputParameters).' '.$inAfterLabel;
202
+        return $this->setStringIntoShortTag('input', $inputParameters) . ' ' . $inAfterLabel;
203 203
     }
204 204
 
205 205
     private function setFormOutput($aryStngs, $inElements, $dtR) {
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
             'sn'   => $this->tCmnSuperGlobals->request->get('sn'),
214 214
             'zile' => $this->tCmnSuperGlobals->request->get('wkDays'),
215 215
         ];
216
-        $xDate       = '<span style="font-size:smaller;">'.date('d.m.Y', $this->currencyDetails['CXD']).'</span>';
216
+        $xDate       = '<span style="font-size:smaller;">' . date('d.m.Y', $this->currencyDetails['CXD']) . '</span>';
217 217
         $sReturn[]   = $this->setFrmRowTwoLbls($this->setLabel('xrate@Date'), $xDate, pow(10, 4));
218 218
         $snValue     = $this->tCmnSuperGlobals->request->get('sn') * pow(10, 4);
219 219
         $amntLAA     = round(($this->tCmnSuperGlobals->request->get('zfs') / $bComponents['zile']) * $snValue, -4);
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
         $fBonus      = [
236 236
             'main'   => $this->setLabel('gb'),
237 237
             'value'  => $this->tApp->gettext('i18n_Form_Label_FoodBonusesChoiceValue'),
238
-            'mtDays' => $this->tCmnSuperGlobals->request->get('nDays').'&nbsp;/&nbsp;'.$bComponents['zile']
238
+            'mtDays' => $this->tCmnSuperGlobals->request->get('nDays') . '&nbsp;/&nbsp;' . $bComponents['zile']
239 239
         ];
240 240
         $fBonusTxt   = sprintf($fBonus['main'], $fBonus['value']);
241 241
         $sReturn[]   = $this->setFrmRowTwoLbls($this->setLabel('fb'), '1', $amnt['b1']);
@@ -246,8 +246,8 @@  discard block
 block discarded – undo
246 246
         $tDate       = \DateTime::createFromFormat('Ymd', $this->tCmnSuperGlobals->request->get('ym'));
247 247
         $legentText  = sprintf($this->tApp->gettext('i18n_FieldsetLabel_Results')
248 248
                 .'', strftime('%B', mktime(0, 0, 0, $tDate->format('n'), 1, $tDate->format('Y'))), $tDate->format('Y'));
249
-        return '<div class="tabbertab tabbertabdefault" id="Output" title="'.$legentText.'">'
250
-                .$this->setStringIntoTag(implode('', $sReturn), 'table').'</tbody>'.'</div>';
249
+        return '<div class="tabbertab tabbertabdefault" id="Output" title="' . $legentText . '">'
250
+                .$this->setStringIntoTag(implode('', $sReturn), 'table') . '</tbody>' . '</div>';
251 251
     }
252 252
 
253 253
     private function setFormOutputBonuses($snValue, $wkDays, $amntLAA, $ovTimeVal) {
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
         $sRt[]    = $this->setFrmRowTwoLbls($this->setLabel('sn'), '&nbsp;', $snValue);
258 258
         $scValue  = $this->tCmnSuperGlobals->request->get('sc');
259 259
         $prima    = $this->tCmnSuperGlobals->request->get('sn') * $scValue * 100;
260
-        $sRt[]    = $this->setFrmRowTwoLbls($this->setLabel('sc'), $scValue.'%', $prima);
260
+        $sRt[]    = $this->setFrmRowTwoLbls($this->setLabel('sc'), $scValue . '%', $prima);
261 261
         $pbValue  = $this->tCmnSuperGlobals->request->get('pb') * pow(10, 4);
262 262
         $sRt[]    = $this->setFrmRowTwoLbls($this->setLabel('pb'), '&nbsp;', $pbValue);
263 263
         $ovTime   = [
@@ -265,30 +265,30 @@  discard block
 block discarded – undo
265 265
             'o2' => $this->tCmnSuperGlobals->request->get('os200'),
266 266
         ];
267 267
         $sRt[]    = $this->setFrmRowTwoLbls($this->setLabel('ovAmount1'), '<span style="font-size:smaller;">'
268
-                .$ovTime['o1'].'h&nbsp;x&nbsp;175%</span>', $ovTimeVal['os175'] * pow(10, 4));
268
+                .$ovTime['o1'] . 'h&nbsp;x&nbsp;175%</span>', $ovTimeVal['os175'] * pow(10, 4));
269 269
         $sRt[]    = $this->setFrmRowTwoLbls($this->setLabel('ovAmount2'), '<span style="font-size:smaller;">'
270
-                .$ovTime['o2'].'h&nbsp;x&nbsp;200%</span>', $ovTimeVal['os200'] * pow(10, 4));
271
-        $fLeaveAA = $this->tCmnSuperGlobals->request->get('zfs').'&nbsp;/&nbsp;'.$wkDays;
270
+                .$ovTime['o2'] . 'h&nbsp;x&nbsp;200%</span>', $ovTimeVal['os200'] * pow(10, 4));
271
+        $fLeaveAA = $this->tCmnSuperGlobals->request->get('zfs') . '&nbsp;/&nbsp;' . $wkDays;
272 272
         $sRt[]    = $this->setFrmRowTwoLbls($this->setLabel('zfsa'), $fLeaveAA, $amntLAA);
273 273
         return implode('', $sRt);
274 274
     }
275 275
 
276 276
     private function setFormOutputHeader() {
277 277
         $sReturn               = [];
278
-        $sReturn[]             = '<thead><tr><th>'.$this->tApp->gettext('i18n_Form_Label_ResultedElements').'</th>';
278
+        $sReturn[]             = '<thead><tr><th>' . $this->tApp->gettext('i18n_Form_Label_ResultedElements') . '</th>';
279 279
         $sReturn[]             = '<th><i class="fa fa-map-signs floatRight" style="font-size:2em;">&nbsp;</i></th>';
280 280
         $this->appFlags['CTD'] = $this->manageCurrencyToDisplay($this->tCmnSuperGlobals);
281 281
         foreach ($this->appFlags['CTD'] as $key => $value) {
282
-            $crtPcs    = [
282
+            $crtPcs = [
283 283
                 $this->tApp->gettext('i18n_Form_Label_XofficialCurrencyUsedFrom'),
284
-                $this->tApp->gettext('i18n_Form_Label_CurrencyName_'.$key),
285
-                $this->tApp->gettext('i18n_CountryName_'.strtoupper($value['country'])),
284
+                $this->tApp->gettext('i18n_Form_Label_CurrencyName_' . $key),
285
+                $this->tApp->gettext('i18n_CountryName_' . strtoupper($value['country'])),
286 286
             ];
287
-            $sReturn[] = '<th style="text-align:center;"><span class="flag-icon flag-icon-'.$value['country']
288
-                    .'" style="font-size:2em;" title="'.sprintf($crtPcs[0], $crtPcs[1], $crtPcs[2])
287
+            $sReturn[] = '<th style="text-align:center;"><span class="flag-icon flag-icon-' . $value['country']
288
+                    .'" style="font-size:2em;" title="' . sprintf($crtPcs[0], $crtPcs[1], $crtPcs[2])
289 289
                     .'">&nbsp;</span></th>';
290 290
         }
291
-        return implode('', $sReturn).'</tr></thead></tbody>';
291
+        return implode('', $sReturn) . '</tr></thead></tbody>';
292 292
     }
293 293
 
294 294
     private function setFormOutputTaxations($brut, $amnt) {
@@ -298,17 +298,17 @@  discard block
 block discarded – undo
298 298
             $limitDisplayBase = true;
299 299
             $sRn[]            = $this->setFrmRowTwoLbls($this->setLabel('cas_base'), '', $this->txLvl['casP_base']);
300 300
         }
301
-        $sRn[] = $this->setFrmRowTwoLbls($this->setLabel('cas'), $this->txLvl['casP'].'%', $this->txLvl['cas']);
302
-        $sRn[] = $this->setFrmRowTwoLbls($this->setLabel('somaj'), $this->txLvl['smjP'].'%', $this->txLvl['smj']);
301
+        $sRn[] = $this->setFrmRowTwoLbls($this->setLabel('cas'), $this->txLvl['casP'] . '%', $this->txLvl['cas']);
302
+        $sRn[] = $this->setFrmRowTwoLbls($this->setLabel('somaj'), $this->txLvl['smjP'] . '%', $this->txLvl['smj']);
303 303
         if ($limitDisplayBase && array_key_exists('sntP_base', $this->txLvl)) {
304 304
             $sRn[] = $this->setFrmRowTwoLbls($this->setLabel('sntP_base'), '&nbsp;', $this->txLvl['sntP_base']);
305 305
         }
306
-        $sRn[] = $this->setFrmRowTwoLbls($this->setLabel('sanatate'), $this->txLvl['sntP'].'%', $this->txLvl['snt']);
306
+        $sRn[] = $this->setFrmRowTwoLbls($this->setLabel('sanatate'), $this->txLvl['sntP'] . '%', $this->txLvl['snt']);
307 307
         $rst   = $brut - ($this->txLvl['cas'] + $this->txLvl['snt'] + $this->txLvl['smj']);
308 308
         $sRn[] = $this->setFrmRowTwoLbls($this->setLabel('rst'), '&nbsp;', $rst);
309 309
         $sRn[] = $this->setFrmRowTwoLbls($this->setLabel('pd'), '&nbsp;', $amnt['pd']);
310 310
         $sRn[] = $this->setFrmRowTwoLbls($this->setLabel('impozit_base'), '&nbsp;', $this->txLvl['inTaxP_base']);
311
-        $sRn[] = $this->setFrmRowTwoLbls($this->setLabel('impozit'), $this->txLvl['inTaxP'].'%', $amnt['impozit']);
311
+        $sRn[] = $this->setFrmRowTwoLbls($this->setLabel('impozit'), $this->txLvl['inTaxP'] . '%', $amnt['impozit']);
312 312
         return implode('', $sRn);
313 313
     }
314 314
 
@@ -327,11 +327,11 @@  discard block
 block discarded – undo
327 327
                 $value2show = $this->setStringIntoTag($value, 'td');
328 328
                 break;
329 329
         }
330
-        return $this->setStringIntoTag($this->setStringIntoTag($text, 'td', $defaultCellStyle).$value2show, 'tr');
330
+        return $this->setStringIntoTag($this->setStringIntoTag($text, 'td', $defaultCellStyle) . $value2show, 'tr');
331 331
     }
332 332
 
333 333
     private function setFormRowAmount($value, $defaultCellStyle) {
334
-        $cellValue                 = [];
334
+        $cellValue = [];
335 335
         $defaultCellStyle['style'] .= 'text-align:right;';
336 336
         foreach ($this->appFlags['CTD'] as $key2 => $value2) {
337 337
             $fmt         = new \NumberFormatter($value2['locale'], \NumberFormatter::CURRENCY);
@@ -344,7 +344,7 @@  discard block
 block discarded – undo
344 344
 
345 345
     private function setFrmRowTwoLbls($text1, $text2, $value) {
346 346
         return str_replace(':</td>', ':</td><td class="labelS" style="text-align:right;">'
347
-                .$text2.'</td>', $this->setFormRow($text1, $value, 'amount'));
347
+                .$text2 . '</td>', $this->setFormRow($text1, $value, 'amount'));
348 348
     }
349 349
 
350 350
 }
Please login to merge, or discard this patch.
Salariu/Taxation.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -155,6 +155,9 @@
 block discarded – undo
155 155
         return $nReturn;
156 156
     }
157 157
 
158
+    /**
159
+     * @param integer $yrDate
160
+     */
158 161
     private function setIncomeTaxFromJson($lngTaxBase, $nValues, $yrDate) {
159 162
         $nReturn = 0;
160 163
         $howMany = count($nValues);
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
         $maxCounter = count($inMny);
46 46
         for ($counter = 0; $counter < $maxCounter; $counter++) {
47 47
             $crtVal         = $inMny[$counter];
48
-            $crtDV          = \DateTime::createFromFormat('Y-n-j', $crtVal['Year'].'-'.$crtVal['Month'].'-01');
48
+            $crtDV          = \DateTime::createFromFormat('Y-n-j', $crtVal['Year'] . '-' . $crtVal['Month'] . '-01');
49 49
             $crtDateOfValue = (int) $crtDV->format('Ymd');
50 50
             if (($yearMonth <= $dtR['maximumInt']) && ($yearMonth >= $crtDateOfValue)) {
51 51
                 $intValue = $crtVal['Percentage'];
@@ -165,13 +165,13 @@  discard block
 block discarded – undo
165 165
         } else {
166 166
             for ($counter = 0; $counter <= $howMany; $counter++) {
167 167
                 if (($lngTaxBase <= $nValues[$counter]['Upper Limit Value'])) {
168
-                    $sLbl                  = [
168
+                    $sLbl = [
169 169
                         'BDP' => $nValues[$counter]['Base Deducted Percentage'],
170 170
                         'BDV' => $nValues[$counter]['Base Deduction Value'],
171 171
                         'TFV' => $nValues[$counter]['Tax Free Value'],
172 172
                     ];
173 173
                     $nReturn               = $sLbl['TFV'] + ($lngTaxBase - $sLbl['BDV']) * $sLbl['BDP'] / 100;
174
-                    $this->txLvl['inTaxP'] = 'fx+'.$sLbl['BDP'];
174
+                    $this->txLvl['inTaxP'] = 'fx+' . $sLbl['BDP'];
175 175
                     $counter               = $howMany;
176 176
                 } else {
177 177
                     $nReturn = $lngTaxBase * $this->txLvl['inTaxP'];
Please login to merge, or discard this patch.
Salariu/InputValidation.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
                 'min_range' => $dtR['minimum']->format('Ymd'),
50 50
             ]
51 51
         ];
52
-        $validYM  = filter_var($tCSG->get('ym'), FILTER_VALIDATE_INT, $validOpt);
52
+        $validYM = filter_var($tCSG->get('ym'), FILTER_VALIDATE_INT, $validOpt);
53 53
         if (!array_key_exists($validYM, $ymValues)) {
54 54
             $validYM = $validOpt['options']['default'];
55 55
         }
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
         $temp      = [];
63 63
         while ($endDate >= $startDate) {
64 64
             $temp[$endDate->format('Ymd')] = $endDate->format('Y, m (')
65
-                    .strftime('%B', mktime(0, 0, 0, $endDate->format('n'), 1, $endDate->format('Y'))).')';
65
+                    .strftime('%B', mktime(0, 0, 0, $endDate->format('n'), 1, $endDate->format('Y'))) . ')';
66 66
             $endDate->sub(new \DateInterval('P1M'));
67 67
         }
68 68
         return $temp;
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
         $maxCounter = count($inMny['EMW']);
95 95
         for ($counter = 0; $counter < $maxCounter; $counter++) {
96 96
             $crtVal         = $inMny['EMW'][$counter];
97
-            $crtDV          = \DateTime::createFromFormat('Y-n-j', $crtVal['Year'].'-'.$crtVal['Month'].'-1');
97
+            $crtDV          = \DateTime::createFromFormat('Y-n-j', $crtVal['Year'] . '-' . $crtVal['Month'] . '-1');
98 98
             $crtDateOfValue = (int) $crtDV->format('Ymd');
99 99
             if (($lngDate <= $inMny['YM range']['maximumInt']) && ($lngDate >= $crtDateOfValue)) {
100 100
                 $intValue = $crtVal['Value'];
Please login to merge, or discard this patch.
Salariu/Bonuses.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         $crtUpperLimitDate = (int) $dtR['maximum']->format('Ymd');
47 47
         while (($valueMealTicket === 0)) {
48 48
             $crtVal            = $aryStngMealTickets[$indexArrayValues];
49
-            $crtLLDate         = \DateTime::createFromFormat('Y-n-j', $crtVal['Year'].'-'.$crtVal['Month'].'-1');
49
+            $crtLLDate         = \DateTime::createFromFormat('Y-n-j', $crtVal['Year'] . '-' . $crtVal['Month'] . '-1');
50 50
             $crtLowerLimitDate = (int) $crtLLDate->format('Ymd');
51 51
             if (($lngDate <= $crtUpperLimitDate) && ($lngDate >= $crtLowerLimitDate)) {
52 52
                 $valueMealTicket = $crtVal['Value'];
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
                 2003 => 1800000,
73 73
                 2004 => 2000000,
74 74
             ];
75
-            $nReturn      = $valuesYearly[$yrDate];
75
+            $nReturn = $valuesYearly[$yrDate];
76 76
         }
77 77
         return (($lngDate >= 20060701) ? round($nReturn, -4) : $nReturn);
78 78
     }
Please login to merge, or discard this patch.