@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | $locations = $this->origin->getNextAll(); |
| 104 | 104 | $offset = $this->lengthDifference; |
| 105 | 105 | |
| 106 | - foreach($locations as $location) |
|
| 106 | + foreach ($locations as $location) |
|
| 107 | 107 | { |
| 108 | 108 | $location->updatePositionByOffset($offset); |
| 109 | 109 | } |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | { |
| 114 | 114 | $length = mb_strpos($this->replacementText, $this->placeholderText); |
| 115 | 115 | |
| 116 | - if($length === false) |
|
| 116 | + if ($length === false) |
|
| 117 | 117 | { |
| 118 | 118 | throw new Mailcode_Exception( |
| 119 | 119 | 'Replacement text does not contain placeholder string.', |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | // Failsafe check: the calculated new position |
| 150 | 150 | // in the subject string should still equal the |
| 151 | 151 | // placeholder string. |
| 152 | - if($placeholder != $this->placeholderText) |
|
| 152 | + if ($placeholder != $this->placeholderText) |
|
| 153 | 153 | { |
| 154 | 154 | throw new Mailcode_Exception( |
| 155 | 155 | 'Localizing a safeguard placeholder failed.', |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | */ |
| 125 | 125 | public function getNext() : ?Mailcode_Parser_Safeguard_Placeholder_Locator_Location |
| 126 | 126 | { |
| 127 | - return $this->locator->getLocationByIndex(($this->index-1)); |
|
| 127 | + return $this->locator->getLocationByIndex(($this->index - 1)); |
|
| 128 | 128 | } |
| 129 | 129 | |
| 130 | 130 | /** |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | */ |
| 135 | 135 | public function getPrevious() : ?Mailcode_Parser_Safeguard_Placeholder_Locator_Location |
| 136 | 136 | { |
| 137 | - return $this->locator->getLocationByIndex(($this->index+1)); |
|
| 137 | + return $this->locator->getLocationByIndex(($this->index + 1)); |
|
| 138 | 138 | } |
| 139 | 139 | |
| 140 | 140 | /** |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | { |
| 147 | 147 | $locations = $this->locator->getLocations(); |
| 148 | 148 | |
| 149 | - return array_slice($locations, $this->index+1); |
|
| 149 | + return array_slice($locations, $this->index + 1); |
|
| 150 | 150 | } |
| 151 | 151 | |
| 152 | 152 | /** |