mirror of
https://github.com/danog/magnaluna.git
synced 2024-11-30 04:19:16 +01:00
Update deps
This commit is contained in:
parent
c604104fca
commit
538081f6cc
22
.php-cs-fixer.dist.php
Normal file
22
.php-cs-fixer.dist.php
Normal 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;
|
11
.php_cs.dist
11
.php_cs.dist
@ -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;
|
@ -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": [
|
||||
|
Loading…
Reference in New Issue
Block a user