Completed
Push — master ( 4fcfbd...d70fd2 )
by Jan
08:18
created
app/ArticleCategory.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -32,22 +32,22 @@  discard block
 block discarded – undo
32 32
      *
33 33
      * @var array
34 34
      */
35
-    protected $dates = ['created_at', 'updated_at', 'deleted_at'];
35
+    protected $dates = [ 'created_at', 'updated_at', 'deleted_at' ];
36 36
     
37 37
     /**
38 38
      * The attributes that are mass assignable.
39 39
      *
40 40
      * @var array
41 41
      */
42
-    protected $fillable = ['name', 'color', 'meta_title', 'meta_description', 
43
-        'meta_keywords', 'text', 'url', 'image_id',];
42
+    protected $fillable = [ 'name', 'color', 'meta_title', 'meta_description', 
43
+        'meta_keywords', 'text', 'url', 'image_id', ];
44 44
     
45 45
     /**
46 46
      * Columns to exclude from index
47 47
      * 
48 48
      * @var array 
49 49
      */
50
-    protected $excludedFromIndex = ['image'];
50
+    protected $excludedFromIndex = [ 'image' ];
51 51
 
52 52
     /**
53 53
      * 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 images(){
90
+    public function images() {
91 91
         
92 92
         return $this->belongsTo('App\Image', 'image_id')->select('id', 'name', 'description', 
93 93
                 'alt', 'url', 'imagecategory_id', 'image_mime_type', 'image_extension', 
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
      * 
101 101
      * @return object
102 102
      */
103
-    public function articles(){
103
+    public function articles() {
104 104
         
105 105
         return $this->belongsToMany('App\Article', 'article_articlecategory', 'articlecategory_id', 'article_id');
106 106
     }
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
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', 'articles');
117 117
     }
Please login to merge, or discard this patch.
app/Slider.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -33,21 +33,21 @@  discard block
 block discarded – undo
33 33
      *
34 34
      * @var array
35 35
      */
36
-    protected $dates = ['created_at', 'updated_at', 'deleted_at'];
36
+    protected $dates = [ 'created_at', 'updated_at', 'deleted_at' ];
37 37
     
38 38
     /**
39 39
      * The attributes that are mass assignable.
40 40
      *
41 41
      * @var array
42 42
      */
43
-    protected $fillable = ['name', 'description', 'cycle_interval'];
43
+    protected $fillable = [ 'name', 'description', 'cycle_interval' ];
44 44
     
45 45
     /**
46 46
      * Columns to exclude from index
47 47
      * 
48 48
      * @var array 
49 49
      */
50
-    protected $excludedFromIndex = [];
50
+    protected $excludedFromIndex = [ ];
51 51
     
52 52
     /**
53 53
      * Fields to search in fulltext mode
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      * 
84 84
      * @return object
85 85
      */
