Skip to main content

Questions tagged [magento-coding-standard]

Filter by
Sorted by
Tagged with
0 votes
1 answer
76 views

recently I came across one developer's code in magento 2, where he was accessing objects in another class to avoid dependency injections. Like for example we have Vendor\Feature\Helpler\Data class and ...
Knight017's user avatar
  • 642
0 votes
1 answer
899 views

I am trying to set the magento coding standard in the Magento 2 version. I followed this link: https://github.com/magento-ecg/coding-standard. When I check code sniffer for the directory path: /...
Manoj Jarial's user avatar
0 votes
2 answers
381 views

My extension have failed the coding standards of magento marketplace how can i check coding standards i have magento 2.4.4 installed and php 8.1.
Magento2-learner's user avatar
0 votes
1 answer
329 views

Tried https://github.com/magento/marketplace-eqp . Getting error PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in vendor/squizlabs/php_codesniffer/src/Config....
Sandeep Shetane's user avatar
-4 votes
1 answer
54 views

How to Optimization magento1 & 2 default Products, Order, Customer, Wishlist etc.. collection query?
Bhavesh Godhani's user avatar
0 votes
1 answer
40 views

I am currently working on bringing my extensions to the current coding standard. So, when writing a function, normally I would describe it the following way: protected function exampleFunction(string $...
Mario's user avatar
  • 508
0 votes
0 answers
147 views

I am using some third-party module file in my custom extension and need to include that .inc file via include_once but when I check that module via Magento 2 code standard check command. It is showing ...
Aish's user avatar
  • 81
0 votes
1 answer
3k views

Why core file use this declare(strict_types=1) ?
Jitendra Patel's user avatar
0 votes
1 answer
448 views

The use of function getallheaders(), base64_decode(), rawurldecode() is discouraged. What are the alternative for these in Magento2
explorer's user avatar
1 vote
0 answers
376 views

i'am install this https://github.com/magento/magento-coding-standard, i installed it via composer and i see there is a package in vendor/magento/magento-coding-standard, and also i modified composer....
hkguile's user avatar
  • 2,241