From 9ef5faad9f810443f5d45a1dba2f0d5972015bdb Mon Sep 17 00:00:00 2001 From: Nasir Khan Saikat Date: Mon, 8 May 2023 11:37:44 +0600 Subject: [PATCH 1/4] composer update --- composer.lock | 29 +++++++++++------------------ 1 file changed, 11 insertions(+), 18 deletions(-) diff --git a/composer.lock b/composer.lock index f61d0b8e1..39cd1a37d 100644 --- a/composer.lock +++ b/composer.lock @@ -978,26 +978,21 @@ { "name": "guzzlehttp/psr7", "version": "2.5.0", - "version": "2.5.0", "source": { "type": "git", "url": "https://github.com/guzzle/psr7.git", "reference": "b635f279edd83fc275f822a1188157ffea568ff6" - "reference": "b635f279edd83fc275f822a1188157ffea568ff6" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/guzzle/psr7/zipball/b635f279edd83fc275f822a1188157ffea568ff6", "reference": "b635f279edd83fc275f822a1188157ffea568ff6", - "url": "https://api.github.com/repos/guzzle/psr7/zipball/b635f279edd83fc275f822a1188157ffea568ff6", - "reference": "b635f279edd83fc275f822a1188157ffea568ff6", "shasum": "" }, "require": { "php": "^7.2.5 || ^8.0", "psr/http-factory": "^1.0", "psr/http-message": "^1.1 || ^2.0", - "psr/http-message": "^1.1 || ^2.0", "ralouphie/getallheaders": "^3.0" }, "provide": { @@ -1079,7 +1074,6 @@ "support": { "issues": "https://github.com/guzzle/psr7/issues", "source": "https://github.com/guzzle/psr7/tree/2.5.0" - "source": "https://github.com/guzzle/psr7/tree/2.5.0" }, "funding": [ { @@ -1096,7 +1090,6 @@ } ], "time": "2023-04-17T16:11:26+00:00" - "time": "2023-04-17T16:11:26+00:00" }, { "name": "guzzlehttp/uri-template", @@ -3718,12 +3711,12 @@ "source": { "type": "git", "url": "https://github.com/php-fig/http-factory.git", - "reference": "12ac7fcd07e5b077433f5f2bee95b3a771bf61be" + "reference": "e616d01114759c4c489f93b099585439f795fe35" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/http-factory/zipball/12ac7fcd07e5b077433f5f2bee95b3a771bf61be", - "reference": "12ac7fcd07e5b077433f5f2bee95b3a771bf61be", + "url": "https://api.github.com/repos/php-fig/http-factory/zipball/e616d01114759c4c489f93b099585439f795fe35", + "reference": "e616d01114759c4c489f93b099585439f795fe35", "shasum": "" }, "require": { @@ -3769,25 +3762,25 @@ }, { "name": "psr/http-message", - "version": "1.0.1", + "version": "2.0", "source": { "type": "git", "url": "https://github.com/php-fig/http-message.git", - "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363" + "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363", - "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363", + "url": "https://api.github.com/repos/php-fig/http-message/zipball/402d35bcb92c70c026d1a6a9883f06b2ead23d71", + "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71", "shasum": "" }, "require": { - "php": ">=5.3.0" + "php": "^7.2 || ^8.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0.x-dev" + "dev-master": "2.0.x-dev" } }, "autoload": { @@ -3816,9 +3809,9 @@ "response" ], "support": { - "source": "https://github.com/php-fig/http-message/tree/master" + "source": "https://github.com/php-fig/http-message/tree/2.0" }, - "time": "2016-08-06T14:39:51+00:00" + "time": "2023-04-04T09:54:51+00:00" }, { "name": "psr/log", From 085550263983e360973da79e902d4fad0d8a1760 Mon Sep 17 00:00:00 2001 From: Nasir Khan Saikat Date: Thu, 11 May 2023 12:02:17 +0600 Subject: [PATCH 2/4] icon helper update --- app/helpers.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/helpers.php b/app/helpers.php index b7214b314..5fcf98e17 100644 --- a/app/helpers.php +++ b/app/helpers.php @@ -257,7 +257,7 @@ function slug_format($string) * * icon * A short and easy way to show icon fornts - * Default value will be check icon from FontAwesome + * Default value will be check icon from FontAwesome (https://fontawesome.com) * * ------------------------------------------------------------------------ */ @@ -265,9 +265,9 @@ function slug_format($string) /** * Format a string to Slug. */ - function icon($string = 'fas fa-check') + function icon($string = 'fa-regular fa-circle-check') { - $return_string = ""; + $return_string = " "; return $return_string; } From 0e4293e7d38617b0ac8a8519d442596c2604af02 Mon Sep 17 00:00:00 2001 From: Nasir Khan Saikat Date: Thu, 11 May 2023 12:21:49 +0600 Subject: [PATCH 3/4] Slug max length can be 190 chat --- app/helpers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers.php b/app/helpers.php index 5fcf98e17..870bf921c 100644 --- a/app/helpers.php +++ b/app/helpers.php @@ -247,7 +247,7 @@ function slug_format($string) $string = str_replace('\\', '-', $string); $string = strtolower($string); - $slug_string = $string; + $slug_string = substr($string,0,190); return $slug_string; } From 1b1d926413dd0ba33cb3214e3600320bb2abd8f2 Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Thu, 11 May 2023 06:22:02 +0000 Subject: [PATCH 4/4] Apply fixes from StyleCI --- app/helpers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers.php b/app/helpers.php index 870bf921c..4154195d7 100644 --- a/app/helpers.php +++ b/app/helpers.php @@ -247,7 +247,7 @@ function slug_format($string) $string = str_replace('\\', '-', $string); $string = strtolower($string); - $slug_string = substr($string,0,190); + $slug_string = substr($string, 0, 190); return $slug_string; }