@@ -112,9 +112,9 @@ discard block |
||
112 | 112 | $this->validate(request(), [//@todo create custom Request class for page validation |
113 | 113 | 'page_title' => 'max:185', |
114 | 114 | ]); |
115 | - if($request['create']){ |
|
115 | + if ($request['create']) { |
|
116 | 116 | $this->page->create($request); |
117 | - } if($request['update']){ |
|
117 | + } if ($request['update']) { |
|
118 | 118 | $this->page->updatePage($request); |
119 | 119 | } |
120 | 120 | return redirect()->route('dashboard.pages'); |
@@ -194,10 +194,10 @@ discard block |
||
194 | 194 | */ |
195 | 195 | public function builderIndex($page_id) |
196 | 196 | { |
197 | - if(Input::has('lang')) { |
|
197 | + if (Input::has('lang')) { |
|
198 | 198 | app()->setLocale(Input::get('lang')); |
199 | 199 | } else { |
200 | - return redirect()->to(URL::current().'?lang='.app()->getLocale()); |
|
200 | + return redirect()->to(URL::current() . '?lang=' . app()->getLocale()); |
|
201 | 201 | } |
202 | 202 | $page = $this->page->getByIdWithBlocks($page_id); |
203 | 203 | $template = $this->template->where('id', $page->template_id)->first(); |
@@ -253,10 +253,10 @@ discard block |
||
253 | 253 | */ |
254 | 254 | public function builderRaw($page_id) |
255 | 255 | { |
256 | - if(Input::has('lang')) { |
|
256 | + if (Input::has('lang')) { |
|
257 | 257 | app()->setLocale(Input::get('lang')); |
258 | 258 | } else { |
259 | - return redirect()->to(URL::current().'?lang='.app()->getLocale()); |
|
259 | + return redirect()->to(URL::current() . '?lang=' . app()->getLocale()); |
|
260 | 260 | } |
261 | 261 | $page = $this->page->getByIdWithBlocks($page_id); |
262 | 262 | $template = $this->template->where('id', $page->template_id)->first(); |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | */ |
120 | 120 | public function addBlockTop(Request $request) |
121 | 121 | { |
122 | - if(Input::has('lang')) { |
|
122 | + if (Input::has('lang')) { |
|
123 | 123 | app()->setLocale(Input::get('lang')); |
124 | 124 | } |
125 | 125 | |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | */ |
140 | 140 | public function addBlockBottom(Request $request) |
141 | 141 | { |
142 | - if(Input::has('lang')) { |
|
142 | + if (Input::has('lang')) { |
|
143 | 143 | app()->setLocale(Input::get('lang')); |
144 | 144 | } |
145 | 145 |