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/Http/Kernel.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
      * @var array
15 15
      */
16 16
     protected $middleware = [
17
-		\App\Http\Middleware\TrustProxies::class,
17
+  \App\Http\Middleware\TrustProxies::class,
18 18
         \Illuminate\Http\Middleware\HandleCors::class,
19 19
         \App\Http\Middleware\PreventRequestsDuringMaintenance::class,
20 20
         \Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
@@ -29,13 +29,13 @@  discard block
 block discarded – undo
29 29
      */
30 30
     protected $middlewareGroups = [
31 31
         'web' => [
32
-			\App\Http\Middleware\EncryptCookies::class,
32
+   \App\Http\Middleware\EncryptCookies::class,
33 33
             \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
34 34
             \Illuminate\Session\Middleware\StartSession::class,
35 35
             \Illuminate\View\Middleware\ShareErrorsFromSession::class,
36 36
             \App\Http\Middleware\VerifyCsrfToken::class,
37 37
             \Illuminate\Routing\Middleware\SubstituteBindings::class,
38
-			//\App\Http\Middleware\RedirectToHttps::class,
38
+   //\App\Http\Middleware\RedirectToHttps::class,
39 39
         ],
40 40
 
41 41
         'api' => [
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
      * @var array
54 54
      */
55 55
     protected $routeMiddleware = [
56
-		'auth' => \App\Http\Middleware\Authenticate::class,
56
+  'auth' => \App\Http\Middleware\Authenticate::class,
57 57
         'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
58 58
         'auth.session' => \Illuminate\Session\Middleware\AuthenticateSession::class,
59 59
         'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class,
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.