Passed
Push — master ( 6af67a...d60064 )
by Karel
21:37
created
src/Controllers/PageController.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -111,9 +111,9 @@  discard block
 block discarded – undo
111 111
         $this->validate(request(), [//@todo create custom Request class for page validation
112 112
             'page_title' => 'max:185',
113 113
         ]);
114
-        if($request['create']){
114
+        if ($request['create']) {
115 115
             $this->page->create($request);
116
-        } if($request['update']){
116
+        } if ($request['update']) {
117 117
             $this->page->updatePage($request);
118 118
         }
119 119
         return redirect()->route('dashboard.pages');
@@ -193,10 +193,10 @@  discard block
 block discarded – undo
193 193
      */
194 194
     public function builderIndex(Request $request, $page_id)
195 195
     {
196
-        if($request->has('lang')) {
196
+        if ($request->has('lang')) {
197 197
             app()->setLocale($request->get('lang'));
198 198
         } else {
199
-            return redirect()->to(URL::current().'?lang='.app()->getLocale());
199
+            return redirect()->to(URL::current() . '?lang=' . app()->getLocale());
200 200
         }
201 201
         $page = $this->page->getByIdWithBlocks($page_id);
202 202
         $template = $this->template->where('id', $page->template_id)->first();
@@ -252,10 +252,10 @@  discard block
 block discarded – undo
252 252
      */
253 253
     public function builderRaw(Request $request, $page_id)
254 254
     {
255
-        if($request->has('lang')) {
255
+        if ($request->has('lang')) {
256 256
             app()->setLocale($request->get('lang'));
257 257
         } else {
258
-            return redirect()->to(URL::current().'?lang='.app()->getLocale());
258
+            return redirect()->to(URL::current() . '?lang=' . app()->getLocale());
259 259
         }
260 260
         $page = $this->page->getByIdWithBlocks($page_id);
261 261
         $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($request->has('lang')) {
122
+        if ($request->has('lang')) {
123 123
             app()->setLocale($request->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($request->has('lang')) {
142
+        if ($request->has('lang')) {
143 143
             app()->setLocale($request->get('lang'));
144 144
         } 
145 145
 
Please login to merge, or discard this patch.