DEV Community

Zeeshan Ahmd
Zeeshan Ahmd

Posted on

 

Configuring PHP_CodeSniffer in PhpStorm

  1. Navigae to Preferences > Languages & Frameworks > PHP > Quality Tools and expand the PHP_CodeSniffer section and select Configuration to Local like following

  2. Next, we have to set the binary paths of PHP_CodeSniffer. For that click on the three dots button next to Configuration dropdown and then inside the opened dialog set the phpcs and phpcbf binary paths:

  3. Finally we have to enable the PHP_CodeSniffer in the IDE by navigating to Preferences > Editor > Inspections > PHP > Quality Tools and enable the PHP CS Fixer validation and PHP_CodeSniffer validation.

Top comments (0)

An Animated Guide to Node.js Event Loop

Node.js doesn’t stop from running other operations because of Libuv, a C++ library responsible for the event loop and asynchronously handling tasks such as network requests, DNS resolution, file system operations, data encryption, etc.

What happens under the hood when Node.js works on tasks such as database queries? We will explore it by following this piece of code step by step.