Apply fixes from StyleCI (#294)
This commit is contained in:
parent
a10e235beb
commit
7c916ad38f
21 changed files with 21 additions and 40 deletions
|
@ -68,10 +68,10 @@ class Allocation extends Model
|
|||
* Accessor to quickly determine if this allocation has an alias.
|
||||
*
|
||||
* @param null|string $value
|
||||
* @return boolean
|
||||
* @return bool
|
||||
*/
|
||||
public function getHasAliasAttribute($value)
|
||||
{
|
||||
return (! is_null($this->ip_alias));
|
||||
return ! is_null($this->ip_alias);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,11 +28,10 @@ use Illuminate\Database\Eloquent\Model;
|
|||
|
||||
class Permission extends Model
|
||||
{
|
||||
|
||||
/**
|
||||
* Should timestamps be used on this model.
|
||||
*
|
||||
* @var boolean
|
||||
* @var bool
|
||||
*/
|
||||
public $timestamps = false;
|
||||
|
||||
|
|
|
@ -54,8 +54,8 @@ class ServiceVariables extends Model
|
|||
'required' => 'integer',
|
||||
];
|
||||
|
||||
public function serverVariables()
|
||||
{
|
||||
return $this->hasMany(ServerVariables::class, 'variable_id');
|
||||
}
|
||||
public function serverVariables()
|
||||
{
|
||||
return $this->hasMany(ServerVariables::class, 'variable_id');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
|
||||
namespace Pterodactyl\Models;
|
||||
|
||||
use Auth;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Subuser extends Model
|
||||
|
@ -50,11 +49,11 @@ class Subuser extends Model
|
|||
*/
|
||||
protected $guarded = ['id', 'created_at', 'updated_at'];
|
||||
|
||||
/**
|
||||
* Cast values to correct type.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
/**
|
||||
* Cast values to correct type.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $casts = [
|
||||
'user_id' => 'integer',
|
||||
'server_id' => 'integer',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue