Completed
Push — master ( ec0306...353f5c )
by Davide
8s
created
src/CodiceFiscale/Calculator.php 2 patches
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.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
     private function calculateSurname()
189 189
     {
190 190
         $consonants = str_replace($this->vowels, '', strtoupper($this->subject->getSurname()));
191
-        $consonants = preg_replace( '/\s+/', '', $consonants );
191
+        $consonants = preg_replace('/\s+/', '', $consonants);
192 192
         if (strlen($consonants) > 2) {
193 193
             $result = substr($consonants, 0, 3);
194 194
         } else {
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
     private function calculateName()
207 207
     {
208 208
         $consonants = str_replace($this->vowels, '', strtoupper($this->subject->getName()));
209
-        $consonants = preg_replace( '/\s+/', '', $consonants );
209
+        $consonants = preg_replace('/\s+/', '', $consonants);
210 210
         if (strlen($consonants) > 3) {
211 211
             $result = $consonants[0].$consonants[2].$consonants[3];
212 212
         } elseif (strlen($consonants) == 3) {
Please login to merge, or discard this patch.