Archived
1
0
Fork 0

Formatting fixes and cleanup.

This commit is contained in:
Henrik Hautakoski 2023-01-31 07:34:02 +01:00
parent a1e14a3e60
commit 51fb71e469
41 changed files with 394 additions and 392 deletions

View file

@ -59,7 +59,7 @@ class Card extends Model
return "Somebody";
}
/**
/**
* Who, Where or What this card belongs to.
*/
public function getSubjectTypeAttribute()
@ -91,7 +91,7 @@ class Card extends Model
->inRandomOrder();
// Run through all settings and apply filter.
foreach($settings->all() as $type => $values) {
foreach ($settings->all() as $type => $values) {
$column = $type_map[$type];

View file

@ -29,14 +29,14 @@ class Setting extends Model
];
/**
* Get the prunable model query.
*
* @return \Illuminate\Database\Eloquent\Builder
*/
public function prunable()
{
return static::where('created_at', '<', now()->subDay(1));
}
* Get the prunable model query.
*
* @return \Illuminate\Database\Eloquent\Builder
*/
public function prunable()
{
return static::where('created_at', '<', now()->subDay(1));
}
public function getHashAttribute()
{

View file

@ -4,19 +4,19 @@ namespace App\Models;
class Wow
{
/**
* Enum for classes.
*/
static public $classes = [
'warrior' => 'Warrior',
'rogue' => 'Rogue',
'paladin' => 'Paladin',
'hunter' => 'Hunter',
'mage' => 'Mage',
'warlock' => 'Warlock',
'shaman' => 'Shaman',
'druid' => 'Druid',
'priest' => 'Priest',
'dk' => 'Death Knight'
];
/**
* Enum for classes.
*/
static public $classes = [
'warrior' => 'Warrior',
'rogue' => 'Rogue',
'paladin' => 'Paladin',
'hunter' => 'Hunter',
'mage' => 'Mage',
'warlock' => 'Warlock',
'shaman' => 'Shaman',
'druid' => 'Druid',
'priest' => 'Priest',
'dk' => 'Death Knight'
];
}