Skip to content

Commit

Permalink
#1799: Changed code cleaning rules
Browse files Browse the repository at this point in the history
  • Loading branch information
eadesignro committed Oct 30, 2017
1 parent 0c5a1bf commit ea88a37
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 22 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
22 changes: 1 addition & 21 deletions Helper/Pdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ public function _eaPDFSettings($parts)
$pdfToOutput = $pdf->Output('', 'S');

error_reporting($oldErrorReporting);

return $pdfToOutput;
}

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ea88a37

Please sign in to comment.