Skip to content

Commit

Permalink
Merge pull request #32 from nguyenanhung/develop
Browse files Browse the repository at this point in the history
fixed cleantext
  • Loading branch information
nguyenanhung authored Aug 2, 2023
2 parents ebd4386 + f61c35b commit 44436ba
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
9 changes: 6 additions & 3 deletions helpers/text_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,18 @@ function clean_text($text = '')
/**
* Function clean_title
*
* @param string $text
* @param mixed $text
*
* @return string
* @return string|null
* @author : 713uk13m <dev@nguyenanhung.com>
* @copyright: 713uk13m <dev@nguyenanhung.com>
* @time : 12/10/2020 36:32
*/
function clean_title($text = '')
function clean_title($text)
{
if ($text === null) {
return null;
}
$output = trim($text);
if ($output !== '') {
$output = clean_text($output);
Expand Down
4 changes: 2 additions & 2 deletions src/BaseHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
*/
class BaseHelper
{
const VERSION = '1.4.6';
const LAST_MODIFIED = '2023-07-25';
const VERSION = '1.4.7';
const LAST_MODIFIED = '2023-08-02';
const PROJECT_NAME = 'CodeIgniter - Basic Helper';
const AUTHOR_NAME = 'Hung Nguyen';
const AUTHOR_FULL_NAME = 'Hung Nguyen';
Expand Down

0 comments on commit 44436ba

Please sign in to comment.