Merge pull request #3450 from CachetHQ/no-str-arr-helpers

Do not use arr_* or str_* helpers
This commit is contained in:
James Brooks
2019-02-01 21:43:30 +00:00
committed by GitHub
12 changed files with 29 additions and 17 deletions
+2 -1
View File
@@ -25,6 +25,7 @@ use CachetHQ\Cachet\Settings\Repository as Setting;
use Exception;
use GuzzleHttp\Client;
use Illuminate\Contracts\Config\Repository;
use Illuminate\Support\Str;
/**
* This is the beacon class.
@@ -84,7 +85,7 @@ class Beacon implements BeaconContract
$setting = app(Setting::class);
if (!$installId = $setting->get('install_id', null)) {
$installId = sha1(str_random(20));
$installId = sha1(Str::random(20));
$setting->set('install_id', $installId);
}