Skip to content

mediact/coding-standard-phpstorm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d495cc2 · Aug 10, 2022
May 14, 2021
Mar 10, 2021
Mar 16, 2021
May 12, 2021
Feb 1, 2017
May 12, 2021
Aug 25, 2019
Aug 31, 2017
Aug 10, 2022
Aug 10, 2022
Mar 10, 2021
May 12, 2021
Jun 11, 2020
Jan 24, 2018
Aug 22, 2019
Jan 24, 2018
Mar 10, 2021

Repository files navigation

Scrutinizer Code Quality

[ABANDONED] coding-standard-phpstorm

Sets up PhpStorm coding standards for a project.

Installation

This package is installed using Composer:

composer require mediact/coding-standard-phpstorm

Configuration

Use PHPStorm's file > settings > language > PHP menu to point to the installed binaries for PHPMD and PHPCS.

Live Templates

You now get live templates that can be be found in file > settings > Editor -> Live Templates . These templates can be enabled/disabled. At this moment there have been live templates created for:

  • ACL
  • DB Schema
  • DI
  • Events
  • Menu
  • Module
  • Phtml (WIP)
  • Registration
  • System

Check out this link to see more info

Templates

You now get live templates that can be be found in file > settings > Editor -> File and Code Templates . These can be enabled and disabled for if you want to use them or not. If no phpstorm templates are shown please restart PhpStorm. At this moment there have been templates created for:

  • ACL
  • Class
  • Class - Backend Controller
  • Class - Block
  • Class - Helper
  • Class - Observer
  • Class - ViewModel
  • Config
  • DB Schema
  • DI
  • Events
  • Extension Attributes
  • Layout
  • Menu
  • Module
  • Registration
  • Routes
  • Sales
  • System
  • System Include

Check out this link to see all commando's that can be used.