|
@@ 181-185 (lines=5) @@
|
| 178 |
|
public function endAlignment($value) |
| 179 |
|
{ |
| 180 |
|
switch (strtolower($this->alignmentAttributes['type'])) { |
| 181 |
|
case 'left': |
| 182 |
|
if (strpos($this->attributes['value']['left'], '&G') === false) { |
| 183 |
|
$this->attributes['value']['left'] .= $value; |
| 184 |
|
} |
| 185 |
|
break; |
| 186 |
|
case 'center': |
| 187 |
|
if (strpos($this->attributes['value']['center'], '&G') === false) { |
| 188 |
|
$this->attributes['value']['center'] .= $value; |
|
@@ 186-190 (lines=5) @@
|
| 183 |
|
$this->attributes['value']['left'] .= $value; |
| 184 |
|
} |
| 185 |
|
break; |
| 186 |
|
case 'center': |
| 187 |
|
if (strpos($this->attributes['value']['center'], '&G') === false) { |
| 188 |
|
$this->attributes['value']['center'] .= $value; |
| 189 |
|
} |
| 190 |
|
break; |
| 191 |
|
case 'right': |
| 192 |
|
if (strpos($this->attributes['value']['right'], '&G') === false) { |
| 193 |
|
$this->attributes['value']['right'] .= $value; |
|
@@ 191-195 (lines=5) @@
|
| 188 |
|
$this->attributes['value']['center'] .= $value; |
| 189 |
|
} |
| 190 |
|
break; |
| 191 |
|
case 'right': |
| 192 |
|
if (strpos($this->attributes['value']['right'], '&G') === false) { |
| 193 |
|
$this->attributes['value']['right'] .= $value; |
| 194 |
|
} |
| 195 |
|
break; |
| 196 |
|
default: |
| 197 |
|
throw new \InvalidArgumentException(sprintf('Unknown alignment type "%s"', $this->alignmentAttributes['type'])); |
| 198 |
|
} |