-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #57 from nguyenanhung/v4.x
Release version 4.0.5
- Loading branch information
Showing
10 changed files
with
85 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,16 +18,16 @@ | |
*/ | ||
interface Project | ||
{ | ||
const VERSION = '4.0.4'; | ||
const VERSION = '4.0.5'; | ||
|
||
/** | ||
* Hàm lấy thông tin phiên bản Packages | ||
* | ||
* @return string Phiên bản hiện tại của Packages, VD: 2.0.1 | ||
* | ||
* @author : 713uk13m <[email protected]> | ||
* @copyright: 713uk13m <[email protected]> | ||
* @time : 9/27/18 18:32 | ||
*/ | ||
public function getVersion(): string; | ||
/** | ||
* Hàm lấy thông tin phiên bản Packages | ||
* | ||
* @return string Phiên bản hiện tại của Packages, VD: 2.0.1 | ||
* | ||
* @author : 713uk13m <[email protected]> | ||
* @copyright: 713uk13m <[email protected]> | ||
* @time : 9/27/18 18:32 | ||
*/ | ||
public function getVersion(): string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,7 @@ class Utils implements Project | |
* Hàm chuyển đổi ký tự từ tiếng Việt, | ||
* và các ký tự đặc biệt sang ký tự không dấu | ||
* | ||
* @param string $str Chuỗi ký tự đầu vào | ||
* @param string $str Chuỗi ký tự đầu vào | ||
* | ||
* @return string Đầu ra rà 1 chuỗi ký tự | ||
* @author: 713uk13m <[email protected]> | ||
|
@@ -45,17 +45,17 @@ public static function slugify(string $str = ''): string | |
/** | ||
* Function log_message - Call to function log_message if function exists | ||
* | ||
* @param string $name | ||
* @param mixed $message | ||
* @param string $name | ||
* @param mixed $message | ||
* @return void | ||
*/ | ||
public static function log_message(string $name = '', mixed $message = ''): void | ||
{ | ||
if (empty($name)) { | ||
$name = 'error'; | ||
} | ||
if (function_exists('log_message') && !empty($message)) { | ||
if (!is_string($message)) { | ||
if (function_exists('log_message') && ! empty($message)) { | ||
if ( ! is_string($message)) { | ||
$message = json_encode( | ||
[ | ||
$message | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
<?php | ||
|
||
require_once __DIR__ . '/../vendor/autoload.php'; | ||
require __DIR__ . '/func.php'; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
<?php | ||
|
||
require_once __DIR__ . '/../vendor/autoload.php'; | ||
require __DIR__ . '/func.php'; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
<?php | ||
|
||
require_once __DIR__ . '/../vendor/autoload.php'; | ||
require __DIR__ . '/func.php'; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
<?php | ||
|
||
require_once __DIR__ . '/../vendor/autoload.php'; | ||
require __DIR__ . '/func.php'; | ||
|
||
|