Skip to content

Commit 8c6e891

Browse files
committed
Implement new php-cs-fixer into PHPStorm project to improve development
1 parent 8b762cb commit 8c6e891

File tree

5 files changed

+641
-23
lines changed

5 files changed

+641
-23
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
.vagrant/*
55
.vscode/*
66
storage/framework/*
7+
/.idea
78

89
composer.lock
910
node_modules

.php_cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
require_once __DIR__ . '/vendor/sllh/php-cs-fixer-styleci-bridge/autoload.php';
4+
5+
use SLLH\StyleCIBridge\ConfigBridge;
6+
7+
return ConfigBridge::create();

.styleci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
preset: laravel
2+
risky: false
3+
disabled:
4+
- concat_without_spaces
5+
enabled:
6+
- concat_with_spaces

composer.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "Pterodactyl Panel",
2+
"name": "pterodactyl/panel",
33
"description": "The free, open-source game management panel. Supporting Minecraft, Spigot, BungeeCord, and SRCDS servers.",
44
"license": "MIT",
55
"authors": [
@@ -38,10 +38,12 @@
3838
"webpatser/laravel-uuid": "2.0.1"
3939
},
4040
"require-dev": {
41+
"barryvdh/laravel-ide-helper": "^2.3",
42+
"friendsofphp/php-cs-fixer": "1.*",
4143
"fzaninotto/faker": "~1.4",
4244
"mockery/mockery": "0.9.*",
4345
"phpunit/phpunit": "~5.7",
44-
"barryvdh/laravel-ide-helper": "^2.3"
46+
"sllh/php-cs-fixer-styleci-bridge": "^2.1"
4547
},
4648
"autoload": {
4749
"classmap": [

0 commit comments

Comments
 (0)