From 03f96ab6d85669bc076c5e17990966aaf2801b6d Mon Sep 17 00:00:00 2001 From: MarkBaker Date: Sun, 18 Dec 2016 23:06:10 +0000 Subject: [PATCH] GH-57 Bug fix in Border.php --- src/PhpSpreadsheet/Style/Border.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PhpSpreadsheet/Style/Border.php b/src/PhpSpreadsheet/Style/Border.php index dc557f7a..4239bc78 100644 --- a/src/PhpSpreadsheet/Style/Border.php +++ b/src/PhpSpreadsheet/Style/Border.php @@ -140,7 +140,7 @@ class Border extends Supervisor implements \PhpOffice\PhpSpreadsheet\IComparable public function getStyleArray($array) { switch ($this->parentPropertyName) { - case 'allBorders': + case 'allborders': case 'bottom': case 'diagonal': case 'horizontal': @@ -150,7 +150,7 @@ class Border extends Supervisor implements \PhpOffice\PhpSpreadsheet\IComparable case 'right': case 'top': case 'vertical': - $key = strtolower('vertical'); + $key = strtolower($this->parentPropertyName); break; }