Code Duplication    Length = 9-9 lines in 2 locations

src/N98/Magento/Command/ScriptCommand.php 1 location

@@ 348-356 (lines=9) @@
345
    /**
346
     * @return \Magento\Framework\App\ProductMetadata
347
     */
348
    protected function getProductMetadata()
349
    {
350
        if(is_null($this->productMetadata)) {
351
            $objectManager         = $this->getApplication()->getObjectManager();
352
            $this->productMetadata = $objectManager->get('\Magento\Framework\App\ProductMetadata');
353
        }
354
355
        return $this->productMetadata;
356
    }
357
}
358

tests/N98/Magento/Command/ScriptCommandTest.php 1 location

@@ 63-71 (lines=9) @@
60
    /**
61
     * @return \Magento\Framework\App\ProductMetadata
62
     */
63
    protected function getProductMetadata()
64
    {
65
        if(is_null($this->productMetadata)) {
66
            $objectManager         = $this->getApplication()->getObjectManager();
67
            $this->productMetadata = $objectManager->get('\Magento\Framework\App\ProductMetadata');
68
        }
69
        
70
        return $this->productMetadata;
71
    }
72
}
73