Skip to content
/ CodeStyle Public

Pocketmine's style rules, including custom rules.

License

Notifications You must be signed in to change notification settings

pmmp/CodeStyle

Repository files navigation

Pocketmine code style custom rules

This repository contains Pocketmine's style rules, including custom rules.

Installation

Install the package via composer:

composer require --global friendsofphp/php-cs-fixer

composer require --dev pocketmine/codestyle

Usage

Create a .php-cs-fixer.php file in the root of your project with the following content:

<?php

require __DIR__ . '/vendor/autoload.php';

use pocketmine\codestyle\PocketmineConfig;

$finder = PhpCsFixer\Finder::create()
	->in(__DIR__ . '/src'); // change this to the path of your source code

return (new PocketmineConfig($finder));

About

Pocketmine's style rules, including custom rules.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages