Skip to content

A self-hosted media server and file management system

chore: lint coding style (pint)

aminnausine54ace6acf9a
diff --git a/app/Models/ServerConfig.php b/app/Models/ServerConfig.php
index 758f3edb..1c443cb2 100644
--- a/app/Models/ServerConfig.php
+++ b/app/Models/ServerConfig.php
@@ -16,9 +16,10 @@ class ServerConfig extends Model {
* created_at -> timestamptz (nullable)
* updated_at -> timestamptz (nullable)
*/
-
protected $primaryKey = 'key';
+
public $incrementing = false;
+
protected $keyType = 'string';
protected $fillable = [
diff --git a/tests/Unit/Services/Server/ServerConfigServiceTest.php b/tests/Unit/Services/Server/ServerConfigServiceTest.php
index 3c4a11c4..49bfcaed 100644
--- a/tests/Unit/Services/Server/ServerConfigServiceTest.php
+++ b/tests/Unit/Services/Server/ServerConfigServiceTest.php
@@ -6,7 +6,6 @@ use App\Models\ServerConfig;
use App\Services\Server\ServerConfigService;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Support\Facades\Cache;
-use Illuminate\Support\Facades\DB;
use Tests\TestCase;
class ServerConfigServiceTest extends TestCase {