Merge pull request #4684 from ladybirdweb/analysis-jLwmlZ

Apply fixes from StyleCI
This commit is contained in:
Bhanu Pratap Singh Slathia
2021-03-12 19:29:01 +05:30
committed by GitHub
3 changed files with 11 additions and 10 deletions

View File

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

View File

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

View File

@@ -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.
*