File tree Expand file tree Collapse file tree 4 files changed +24
-1
lines changed Expand file tree Collapse file tree 4 files changed +24
-1
lines changed Original file line number Diff line number Diff line change
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 );
Original file line number Diff line number Diff line change 13
13
"ext-json" : " *" ,
14
14
"topthink/framework" : " ^6.0.0 | ^8.0.0"
15
15
},
16
+ "require-dev" : {
17
+ "php-cs-fixer/shim" : " ^3.58"
18
+ },
16
19
"suggest" : {
17
20
"ext-openssl" : " *" ,
18
21
"ext-zlib" : " *"
Original file line number Diff line number Diff line change 1
1
<?php
2
+
2
3
declare (strict_types=1 );
3
4
4
5
namespace Zxin \SocketLog ;
@@ -140,7 +141,7 @@ protected function buildUrl(string $clientId): string
140
141
return $ this ->getParamsMethod () === 'path '
141
142
? ($ url . "/ {$ clientId }" )
142
143
: (
143
- $ this ->getParamsMethod () === 'query '
144
+ $ this ->getParamsMethod () === 'query '
144
145
? ($ url . "?clientId= {$ clientId }" )
145
146
: $ url
146
147
);
Original file line number Diff line number Diff line change 1
1
<?php
2
+
2
3
declare (strict_types=1 );
3
4
4
5
namespace think \log \driver ;
You can’t perform that action at this time.
0 commit comments