@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | |
| 70 | 70 | public function getReplacementText() : string |
| 71 | 71 | { |
| 72 | - if(!empty($this->replacement)) |
|
| 72 | + if (!empty($this->replacement)) |
|
| 73 | 73 | { |
| 74 | 74 | return $this->replacement; |
| 75 | 75 | } |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | // to total amount of zeroes to pad with to obtain the total length |
| 88 | 88 | $padLength = $this->getLength() - $length; |
| 89 | 89 | |
| 90 | - if($padLength < 0) |
|
| 90 | + if ($padLength < 0) |
|
| 91 | 91 | { |
| 92 | 92 | $padLength = 0; |
| 93 | 93 | } |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | // as padding character, there is no ambiguity. It becomes |
| 105 | 105 | // "1------------" and "10-----------", keeping the ID intact. |
| 106 | 106 | |
| 107 | - $paddedID = str_pad((string)$this->id, $padLength, '-'); |
|
| 107 | + $paddedID = str_pad((string)$this->id, $padLength, '-'); |
|
| 108 | 108 | |
| 109 | 109 | $this->replacement = sprintf($format, $paddedID); |
| 110 | 110 | |