Concrete/Magento2PlatformInvoiceDecorator.php
Method createFor
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function createFor(PlatformOrderInterface $order)
{
$logService = new LogService(
'Invoice',
true
Method createInvoice
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function createInvoice($order)
{
$objectManager = ObjectManager::getInstance();
$invoiceService = $objectManager->get(InvoiceService::class);
$transaction = $objectManager->get(Transaction::class);