Completed
Push — master ( 564bd6...25470c )
by Jan
49s
created
app/ImageCategory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -46,14 +46,14 @@  discard block
 block discarded – undo
46 46
      *
47 47
      * @var array
48 48
      */
49
-    protected $fillable = ['name', 'description', 'color'];
49
+    protected $fillable = [ 'name', 'description', 'color' ];
50 50
     
51 51
     /**
52 52
      * Columns to exclude from index
53 53
      * 
54 54
      * @var array 
55 55
      */
56
-    protected $excludedFromIndex = [];
56
+    protected $excludedFromIndex = [ ];
57 57
 
58 58
     /**
59 59
      * Fields to search in fulltext mode
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
      * 
89 89
      * @return object
90 90
      */
91
-    public function images(){
91
+    public function images() {
92 92
         
93 93
         return $this->hasMany('App\Image', 'imagecategory_id');
94 94
     }
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
      * @param query $query@
100 100
      * @return query
101 101
      */
102
-    public function scopeRelationships($query){
102
+    public function scopeRelationships($query) {
103 103
         
104 104
         return $query->with('images');
105 105
     }
Please login to merge, or discard this patch.
app/AdvertLocation.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -46,14 +46,14 @@  discard block
 block discarded – undo
46 46
      *
47 47
      * @var array
48 48
      */
49
-    protected $fillable = ['name', 'description', 'color'];
49
+    protected $fillable = [ 'name', 'description', 'color' ];
50 50
     
51 51
     /**
52 52
      * Columns to exclude from index
53 53
      * 
54 54
      * @var array 
55 55
      */
56
-    protected $excludedFromIndex = [];
56
+    protected $excludedFromIndex = [ ];
57 57
 
58 58
     /**
59 59
      * Fields to search in fulltext mode
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
      * 
89 89
      * @return object
90 90
      */
91
-    public function adverts(){
91
+    public function adverts() {
92 92
         
93 93
         return $this->belongsToMany('App\Advert', 'advert_advertlocation', 'advert_id', 'advertlocation_id');
94 94
     }
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
      * @param type $query
100 100
      * @return object
101 101
      */
102
-    public function scopeRelationships($query){
102
+    public function scopeRelationships($query) {
103 103
         
104 104
         return $query->with('adverts');
105 105
     }
Please login to merge, or discard this patch.
app/CommentStatus.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -46,14 +46,14 @@  discard block
 block discarded – undo
46 46
      *
47 47
      * @var array
48 48
      */
49
-    protected $fillable = ['name', 'color'];
49
+    protected $fillable = [ 'name', 'color' ];
50 50
     
51 51
     /**
52 52
      * Columns to exclude from index
53 53
      * 
54 54
      * @var array 
55 55
      */
56
-    protected $excludedFromIndex = [];
56
+    protected $excludedFromIndex = [ ];
57 57
 
58 58
     /**
59 59
      * Fields to search in fulltext mode
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      * 
85 85
      * @return object
86 86
      */
87
-    public function comments(){
87
+    public function comments() {
88 88
         
89 89
         return $this->hasMany('App\Comment', 'commentstatus_id');
90 90
     }
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
      * @param query $query
96 96
      * @return query
97 97
      */
98
-    public function scopeRelationships($query){
98
+    public function scopeRelationships($query) {
99 99
         
100 100
         return $query->with('comments');
101 101
     }
Please login to merge, or discard this patch.
app/Usergroup.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      *
45 45
      * @var array
46 46
      */
47
-    protected $fillable = ['name'];
47
+    protected $fillable = [ 'name' ];
48 48
 
49 49
     /**
50 50
      * Fields to search in fulltext mode
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      * 
75 75
      * @return object
76 76
      */
77
-    public function users(){
77
+    public function users() {
78 78
         
79 79
         return $this->hasMany('App\User', 'usergroup_id');
80 80
     }
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
      * @param query $query
86 86
      * @return query
87 87
      */
88
-    public function scopeRelationships($query){
88
+    public function scopeRelationships($query) {
89 89
         
90 90
         return $query->with('users');
91 91
     }
Please login to merge, or discard this patch.
app/Page.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -45,15 +45,15 @@  discard block
 block discarded – undo
45 45
      *
46 46
      * @var array
47 47
      */
48
-    protected $fillable = ['name', 'author_name', 'meta_title', 'meta_description', 
49
-        'meta_keywords', 'text', 'url', 'image_id', 'user_id', 'published_at'];
48
+    protected $fillable = [ 'name', 'author_name', 'meta_title', 'meta_description', 
49
+        'meta_keywords', 'text', 'url', 'image_id', 'user_id', 'published_at' ];
50 50
     
51 51
     /**
52 52
      * Columns to exclude from index
53 53
      * 
54 54
      * @var array 
55 55
      */
56
-    protected $excludedFromIndex = [];
56
+    protected $excludedFromIndex = [ ];
57 57
 
58 58
     /**
59 59
      * Fields to search in fulltext mode
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
      * 
89 89
      * @return object
90 90
      */
91
-    public function images(){
91
+    public function images() {
92 92
         
93 93
         return $this->belongsTo('App\Image', 'image_id')->select('id', 'name', 'description', 
94 94
                 'alt', 'url', 'imagecategory_id', 'image_mime_type', 'image_extension', 
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
      * 
102 102
      * @return object
103 103
      */
104
-    public function pagecategories(){
104
+    public function pagecategories() {
105 105
         
106 106
         return $this->belongsToMany('App\PageCategory', 'page_pagecategory', 'page_id', 'pagecategory_id');
107 107
     }
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
      * 
112 112
      * @return object
113 113
      */
114
-    public function comments(){
114
+    public function comments() {
115 115
         
116 116
         return $this->hasMany('App\Comment', 'page_id');
117 117
     }
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      * 
122 122
      * @return object
123 123
      */
124
-    public function users(){
124
+    public function users() {
125 125
         
126 126
         return $this->belongsTo('App\User', 'user_id');
127 127
     }
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
      * @param query $query
133 133
      * @return query
134 134
      */
135
-    public function scopeRelationships($query){
135
+    public function scopeRelationships($query) {
136 136
         
137 137
         return $query->with('images', 'images.imagecategories', 'pagecategories', 'users');
138 138
     }
Please login to merge, or discard this patch.
app/Slider.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,14 +44,14 @@  discard block
 block discarded – undo
44 44
      *
45 45
      * @var array
46 46
      */
47
-    protected $fillable = ['name', 'description', 'cycle_interval'];
47
+    protected $fillable = [ 'name', 'description', 'cycle_interval' ];
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
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
      * 
88 88
      * @return object
89 89
      */
90
-    public function slides(){
90
+    public function slides() {
91 91
         
92 92
         return $this->hasMany('App\Slide', 'slider_id')->orderBy('position', 'asc');
93 93
     }
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      * @param query $query
99 99
      * @return query
100 100
      */
101
-    public function scopeRelationships($query){
101
+    public function scopeRelationships($query) {
102 102
         
103 103
         return $query->with('slides', 'slides.images', 'slides.images', 'slides.images.imagecategories');
104 104
     }
Please login to merge, or discard this patch.
app/ArticleCategory.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -45,15 +45,15 @@  discard block
 block discarded – undo
45 45
      *
46 46
      * @var array
47 47
      */
48
-    protected $fillable = ['name', 'color', 'meta_title', 'meta_description', 
49
-        'meta_keywords', 'text', 'url', 'image_id',];
48
+    protected $fillable = [ 'name', 'color', 'meta_title', 'meta_description', 
49
+        'meta_keywords', 'text', 'url', '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
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
      * 
94 94
      * @return object
95 95
      */
96
-    public function images(){
96
+    public function images() {
97 97
         
98 98
         return $this->belongsTo('App\Image', 'image_id')->select('id', 'name', 'description', 
99 99
                 'alt', 'url', 'imagecategory_id', 'image_mime_type', 'image_extension', 
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
      * 
107 107
      * @return object
108 108
      */
109
-    public function articles(){
109
+    public function articles() {
110 110
         
111 111
         return $this->belongsToMany('App\Article', 'article_articlecategory', 'articlecategory_id', 'article_id');
112 112
     }
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
      * @param query $query
118 118
      * @return query
119 119
      */
120
-    public function scopeRelationships($query){
120
+    public function scopeRelationships($query) {
121 121
         
122 122
         return $query->with('images', 'images.imagecategories', 'articles');
123 123
     }
Please login to merge, or discard this patch.
app/Settings.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -27,12 +27,12 @@  discard block
 block discarded – undo
27 27
      * @param $name
28 28
      * @return |null
29 29
      */
30
-    public static function getByName($name){
30
+    public static function getByName($name) {
31 31
         $result = self::where('name', $name)->first();
32
-        if(!empty($result)){
32
+        if (!empty($result)) {
33 33
             return $result->value;
34 34
         }
35
-        else{
35
+        else {
36 36
             return null;
37 37
         }
38 38
     }
@@ -61,14 +61,14 @@  discard block
 block discarded – undo
61 61
      *
62 62
      * @var array
63 63
      */
64
-    protected $fillable = ['name', 'value', 'description'];
64
+    protected $fillable = [ 'name', 'value', 'description' ];
65 65
     
66 66
     /**
67 67
      * Columns to exclude from index
68 68
      * 
69 69
      * @var array 
70 70
      */
71
-    protected $excludedFromIndex = [];
71
+    protected $excludedFromIndex = [ ];
72 72
     
73 73
     /**
74 74
      * Fields to search in fulltext mode
Please login to merge, or discard this patch.
app/User.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -52,22 +52,22 @@  discard block
 block discarded – undo
52 52
      *
53 53
      * @var array
54 54
      */
55
-    protected $fillable = ['name', 'email', 'password', 'age', 'blacklisted', 'ip', 'activation_code', 'active',
56
-    'fname', 'sname', 'bno', 'city', 'citypart', 'street', 'hno', 'zip', 'registration_data', 'phone'];
55
+    protected $fillable = [ 'name', 'email', 'password', 'age', 'blacklisted', 'ip', 'activation_code', 'active',
56
+    'fname', 'sname', 'bno', 'city', 'citypart', 'street', 'hno', 'zip', 'registration_data', 'phone' ];
57 57
 
58 58
     /**
59 59
      * The attributes excluded from the model's JSON form.
60 60
      *
61 61
      * @var array
62 62
      */
63
-    protected $hidden = ['password', 'remember_token'];
63
+    protected $hidden = [ 'password', 'remember_token' ];
64 64
     
65 65
     /**
66 66
      * Columns to exclude from index
67 67
      * 
68 68
      * @var array 
69 69
      */
70
-    protected $excludedFromIndex = ['password'];
70
+    protected $excludedFromIndex = [ 'password' ];
71 71
     
72 72
     /**
73 73
      * Fields to search in fulltext mode
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
      * 
103 103
      * @return object
104 104
      */
105
-    public function articles(){
105
+    public function articles() {
106 106
         
107 107
         return $this->hasMany('App\Article', 'user_id');
108 108
     }
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
      *
113 113
      * @return object
114 114
      */
115
-    public function usergroups(){
115
+    public function usergroups() {
116 116
 
117 117
         return $this->belongsTo('App\Usergroup', 'usergroup_id');
118 118
     }
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
      * @param query $query
124 124
      * @return query
125 125
      */
126
-    public function scopeRelationships($query){
126
+    public function scopeRelationships($query) {
127 127
         
128 128
         return $query->with('usergroups');
129 129
     }
Please login to merge, or discard this patch.