Completed
Push — master ( 1e8f66...057138 )
by Davide
02:16
created
src/DavidePastore/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   +7 added lines, -7 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
     /**
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
             $result = substr($consonants, 0, 3);
193 193
         } else {
194 194
             $vowels = str_replace(str_split($consonants), '', $this->subject->getSurname());
195
-            $result = substr($consonants.$vowels.'XXX', 0, 3);
195
+            $result = substr($consonants . $vowels . 'XXX', 0, 3);
196 196
         }
197 197
 
198 198
         return $result;
@@ -207,12 +207,12 @@  discard block
 block discarded – undo
207 207
     {
208 208
         $consonants = str_replace($this->vowels, '', $this->subject->getName());
209 209
         if (strlen($consonants) > 3) {
210
-            $result = $consonants[0].$consonants[2].$consonants[3];
210
+            $result = $consonants[0] . $consonants[2] . $consonants[3];
211 211
         } elseif (strlen($consonants) == 3) {
212 212
             $result = implode($consonants);
213 213
         } else {
214 214
             $vowels = str_replace(str_split($consonants), '', $this->subject->getName());
215
-            $result = substr($consonants.$vowels.'XXX', 0, 3);
215
+            $result = substr($consonants . $vowels . 'XXX', 0, 3);
216 216
         }
217 217
 
218 218
         return $result;
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
             $day += 40;
233 233
         }
234 234
 
235
-        return $year.$month.$day;
235
+        return $year . $month . $day;
236 236
     }
237 237
 
238 238
     /**
Please login to merge, or discard this patch.