File tree Expand file tree Collapse file tree 4 files changed +6
-17
lines changed Expand file tree Collapse file tree 4 files changed +6
-17
lines changed Original file line number Diff line number Diff line change 41
41
"friendsofphp/php-cs-fixer" : " ^3.0" ,
42
42
"mockery/mockery" : " ^1.0" ,
43
43
"phpunit/phpunit" : " >=7.0" ,
44
+ "swoole/ide-helper" : " ^5.0" ,
44
45
"symfony/var-dumper" : " ^5.1"
45
46
},
46
47
"config" : {
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ protected function parallel(array $eventSqlList): array
122
122
try {
123
123
foreach ($ eventSqlList as $ sql ) {
124
124
$ parallel ->add (function () use ($ sql ) {
125
- $ soar = $ this ->service ->score ($ sql );
125
+ $ soar = $ this ->service ->jsonScores ($ sql );
126
126
127
127
return $ this ->formatting ($ soar );
128
128
});
Original file line number Diff line number Diff line change 16
16
namespace Wilbur \HyperfSoar ;
17
17
18
18
use Guanguans \SoarPHP \Exceptions \RuntimeException ;
19
- use Guanguans \SoarPHP \Support \OsHelper ;
19
+ use Guanguans \SoarPHP \Support \OS ;
20
20
use Swoole \Coroutine \System ;
21
21
22
22
trait Exec
@@ -30,7 +30,7 @@ trait Exec
30
30
*/
31
31
public function exec (string $ command ): string
32
32
{
33
- OsHelper ::isWindows () && $ command = 'powershell ' .$ command ;
33
+ OS ::isWindows () && $ command = 'powershell ' .$ command ;
34
34
$ result = System::exec ($ command );
35
35
36
36
if ($ result ['code ' ] !== 0 ) {
Original file line number Diff line number Diff line change 17
17
18
18
use Guanguans \SoarPHP \Soar ;
19
19
20
- use Guanguans \SoarPHP \Support \OsHelper ;
20
+ use Guanguans \SoarPHP \Support \OS ;
21
21
22
22
use function config ;
23
23
24
24
class SoarService extends Soar
25
25
{
26
- use Exec;
26
+ // use Exec;
27
27
28
28
public function __construct (array $ config = null )
29
29
{
@@ -33,16 +33,4 @@ public function __construct(array $config = null)
33
33
unset($ config ['enabled ' ], $ config ['cut_classes ' ], $ config ['-soar-path ' ]);
34
34
parent ::__construct ($ config , $ soarPath );
35
35
}
36
-
37
- protected function getDefaultSoarPath (): string
38
- {
39
- if (OsHelper::isWindows ()) {
40
- return __DIR__ .'/../vendor/guanguans/soar-php/bin/soar.windows-amd64 ' ;
41
- }
42
- if (OsHelper::isMacOS ()) {
43
- return __DIR__ .'/../vendor/guanguans/soar-php/bin/soar.darwin-amd64 ' ;
44
- }
45
-
46
- return __DIR__ .'/../vendor/guanguans/soar-php/bin/soar.linux-amd64 ' ;
47
- }
48
36
}
You can’t perform that action at this time.
0 commit comments