mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
22 lines
642 B
PHP
22 lines
642 B
PHP
<?php
|
|
|
|
/**
|
|
* SPDX-FileCopyrightText: 2018 Robin Appelman <robin@icewind.nl>
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
$finder = PhpCsFixer\Finder::create()->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);
|