Skip to content

Commit f3ffb4a

Browse files
committed
refactor(README): update code comments
- Add strict_types declaration - Update code comments for better readability
1 parent 5922972 commit f3ffb4a

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

README-zh_CN.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,12 +513,22 @@ SQL
513513
```php
514514
<?php
515515

516+
declare(strict_types=1);
517+
516518
namespace Guanguans\LaravelSoar\Contracts;
517519

518520
use Illuminate\Support\Collection;
519521

520522
interface Output
521523
{
524+
/**
525+
* @param \Illuminate\Console\Events\CommandFinished|\Symfony\Component\HttpFoundation\Response $dispatcher
526+
*/
527+
public function shouldOutput($dispatcher): bool;
528+
529+
/**
530+
* @param \Illuminate\Console\Events\CommandFinished|\Symfony\Component\HttpFoundation\Response $dispatcher
531+
*/
522532
public function output(Collection $scores, $dispatcher);
523533
}
524534
```

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,12 +514,22 @@ SQL
514514
```php
515515
<?php
516516

517+
declare(strict_types=1);
518+
517519
namespace Guanguans\LaravelSoar\Contracts;
518520

519521
use Illuminate\Support\Collection;
520522

521523
interface Output
522524
{
525+
/**
526+
* @param \Illuminate\Console\Events\CommandFinished|\Symfony\Component\HttpFoundation\Response $dispatcher
527+
*/
528+
public function shouldOutput($dispatcher): bool;
529+
530+
/**
531+
* @param \Illuminate\Console\Events\CommandFinished|\Symfony\Component\HttpFoundation\Response $dispatcher
532+
*/
523533
public function output(Collection $scores, $dispatcher);
524534
}
525535
```

0 commit comments

Comments
 (0)