@@ -113,8 +113,7 @@ |
||
| 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 | |
@@ -86,8 +86,7 @@ |
||
| 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 | } |
@@ -31,8 +31,7 @@ |
||
| 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 | } |
@@ -72,8 +72,7 @@ |
||
| 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 | } |
@@ -126,8 +126,7 @@ |
||
| 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 | } |
@@ -46,8 +46,7 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -113,8 +113,7 @@ |
||
| 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' |
@@ -110,8 +110,7 @@ |
||
| 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 | |
@@ -31,8 +31,7 @@ |
||
| 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 | } |