Skip to content

Commit

Permalink
Merge pull request #219 from kmvan/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
kmvan authored Aug 18, 2024
2 parents 4319b6c + 8bd9854 commit 17443c4
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 10 deletions.
2 changes: 1 addition & 1 deletion AppConfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"APP_VERSION": "8.18",
"APP_VERSION": "8.19",
"APP_NAME": "X Prober",
"APP_URL": "https://github.com/kmvan/x-prober",
"AUTHOR_URL": "https://inn-studio.com/prober",
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All Notable changes to `X-Prober` will be documented in this file

## 8.19.0 - 2024-08-18

### Optimize

- Adjust is_readable function warning

## 8.18.0 - 2024-07-27

### Add
Expand Down
8 changes: 4 additions & 4 deletions dist/prober.php

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/Components/Config/ConfigApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class ConfigApi
{
public static $APP_VERSION = '8.18';
public static $APP_VERSION = '8.19';
public static $APP_NAME = 'X Prober';
public static $APP_URL = 'https://github.com/kmvan/x-prober';
public static $APP_CONFIG_URLS = array('https://raw.githubusercontent.com/kmvan/x-prober/master/AppConfig.json', 'https://api.inn-studio.com/download/?id=xprober-config');
Expand Down
2 changes: 1 addition & 1 deletion src/Components/ServerBenchmark/ServerBenchmarkApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function getReadPoints()
{
$tmpDir = sys_get_temp_dir();

if ( ! is_readable($tmpDir)) {
if ( ! @is_readable($tmpDir)) {
return 0;
}

Expand Down
4 changes: 2 additions & 2 deletions src/Components/Utils/UtilsCpu.php
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ public static function getLoadAvg()

public static function isArm($content)
{
return false !== mb_stripos($content, 'CPU architecture');
return false !== stripos($content, 'CPU architecture');
}

public static function match($content, $search)
Expand Down Expand Up @@ -281,7 +281,7 @@ public static function getArmCpu($content)
public static function getModel()
{
$filePath = '/proc/cpuinfo';
if ( ! is_readable($filePath)) {
if ( ! @is_readable($filePath)) {
return '';
}
$content = file_get_contents($filePath);
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Xconfig/XconfigApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ private static function setConf()
return;
}

if ( ! is_readable(self::getFilePath())) {
if ( ! @is_readable(self::getFilePath())) {
self::$conf = null;

return;
Expand Down

0 comments on commit 17443c4

Please sign in to comment.