GH-57 Bug fix in Border.php

This commit is contained in:
MarkBaker 2016-12-18 23:06:10 +00:00
parent 5d3fdf4f78
commit 03f96ab6d8
1 changed files with 2 additions and 2 deletions

View File

@ -140,7 +140,7 @@ class Border extends Supervisor implements \PhpOffice\PhpSpreadsheet\IComparable
public function getStyleArray($array) public function getStyleArray($array)
{ {
switch ($this->parentPropertyName) { switch ($this->parentPropertyName) {
case 'allBorders': case 'allborders':
case 'bottom': case 'bottom':
case 'diagonal': case 'diagonal':
case 'horizontal': case 'horizontal':
@ -150,7 +150,7 @@ class Border extends Supervisor implements \PhpOffice\PhpSpreadsheet\IComparable
case 'right': case 'right':
case 'top': case 'top':
case 'vertical': case 'vertical':
$key = strtolower('vertical'); $key = strtolower($this->parentPropertyName);
break; break;
} }