From 8901baa21943a9caf7fe9ea2de1f4fb5e2c82daa Mon Sep 17 00:00:00 2001 From: Nathan de Graaf Date: Thu, 4 Jun 2020 17:24:24 +0200 Subject: [PATCH] Changed array creation Make the array creation consistent throughout the class --- .../Sales/Model/Order/Pdf/Items/Invoice/DefaultInvoice.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/code/Magento/Sales/Model/Order/Pdf/Items/Invoice/DefaultInvoice.php b/app/code/Magento/Sales/Model/Order/Pdf/Items/Invoice/DefaultInvoice.php index 253dbd43fa580..6ddbce49829eb 100644 --- a/app/code/Magento/Sales/Model/Order/Pdf/Items/Invoice/DefaultInvoice.php +++ b/app/code/Magento/Sales/Model/Order/Pdf/Items/Invoice/DefaultInvoice.php @@ -80,11 +80,9 @@ public function draw() $lines = []; // draw Product name - $lines[0] = [ - [ + $lines[0][] = [ 'text' => $this->string->split($this->prepareText((string)$item->getName()), 35, true, true), 'feed' => 35 - ] ]; // draw SKU