mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 09:14:06 +02:00
code style
This commit is contained in:
parent
208057e445
commit
dae8dea06c
8 changed files with 15 additions and 15 deletions
24
.php-cs-fixer.dist.php
Normal file
24
.php-cs-fixer.dist.php
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: 2018 Robin Appelman <robin@icewind.nl>
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
$finder = PhpCsFixer\Finder::create()
|
||||
->exclude('vendor')
|
||||
->in(__DIR__)
|
||||
;
|
||||
return (new PhpCsFixer\Config())
|
||||
->setRules([
|
||||
'@PSR2' => true,
|
||||
'curly_braces_position' => [
|
||||
'classes_opening_brace' => 'same_line',
|
||||
'functions_opening_brace' => 'same_line',
|
||||
],
|
||||
'array_syntax' => ['syntax' => 'short'],
|
||||
'braces' => ['position_after_functions_and_oop_constructs' => 'same'],
|
||||
'binary_operator_spaces' => ['operators' => ['=>' => 'align_single_space']],
|
||||
])
|
||||
->setIndent("\t")
|
||||
->setFinder($finder);
|
||||
Loading…
Add table
Add a link
Reference in a new issue