New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

adeoweb/adeo-coding-style-php

Package Overview
Dependencies
Maintainers
0
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adeoweb/adeo-coding-style-php

AdeoWeb standards

Source
Packagist
Version
1.1.5
Version published
Total downloads
2.1K
Maintainers
0
Created
Source

AdeoWeb Coding Standard

A set of AdeoWeb rules for PHP_CodeSniffer tool.

Installation

To use within your project you can use:

  • Add package:
$ composer require --dev adeoweb/adeo-coding-style-php
  • To add the code standard please include this into the phpcs.xml and modify it accordingly:
<?xml version="1.0"?>
<ruleset>
    <rule ref="./vendor/adeoweb/adeo-coding-style-php/standard/Magento/ruleset.xml"/>
    <file>./src</file>
</ruleset>

Running

To run:

$ ./vendor/bin/phpcs

Fixing issues automatically

Also you can run phpcbf from the command-line to fix your code MyAwesomeExtension for warnings like "PHPCBF CAN FIX THE [0-9]+ MARKED SNIFF VIOLATIONS AUTOMATICALLY"

$ vendor/bin/phpcbf app/code/MyAwesomeExtension

Versions

Releases are made when there is a:

  • Patch: messages of type WARNING has changed: it was added, removed, parameters changed
  • Minor: the message of type ERROR has been changed

FAQs

Package last updated on 01 Sep 2022

Related posts