From ea88a3765d18c10a4e642f68e9e3188cb328c587 Mon Sep 17 00:00:00 2001 From: Lucian Date: Mon, 30 Oct 2017 21:30:41 +0200 Subject: [PATCH] #1799: Changed code cleaning rules --- .travis.yml | 1 - Helper/Pdf.php | 22 +--------------------- 2 files changed, 1 insertion(+), 22 deletions(-) diff --git a/.travis.yml b/.travis.yml index a080f81..2448d00 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,7 +14,6 @@ install: script: - php magento-coding-standard/vendor/bin/phpcs --standard=Test/Php/_files/phpcs/ruleset.xml Api/ Block/ Controller/ Helper/ Model/ Setup/ Test/ Ui/ view/ - - php vendor/bin/phpmd Api/,Block/,Controller/,Helper/,Model/,Setup/,Test/,Ui/,view/ text Test/Php/_files/phpmd/ruleset.xml env: global: diff --git a/Helper/Pdf.php b/Helper/Pdf.php index 3dcacde..156b13f 100644 --- a/Helper/Pdf.php +++ b/Helper/Pdf.php @@ -253,7 +253,7 @@ public function _eaPDFSettings($parts) $pdfToOutput = $pdf->Output('', 'S'); error_reporting($oldErrorReporting); - + return $pdfToOutput; } @@ -314,26 +314,6 @@ private function config($templateModel): array return $config; } - /** - * Get the format and orientation, ex: A4-L - * @param $form - * @param $ori - * @return string - */ - private function paperFormat($form, $ori) - { - $size = self::PAPER_SIZE; - $oris = self::PAPER_ORI; - - if ($ori == TemplatePaperOrientation::TEMAPLATE_PAPER_PORTRAIT) { - return str_replace('-', '', $size[$form]); - } - - $format = $size[$form] . $oris[$ori]; - - return $format; - } - /** * @param Order $order * @return mixed