refactor: code style changes
Signed-off-by: miguel456 <me@nogueira.codes>
This commit is contained in:
@@ -45,14 +45,14 @@ class Vacancy extends Model
|
||||
'vacancySlug',
|
||||
'team_id',
|
||||
'requiresDiscord',
|
||||
'requiredAge'
|
||||
'requiredAge',
|
||||
|
||||
];
|
||||
|
||||
/**
|
||||
* Get the HTML variant of the vacancyFullDescription attribute.
|
||||
*
|
||||
* @param string $value The original value
|
||||
* @param string $value The original value
|
||||
* @return string
|
||||
*/
|
||||
public function getVacancyFullDescriptionAttribute($value)
|
||||
@@ -94,15 +94,14 @@ class Vacancy extends Model
|
||||
|
||||
public function decrease()
|
||||
{
|
||||
if ($this->vacancyCount !== 0)
|
||||
{
|
||||
if ($this->vacancyCount !== 0) {
|
||||
$this->update([
|
||||
'vacancyCount' => $this->vacancyCount - 1
|
||||
'vacancyCount' => $this->vacancyCount - 1,
|
||||
]);
|
||||
|
||||
Log::info('Vacancies: Decreased vacancy slots by one.', [
|
||||
'vacancyId' => $this->id,
|
||||
'vacancyName' => $this->vacancyName
|
||||
'vacancyName' => $this->vacancyName,
|
||||
]);
|
||||
}
|
||||
}
|
||||
@@ -110,7 +109,7 @@ class Vacancy extends Model
|
||||
/**
|
||||
* Check if the Modal is attached to the $checkingTeam Model.
|
||||
*
|
||||
* @param Team $checkingTeam The mdoel you want to check against
|
||||
* @param Team $checkingTeam The mdoel you want to check against
|
||||
* @return bool Whether the models are attached
|
||||
*/
|
||||
public function hasTeam(Team $checkingTeam): bool
|
||||
|
Reference in New Issue
Block a user