Skip to content

Commit 2d90187

Browse files
committed
StyleCI fixes
1 parent 668dc92 commit 2d90187

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

app/Http/Controllers/Server/ServerController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424

2525
namespace Pterodactyl\Http\Controllers\Server;
2626

27-
use DB;
2827
use Log;
2928
use Uuid;
3029
use Alert;

app/Models/ServiceVariable.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,15 @@ class ServiceVariable extends Model
4242
*/
4343
protected $guarded = ['id', 'created_at', 'updated_at'];
4444

45-
/**
46-
* Cast values to correct type.
47-
*
48-
* @var array
49-
*/
45+
/**
46+
* Cast values to correct type.
47+
*
48+
* @var array
49+
*/
5050
protected $casts = [
5151
'option_id' => 'integer',
5252
'user_viewable' => 'integer',
5353
'user_editable' => 'integer',
54-
'required' => 'integer',
5554
];
5655

5756
/**
@@ -62,7 +61,7 @@ class ServiceVariable extends Model
6261
*/
6362
public function getRequiredAttribute($value)
6463
{
65-
return ($this->rules === 'required' || str_contains($this->rules, ['required|', '|required']));
64+
return $this->rules === 'required' || str_contains($this->rules, ['required|', '|required']);
6665
}
6766

6867
/**

app/Repositories/ServerRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ public function updateStartup($id, array $data, $admin = false)
643643
if ($validator->fails()) {
644644
throw new DisplayValidationException(json_encode(
645645
collect([
646-
'notice' => ['There was a validation error with the `' . $variable->name . '` variable.']
646+
'notice' => ['There was a validation error with the `' . $variable->name . '` variable.'],
647647
])->merge($validator->errors()->toArray())
648648
));
649649
}

0 commit comments

Comments
 (0)