Skip to main content

Questions tagged [phpcs]

The tag has no usage guidance.

5 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6 votes
1 answer

Magento2 installation - Failed to set PHP CodeSniffer installed_paths Config

I am trying to install Magento2 using composer. Getting codesniffer error and tried below steps to overcome the error but unfortunately it's not going away STEP 1: Tried to install magento2 $ composer ...
Tahir Yasin's user avatar
1 vote
3 answers

Why does PHP_CodeSniffer only allow me to have a Magento copyright at the top of my code?

When I try to use my own copyright I get this warning when running phpcs: "0: line: 3, col: 1, Copyright is missing or has wrong format" But if I use Magento copyright, I get no warning. No ...
Justin Collins's user avatar
1 vote
0 answers

Outdated codesniffer in MEQP2 composer.json for Magento 2.2?

How to correctly test against MEQP2 standard? Normally i use vendor/bin/phpcs --standard=PSR2 To supress errors a i use this: //phpcs:ignore or //phpcs:disable PSR2 When using MEQP2 standards ...
sv3n's user avatar
  • 11.7k
0 votes
1 answer

Magento2 | The use of function getallheaders(), base64_decode(), rawurldecode() is discouraged

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

PHPStorm Xdebug not working

I would like to configure and check the code flow using the X-debug break-point, so I followed the below tutorial and successfully configured the X-debug in my PHP-storm, I am using php-7.2 https://...
senthil's user avatar
  • 1,729