Completed
Push — master ( be44c5...20f323 )
by Jan
07:43
created
app/Feedback.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', 'position', 'image_id'];
43
+    protected $fillable = [ 'name', 'description', 'position', '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
@@ -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', 
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
      * @param query $query
98 98
      * @return query
99 99
      */
100
-    public function scopeRelationships($query){
100
+    public function scopeRelationships($query) {
101 101
         
102 102
         return $query->with('images', 'images.imagecategories');
103 103
     }
Please login to merge, or discard this patch.
app/AdminModelTrait.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,8 +72,7 @@
 block discarded – undo
72 72
     {
73 73
         if(isset($this->excludedFromFind) == TRUE && is_array($this->excludedFromFind) == TRUE){
74 74
             return $query->select( array_diff(Schema::getColumnListing($this->table), $this->excludedFromFind) );
75
-        }
76
-        else{
75
+        } else{
77 76
             return $query;
78 77
         }
79 78
     }
Please login to merge, or discard this patch.
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
      *
36 36
      * @return \Illuminate\Database\Eloquent\Builder
37 37
      */
38
-    public function scopeFulltextAllColumns(Builder $query){
38
+    public function scopeFulltextAllColumns(Builder $query) {
39 39
   
40 40
         return Helpers::virtualFulltextSearchColumns($query, request('search'), $this->fulltextFields);
41 41
     }
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      *
46 46
      * @return \Illuminate\Database\Eloquent\Builder
47 47
      */
48
-    public function scopeOrderByColumns(Builder $query){
48
+    public function scopeOrderByColumns(Builder $query) {
49 49
         
50 50
         return Helpers::orderByColumns($query, $this->defaultOrderBy);
51 51
     }
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      */
58 58
     public function scopeExcludeFromIndex(Builder $query)
59 59
     {
60
-        return $query->select( array_diff(Schema::getColumnListing($this->table), $this->excludedFromIndex) );
60
+        return $query->select(array_diff(Schema::getColumnListing($this->table), $this->excludedFromIndex));
61 61
     }
62 62
     
63 63
     /**
@@ -67,10 +67,10 @@  discard block
 block discarded – undo
67 67
      */
68 68
     public function scopeExcludeFromFind(Builder $query)
69 69
     {
70
-        if(isset($this->excludedFromFind) == TRUE && is_array($this->excludedFromFind) == TRUE){
71
-            return $query->select( array_diff(Schema::getColumnListing($this->table), $this->excludedFromFind) );
70
+        if (isset($this->excludedFromFind) == TRUE && is_array($this->excludedFromFind) == TRUE) {
71
+            return $query->select(array_diff(Schema::getColumnListing($this->table), $this->excludedFromFind));
72 72
         }
73
-        else{
73
+        else {
74 74
             return $query;
75 75
         }
76 76
     }
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
      *
81 81
      * @return \Illuminate\Database\Eloquent\Builder
82 82
      */
83
-    public function scopeRelationships(Builder $query){
83
+    public function scopeRelationships(Builder $query) {
84 84
         
85 85
         return $query;
86 86
     }
@@ -90,30 +90,30 @@  discard block
 block discarded – undo
90 90
      *
91 91
      * @return \Illuminate\Database\Eloquent\Builder
92 92
      */
93
-    public function scopeExternalTablesFilter(Builder $query){
93
+    public function scopeExternalTablesFilter(Builder $query) {
94 94
         
95
-        if(Request::input('relation')){
95
+        if (Request::input('relation')) {
96 96
             
97
-            $allTables = [];
97
+            $allTables = [ ];
98 98
             
99 99
             $relations = explode(',', Request::input('relation'));
100 100
             
101
-            foreach ($relations as $relation){
101
+            foreach ($relations as $relation) {
102 102
                 
103 103
                 $keyvalue = explode(':', $relation);
104 104
                 
105
-                $key = trim($keyvalue[0]);
106
-                $value = trim($keyvalue[1]);
105
+                $key = trim($keyvalue[ 0 ]);
106
+                $value = trim($keyvalue[ 1 ]);
107 107
                 
108
-                $allTables[$key] = $value;
108
+                $allTables[ $key ] = $value;
109 109
                 
110
-                if(is_numeric($value) == TRUE){
110
+                if (is_numeric($value) == TRUE) {
111 111
                     
112
-                    $query->where(strtolower($key)."_id", '=', $value);
112
+                    $query->where(strtolower($key) . "_id", '=', $value);
113 113
                 }
114 114
             }
115 115
             
116
-             request()->merge(['external_tables_filter' => $allTables]);
116
+             request()->merge([ 'external_tables_filter' => $allTables ]);
117 117
         }
118 118
         
119 119
         return $query;
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/SettingsController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,5 +24,5 @@
 block discarded – undo
24 24
     protected $arValidationArray = [
25 25
                     'name' => 'required|max:255|unique:settings,name',
26 26
                     'value' => 'max:255',
27
-                    'description' => 'max:255'];
27
+                    'description' => 'max:255' ];
28 28
 }
Please login to merge, or discard this patch.