Apply fixes from StyleCI
This commit is contained in:

committed by
StyleCI Bot

parent
309a1557d9
commit
1026f8d620
@@ -41,8 +41,8 @@ class ClientRequest extends Request
|
||||
'Email' => 'required|email',
|
||||
'Subject' => 'required',
|
||||
'Details' => 'required',
|
||||
'mobile' => 'numeric',
|
||||
'Phone' => 'numeric',
|
||||
'mobile' => 'numeric',
|
||||
'Phone' => 'numeric',
|
||||
];
|
||||
$custom_rule = $this->getCustomRule();
|
||||
$rules = array_merge($current_rule, $custom_rule);
|
||||
@@ -136,7 +136,7 @@ class ClientRequest extends Request
|
||||
'Subject' => 'required',
|
||||
'Details' => 'required',
|
||||
'mobile' => 'required|numeric',
|
||||
'Phone' => 'numeric',
|
||||
'Phone' => 'numeric',
|
||||
];
|
||||
} else {
|
||||
return [
|
||||
|
@@ -15,21 +15,21 @@ class Comment extends BaseModel
|
||||
|
||||
public function setNameAttribute($value)
|
||||
{
|
||||
$this->attributes['name'] = strip_tags($value);
|
||||
$this->attributes['name'] = strip_tags($value);
|
||||
}
|
||||
|
||||
public function setCommentAttribute($value)
|
||||
{
|
||||
$this->attributes['comment'] = strip_tags($value);
|
||||
$this->attributes['comment'] = strip_tags($value);
|
||||
}
|
||||
|
||||
public function getNameAttribute($value)
|
||||
{
|
||||
return strip_tags($value);
|
||||
return strip_tags($value);
|
||||
}
|
||||
|
||||
public function getCommentAttribute($value)
|
||||
{
|
||||
return strip_tags($value);
|
||||
return strip_tags($value);
|
||||
}
|
||||
}
|
||||
|
@@ -193,18 +193,19 @@ class User extends Model implements AuthenticatableContract, CanResetPasswordCon
|
||||
|
||||
public function setFirstNameAttribute($value)
|
||||
{
|
||||
$this->attributes['first_name']=strip_tags($value);
|
||||
$this->attributes['first_name'] = strip_tags($value);
|
||||
}
|
||||
|
||||
public function setLastNameAttribute($value)
|
||||
{
|
||||
$this->attributes['last_name']= strip_tags($value);
|
||||
$this->attributes['last_name'] = strip_tags($value);
|
||||
}
|
||||
|
||||
public function setUserNameAttribute($value)
|
||||
{
|
||||
$this->attributes['user_name']= strip_tags($value);
|
||||
$this->attributes['user_name'] = strip_tags($value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the identifier that will be stored in the subject claim of the JWT.
|
||||
*
|
||||
|
Reference in New Issue
Block a user