整理函数 & 格式化代码

This commit is contained in:
iVampireSP.com 2023-02-13 15:33:37 +08:00
parent 10a7df704c
commit 85c4f22ed4
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132
5 changed files with 34 additions and 45 deletions

View File

@ -26,7 +26,6 @@ public function index(): View
* Store a newly created resource in storage. * Store a newly created resource in storage.
* *
* @param Request $request * @param Request $request
*
* @return View * @return View
*/ */
public function store(Request $request): View public function store(Request $request): View
@ -56,7 +55,6 @@ public function create(): View
* Display the specified resource. * Display the specified resource.
* *
* @param Application $application * @param Application $application
*
* @return RedirectResponse * @return RedirectResponse
*/ */
public function show(Application $application): RedirectResponse public function show(Application $application): RedirectResponse
@ -68,7 +66,6 @@ public function show(Application $application): RedirectResponse
* Show the form for editing the specified resource. * Show the form for editing the specified resource.
* *
* @param Application $application * @param Application $application
*
* @return View * @return View
*/ */
public function edit(Application $application): View public function edit(Application $application): View
@ -81,7 +78,6 @@ public function edit(Application $application): View
* *
* @param Request $request * @param Request $request
* @param Application $application * @param Application $application
*
* @return RedirectResponse * @return RedirectResponse
*/ */
public function update(Request $request, Application $application): RedirectResponse public function update(Request $request, Application $application): RedirectResponse
@ -101,7 +97,6 @@ public function update(Request $request, Application $application): RedirectResp
* Remove the specified resource from storage. * Remove the specified resource from storage.
* *
* @param Application $application * @param Application $application
*
* @return RedirectResponse * @return RedirectResponse
*/ */
public function destroy(Application $application): RedirectResponse public function destroy(Application $application): RedirectResponse

View File

@ -18,7 +18,6 @@ class TaskController extends Controller
* Display a listing of the resource. * Display a listing of the resource.
* *
* @param Request $request * @param Request $request
*
* @return JsonResponse * @return JsonResponse
*/ */
public function index(Request $request): JsonResponse public function index(Request $request): JsonResponse
@ -32,7 +31,6 @@ public function index(Request $request): JsonResponse
* Store a newly created resource in storage. * Store a newly created resource in storage.
* *
* @param Request $request * @param Request $request
*
* @return JsonResponse * @return JsonResponse
* *
* @throws ValidationException * @throws ValidationException
@ -55,7 +53,6 @@ public function store(Request $request): JsonResponse
* *
* @param Request $request * @param Request $request
* @param Task $task * @param Task $task
*
* @return JsonResponse * @return JsonResponse
* *
* @throws ValidationException * @throws ValidationException

View File

@ -111,7 +111,6 @@ private function getResponse(Response $response): array
* @param $path * @param $path
* @param $requests * @param $requests
* @param array $files * @param array $files
*
* @return array * @return array
*/ */
public function request($method, $path, $requests, array $files = []): array public function request($method, $path, $requests, array $files = []): array
@ -207,7 +206,6 @@ public function calculate(): array
* @param string|null $description * @param string|null $description
* @param bool $fail * @param bool $fail
* @param array $options * @param array $options
*
* @return string * @return string
*/ */
public function reduce(string|null $amount = '0', string|null $description = '消费', bool $fail = false, array $options = []): string public function reduce(string|null $amount = '0', string|null $description = '消费', bool $fail = false, array $options = []): string
@ -255,7 +253,6 @@ public function reduce(string|null $amount = '0', string|null $description = '
* @param string $payment * @param string $payment
* @param string|null $description * @param string|null $description
* @param array $options * @param array $options
*
* @return string * @return string
*/ */
public function charge(string|null $amount = '0', string $payment = 'console', string|null $description = '充值', array $options = []): string public function charge(string|null $amount = '0', string $payment = 'console', string|null $description = '充值', array $options = []): string