├── LICENSE ├── PhpMyAdmin └── ruleset.xml ├── README.md └── composer.json /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2016-2021 phpMyAdmin contributors 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is furnished 8 | to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in all 11 | copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /PhpMyAdmin/ruleset.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | The phpMyAdmin coding standard. 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # phpMyAdmin Coding Standard 2 | 3 | phpMyAdmin Coding Standard is a set of [PHP_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) rules and is based on the [Doctrine Coding Standard](https://github.com/doctrine/coding-standard). 4 | 5 | ## Installation 6 | 7 | ``` 8 | composer require --dev phpmyadmin/coding-standard 9 | ``` 10 | 11 | ## Usage 12 | 13 | ``` 14 | vendor/bin/phpcs --standard=PhpMyAdmin /path/to/code 15 | ``` 16 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "phpmyadmin/coding-standard", 3 | "description": "phpMyAdmin PHP_CodeSniffer Coding Standard", 4 | "keywords": ["phpcs", "CodeSniffer", "phpMyAdmin"], 5 | "license": "MIT", 6 | "type": "phpcodesniffer-standard", 7 | "authors": [ 8 | { 9 | "name": "The phpMyAdmin Team", 10 | "email": "developers@phpmyadmin.net", 11 | "homepage": "https://www.phpmyadmin.net/team/" 12 | } 13 | ], 14 | "support" : { 15 | "source": "https://github.com/phpmyadmin/coding-standard", 16 | "issues": "https://github.com/phpmyadmin/coding-standard/issues" 17 | }, 18 | "require": { 19 | "php": "^8.1", 20 | "doctrine/coding-standard": "^13", 21 | "squizlabs/php_codesniffer": "^3.7" 22 | }, 23 | "config": { 24 | "sort-packages": true, 25 | "allow-plugins": { 26 | "dealerdirect/phpcodesniffer-composer-installer": true 27 | } 28 | } 29 | } 30 | --------------------------------------------------------------------------------