Import statements and update configuration.

This commit is contained in:
James Cole
2025-05-27 16:57:36 +02:00
parent 7c04c4c2bc
commit c074fec0a7
165 changed files with 530 additions and 335 deletions

View File

@@ -34,6 +34,8 @@ use Illuminate\Support\Collection;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Str;
use Exception;
use ValueError;
/**
* Class Steam.
@@ -466,7 +468,7 @@ class Steam
try {
$hostName = gethostbyaddr($ipAddress);
} catch (\Exception $e) {
} catch (Exception $e) {
app('log')->error($e->getMessage());
$hostName = $ipAddress;
}
@@ -673,7 +675,7 @@ class Steam
if (-1 === bccomp($amount, '0')) {
$amount = bcmul($amount, '-1');
}
} catch (\ValueError $e) {
} catch (ValueError $e) {
Log::error(sprintf('ValueError in Steam::positive("%s"): %s', $amount, $e->getMessage()));
Log::error($e->getTraceAsString());