Apply fixes from StyleCI (#294)

This commit is contained in:
Dane Everitt 2017-02-12 15:10:39 -05:00 committed by GitHub
parent a10e235beb
commit 7c916ad38f
21 changed files with 21 additions and 40 deletions

View file

@ -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);
}
}

View file

@ -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;

View file

@ -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');
}
}

View file

@ -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',