86
-    public function slides(){
86
+    public function slides() {
87 87
         
88 88
         return $this->hasMany('App\Slide', 'slider_id')->orderBy('position', 'asc');
89 89
     }
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      * @param query $query
95 95
      * @return query
96 96
      */
97
-    public function scopeRelationships($query){
97
+    public function scopeRelationships($query) {
98 98
         
99 99
         return $query->with('slides', 'slides.images', 'slides.images', 'slides.images.imagecategories');
100 100
     }
Please login to merge, or discard this patch.
app/Settings.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,21 +33,21 @@
 block discarded – undo
33 33
      *
34 34
      * @var array
35 35
      */
36
-    protected $dates = ['created_at', 'updated_at', 'deleted_at'];
36
+    protected $dates = [ 'created_at', 'updated_at', 'deleted_at' ];
37 37
     
38 38
     /**
39 39
      * The attributes that are mass assignable.
40 40
      *
41 41
      * @var array
42 42
      */
43
-    protected $fillable = ['name', 'value', 'description'];
43
+    protected $fillable = [ 'name', 'value', 'description' ];
44 44
     
45 45
     /**
46 46
      * Columns to exclude from index
47 47
      * 
48 48
      * @var array 
49 49
      */
50
-    protected $excludedFromIndex = [];
50
+    protected $excludedFromIndex = [ ];
51 51
     
52 52
     /**
53 53
      * Fields to search in fulltext mode
Please login to merge, or discard this patch.
app/Console/Commands/Inspire.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,6 +28,6 @@
 block discarded – undo
28 28
      */
29 29
     public function handle()
30 30
     {
31
-        $this->comment(PHP_EOL.Inspiring::quote().PHP_EOL);
31
+        $this->comment(PHP_EOL . Inspiring::quote() . PHP_EOL);
32 32
     }
33 33
 }
Please login to merge, or discard this patch.
app/Slide.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -33,21 +33,21 @@  discard block
 block discarded – undo
33 33
      *
34 34
      * @var array
35 35
      */
36
-    protected $dates = ['created_at', 'updated_at', 'deleted_at'];
36
+    protected $dates = [ 'created_at', 'updated_at', 'deleted_at' ];
37 37
     
38 38
     /**
39 39
      * The attributes that are mass assignable.
40 40
      *
41 41
      * @var array
42 42
      */
43
-    protected $fillable = ['name', 'description', 'caption', 'text', 'position', 'image_id', 'slider_id'];
43
+    protected $fillable = [ 'name', 'description', 'caption', 'text', 'position', 'image_id', 'slider_id' ];
44 44
     
45 45
     /**
46 46
      * Columns to exclude from index
47 47
      * 
48 48
      * @var array 
49 49
      */
50
-    protected $excludedFromIndex = ['image'];
50
+    protected $excludedFromIndex = [ 'image' ];
51 51
     
52 52
     /**
53 53
      * Fields to search in fulltext mode
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      * 
84 84
      * @return object
85 85
      */
86
-    public function sliders(){
86
+    public function sliders() {
87 87
         
88 88
         return $this->belongsTo('App\Slider', 'slider_id');
89 89
     }
@@ -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', 
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
      * @param query $query
108 108
      * @return query
109 109
      */
110
-    public function scopeRelationships($query){
110
+    public function scopeRelationships($query) {
111 111
         
112 112
         return $query->with('images', 'images.imagecategories', 'sliders');
113 113
     }
Please login to merge, or discard this patch.
app/Page.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -33,22 +33,22 @@  discard block
 block discarded – undo
33 33
      *
34 34
      * @var array
35 35
      */
36
-    protected $dates = ['created_at', 'updated_at', 'deleted_at', 'published_at'];
36
+    protected $dates = [ 'created_at', 'updated_at', 'deleted_at', 'published_at' ];
37 37
     
38 38
     /**
39 39
      * The attributes that are mass assignable.
40 40
      *
41 41
      * @var array
42 42
      */
43
-    protected $fillable = ['name', 'author_name', 'meta_title', 'meta_description', 
44
-        'meta_keywords', 'text', 'url', 'image_id', 'user_id', 'published_at'];
43
+    protected $fillable = [ 'name', 'author_name', 'meta_title', 'meta_description', 
44
+        'meta_keywords', 'text', 'url', 'image_id', 'user_id', 'published_at' ];
45 45
     
46 46
     /**
47 47
      * Columns to exclude from index
48 48
      * 
49 49
      * @var array 
50 50
      */
51
-    protected $excludedFromIndex = [];
51
+    protected $excludedFromIndex = [ ];
52 52
 
53 53
     /**
54 54
      * Fields to search in fulltext mode
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      * 
84 84
      * @return object
85 85
      */
86
-    public function images(){
86
+    public function images() {
87 87
         
88 88
         return $this->belongsTo('App\Image', 'image_id')->select('id', 'name', 'description', 
89 89
                 'alt', 'url', 'imagecategory_id', 'image_mime_type', 'image_extension', 
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
      * 
97 97
      * @return object
98 98
      */
99
-    public function pagecategories(){
99
+    public function pagecategories() {
100 100
         
101 101
         return $this->belongsToMany('App\PageCategory', 'page_pagecategory', 'page_id', 'pagecategory_id');
102 102
     }
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
      * 
107 107
      * @return object
108 108
      */
109
-    public function comments(){
109
+    public function comments() {
110 110
         
111 111
         return $this->hasMany('App\Comment', 'page_id');
112 112
     }
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
      * 
117 117
      * @return object
118 118
      */
119
-    public function users(){
119
+    public function users() {
120 120
         
121 121
         return $this->belongsTo('App\User', 'user_id');
122 122
     }
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
      * @param query $query
128 128
      * @return query
129 129
      */
130
-    public function scopeRelationships($query){
130
+    public function scopeRelationships($query) {
131 131
         
132 132
         return $query->with('images', 'images.imagecategories', 'pagecategories', 'users');
133 133
     }
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/ImageController.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -29,8 +29,8 @@  discard block
 block discarded – undo
29 29
     public function __construct() {
30 30
         parent::__construct();
31 31
         
32
-        $this->middleware('media.add.parameters', ['only' => ['store','update']]);
33
-        $this->middleware('add.lookup.tables:ImageCategory', ['only' => ['index','create','edit']]);
32
+        $this->middleware('media.add.parameters', [ 'only' => [ 'store', 'update' ] ]);
33
+        $this->middleware('add.lookup.tables:ImageCategory', [ 'only' => [ 'index', 'create', 'edit' ] ]);
34 34
     }
35 35
    
36 36
     /**
@@ -57,15 +57,15 @@  discard block
 block discarded – undo
57 57
      * 
58 58
      * @var array 
59 59
      */
60
-    protected $binaryFields = ['image', 'image_mime_type', 'image_extension', 
61
-        'image_original_name', 'image_size', 'image_width', 'image_height'];
60
+    protected $binaryFields = [ 'image', 'image_mime_type', 'image_extension', 
61
+        'image_original_name', 'image_size', 'image_width', 'image_height' ];
62 62
             
63 63
     /**
64 64
      * Get number of pagination rows
65 65
      * 
66 66
      * @return integer
67 67
      */
68
-    public function getRowsToPaginate(){
68
+    public function getRowsToPaginate() {
69 69
         
70 70
         return env('ADMIN_MEDIA_PAGINATE', 12);
71 71
     }
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      * @param object $object
95 95
      * @param Request $request
96 96
      */
97
-    public function associateRelationships($object, Request $request){
97
+    public function associateRelationships($object, Request $request) {
98 98
         
99 99
         /**
100 100
          * Validate category ID, if failed set to default
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
         /**
115 115
          * Validator OK - save it
116 116
          */
117
-        else{
117
+        else {
118 118
 
119 119
             $object->imagecategories()->associate($request->input('imagecategory_id'));
120 120
         } 
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/ImageSelectController.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
     /**
102 102
      * Associate relationships to other table
103 103
      */
104
-    public function associateRelationships($object, Request $request){
104
+    public function associateRelationships($object, Request $request) {
105 105
         
106 106
         /**
107 107
          * Validate category ID, if failed set to default
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 
115 115
             $object->imagecategories()->associate(1);
116 116
         }
117
-        else{
117
+        else {
118 118
 
119 119
             $object->imagecategories()->associate($request->input('imagecategory_id'));
120 120
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -113,8 +113,7 @@
 block discarded – undo
113 113
         if ($validator->fails()) {
114 114
 
115 115
             $object->imagecategories()->associate(1);
116
-        }
117
-        else{
116
+        } else{
118 117
 
119 118
             $object->imagecategories()->associate($request->input('imagecategory_id'));
120 119
 
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/ArticleController.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -31,14 +31,14 @@  discard block
 block discarded – undo
31 31
         /**
32 32
          * Add lookup tables
33 33
          */
34
-        $this->middleware('add.lookup.tables:User', ['only' => ['create', 'edit']]);
35
-        $this->middleware('add.lookup.tables:ArticleCategory', ['only' => ['create', 'edit']]);
36
-        $this->middleware('add.published.at', ['only' => ['store', 'update']]);
34
+        $this->middleware('add.lookup.tables:User', [ 'only' => [ 'create', 'edit' ] ]);
35
+        $this->middleware('add.lookup.tables:ArticleCategory', [ 'only' => [ 'create', 'edit' ] ]);
36
+        $this->middleware('add.published.at', [ 'only' => [ 'store', 'update' ] ]);
37 37
 
38 38
         /**
39 39
          * Other tables
40 40
          */
41
-        $this->middleware('media.image.select:Image', ['only' => ['create', 'edit']]);
41
+        $this->middleware('media.image.select:Image', [ 'only' => [ 'create', 'edit' ] ]);
42 42
     }
43 43
 
44 44
     /**
@@ -120,13 +120,13 @@  discard block
 block discarded – undo
120 120
         /**
121 121
          * Validate article category ID, if failed set to default
122 122
          */
123
-        if($request->has('articlecategory_id')){
123
+        if ($request->has('articlecategory_id')) {
124 124
             
125
-            $validIDs = [];
125
+            $validIDs = [ ];
126 126
 
127 127
             foreach ($request->input('articlecategory_id') as $articlecategory_id) {
128 128
 
129
-                $arrayForValidator = ['articlecategory_id' =>  $articlecategory_id];
129
+                $arrayForValidator = [ 'articlecategory_id' =>  $articlecategory_id ];
130 130
 
131 131
                 $validator = Validator::make($arrayForValidator, [
132 132
                             'articlecategory_id' => 'required|integer|min:1|exists:articlecategory,id',
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
                  * Validator OK - save it
144 144
                  */ else {
145 145
 
146
-                    $validIDs[] = $articlecategory_id;
146
+                    $validIDs[ ] = $articlecategory_id;
147 147
                 }
148 148
             }
149 149
             
Please login to merge, or discard this patch.