From 3f9d336f479c5b79d2571dc51b3c7a70933c8417 Mon Sep 17 00:00:00 2001 From: neznaika0 Date: Sun, 1 Sep 2024 15:47:46 +0300 Subject: [PATCH 1/2] fix: CodeIgniter4 coding standart --- src/Common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Common.php b/src/Common.php index 2d92bae..1462120 100644 --- a/src/Common.php +++ b/src/Common.php @@ -15,7 +15,7 @@ * * @param array $options Options for saveData or third-party extensions. */ - function view_fragment(string $name, string|array $fragments, array $data = [], array $options = []): string + function view_fragment(string $name, array|string $fragments, array $data = [], array $options = []): string { $renderer = Services::renderer(); From 22afe9076adc2c5907ed90f55392fdbd8728e3d8 Mon Sep 17 00:00:00 2001 From: neznaika0 Date: Sun, 1 Sep 2024 16:01:29 +0300 Subject: [PATCH 2/2] fix: Delete unnecessary docblocks --- src/HTTP/Response.php | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/HTTP/Response.php b/src/HTTP/Response.php index eb001e2..147d361 100644 --- a/src/HTTP/Response.php +++ b/src/HTTP/Response.php @@ -11,8 +11,6 @@ class Response extends BaseResponse /** * Pushes a new url into the history stack. - * - * @return Response; */ public function setPushUrl(?string $url = null): Response { @@ -23,8 +21,6 @@ public function setPushUrl(?string $url = null): Response /** * Replaces the current URL in the location bar. - * - * @return Response; */ public function setReplaceUrl(?string $url = null): Response { @@ -35,8 +31,6 @@ public function setReplaceUrl(?string $url = null): Response /** * Allows you to specify how the response will be swapped. - * - * @return Response; */ public function setReswap(string $method): Response { @@ -50,8 +44,6 @@ public function setReswap(string $method): Response /** * A CSS selector that updates the target of the content * update to a different element on the page. - * - * @return Response; */ public function setRetarget(string $selector): Response { @@ -63,8 +55,6 @@ public function setRetarget(string $selector): Response /** * A CSS selector that allows you to choose which part * of the response is used to be swapped in. - * - * @return Response; */ public function setReselect(string $selector): Response { @@ -75,8 +65,6 @@ public function setReselect(string $selector): Response /** * Allows you to trigger client side events. - * - * @return Response; */ public function triggerClientEvent(string $name, array|string $params = '', string $after = 'receive'): Response {