Completed
Push — master ( 8f5161...d51173 )
by Jan
33s
created
app/Http/Controllers/Admin/ImageSelectController.php 1 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/CommentController.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -86,8 +86,7 @@
 block discarded – undo
86 86
                 $object->commentstatuses()->associate(1);
87 87
             }
88 88
             
89
-        }
90
-        else{
89
+        } else{
91 90
 
92 91
             $object->commentstatuses()->associate($request->input('commentstatus_id'));
93 92
         }
Please login to merge, or discard this patch.
app/Http/Middleware/AddPublishedAt.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,8 +31,7 @@
 block discarded – undo
31 31
         if($request->has('published')){
32 32
             
33 33
             $request->merge(['published_at' => \Carbon\Carbon::now()]);
34
-        }
35
-        else{
34
+        } else{
36 35
 
37 36
             $request->merge(['published_at' => NULL]);
38 37
         }
Please login to merge, or discard this patch.
app/AdminModelTrait.php 1 patch
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.
app/Http/Controllers/Admin/DashboardController.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -126,8 +126,7 @@
 block discarded – undo
126 126
         {
127 127
             return round((($thisValue / ($lastValue / 100)) - 100), $round);
128 128
 
129
-        }
130
-        else {
129
+        } else {
131 130
 
132 131
             return 0;
133 132
         }
Please login to merge, or discard this patch.
app/Http/Controllers/Frontend/FrontendController.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -46,8 +46,7 @@  discard block
 block discarded – undo
46 46
 
47 47
         if (view()->exists($strView)) {
48 48
             return view($strView, $this->_arViewData);
49
-        }
50
-        else{
49
+        } else{
51 50
             return abort(404);
52 51
         }
53 52
     }
@@ -136,8 +135,7 @@  discard block
 block discarded – undo
136 135
 
137 136
         if(!empty($settings)){
138 137
             return $settings['value'];
139
-        }
140
-        else{
138
+        } else{
141 139
             return NULL;
142 140
         }
143 141
     }
Please login to merge, or discard this patch.
app/Http/Controllers/Frontend/PageController.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -113,8 +113,7 @@
 block discarded – undo
113 113
                 'email' => 'email|required|max:255',
114 114
                 'g-recaptcha-response' => 'required|recaptcha'
115 115
             ]);
116
-        }
117
-        else {
116
+        } else {
118 117
 
119 118
             $this->validate($request, [
120 119
                 'email' => 'email|required|max:255'
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/ImageController.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -110,8 +110,7 @@
 block discarded – undo
110 110
             if(strlen($request->input('url') > 5)){
111 111
                 $object->addMedia($request->file('image'))->toMediaCollection('images')
112 112
                     ->usingName($request->input('url'));
113
-            }
114
-            else{
113
+            } else{
115 114
                 $object->addMedia($request->file('image'))->toMediaCollection('images');
116 115
             }
117 116
 
Please login to merge, or discard this patch.
app/Settings.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,8 +31,7 @@
 block discarded – undo
31 31
         $result = self::where('name', $name)->first();
32 32
         if(!empty($result)){
33 33
             return $result->value;
34
-        }
35
-        else{
34
+        } else{
36 35
             return null;
37 36
         }
38 37
     }
Please login to merge, or discard this patch.