Skip to main content

Questions tagged [meqp2]

Denotes questions related to Magentos MEQP2 code standard.

Filter by
Sorted by
Tagged with
1 vote
1 answer
582 views

Magento 2 : ERROR | Identical operator === is not used for testing the return value of strpos function

foreach ($statusCollection as $statusModel) { if ($statusModel->getId() == substr($status, strpos($status, '_') + 1)) { // this is it! ...
Keval Chauhan's user avatar
3 votes
2 answers
629 views

Installation & Varnish Test Results Failed on magento marketplace

Installation & Varnish Test Results Failed on Magento Marketplace composer.json { "name": "vendor/preorder", "description": "Pre Order", "...
Divya Sekar's user avatar
  • 1,485
6 votes
2 answers
2k views

Magento 2: EQP Error Possible useless method

I'm doing EQP of custom module then its shows error as below: Possible useless method overriding detected You can check this screenshot error is on line no. 20 Let me know if anyone has a ...
dinesh prajapati's user avatar
1 vote
0 answers
2k 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 &...
Jancy Abraham's user avatar
4 votes
1 answer
3k 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 ...
Carlos Hernan Aguilar Hurtado's user avatar
1 vote
1 answer
470 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 ...
Qaisar Satti's user avatar
  • 32.5k
4 votes
2 answers
2k 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/...
anonymous's user avatar
  • 3,752
0 votes
2 answers
223 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 "...
udhayakumar's user avatar
0 votes
3 answers
2k 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\...
M RIZWAN's user avatar
0 votes
2 answers
4k 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 ...
M RIZWAN's user avatar
1 vote
1 answer
952 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 ...
M RIZWAN's user avatar
1 vote
1 answer
407 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, ...
Bhavik's user avatar
  • 1,240
1 vote
2 answers
671 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 $...
Bhavik's user avatar
  • 1,240