Skip to content

worksolutions/code-style

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

code-style

Установка

  1. Добавляем в файл composer.json

    "repositories": [
    	{
            "type": "vcs",
            "url":  "https://github.com/worksolutions/code-style.git"
    	}
    ]
  2. Выполняем комманду:

    composer require --dev worksolutions/code-style=~1
  3. В настройках PhpStorm (Languages & Frameworks > PHP > Code Sniffer) устанавливаем путь к файлу {директория_проекта}/vendor/bin/phpwscs

  4. Включение инспектора кода в настройках PhpStorm (Editor > Inspections > PHP) галочкой PHP Code Sniffer validation