Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [meqp2]

Denotes questions related to Magentos MEQP2 code standard.

1
vote
0answers
563 views

Magento 2 load external script in my custom page

I want to add an external script to my store. I have added the script in my phtml file and it is working fine. But I want to follow the magento EQP validation. Here is my working code my layout xml &...
0
votes
0answers
68 views

Magento 2 : Installing magento 2 code standards with code sniffer in ubuntu

Can anybody please tell me how do i install Magento 2 code standards in Ubuntu form scratch? I am trying to install Composer and Code sniffer 3.0 but getting alot of errors.
0
votes
0answers
227 views

ERROR: the “MEQP2” coding standard is not installed

I am working on a module for magento 2.x, I need to validate the code of this for which install the following module Magento Extension Quality Program Coding Standard but trying to use it generates ...
1
vote
1answer
281 views

How to solve direct object instantiation warning

I used following code ->order(new \Zend_Db_Expr('FIELD(option_id,' . implode(',', $totalPro).')')); That give following warning. Direct object instantiation (object of \Zend_Db_Expr) is ...
4
votes
2answers
557 views

Magento 2 : How to check MEQP2 for My Extension

I've been trying to validate my extension before submit it to Magento Marketplace. I've installed MEQP using composer. $ composer create-project --repository=https://repo.magento.com magento/...
0
votes
2answers
75 views

MEQP tools run comments Issues

Im trying to run MEQP in magento 1.9.x version , but whenever I run php vendor/bin/phpcs D:\xampp\htdocs\projectname --standard=MEQP1 from the command line I get this output: dir=$(d=${0%[/\\]*}; cd "...
0
votes
3answers
327 views

Why the use of function file_get_content(), fopen() is discouraged in the magento 2

I am developing a Magento 2 extension, rejected by QA MARKETPLACE team three times due to this warnings and this is basic of my extension.. 1. * FILE: ...ranslation\Block\Adminhtml\...
0
votes
2answers
542 views

Magento 2 MEQP2 WARNING | The use of function file_get_contents() is discouraged

I am getting WARNING | The use of function file_get_contents() is discouraged. but its working fine but not for MEQP2 its giving WARNING so how use alternate of function file_get_contents() in the ...
1
vote
1answer
298 views

magento2 : warning fetchall() can be memory inefficient for large data sets

I am getting warning fetchall can be memory inefficient for large data sets. its working fine but not for MEQP2 its giving WARNING so how use alternate of fetchall() in the code namespace ...
1
vote
1answer
214 views

Only dependency assignment operations are allowed in constructor. No other operations are allowed

MEQP2: How to resolve below issue? abstract class ClassName extends \Magento\Backend\App\Action { public function __construct( ... \Magento\Catalog\Helper\Product $productHelper, ...
1
vote
2answers
272 views

How to use session in dependency injection with parent construct?

Below error is showing when I tried to run with MEQP2 sniff. Code: class History extends \Magento\Sales\Block\Order\History { /** * @param \Magento\Framework\View\Element\Template\Context $...