Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f16cc43

Browse files
committed
update: php-cs-fixer fix
1 parent b6b98bd commit f16cc43

File tree

4 files changed

+24
-1
lines changed

4 files changed

+24
-1
lines changed

.php-cs-fixer.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
3+
$finder = PhpCsFixer\Finder::create()
4+
->in([
5+
'src',
6+
'think',
7+
]);
8+
$config = new PhpCsFixer\Config();
9+
10+
return $config
11+
->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect())
12+
->setRules([
13+
'@PER-CS1.0' => true,
14+
'@PER-CS1.0:risky' => true,
15+
'@PHP74Migration' => true,
16+
])
17+
->setRiskyAllowed(true)
18+
->setFinder($finder);

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
"ext-json": "*",
1414
"topthink/framework": "^6.0.0 | ^8.0.0"
1515
},
16+
"require-dev": {
17+
"php-cs-fixer/shim": "^3.58"
18+
},
1619
"suggest": {
1720
"ext-openssl": "*",
1821
"ext-zlib": "*"

src/SocketClient.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
declare(strict_types=1);
34

45
namespace Zxin\SocketLog;
@@ -140,7 +141,7 @@ protected function buildUrl(string $clientId): string
140141
return $this->getParamsMethod() === 'path'
141142
? ($url . "/{$clientId}")
142143
: (
143-
$this->getParamsMethod() === 'query'
144+
$this->getParamsMethod() === 'query'
144145
? ($url . "?clientId={$clientId}")
145146
: $url
146147
);

think/SocketV2.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
declare (strict_types=1);
34

45
namespace think\log\driver;

0 commit comments

Comments
 (0)