|
@@ 172-176 (lines=5) @@
|
| 169 |
|
public function endAlignment($value) |
| 170 |
|
{ |
| 171 |
|
switch (strtolower($this->alignmentAttributes['type'])) { |
| 172 |
|
case 'left': |
| 173 |
|
if (strpos($this->attributes['value']['left'], '&G') === false) { |
| 174 |
|
$this->attributes['value']['left'] .= $value; |
| 175 |
|
} |
| 176 |
|
break; |
| 177 |
|
case 'center': |
| 178 |
|
if (strpos($this->attributes['value']['center'], '&G') === false) { |
| 179 |
|
$this->attributes['value']['center'] .= $value; |
|
@@ 177-181 (lines=5) @@
|
| 174 |
|
$this->attributes['value']['left'] .= $value; |
| 175 |
|
} |
| 176 |
|
break; |
| 177 |
|
case 'center': |
| 178 |
|
if (strpos($this->attributes['value']['center'], '&G') === false) { |
| 179 |
|
$this->attributes['value']['center'] .= $value; |
| 180 |
|
} |
| 181 |
|
break; |
| 182 |
|
case 'right': |
| 183 |
|
if (strpos($this->attributes['value']['right'], '&G') === false) { |
| 184 |
|
$this->attributes['value']['right'] .= $value; |
|
@@ 182-186 (lines=5) @@
|
| 179 |
|
$this->attributes['value']['center'] .= $value; |
| 180 |
|
} |
| 181 |
|
break; |
| 182 |
|
case 'right': |
| 183 |
|
if (strpos($this->attributes['value']['right'], '&G') === false) { |
| 184 |
|
$this->attributes['value']['right'] .= $value; |
| 185 |
|
} |
| 186 |
|
break; |
| 187 |
|
default: |
| 188 |
|
throw new \InvalidArgumentException(sprintf('Unknown alignment type "%s"', $this->alignmentAttributes['type'])); |
| 189 |
|
} |