Skip to content

Commit

Permalink
Code Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ilestis committed Jul 7, 2024
1 parent 6c1eb35 commit fcba7d6
Show file tree
Hide file tree
Showing 12 changed files with 10 additions and 14 deletions.
2 changes: 1 addition & 1 deletion app/Models/Ability.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
class Ability extends MiscModel
{
use Acl;
use HasCampaign;
use ExportableTrait;
use HasCampaign;
use HasEntry;
use HasFactory;
use HasFilters;
Expand Down
2 changes: 1 addition & 1 deletion app/Models/Character.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
class Character extends MiscModel
{
use Acl;
use HasCampaign;
use ExportableTrait;
use HasCampaign;
use HasEntry;
use HasFactory;
use HasFilters;
Expand Down
2 changes: 1 addition & 1 deletion app/Models/Creature.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
class Creature extends MiscModel
{
use Acl;
use HasCampaign;
use ExportableTrait;
use HasCampaign;
use HasEntry;
use HasFactory;
use HasFilters;
Expand Down
4 changes: 2 additions & 2 deletions app/Models/Entity.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ class Entity extends Model
{
use Acl;
use Blameable;
use HasCampaign;
use EntityLogs;
use EntityRelations;
use EntityScopes;
use EntityType;
use HasTooltip;
use HasCampaign;
use HasMentions;
use HasTooltip;
use LastSync;
use Paginatable;
use Searchable;
Expand Down
2 changes: 1 addition & 1 deletion app/Models/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@
*/
class Image extends Model
{
use HasCampaign;
use ExportableTrait;
use HasCampaign;
use HasFactory;
use LastSync;
use VisibilityIDTrait;
Expand Down
2 changes: 1 addition & 1 deletion app/Models/Location.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ class Location extends MiscModel
use Acl;
use ExportableTrait;
use HasCampaign;
use HasFactory;
use HasEntry;
use HasFactory;
use HasFilters;
use HasRecursiveRelationships;
use SoftDeletes;
Expand Down
2 changes: 1 addition & 1 deletion app/Models/MapMarker.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@
class MapMarker extends Model
{
use Blameable;
use Copiable;
use HasFactory;
use Paginatable;
use SortableTrait;
use Copiable;
use VisibilityIDTrait;

public const SHAPE_MARKER = 1;
Expand Down
3 changes: 1 addition & 2 deletions app/Models/MiscModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace App\Models;

use App\Facades\CampaignLocalization;
use App\Facades\Mentions;
use App\Models\Concerns\LastSync;
use App\Models\Concerns\Orderable;
use App\Models\Concerns\Paginatable;
Expand Down Expand Up @@ -43,13 +42,13 @@
*/
abstract class MiscModel extends Model
{
use Copiable;
use LastSync;
use Orderable;
use Paginatable;
use Scout;
use Searchable;
use Sortable;
use Copiable;
use SubEntityScopes;

/** Entity type (character, location) */
Expand Down
2 changes: 1 addition & 1 deletion app/Models/Note.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
class Note extends MiscModel
{
use Acl;
use HasCampaign;
use ExportableTrait;
use HasCampaign;
use HasEntry;
use HasFactory;
use HasFilters;
Expand Down
1 change: 0 additions & 1 deletion app/Models/QuestElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace App\Models;

use App\Facades\Mentions;
use App\Models\Concerns\HasEntry;
use App\User;
use App\Models\Concerns\Blameable;
Expand Down
1 change: 0 additions & 1 deletion app/Observers/PostObserver.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace App\Observers;

use App\Facades\Mentions;
use App\Models\PostPermission;
use App\Models\Post;
use App\Services\Entity\PostLoggerService;
Expand Down
1 change: 0 additions & 1 deletion app/Traits/GuestAuthTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use App\Facades\CampaignLocalization;
use App\Facades\EntityPermission;
use App\Models\CampaignPermission;
use App\Models\Character;
use App\Models\Entity;
use App\Models\MiscModel;

Expand Down

0 comments on commit fcba7d6

Please sign in to comment.