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
|
|
@ -18,7 +18,7 @@ jobs:
|
|||
- name: Setup PHP
|
||||
uses: https://github.com/shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: '8.0'
|
||||
php-version: '8.1'
|
||||
extensions: apcu
|
||||
- name: Composer
|
||||
run: composer install
|
||||
|
|
|
|||
|
|
@ -9,13 +9,16 @@ $finder = PhpCsFixer\Finder::create()
|
|||
->exclude('vendor')
|
||||
->in(__DIR__)
|
||||
;
|
||||
return PhpCsFixer\Config::create()
|
||||
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' => ['align_double_arrow' => true, 'align_equals' => false],
|
||||
'binary_operator_spaces' => ['operators' => ['=>' => 'align_single_space']],
|
||||
])
|
||||
->setIndent("\t")
|
||||
->setFinder($finder)
|
||||
;
|
||||
->setFinder($finder);
|
||||
|
|
@ -9,5 +9,4 @@ declare(strict_types=1);
|
|||
namespace Icewind\SMB\Exception;
|
||||
|
||||
class InvalidTicket extends Exception {
|
||||
|
||||
}
|
||||
|
|
@ -48,8 +48,6 @@ abstract class AbstractShareTest extends TestCase {
|
|||
abstract public function getServerClass(): string;
|
||||
|
||||
public function setUp(): void {
|
||||
// ob_end_flush();
|
||||
// var_dump($this->getName());
|
||||
$this->config = json_decode(file_get_contents(__DIR__ . '/config.json'));
|
||||
$options = new Options();
|
||||
$options->setMinProtocol(IOptions::PROTOCOL_SMB2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue