Completed
Push — master ( dce1dc...41b89e )
by Davide
14s queued 13s
created
src/Calculator.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -51,11 +51,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
141 141
             $day += 40;
142 142
         }
143 143
 
144
-        return $year . $month . $day;
144
+        return $year.$month.$day;
145 145
     }
146 146
 
147 147
     /**
Please login to merge, or discard this patch.