Skip to content

Commit

Permalink
Merge pull request #57 from nguyenanhung/v4.x
Browse files Browse the repository at this point in the history
Release version 4.0.5
  • Loading branch information
nguyenanhung authored Apr 5, 2024
2 parents 1e6711c + f106814 commit a2271ff
Show file tree
Hide file tree
Showing 10 changed files with 85 additions and 75 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
build:
strategy:
matrix:
operating-system: [ 'ubuntu-latest', 'macos-latest' ]
operating-system: [ 'ubuntu-latest' ]
php-versions: [ '8.1', '8.2', '8.3' ]
runs-on: ${{ matrix.operating-system }}
steps:
Expand Down
3 changes: 2 additions & 1 deletion .ide.purpose.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php

defined('BASE_DEV_IDE') or exit('No direct script access allowed');
if (!function_exists('log_message')) {
if ( ! function_exists('log_message')) {
function log_message($name, $message): void
{
}
Expand Down
116 changes: 60 additions & 56 deletions src/Logger.php

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions src/Project.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
10 changes: 5 additions & 5 deletions src/Utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]>
Expand All @@ -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
Expand Down
3 changes: 2 additions & 1 deletion test/func.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php
if (!function_exists('__show__')) {

if ( ! function_exists('__show__')) {
function __show__($s): void
{
echo "<pre>";
Expand Down
1 change: 1 addition & 0 deletions test/test_benchmark.php
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';

Expand Down
1 change: 1 addition & 0 deletions test/test_file.php
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';

Expand Down
1 change: 1 addition & 0 deletions test/test_logger.php
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';

Expand Down
1 change: 1 addition & 0 deletions test/test_utils.php
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';

Expand Down

0 comments on commit a2271ff

Please sign in to comment.