Applied fixes from StyleCI

This commit is contained in:
Sujit Prasad
2016-02-19 02:20:12 -05:00
committed by StyleCI Bot
parent be5df5334f
commit d637c2b23f
439 changed files with 19063 additions and 19210 deletions

View File

@@ -5,8 +5,8 @@ namespace App\Model\kb;
use Illuminate\Database\Eloquent\Model;
use Nicolaslopezj\Searchable\SearchableTrait;
class Article extends Model {
class Article extends Model
{
use SearchableTrait;
/**
@@ -16,8 +16,8 @@ class Article extends Model {
*/
protected $searchable = [
'columns' => [
'name' => 10,
'slug' => 10,
'name' => 10,
'slug' => 10,
'description' => 10,
],
];
@@ -26,5 +26,4 @@ class Article extends Model {
protected $table = 'kb_article';
/* define the fillable field in the table */
protected $fillable = ['name', 'slug', 'description', 'type', 'status', 'publish_time'];
}

View File

@@ -4,9 +4,8 @@ namespace App\Model\kb;
use Illuminate\Database\Eloquent\Model;
class Category extends Model {
class Category extends Model
{
protected $table = 'kb_category';
protected $fillable = ['id', 'slug', 'name', 'description', 'status', 'parent', 'created_at', 'updated_at'];
}

View File

@@ -5,12 +5,10 @@ namespace App\Model\kb;
use Illuminate\Database\Eloquent\Model;
/**
* Define the Model of comment table
* @package default
* Define the Model of comment table.
*/
class Comment extends Model {
class Comment extends Model
{
protected $table = 'kb_comment';
protected $fillable = ['article_id', 'name', 'email', 'website', 'comment', 'status'];
}

View File

@@ -4,9 +4,8 @@ namespace App\Model\kb;
use Illuminate\Database\Eloquent\Model;
class Contact extends Model {
class Contact extends Model
{
protected $table = 'contact';
protected $fillable = ['name', 'subject', 'email', 'message'];
}

View File

@@ -4,9 +4,8 @@ namespace App\Model\kb;
use Illuminate\Database\Eloquent\Model;
class Country extends Model {
class Country extends Model
{
public $table = 'country';
protected $fillable = ['country_code', 'country_name'];
}

View File

@@ -4,8 +4,8 @@ namespace App\Model\kb;
use Illuminate\Database\Eloquent\Model;
class DateFormat extends Model {
class DateFormat extends Model
{
protected $table = 'date_time_format';
//protected $fillable = ['id', 'name', 'description', 'status', 'parent', 'created_at', 'updated_at'];

View File

@@ -4,9 +4,8 @@ namespace App\Model\kb;
use Illuminate\Database\Eloquent\Model;
class Faq extends Model {
class Faq extends Model
{
protected $table = 'faq';
protected $fillable = ['id', 'faq'];
}

View File

@@ -4,9 +4,8 @@ namespace App\Model\kb;
use Illuminate\Database\Eloquent\Model;
class Options extends Model {
class Options extends Model
{
protected $table = 'options';
protected $fillable = ['option_name', 'option_value', 'created_at', 'updated_at'];
}

View File

@@ -4,9 +4,8 @@ namespace App\Model\kb;
use Illuminate\Database\Eloquent\Model;
class Page extends Model {
class Page extends Model
{
protected $table = 'kb_pages';
protected $fillable = ['name', 'slug', 'status', 'visibility', 'description'];
}

View File

@@ -4,11 +4,11 @@ namespace App\Model\kb;
use Illuminate\Database\Eloquent\Model;
class Relationship extends Model {
class Relationship extends Model
{
/* define the table */
protected $table = 'kb_article_relationship';
/* define fillable fields */
protected $fillable = ['id', 'category_id', 'article_id'];
}

View File

@@ -4,14 +4,12 @@ namespace App\Model\kb;
use Illuminate\Database\Eloquent\Model;
class Settings extends Model {
class Settings extends Model
{
/**
* @param $table, $fillable
* @package default
*/
protected $table = 'kb_settings';
protected $fillable = ['language', 'dateformat', 'company_name', 'website', 'phone', 'address', 'logo', 'timezone',
'background', 'version', 'pagination', 'port', 'host', 'encryption', 'email', 'password'];
'background', 'version', 'pagination', 'port', 'host', 'encryption', 'email', 'password', ];
}

View File

@@ -4,9 +4,8 @@ namespace App\Model\kb;
use Illuminate\Database\Eloquent\Model;
class Side1 extends Model {
class Side1 extends Model
{
protected $table = 'side1';
protected $fillable = ['title', 'content'];
}

View File

@@ -4,9 +4,8 @@ namespace App\Model\kb;
use Illuminate\Database\Eloquent\Model;
class Side2 extends Model {
class Side2 extends Model
{
protected $table = 'side2';
protected $fillable = ['title', 'content'];
}

View File

@@ -4,9 +4,8 @@ namespace App\Model\kb;
use Illuminate\Database\Eloquent\Model;
class Social extends Model {
class Social extends Model
{
protected $table = 'social';
protected $fillable = ['linkedin', 'stumble', 'google', 'deviantart', 'flickr', 'skype', 'rss', 'twitter', 'facebook', 'youtube', 'vimeo', 'pinterest', 'dribbble', 'instagram'];
}

View File

@@ -4,9 +4,8 @@ namespace App\Model\kb;
use Illuminate\Database\Eloquent\Model;
class Timezone extends Model {
class Timezone extends Model
{
protected $table = 'timezones';
protected $fillable = ['id', 'name', 'location'];
}

View File

@@ -4,9 +4,8 @@ namespace App\Model\kb;
use Illuminate\Database\Eloquent\Model;
class Zone extends Model {
class Zone extends Model
{
protected $table = 'zone';
protected $fillable = ['zone_id', 'country_code', 'zone_name'];
}