Skip to content

Commit

Permalink
doc: update annotate
Browse files Browse the repository at this point in the history
  • Loading branch information
jiannei committed Dec 21, 2020
1 parent 50501f7 commit 6099f3b
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions src/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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 = '')
{
Expand All @@ -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 = '')
{
Expand All @@ -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 = '')
{
Expand Down Expand Up @@ -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)
{
Expand Down Expand Up @@ -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)
{
Expand Down

0 comments on commit 6099f3b

Please sign in to comment.