From 6099f3b8d4048517603da177475f485ec261dbf3 Mon Sep 17 00:00:00 2001 From: jiannei Date: Mon, 21 Dec 2020 21:59:45 +0800 Subject: [PATCH] doc: update annotate --- src/Response.php | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/src/Response.php b/src/Response.php index a2cc5fd..8ab80f4 100644 --- a/src/Response.php +++ b/src/Response.php @@ -19,8 +19,6 @@ use Illuminate\Pagination\AbstractPaginator; use Illuminate\Support\Arr; use Illuminate\Support\Facades\Config; -use Illuminate\Support\HigherOrderTapProxy; -use Jiannei\Enum\Laravel\Exceptions\InvalidEnumValueException; class Response { @@ -30,8 +28,7 @@ class Response * @param null $data * @param string $message * @param string $location - * @return JsonResponse|JsonResource|HigherOrderTapProxy - * @throws InvalidEnumValueException + * @return JsonResponse|JsonResource */ public function accepted($data = null, string $message = '', string $location = '') { @@ -49,8 +46,7 @@ public function accepted($data = null, string $message = '', string $location = * @param null $data * @param string $message * @param string $location - * @return JsonResponse|JsonResource|HigherOrderTapProxy - * @throws InvalidEnumValueException + * @return JsonResponse|JsonResource */ public function created($data = null, string $message = '', string $location = '') { @@ -66,8 +62,7 @@ public function created($data = null, string $message = '', string $location = ' * Respond with a no content response. * * @param string $message - * @return JsonResponse|JsonResource|HigherOrderTapProxy - * @throws InvalidEnumValueException + * @return JsonResponse|JsonResource */ public function noContent(string $message = '') { @@ -249,7 +244,7 @@ protected function formatData($data, $message, &$code, $errors = null): array * @param array $headers * @param int $option * - * @return HigherOrderTapProxy|mixed + * @return mixed */ protected function formatPaginatedResourceResponse($resource, string $message = '', $code = 200, array $headers = [], $option = 0) { @@ -309,7 +304,7 @@ function ($item) { * @param array $headers * @param int $option * - * @return HigherOrderTapProxy|mixed + * @return mixed */ protected function formatResourceResponse($resource, string $message = '', $code = 200, array $headers = [], $option = 0) {