1
0
mirror of https://github.com/danog/magnaluna.git synced 2024-11-26 11:34:39 +01:00

Update deps

This commit is contained in:
Daniil Gentili 2023-08-14 20:57:20 +02:00
parent c604104fca
commit 538081f6cc
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
3 changed files with 25 additions and 13 deletions

22
.php-cs-fixer.dist.php Normal file
View File

@ -0,0 +1,22 @@
<?php
$config = new class extends Amp\CodeStyle\Config {
public function getRules(): array
{
return array_merge(parent::getRules(), [
'void_return' => true,
'array_indentation' => true,
'ternary_to_null_coalescing' => true,
'assign_null_coalescing_to_coalesce_equal' => true,
]);
}
};
$config->getFinder()
->append([__DIR__ . '/magna.php']);
$cacheDir = getenv('TRAVIS') ? getenv('HOME') . '/.php-cs-fixer' : __DIR__;
$config->setCacheFile($cacheDir . '/.php_cs.cache');
return $config;

View File

@ -1,11 +0,0 @@
<?php
$config = new Amp\CodeStyle\Config();
$config->getFinder()
->in(__DIR__);
$cacheDir = getenv('TRAVIS') ? getenv('HOME') . '/.php-cs-fixer' : __DIR__;
$config->setCacheFile($cacheDir . '/.php_cs.cache');
return $config;

View File

@ -9,12 +9,13 @@
"support": {
"issues": "https://github.com/danog/magnaluna/issues"
},
"minimum-stability": "beta",
"require": {
"danog/madelineproto": "dev-master"
"danog/madelineproto": "^8"
},
"license": "AGPL-3.0-only",
"require-dev": {
"amphp/php-cs-fixer-config": "dev-master"
"amphp/php-cs-fixer-config": "^2"
},
"scripts": {
"check": [