Passed
Push — master ( 547c9a...6af67a )
by Karel
17:52
created
src/Controllers/PageController.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -112,9 +112,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/Controllers/PageBlockController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         
Please login to merge, or discard this patch.