Skip to content

Commit

Permalink
Format code (#5172)
Browse files Browse the repository at this point in the history
  • Loading branch information
limingxinleo authored Nov 1, 2022
1 parent 3d09a3b commit ec465d7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/NormalizerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@
*/
namespace Hyperf\Contract;

use ArrayObject;

interface NormalizerInterface
{
/**
* Normalizes an object into a set of arrays/scalars.
*
* @param mixed $object
* @return null|array|\ArrayObject|bool|float|int|string
* @return null|array|ArrayObject|bool|float|int|string
*/
public function normalize($object);

Expand Down
4 changes: 3 additions & 1 deletion src/SessionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@
*/
namespace Hyperf\Contract;

use RuntimeException;

interface SessionInterface
{
/**
* Starts the session storage.
*
* @return bool True if session started
* @throws \RuntimeException if session fails to start
* @throws RuntimeException if session fails to start
*/
public function start(): bool;

Expand Down
4 changes: 3 additions & 1 deletion src/TranslatorInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
*/
namespace Hyperf\Contract;

use Countable;

interface TranslatorInterface
{
/**
Expand All @@ -21,7 +23,7 @@ public function trans(string $key, array $replace = [], ?string $locale = null):
/**
* Get a translation according to an integer value.
*
* @param array|\Countable|int $number
* @param array|Countable|int $number
*/
public function transChoice(string $key, $number, array $replace = [], ?string $locale = null): string;

Expand Down

0 comments on commit ec465d7

Please sign in to comment.