Completed
Pull Request — master (#20)
by Davide
04:04
created
src/CodiceFiscale/Calculator.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -153,43 +153,43 @@
 block discarded – undo
153 153
     {
154 154
         if ($this->omocodiaLevel > 0) {
155 155
             if ($this->omocodiaLevel) {
156
-                if  ($this->omocodiaLevel % 2 == 1) {
156
+                if ($this->omocodiaLevel % 2 == 1) {
157 157
                     $k = $temporaryCodiceFiscale{14};
158 158
                     $newChar = $this->omocodiaCodes[$k];
159 159
                     $temporaryCodiceFiscale{14} = $newChar;
160 160
                 }
161 161
 
162
-                if  ($this->omocodiaLevel % 4 == 2 || $this->omocodiaLevel % 4 == 3) {
162
+                if ($this->omocodiaLevel % 4 == 2 || $this->omocodiaLevel % 4 == 3) {
163 163
                     $k = $temporaryCodiceFiscale{13};
164 164
                     $newChar = $this->omocodiaCodes[$k];
165 165
                     $temporaryCodiceFiscale{13} = $newChar;
166 166
                 }
167 167
 
168
-                if  ($this->omocodiaLevel % 8 >= 4 && $this->omocodiaLevel % 8 <= 7) {
168
+                if ($this->omocodiaLevel % 8 >= 4 && $this->omocodiaLevel % 8 <= 7) {
169 169
                     $k = $temporaryCodiceFiscale{12};
170 170
                     $newChar = $this->omocodiaCodes[$k];
171 171
                     $temporaryCodiceFiscale{12} = $newChar;
172 172
                 }
173 173
 
174
-                if  ($this->omocodiaLevel % 16 >= 8 && $this->omocodiaLevel % 16 <= 15) {
174
+                if ($this->omocodiaLevel % 16 >= 8 && $this->omocodiaLevel % 16 <= 15) {
175 175
                     $k = $temporaryCodiceFiscale{10};
176 176
                     $newChar = $this->omocodiaCodes[$k];
177 177
                     $temporaryCodiceFiscale{10} = $newChar;
178 178
                 }
179 179
 
180
-                if  ($this->omocodiaLevel % 32 >= 16 && $this->omocodiaLevel % 32 <= 31) {
180
+                if ($this->omocodiaLevel % 32 >= 16 && $this->omocodiaLevel % 32 <= 31) {
181 181
                     $k = $temporaryCodiceFiscale{9};
182 182
                     $newChar = $this->omocodiaCodes[$k];
183 183
                     $temporaryCodiceFiscale{9} = $newChar;
184 184
                 }
185 185
 
186
-                if  ($this->omocodiaLevel % 64 >= 32 && $this->omocodiaLevel % 64 <= 63) {
186
+                if ($this->omocodiaLevel % 64 >= 32 && $this->omocodiaLevel % 64 <= 63) {
187 187
                     $k = $temporaryCodiceFiscale{7};
188 188
                     $newChar = $this->omocodiaCodes[$k];
189 189
                     $temporaryCodiceFiscale{7} = $newChar;
190 190
                 }
191 191
 
192
-                if  ($this->omocodiaLevel % 128 >= 64 && $this->omocodiaLevel % 128 <= 127) {
192
+                if ($this->omocodiaLevel % 128 >= 64 && $this->omocodiaLevel % 128 <= 127) {
193 193
                     $k = $temporaryCodiceFiscale{6};
194 194
                     $newChar = $this->omocodiaCodes[$k];
195 195
                     $temporaryCodiceFiscale{6} = $newChar;
Please login to merge, or discard this patch.