This repository contains Pocketmine's style rules, including custom rules.
Install the package via composer:
composer require --global friendsofphp/php-cs-fixer
composer require --dev pocketmine/codestyle
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));