|
@@ -85,8 +85,10 @@ |
|
|
block discarded – undo |
|
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 |
Please login to merge, or discard this patch.