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 15ba576 commit 45acff6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/LengthAwarePaginator.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
use Hyperf\Utils\Collection;
use IteratorAggregate;
use JsonSerializable;
use RuntimeException;

class LengthAwarePaginator extends AbstractPaginator implements Arrayable, Countable, IteratorAggregate, JsonSerializable, Jsonable, LengthAwarePaginatorInterface
{
Expand Down Expand Up @@ -69,7 +70,7 @@ public function links(?string $view = null, array $data = [])
public function render(?string $view = null, array $data = []): string
{
if ($view) {
throw new \RuntimeException('WIP.');
throw new RuntimeException('WIP.');
}
return json_encode(array_merge($data, $this->items()), 0);
}
Expand Down
3 changes: 2 additions & 1 deletion src/Paginator.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
use Hyperf\Utils\Collection;
use IteratorAggregate;
use JsonSerializable;
use RuntimeException;

class Paginator extends AbstractPaginator implements Arrayable, Countable, IteratorAggregate, JsonSerializable, Jsonable
{
Expand Down Expand Up @@ -66,7 +67,7 @@ public function nextPageUrl(): ?string
public function render(?string $view = null, array $data = []): string
{
if ($view) {
throw new \RuntimeException('WIP.');
throw new RuntimeException('WIP.');
}
return json_encode($data, 0);
}
Expand Down

0 comments on commit 45acff6

Please sign in to comment.