Skip to content

Commit

Permalink
Add Laravel Pint
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMicky-FR committed Jul 15, 2022
1 parent 389a9d9 commit 101b711
Show file tree
Hide file tree
Showing 9 changed files with 86 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class MinecraftBedrockPing
protected $socket;

protected $address;

protected $port;

public function __construct(string $address, int $port = 19132)
Expand Down
1 change: 1 addition & 0 deletions app/Games/Steam/Servers/FiveMStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
class FiveMStatus extends ServerBridge
{
protected const TIMEOUT = 3;

protected const DEFAULT_PORT = 30120;

public function getServerData()
Expand Down
2 changes: 2 additions & 0 deletions app/Games/Steam/Servers/Protocol/FiveMRcon.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
class FiveMRcon
{
private $address;

private $port;

private $password;

private $socket;
Expand Down
5 changes: 5 additions & 0 deletions app/Http/Controllers/InstallController.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,19 @@
class InstallController extends Controller
{
public const TEMP_KEY = 'base64:hmU1T3OuvHdi5t1wULI8Xp7geI+JIWGog9pBCNxslY8=';

public const MIN_PHP_VERSION = '8.0';

public const REQUIRED_EXTENSIONS = [
'bcmath', 'ctype', 'json', 'mbstring', 'openssl', 'PDO', 'tokenizer',
'xml', 'xmlwriter', 'curl', 'fileinfo', 'zip',
];

public const SUPPORTED_LANGUAGES_NAMES = [
'en' => 'English',
'fr' => 'Français',
];

public const SUPPORTED_LANGUAGES = ['en', 'fr'];

protected $databaseDrivers = [
Expand All @@ -49,6 +53,7 @@ class InstallController extends Controller
protected $steamGames = [
'gmod', 'ark', 'rust', 'fivem', 'csgo', 'tf2',
];

protected $games = [
'minecraft' => [
'name' => 'Minecraft',
Expand Down
2 changes: 2 additions & 0 deletions app/Http/View/Composers/AdminLayoutComposer.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
class AdminLayoutComposer
{
protected UpdateManager $updates;

protected PluginManager $plugins;

protected ThemeManager $themes;

/**
Expand Down
1 change: 1 addition & 0 deletions app/Http/View/Composers/ServerComposer.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
class ServerComposer
{
private static ?Collection $servers = null;

private static ?Server $server = null;

/**
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"require-dev": {
"barryvdh/laravel-debugbar": "^3.6.6",
"fakerphp/faker": "^1.9.1",
"laravel/pint": "^1.0",
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^6.1",
"phpunit/phpunit": "^9.5.10",
Expand Down
68 changes: 67 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions pint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"exclude": [
"plugins",
"resources/themes"
]
}

0 comments on commit 101b711

Please sign in to comment.