Apply fixes from StyleCI
This commit is contained in:

committed by
StyleCI Bot

parent
857d3004eb
commit
88f3df2180
@@ -10,23 +10,28 @@ class CommonSettings extends BaseModel
|
||||
protected $fillable = [
|
||||
'status', 'option_name', 'option_value', 'optional_field', 'created_at', 'updated_at',
|
||||
];
|
||||
|
||||
public function getStatus($option_name){
|
||||
$status ="";
|
||||
$schema = $this->where('option_name',$option_name)->first();
|
||||
if($schema){
|
||||
|
||||
public function getStatus($option_name)
|
||||
{
|
||||
$status = '';
|
||||
$schema = $this->where('option_name', $option_name)->first();
|
||||
if ($schema) {
|
||||
$status = $schema->status;
|
||||
}
|
||||
return $status;
|
||||
|
||||
return $status;
|
||||
}
|
||||
|
||||
public function getOptionValue($option,$field=''){
|
||||
$schema = $this->where('option_name',$option);
|
||||
if($field!=""){
|
||||
$schema = $schema->where('optional_field',$field);
|
||||
return $schema->first();
|
||||
}
|
||||
$value = $schema->get();
|
||||
return $value;
|
||||
|
||||
public function getOptionValue($option, $field = '')
|
||||
{
|
||||
$schema = $this->where('option_name', $option);
|
||||
if ($field != '') {
|
||||
$schema = $schema->where('optional_field', $field);
|
||||
|
||||
return $schema->first();
|
||||
}
|
||||
$value = $schema->get();
|
||||
|
||||
return $value;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user