Apply fixes from StyleCI

This commit is contained in:
Manish Verma
2016-12-05 04:20:56 +00:00
committed by StyleCI Bot
parent ea4314a339
commit b2a1b7ec55
30 changed files with 207 additions and 256 deletions

View File

@@ -40,9 +40,9 @@ class QueueService extends Model
public function getStatus()
{
$status = $this->attributes['status'];
$html = "<span style='color:red'>".Lang::get('lang.inactive')."</span>";
$html = "<span style='color:red'>".Lang::get('lang.inactive').'</span>';
if ($status == 1) {
$html = "<span style='color:green'>".Lang::get('lang.active')."</span>";
$html = "<span style='color:green'>".Lang::get('lang.active').'</span>';
}
return $html;
@@ -52,9 +52,9 @@ class QueueService extends Model
{
$id = $this->attributes['id'];
$status = $this->attributes['status'];
$html = '<a href='.url('queue/'.$id.'/activate')." class='btn btn-primary'>".Lang::get('lang.activate')."</a>";
$html = '<a href='.url('queue/'.$id.'/activate')." class='btn btn-primary'>".Lang::get('lang.activate').'</a>';
if ($status == 1) {
$html = "<a href='#' class='btn btn-primary' disabled>".Lang::get('lang.activate')."</a>";
$html = "<a href='#' class='btn btn-primary' disabled>".Lang::get('lang.activate').'</a>';
}
return $html;