| @@ -328,12 +328,12 @@ | ||
| 328 | 328 | $century = $this->calculateCentury($year); | 
| 329 | 329 | |
| 330 | 330 | // validate and calculate birth date | 
| 331 | -        if (!checkdate($month, $day, $century . $year)) { | |
| 331 | +        if (!checkdate($month, $day, $century.$year)) { | |
| 332 | 332 |              throw new Exception('The codice fiscale to validate has an non existent birth date'); | 
| 333 | 333 | } | 
| 334 | 334 | |
| 335 | 335 | $this->birthDate = new DateTime(); | 
| 336 | -        $this->birthDate->setDate($century . $year, $month, $day)->setTime(0, 0, 0)->format('Y-m-d'); | |
| 336 | +        $this->birthDate->setDate($century.$year, $month, $day)->setTime(0, 0, 0)->format('Y-m-d'); | |
| 337 | 337 | } | 
| 338 | 338 | |
| 339 | 339 | /** | 
| @@ -51,11 +51,11 @@ discard block | ||
| 51 | 51 | */ | 
| 52 | 52 | public function calculate() | 
| 53 | 53 |      { | 
| 54 | - $temporaryCodiceFiscale = $this->calculateSurname() . $this->calculateName() . | |
| 55 | - $this->calculateBirthDateAndGender() . $this->calculateBelfioreCode(); | |
| 54 | + $temporaryCodiceFiscale = $this->calculateSurname().$this->calculateName(). | |
| 55 | + $this->calculateBirthDateAndGender().$this->calculateBelfioreCode(); | |
| 56 | 56 | $temporaryCodiceFiscale = $this->calculateOmocodia($temporaryCodiceFiscale); | 
| 57 | 57 | |
| 58 | - return $temporaryCodiceFiscale . $this->calculateCheckDigit($temporaryCodiceFiscale); | |
| 58 | + return $temporaryCodiceFiscale.$this->calculateCheckDigit($temporaryCodiceFiscale); | |
| 59 | 59 | } | 
| 60 | 60 | |
| 61 | 61 | /** | 
| @@ -102,7 +102,7 @@ discard block | ||
| 102 | 102 | $name = $this->normalizeNamePart($this->subject->getName()); | 
| 103 | 103 | $consonants = str_replace($this->vowels, '', $name); | 
| 104 | 104 |          if (strlen($consonants) > 3) { | 
| 105 | - $result = $consonants[0] . $consonants[2] . $consonants[3]; | |
| 105 | + $result = $consonants[0].$consonants[2].$consonants[3]; | |
| 106 | 106 |          } elseif (strlen($consonants) == 3) { | 
| 107 | 107 | $result = $consonants; | 
| 108 | 108 |          } else { | 
| @@ -122,7 +122,7 @@ discard block | ||
| 122 | 122 | private function calculateSmallString($consonants, $string) | 
| 123 | 123 |      { | 
| 124 | 124 | $vowels = str_replace(str_split($consonants), '', $string); | 
| 125 | - $result = substr($consonants . $vowels . 'XXX', 0, 3); | |
| 125 | + $result = substr($consonants.$vowels.'XXX', 0, 3); | |
| 126 | 126 | |
| 127 | 127 | return $result; | 
| 128 | 128 | } | 
| @@ -141,7 +141,7 @@ discard block | ||
| 141 | 141 | $day += 40; | 
| 142 | 142 | } | 
| 143 | 143 | |
| 144 | - return $year . $month . $day; | |
| 144 | + return $year.$month.$day; | |
| 145 | 145 | } | 
| 146 | 146 | |
| 147 | 147 | /** |