@@ -46,15 +46,15 @@ discard block |
||
| 46 | 46 | * |
| 47 | 47 | * @var array |
| 48 | 48 | */ |
| 49 | - protected $fillable = ['name', 'caption', 'text', 'link_url', |
|
| 50 | - 'link_title', 'image_id', 'position']; |
|
| 49 | + protected $fillable = [ 'name', 'caption', 'text', 'link_url', |
|
| 50 | + 'link_title', 'image_id', 'position' ]; |
|
| 51 | 51 | |
| 52 | 52 | /** |
| 53 | 53 | * Columns to exclude from index |
| 54 | 54 | * |
| 55 | 55 | * @var array |
| 56 | 56 | */ |
| 57 | - protected $excludedFromIndex = []; |
|
| 57 | + protected $excludedFromIndex = [ ]; |
|
| 58 | 58 | |
| 59 | 59 | /** |
| 60 | 60 | * Fields to search in fulltext mode |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | * |
| 91 | 91 | * @return object |
| 92 | 92 | */ |
| 93 | - public function images(){ |
|
| 93 | + public function images() { |
|
| 94 | 94 | |
| 95 | 95 | return $this->belongsTo('App\Image', 'image_id')->select('id', 'name', 'description', |
| 96 | 96 | 'alt', 'url', 'imagecategory_id', 'image_mime_type', 'image_extension', |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | * |
| 104 | 104 | * @return object |
| 105 | 105 | */ |
| 106 | - public function advertlocations(){ |
|
| 106 | + public function advertlocations() { |
|
| 107 | 107 | |
| 108 | 108 | return $this->belongsToMany('App\AdvertLocation', 'advert_advertlocation', 'advertlocation_id', 'advert_id'); |
| 109 | 109 | } |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | * @param type $query |
| 115 | 115 | * @return object |
| 116 | 116 | */ |
| 117 | - public function scopeRelationships($query){ |
|
| 117 | + public function scopeRelationships($query) { |
|
| 118 | 118 | |
| 119 | 119 | return $query->with('images', 'images.imagecategories', 'advertlocations'); |
| 120 | 120 | } |
@@ -43,14 +43,14 @@ discard block |
||
| 43 | 43 | * |
| 44 | 44 | * @var array |
| 45 | 45 | */ |
| 46 | - protected $fillable = ['name', 'description', 'class']; |
|
| 46 | + protected $fillable = [ 'name', 'description', 'class' ]; |
|
| 47 | 47 | |
| 48 | 48 | /** |
| 49 | 49 | * Columns to exclude from index |
| 50 | 50 | * |
| 51 | 51 | * @var array |
| 52 | 52 | */ |
| 53 | - protected $excludedFromIndex = []; |
|
| 53 | + protected $excludedFromIndex = [ ]; |
|
| 54 | 54 | |
| 55 | 55 | /** |
| 56 | 56 | * Fields to search in fulltext mode |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | * |
| 91 | 91 | * @return object |
| 92 | 92 | */ |
| 93 | - public function pages(){ |
|
| 93 | + public function pages() { |
|
| 94 | 94 | |
| 95 | 95 | return $this->belongsToMany('App\Page', 'page_pagecategory', 'page_id', 'pagecategory_id'); |
| 96 | 96 | } |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | * @param query $query |
| 102 | 102 | * @return query |
| 103 | 103 | */ |
| 104 | - public function scopeRelationships($query){ |
|
| 104 | + public function scopeRelationships($query) { |
|
| 105 | 105 | |
| 106 | 106 | return $query->with('pages'); |
| 107 | 107 | } |
@@ -46,15 +46,15 @@ discard block |
||
| 46 | 46 | * |
| 47 | 47 | * @var array |
| 48 | 48 | */ |
| 49 | - protected $fillable = ['name', 'headline', 'text', 'email', |
|
| 50 | - 'url', 'approved', 'commentstatus_id', 'page_id', 'article_id']; |
|
| 49 | + protected $fillable = [ 'name', 'headline', 'text', 'email', |
|
| 50 | + 'url', 'approved', 'commentstatus_id', 'page_id', 'article_id' ]; |
|
| 51 | 51 | |
| 52 | 52 | /** |
| 53 | 53 | * Columns to exclude from index |
| 54 | 54 | * |
| 55 | 55 | * @var array |
| 56 | 56 | */ |
| 57 | - protected $excludedFromIndex = []; |
|
| 57 | + protected $excludedFromIndex = [ ]; |
|
| 58 | 58 | |
| 59 | 59 | /** |
| 60 | 60 | * Fields to search in fulltext mode |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | * |
| 96 | 96 | * @return object |
| 97 | 97 | */ |
| 98 | - public function commentstatuses(){ |
|
| 98 | + public function commentstatuses() { |
|
| 99 | 99 | |
| 100 | 100 | return $this->belongsTo('App\CommentStatus', 'commentstatus_id'); |
| 101 | 101 | } |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | * |
| 106 | 106 | * @return object |
| 107 | 107 | */ |
| 108 | - public function articles(){ |
|
| 108 | + public function articles() { |
|
| 109 | 109 | |
| 110 | 110 | return $this->belongsTo('App\Article', 'article_id'); |
| 111 | 111 | } |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | * |
| 116 | 116 | * @return object |
| 117 | 117 | */ |
| 118 | - public function pages(){ |
|
| 118 | + public function pages() { |
|
| 119 | 119 | |
| 120 | 120 | return $this->belongsTo('App\Page', 'page_id'); |
| 121 | 121 | } |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | * @param query $query |
| 127 | 127 | * @return query |
| 128 | 128 | */ |
| 129 | - public function scopeRelationships($query){ |
|
| 129 | + public function scopeRelationships($query) { |
|
| 130 | 130 | |
| 131 | 131 | return $query->with('articles', 'pages', 'commentstatuses'); |
| 132 | 132 | } |
@@ -46,14 +46,14 @@ discard block |
||
| 46 | 46 | * |
| 47 | 47 | * @var array |
| 48 | 48 | */ |
| 49 | - protected $fillable = ['name', 'description', 'position', 'image_id']; |
|
| 49 | + protected $fillable = [ 'name', 'description', 'position', 'image_id' ]; |
|
| 50 | 50 | |
| 51 | 51 | /** |
| 52 | 52 | * Columns to exclude from index |
| 53 | 53 | * |
| 54 | 54 | * @var array |
| 55 | 55 | */ |
| 56 | - protected $excludedFromIndex = ['image']; |
|
| 56 | + protected $excludedFromIndex = [ 'image' ]; |
|
| 57 | 57 | |
| 58 | 58 | /** |
| 59 | 59 | * Fields to search in fulltext mode |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | * |
| 90 | 90 | * @return object |
| 91 | 91 | */ |
| 92 | - public function images(){ |
|
| 92 | + public function images() { |
|
| 93 | 93 | |
| 94 | 94 | return $this->belongsTo('App\Image', 'image_id')->select('id', 'name', 'description', |
| 95 | 95 | 'alt', 'url', 'imagecategory_id', 'image_mime_type', 'image_extension', |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | * @param query $query |
| 104 | 104 | * @return query |
| 105 | 105 | */ |
| 106 | - public function scopeRelationships($query){ |
|
| 106 | + public function scopeRelationships($query) { |
|
| 107 | 107 | |
| 108 | 108 | return $query->with('images', 'images.imagecategories'); |
| 109 | 109 | } |
@@ -44,14 +44,14 @@ discard block |
||
| 44 | 44 | * |
| 45 | 45 | * @var array |
| 46 | 46 | */ |
| 47 | - protected $fillable = ['name', 'description', 'caption', 'text', 'position', 'image_id', 'slider_id']; |
|
| 47 | + protected $fillable = [ 'name', 'description', 'caption', 'text', 'position', 'image_id', 'slider_id' ]; |
|
| 48 | 48 | |
| 49 | 49 | /** |
| 50 | 50 | * Columns to exclude from index |
| 51 | 51 | * |
| 52 | 52 | * @var array |
| 53 | 53 | */ |
| 54 | - protected $excludedFromIndex = ['image']; |
|
| 54 | + protected $excludedFromIndex = [ 'image' ]; |
|
| 55 | 55 | |
| 56 | 56 | /** |
| 57 | 57 | * Fields to search in fulltext mode |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | * |
| 88 | 88 | * @return object |
| 89 | 89 | */ |
| 90 | - public function sliders(){ |
|
| 90 | + public function sliders() { |
|
| 91 | 91 | |
| 92 | 92 | return $this->belongsTo('App\Slider', 'slider_id'); |
| 93 | 93 | } |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | * |
| 98 | 98 | * @return object |
| 99 | 99 | */ |
| 100 | - public function images(){ |
|
| 100 | + public function images() { |
|
| 101 | 101 | |
| 102 | 102 | return $this->belongsTo('App\Image', 'image_id')->select('id', 'name', 'description', |
| 103 | 103 | 'alt', 'url', 'imagecategory_id', 'image_mime_type', 'image_extension', |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | * @param query $query |
| 112 | 112 | * @return query |
| 113 | 113 | */ |
| 114 | - public function scopeRelationships($query){ |
|
| 114 | + public function scopeRelationships($query) { |
|
| 115 | 115 | |
| 116 | 116 | return $query->with('images', 'images.imagecategories', 'sliders'); |
| 117 | 117 | } |
@@ -44,14 +44,14 @@ |
||
| 44 | 44 | * |
| 45 | 45 | * @var array |
| 46 | 46 | */ |
| 47 | - protected $fillable = ['name', 'language', 'description']; |
|
| 47 | + protected $fillable = [ 'name', 'language', 'description' ]; |
|
| 48 | 48 | |
| 49 | 49 | /** |
| 50 | 50 | * Columns to exclude from index |
| 51 | 51 | * |
| 52 | 52 | * @var array |
| 53 | 53 | */ |
| 54 | - protected $excludedFromIndex = []; |
|
| 54 | + protected $excludedFromIndex = [ ]; |
|
| 55 | 55 | |
| 56 | 56 | /** |
| 57 | 57 | * Fields to search in fulltext mode |
@@ -47,21 +47,21 @@ discard block |
||
| 47 | 47 | * |
| 48 | 48 | * @var array |
| 49 | 49 | */ |
| 50 | - protected $fillable = ['name', 'description', 'alt', 'url']; |
|
| 50 | + protected $fillable = [ 'name', 'description', 'alt', 'url' ]; |
|
| 51 | 51 | |
| 52 | 52 | /** |
| 53 | 53 | * Columns to exclude from index |
| 54 | 54 | * |
| 55 | 55 | * @var array |
| 56 | 56 | */ |
| 57 | - protected $excludedFromIndex = []; |
|
| 57 | + protected $excludedFromIndex = [ ]; |
|
| 58 | 58 | |
| 59 | 59 | /** |
| 60 | 60 | * Hidden from custom find |
| 61 | 61 | * |
| 62 | 62 | * @var arrat |
| 63 | 63 | */ |
| 64 | - protected $excludedFromFind = []; |
|
| 64 | + protected $excludedFromFind = [ ]; |
|
| 65 | 65 | |
| 66 | 66 | /** |
| 67 | 67 | * Fields to search in fulltext mode |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | * |
| 107 | 107 | * @return object |
| 108 | 108 | */ |
| 109 | - public function imagecategories(){ |
|
| 109 | + public function imagecategories() { |
|
| 110 | 110 | |
| 111 | 111 | return $this->belongsTo('App\ImageCategory', 'imagecategory_id'); |
| 112 | 112 | } |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | * |
| 117 | 117 | * @return object |
| 118 | 118 | */ |
| 119 | - public function slides(){ |
|
| 119 | + public function slides() { |
|
| 120 | 120 | |
| 121 | 121 | return $this->hasMany('App\Slide', 'image_id'); |
| 122 | 122 | } |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | * |
| 127 | 127 | * @return object |
| 128 | 128 | */ |
| 129 | - public function articlecategories(){ |
|
| 129 | + public function articlecategories() { |
|
| 130 | 130 | |
| 131 | 131 | return $this->hasMany('App\ArticleCategory', 'image_id'); |
| 132 | 132 | } |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | * |
| 137 | 137 | * @return object |
| 138 | 138 | */ |
| 139 | - public function pages(){ |
|
| 139 | + public function pages() { |
|
| 140 | 140 | |
| 141 | 141 | return $this->hasMany('App\Page', 'image_id'); |
| 142 | 142 | } |
@@ -147,7 +147,7 @@ discard block |
||
| 147 | 147 | * @param query $query |
| 148 | 148 | * @return query |
| 149 | 149 | */ |
| 150 | - public function scopeRelationships($query){ |
|
| 150 | + public function scopeRelationships($query) { |
|
| 151 | 151 | |
| 152 | 152 | return $query->with('imagecategories'); |
| 153 | 153 | } |
@@ -157,8 +157,8 @@ discard block |
||
| 157 | 157 | * |
| 158 | 158 | * @param array $array |
| 159 | 159 | */ |
| 160 | - public function hide($array = []){ |
|
| 160 | + public function hide($array = [ ]) { |
|
| 161 | 161 | |
| 162 | - $this->hidden = ['image']; |
|
| 162 | + $this->hidden = [ 'image' ]; |
|
| 163 | 163 | } |
| 164 | 164 | } |
@@ -47,15 +47,15 @@ discard block |
||
| 47 | 47 | * |
| 48 | 48 | * @var array |
| 49 | 49 | */ |
| 50 | - protected $fillable = ['name', 'author_name', 'meta_title', 'meta_description', |
|
| 51 | - 'meta_keywords', 'text', 'url', 'image_id', 'user_id', 'published_at']; |
|
| 50 | + protected $fillable = [ 'name', 'author_name', 'meta_title', 'meta_description', |
|
| 51 | + 'meta_keywords', 'text', 'url', 'image_id', 'user_id', 'published_at' ]; |
|
| 52 | 52 | |
| 53 | 53 | /** |
| 54 | 54 | * Columns to exclude from index |
| 55 | 55 | * |
| 56 | 56 | * @var array |
| 57 | 57 | */ |
| 58 | - protected $excludedFromIndex = []; |
|
| 58 | + protected $excludedFromIndex = [ ]; |
|
| 59 | 59 | |
| 60 | 60 | /** |
| 61 | 61 | * Fields to search in fulltext mode |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | * |
| 86 | 86 | * @return object |
| 87 | 87 | */ |
| 88 | - public function images(){ |
|
| 88 | + public function images() { |
|
| 89 | 89 | |
| 90 | 90 | return $this->belongsTo('App\Image', 'image_id')->select('id', 'name', 'description', |
| 91 | 91 | 'alt', 'url', 'imagecategory_id', 'image_mime_type', 'image_extension', |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | * |
| 99 | 99 | * @return object |
| 100 | 100 | */ |
| 101 | - public function articlecategories(){ |
|
| 101 | + public function articlecategories() { |
|
| 102 | 102 | |
| 103 | 103 | return $this->belongsToMany('App\ArticleCategory', 'article_articlecategory', 'article_id', 'articlecategory_id'); |
| 104 | 104 | } |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | * |
| 109 | 109 | * @return object |
| 110 | 110 | */ |
| 111 | - public function comments(){ |
|
| 111 | + public function comments() { |
|
| 112 | 112 | |
| 113 | 113 | return $this->hasMany('App\Comment', 'article_id'); |
| 114 | 114 | } |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | * |
| 119 | 119 | * @return object |
| 120 | 120 | */ |
| 121 | - public function users(){ |
|
| 121 | + public function users() { |
|
| 122 | 122 | |
| 123 | 123 | return $this->belongsTo('App\User', 'user_id'); |
| 124 | 124 | } |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | * @param query $query |
| 130 | 130 | * @return query |
| 131 | 131 | */ |
| 132 | - public function scopeRelationships($query){ |
|
| 132 | + public function scopeRelationships($query) { |
|
| 133 | 133 | |
| 134 | 134 | return $query->with('images', 'images.imagecategories', 'articlecategories', 'users', 'comments'); |
| 135 | 135 | } |