Skip to content

Commit 30ab6ed

Browse files
committed
Update PHPCS and other dependencies.
1 parent 82b7bff commit 30ab6ed

File tree

5 files changed

+266
-146
lines changed

5 files changed

+266
-146
lines changed

.php_cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ return PhpCsFixer\Config::create()
2424
'concat_space' => ['spacing' => 'one'],
2525
'declare_equal_normalize' => ['space' => 'single'],
2626
'heredoc_to_nowdoc' => true,
27+
'increment_style' => ['style' => 'post'],
2728
'linebreak_after_opening_tag' => true,
2829
'method_argument_space' => [
2930
'ensure_fully_multiline' => false,
@@ -45,4 +46,10 @@ return PhpCsFixer\Config::create()
4546
'psr4' => true,
4647
'random_api_migration' => true,
4748
'standardize_not_equals' => true,
49+
'ternary_to_null_coalescing' => true,
50+
'yoda_style' => [
51+
'equal' => false,
52+
'identical' => false,
53+
'less_and_greater' => false,
54+
]
4855
])->setRiskyAllowed(true)->setFinder($finder);

app/Services/Servers/EnvironmentService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public function handle(Server $server): array
9999
*
100100
* @return array
101101
*/
102-
final private function getEnvironmentMappings(): array
102+
private function getEnvironmentMappings(): array
103103
{
104104
return [
105105
'STARTUP' => 'startup',

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"require-dev": {
4747
"barryvdh/laravel-debugbar": "^2.4",
4848
"barryvdh/laravel-ide-helper": "^2.4",
49-
"friendsofphp/php-cs-fixer": "~2.4.0",
49+
"friendsofphp/php-cs-fixer": "^2.4",
5050
"fzaninotto/faker": "^1.6",
5151
"mockery/mockery": "^0.9",
5252
"php-mock/php-mock-phpunit": "^1.1",

0 commit comments

Comments
 (0)