Skip to content

Commit

Permalink
refactor(README): update code comments
Browse files Browse the repository at this point in the history
- Add strict_types declaration
- Update code comments for better readability
  • Loading branch information
guanguans committed Apr 1, 2024
1 parent 5922972 commit f3ffb4a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README-zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -513,12 +513,22 @@ SQL
```php
<?php

declare(strict_types=1);

namespace Guanguans\LaravelSoar\Contracts;

use Illuminate\Support\Collection;

interface Output
{
/**
* @param \Illuminate\Console\Events\CommandFinished|\Symfony\Component\HttpFoundation\Response $dispatcher
*/
public function shouldOutput($dispatcher): bool;

/**
* @param \Illuminate\Console\Events\CommandFinished|\Symfony\Component\HttpFoundation\Response $dispatcher
*/
public function output(Collection $scores, $dispatcher);
}
```
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -514,12 +514,22 @@ SQL
```php
<?php

declare(strict_types=1);

namespace Guanguans\LaravelSoar\Contracts;

use Illuminate\Support\Collection;

interface Output
{
/**
* @param \Illuminate\Console\Events\CommandFinished|\Symfony\Component\HttpFoundation\Response $dispatcher
*/
public function shouldOutput($dispatcher): bool;

/**
* @param \Illuminate\Console\Events\CommandFinished|\Symfony\Component\HttpFoundation\Response $dispatcher
*/
public function output(Collection $scores, $dispatcher);
}
```
Expand Down

0 comments on commit f3ffb4a

Please sign in to comment.