Skip to content

Commit 48238a1

Browse files
committed
Update README.md
1 parent fe9c5fa commit 48238a1

File tree

4 files changed

+48
-47
lines changed

4 files changed

+48
-47
lines changed

.php-cs-fixer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
__FILE__,
4343
// __DIR__.'/bin/facades.php',
4444
__DIR__.'/.phpstorm.meta.php',
45+
__DIR__.'/_ide_helper.php',
4546
__DIR__.'/composer-unused.php',
4647
__DIR__.'/doctum.php',
4748
__DIR__.'/rector.php',

README-EN.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ use Illuminate\Support\Str;
7777

7878
class SoarController extends Controller
7979
{
80-
public function sqlScore()
80+
public function sqlScores()
8181
{
8282
// 创建表
8383
DB::select(
@@ -496,38 +496,38 @@ app('soar'); // 获取 Soar 实例
496496
/**
497497
* Soar 门面.
498498
*
499-
* @method static \self create(array $options = [], null|string $soarPath = null)
499+
* @method static \Guanguans\LaravelSoar\Soar create(array $options = [], null|string $soarPath = null)
500500
* @method static string help()
501501
* @method static string version()
502-
* @method static \self clone()
502+
* @method static \Guanguans\LaravelSoar\Soar clone()
503503
* @method static array arrayScores(array|string $sqls, int $depth = 512, int $options = 0)
504504
* @method static string jsonScores(array|string $sqls)
505505
* @method static string htmlScores(array|string $sqls)
506506
* @method static string markdownScores(array|string $sqls)
507507
* @method static string scores(array|string $sqls)
508-
* @method static \self addOptions(array $options)
509-
* @method static \self addOption(string $key, void $value)
510-
* @method static \self removeOptions(array $keys)
511-
* @method static \self removeOption(string $key)
512-
* @method static \self onlyOptions(array $keys = ['-test-dsn','-online-dsn'])
513-
* @method static \self onlyOption(string $key)
514-
* @method static \self setOptions(array $options)
515-
* @method static \self setOption(string $key, void $value)
516-
* @method static \self mergeOptions(array $options)
517-
* @method static \self mergeOption(string $key, void $value)
508+
* @method static \Guanguans\LaravelSoar\Soar addOptions(array $options)
509+
* @method static \Guanguans\LaravelSoar\Soar addOption(string $key, void $value)
510+
* @method static \Guanguans\LaravelSoar\Soar removeOptions(array $keys)
511+
* @method static \Guanguans\LaravelSoar\Soar removeOption(string $key)
512+
* @method static \Guanguans\LaravelSoar\Soar onlyOptions(array $keys = ['-test-dsn','-online-dsn'])
513+
* @method static \Guanguans\LaravelSoar\Soar onlyOption(string $key)
514+
* @method static \Guanguans\LaravelSoar\Soar setOptions(array $options)
515+
* @method static \Guanguans\LaravelSoar\Soar setOption(string $key, void $value)
516+
* @method static \Guanguans\LaravelSoar\Soar mergeOptions(array $options)
517+
* @method static \Guanguans\LaravelSoar\Soar mergeOption(string $key, void $value)
518518
* @method static array getOptions()
519519
* @method static void getOption(string $key, void $default = null)
520520
* @method static string getSerializedNormalizedOptions()
521521
* @method static array getNormalizedOptions()
522522
* @method static string getSoarPath()
523-
* @method static \self setSoarPath(string $soarPath)
523+
* @method static \Guanguans\LaravelSoar\Soar setSoarPath(string $soarPath)
524524
* @method static void dd(void ...$args)
525-
* @method static \self dump(void ...$args)
525+
* @method static \Guanguans\LaravelSoar\Soar dump(void ...$args)
526526
* @method static string run(array|string $withOptions = [], null|callable $processTapper = null, null|callable $callback = null)
527527
* @method static \Guanguans\LaravelSoar\Soar|\Illuminate\Support\HigherOrderTapProxy tap(null|callable $callback = null)
528528
*
529529
* @see \Guanguans\LaravelSoar\Soar
530-
*/
530+
*/
531531
class Soar{}
532532
```
533533
</details>
@@ -546,9 +546,9 @@ namespace Illuminate\Database\Eloquent {
546546
* @method array toSoarArrayScores()
547547
* @method void dumpSoarArrayScores()
548548
* @method void ddSoarArrayScores()
549-
* @method string toSoarJsonScores()
550-
* @method void dumpSoarJsonScores()
551-
* @method void ddSoarJsonScores()
549+
* @method string toSoarJsonScores(int $options = 0, int $depth = 128)
550+
* @method void dumpSoarJsonScores(int $options = 0, int $depth = 128)
551+
* @method void ddSoarJsonScores(int $options = 0, int $depth = 128)
552552
* @method string toSoarHtmlScores()
553553
* @method void echoSoarHtmlScores()
554554
* @method void exitSoarHtmlScores()

README.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ use Illuminate\Support\Str;
7979

8080
class SoarController extends Controller
8181
{
82-
public function sqlScore()
82+
public function sqlScores()
8383
{
8484
// 创建表
8585
DB::select(
@@ -496,38 +496,38 @@ app('soar'); // 获取 Soar 实例
496496
/**
497497
* Soar 门面.
498498
*
499-
* @method static \self create(array $options = [], null|string $soarPath = null)
499+
* @method static \Guanguans\LaravelSoar\Soar create(array $options = [], null|string $soarPath = null)
500500
* @method static string help()
501501
* @method static string version()
502-
* @method static \self clone()
502+
* @method static \Guanguans\LaravelSoar\Soar clone()
503503
* @method static array arrayScores(array|string $sqls, int $depth = 512, int $options = 0)
504504
* @method static string jsonScores(array|string $sqls)
505505
* @method static string htmlScores(array|string $sqls)
506506
* @method static string markdownScores(array|string $sqls)
507507
* @method static string scores(array|string $sqls)
508-
* @method static \self addOptions(array $options)
509-
* @method static \self addOption(string $key, void $value)
510-
* @method static \self removeOptions(array $keys)
511-
* @method static \self removeOption(string $key)
512-
* @method static \self onlyOptions(array $keys = ['-test-dsn','-online-dsn'])
513-
* @method static \self onlyOption(string $key)
514-
* @method static \self setOptions(array $options)
515-
* @method static \self setOption(string $key, void $value)
516-
* @method static \self mergeOptions(array $options)
517-
* @method static \self mergeOption(string $key, void $value)
508+
* @method static \Guanguans\LaravelSoar\Soar addOptions(array $options)
509+
* @method static \Guanguans\LaravelSoar\Soar addOption(string $key, void $value)
510+
* @method static \Guanguans\LaravelSoar\Soar removeOptions(array $keys)
511+
* @method static \Guanguans\LaravelSoar\Soar removeOption(string $key)
512+
* @method static \Guanguans\LaravelSoar\Soar onlyOptions(array $keys = ['-test-dsn','-online-dsn'])
513+
* @method static \Guanguans\LaravelSoar\Soar onlyOption(string $key)
514+
* @method static \Guanguans\LaravelSoar\Soar setOptions(array $options)
515+
* @method static \Guanguans\LaravelSoar\Soar setOption(string $key, void $value)
516+
* @method static \Guanguans\LaravelSoar\Soar mergeOptions(array $options)
517+
* @method static \Guanguans\LaravelSoar\Soar mergeOption(string $key, void $value)
518518
* @method static array getOptions()
519519
* @method static void getOption(string $key, void $default = null)
520520
* @method static string getSerializedNormalizedOptions()
521521
* @method static array getNormalizedOptions()
522522
* @method static string getSoarPath()
523-
* @method static \self setSoarPath(string $soarPath)
523+
* @method static \Guanguans\LaravelSoar\Soar setSoarPath(string $soarPath)
524524
* @method static void dd(void ...$args)
525-
* @method static \self dump(void ...$args)
525+
* @method static \Guanguans\LaravelSoar\Soar dump(void ...$args)
526526
* @method static string run(array|string $withOptions = [], null|callable $processTapper = null, null|callable $callback = null)
527527
* @method static \Guanguans\LaravelSoar\Soar|\Illuminate\Support\HigherOrderTapProxy tap(null|callable $callback = null)
528528
*
529529
* @see \Guanguans\LaravelSoar\Soar
530-
*/
530+
*/
531531
class Soar{}
532532
```
533533
</details>
@@ -546,9 +546,9 @@ namespace Illuminate\Database\Eloquent {
546546
* @method array toSoarArrayScores()
547547
* @method void dumpSoarArrayScores()
548548
* @method void ddSoarArrayScores()
549-
* @method string toSoarJsonScores()
550-
* @method void dumpSoarJsonScores()
551-
* @method void ddSoarJsonScores()
549+
* @method string toSoarJsonScores(int $options = 0, int $depth = 128)
550+
* @method void dumpSoarJsonScores(int $options = 0, int $depth = 128)
551+
* @method void ddSoarJsonScores(int $options = 0, int $depth = 128)
552552
* @method string toSoarHtmlScores()
553553
* @method void echoSoarHtmlScores()
554554
* @method void exitSoarHtmlScores()

_ide_helper.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ class Soar extends \Guanguans\LaravelSoar\Facades\Soar
2424
* @method array toSoarArrayScores()
2525
* @method void dumpSoarArrayScores()
2626
* @method void ddSoarArrayScores()
27-
* @method string toSoarJsonScores()
28-
* @method void dumpSoarJsonScores()
29-
* @method void ddSoarJsonScores()
27+
* @method string toSoarJsonScores(int $options = 0, int $depth = 128)
28+
* @method void dumpSoarJsonScores(int $options = 0, int $depth = 128)
29+
* @method void ddSoarJsonScores(int $options = 0, int $depth = 128)
3030
* @method string toSoarHtmlScores()
3131
* @method void echoSoarHtmlScores()
3232
* @method void exitSoarHtmlScores()
@@ -47,9 +47,9 @@ class Builder
4747
* @method array toSoarArrayScores()
4848
* @method void dumpSoarArrayScores()
4949
* @method void ddSoarArrayScores()
50-
* @method string toSoarJsonScores()
51-
* @method void dumpSoarJsonScores()
52-
* @method void ddSoarJsonScores()
50+
* @method string toSoarJsonScores(int $options = 0, int $depth = 128)
51+
* @method void dumpSoarJsonScores(int $options = 0, int $depth = 128)
52+
* @method void ddSoarJsonScores(int $options = 0, int $depth = 128)
5353
* @method string toSoarHtmlScores()
5454
* @method void echoSoarHtmlScores()
5555
* @method void exitSoarHtmlScores()
@@ -72,9 +72,9 @@ class Builder
7272
* @method array toSoarArrayScores()
7373
* @method void dumpSoarArrayScores()
7474
* @method void ddSoarArrayScores()
75-
* @method string toSoarJsonScores()
76-
* @method void dumpSoarJsonScores()
77-
* @method void ddSoarJsonScores()
75+
* @method string toSoarJsonScores(int $options = 0, int $depth = 128)
76+
* @method void dumpSoarJsonScores(int $options = 0, int $depth = 128)
77+
* @method void ddSoarJsonScores(int $options = 0, int $depth = 128)
7878
* @method string toSoarHtmlScores()
7979
* @method void echoSoarHtmlScores()
8080
* @method void exitSoarHtmlScores()

0 commit comments

Comments
 (0)