@@ -158,7 +158,7 @@ |
||
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); |
@@ -188,7 +188,7 @@ discard block |
||
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 |
||
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) { |