Apply fixes from StyleCI

This commit is contained in:
Manish Verma
2016-12-13 13:14:54 +00:00
committed by StyleCI Bot
parent 857d3004eb
commit 88f3df2180
161 changed files with 4729 additions and 3879 deletions

View File

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