@@ 152-156 (lines=5) @@ | ||
149 | public function endAlignment($value) |
|
150 | { |
|
151 | switch (strtolower($this->alignmentAttributes['type'])) { |
|
152 | case 'left': |
|
153 | if (strpos($this->attributes['value']['left'], '&G') === false) { |
|
154 | $this->attributes['value']['left'] .= $value; |
|
155 | } |
|
156 | break; |
|
157 | case 'center': |
|
158 | if (strpos($this->attributes['value']['center'], '&G') === false) { |
|
159 | $this->attributes['value']['center'] .= $value; |
|
@@ 157-161 (lines=5) @@ | ||
154 | $this->attributes['value']['left'] .= $value; |
|
155 | } |
|
156 | break; |
|
157 | case 'center': |
|
158 | if (strpos($this->attributes['value']['center'], '&G') === false) { |
|
159 | $this->attributes['value']['center'] .= $value; |
|
160 | } |
|
161 | break; |
|
162 | case 'right': |
|
163 | if (strpos($this->attributes['value']['right'], '&G') === false) { |
|
164 | $this->attributes['value']['right'] .= $value; |
|
@@ 162-166 (lines=5) @@ | ||
159 | $this->attributes['value']['center'] .= $value; |
|
160 | } |
|
161 | break; |
|
162 | case 'right': |
|
163 | if (strpos($this->attributes['value']['right'], '&G') === false) { |
|
164 | $this->attributes['value']['right'] .= $value; |
|
165 | } |
|
166 | break; |
|
167 | default: |
|
168 | throw new \InvalidArgumentException(sprintf('Unknown alignment type "%s"', $this->alignmentAttributes['type'])); |
|
169 | } |