Completed
Push — master ( 5b0fa8...e97694 )
by Davide
02:10
created
src/DavidePastore/CodiceFiscale/Calculator.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -157,11 +157,11 @@  discard block
 block discarded – undo
157 157
      */
158 158
     public function calculate()
159 159
     {
160
-        $temporaryCodiceFiscale = $this->calculateSurname().$this->calculateName().
161
-               $this->calculateBirthDateAndGender().$this->calculateBelfioreCode();
160
+        $temporaryCodiceFiscale = $this->calculateSurname() . $this->calculateName() .
161
+               $this->calculateBirthDateAndGender() . $this->calculateBelfioreCode();
162 162
         $temporaryCodiceFiscale = $this->calculateOmocodia($temporaryCodiceFiscale);
163 163
 
164
-        return $temporaryCodiceFiscale.$this->calculateCheckDigit($temporaryCodiceFiscale);
164
+        return $temporaryCodiceFiscale . $this->calculateCheckDigit($temporaryCodiceFiscale);
165 165
     }
166 166
 
167 167
     /**
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
     {
207 207
         $consonants = str_replace($this->vowels, '', strtoupper($this->subject->getName()));
208 208
         if (strlen($consonants) > 3) {
209
-            $result = $consonants[0].$consonants[2].$consonants[3];
209
+            $result = $consonants[0] . $consonants[2] . $consonants[3];
210 210
         } elseif (strlen($consonants) == 3) {
211 211
             $result = implode($consonants);
212 212
         } else {
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
     private function calculateSmallString($consonants, $string)
226 226
     {
227 227
         $vowels = str_replace(str_split($consonants), '', strtoupper($string));
228
-        $result = substr($consonants.$vowels.'XXX', 0, 3);
228
+        $result = substr($consonants . $vowels . 'XXX', 0, 3);
229 229
         return $result;
230 230
     }
231 231
 
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
             $day += 40;
244 244
         }
245 245
 
246
-        return $year.$month.$day;
246
+        return $year . $month . $day;
247 247
     }
248 248
 
249 249
     /**
Please login to merge, or discard this patch.