composer.json
"require-dev": {
"phpunit/phpunit": "^9.5",
"squizlabs/php_codesniffer": "^3.6",
"phan/phan": "^5.3"
},
"scripts": {
"cs" : "phpcs --standard=PSR12 src"
},
na hora de executar, ele executa normamente, porém retorna este erro:
PS D:\xamp\htdocs\fonts\ambiente\buscador-cursos-alura> composer cs
> phpcs --standard=PSR12 src
FILE: ...amp\htdocs\fonts\ambiente\buscador-cursos-alura\src\Buscador.php
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but
| | found "\r\n"
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
Time: 112ms; Memory: 8MB
Script phpcs --standard=PSR12 src handling the cs event returned with error code 2