11<?php
22
3+ /**
4+ * SPDX-License-Identifier: MIT
5+ * Copyright (c) 2017-2018 Tobias Reich
6+ * Copyright (c) 2018-2026 LycheeOrg.
7+ */
8+
39namespace Database \Seeders ;
410
511use App \Actions \Album \SetProtectionPolicy ;
@@ -15,9 +21,9 @@ class DemoSeeder extends Seeder
1521 */
1622 public function run (): void
1723 {
18- $ setProtections = new SetProtectionPolicy ();
24+ $ set_protections = new SetProtectionPolicy ();
1925
20- $ tulipsProtectionPolicy = new AlbumProtectionPolicy (
26+ $ tulips_protection_policy = new AlbumProtectionPolicy (
2127 is_public: true ,
2228 is_link_required: false ,
2329 is_nsfw: false ,
@@ -27,13 +33,13 @@ public function run(): void
2733 is_password_required: false ,
2834 );
2935 /** @var Album $tulipAlbum */
30- $ tulipAlbum = Album::query ()
36+ $ tulip_album = Album::query ()
3137 ->select (['albums.* ' ])
3238 ->join ('base_albums ' , 'base_albums.id ' , '= ' , 'albums.id ' )
3339 ->where ('title ' , '= ' , 'Tulips ' )->first ();
34- $ setProtections ->do ($ tulipAlbum , $ tulipsProtectionPolicy , false , null );
40+ $ set_protections ->do ($ tulip_album , $ tulips_protection_policy , false , null );
3541
36- $ catProtectionPolicy = new AlbumProtectionPolicy (
42+ $ cat_protection_policy = new AlbumProtectionPolicy (
3743 is_public: true ,
3844 is_link_required: false ,
3945 is_nsfw: true ,
@@ -43,11 +49,11 @@ public function run(): void
4349 is_password_required: false ,
4450 );
4551 /** @var Album $catAlbum */
46- $ catAlbum = Album::query ()
52+ $ cat_album = Album::query ()
4753 ->select (['albums.* ' ])
4854 ->join ('base_albums ' , 'base_albums.id ' , '= ' , 'albums.id ' )
4955 ->where ('title ' , '= ' , 'Cat ' )->first ();
50- $ setProtections ->do ($ catAlbum , $ catProtectionPolicy , false , null );
56+ $ set_protections ->do ($ cat_album , $ cat_protection_policy , false , null );
5157
5258 Configs::set ('nsfw_banner_blur_backdrop ' , true );
5359 Configs::set ('nsfw_visible ' , true );
0 commit comments