@@ -85,7 +85,7 @@ |
||
85 | 85 | if ($characterDeficit == 0) { |
86 | 86 | //If the word is full and we're not short any characters, ignore the character |
87 | 87 | continue; |
88 | - }else |
|
88 | + } else |
|
89 | 89 | $characterDeficit--; //If we are short some characters, decrement the defecit and carry on with adding the character to the abbreviation |
90 | 90 | } |
91 | 91 | $abbreviation .= $currentChar; //Add the character to the abbreviation |
@@ -85,8 +85,10 @@ |
||
85 | 85 | if ($characterDeficit == 0) { |
86 | 86 | //If the word is full and we're not short any characters, ignore the character |
87 | 87 | continue; |
88 | - }else |
|
89 | - $characterDeficit--; //If we are short some characters, decrement the defecit and carry on with adding the character to the abbreviation |
|
88 | + } else { |
|
89 | + $characterDeficit--; |
|
90 | + } |
|
91 | + //If we are short some characters, decrement the defecit and carry on with adding the character to the abbreviation |
|
90 | 92 | } |
91 | 93 | $abbreviation .= $currentChar; //Add the character to the abbreviation |
92 | 94 | $abbrevLength++; //Increment abbreviation length |