1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-06-05 22:09:38 +02:00

Correzioni minori e aggiornamento a Laravel 9

This commit is contained in:
Thomas Zilio
2022-03-02 12:19:52 +01:00
parent 990ed0475f
commit 279fe2eca9
47 changed files with 3774 additions and 83 deletions

View File

@@ -3,6 +3,7 @@
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Str;
use Util\FileSystem;
class RequirementsController extends Controller
@@ -42,7 +43,7 @@ class RequirementsController extends Controller
$list = config('requirements');
if (!empty($file)) {
$file = realpath($file);
if (string_starts_with($file)) {
if (Str::startsWith($file)) {
$list = include $file;
}
}
@@ -89,9 +90,9 @@ class RequirementsController extends Controller
$ini = FileSystem::convertBytes($value);
$real = FileSystem::convertBytes($suggested);
if (starts_with($values['suggested'], '>')) {
if (Str::startsWith($values['suggested'], '>')) {
$status = $ini >= substr($real, 1);
} elseif (starts_with($values['suggested'], '<')) {
} elseif (Str::startsWith($values['suggested'], '<')) {
$status = $ini <= substr($real, 1);
} else {
$status = ($real == $ini);