Completed
Pull Request — master (#20)
by Davide
14:38
created
src/CodiceFiscale/Calculator.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@
 block discarded – undo
158 158
     public function calculate()
159 159
     {
160 160
         $temporaryCodiceFiscale = $this->calculateSurname().$this->calculateName().
161
-               $this->calculateBirthDateAndGender().$this->calculateBelfioreCode();
161
+                $this->calculateBirthDateAndGender().$this->calculateBelfioreCode();
162 162
         $temporaryCodiceFiscale = $this->calculateOmocodia($temporaryCodiceFiscale);
163 163
 
164 164
         return $temporaryCodiceFiscale.$this->calculateCheckDigit($temporaryCodiceFiscale);
Please login to merge, or discard this patch.
src/CodiceFiscale/Validator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -284,7 +284,7 @@
 block discarded – undo
284 284
             if (!in_array($charToCheck, $this->omocodiaCodes)) {
285 285
                 throw new \Exception('The codice fiscale to validate has an invalid character');
286 286
             }
287
-            $newChar = array_search($charToCheck, $this->omocodiaCodes);;
287
+            $newChar = array_search($charToCheck, $this->omocodiaCodes); ;
288 288
             $this->codiceFiscaleWithoutOmocodia{$characterIndex} = $newChar;
289 289
         }
290 290
     }
Please login to merge, or discard this patch.