Passed
Push — master ( a1ab17...fd21f2 )
by Karel
07:34
created
src/Chuck/PageRepository.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 
9 9
 class PageRepository
10 10
 {
11
-	protected $page;
11
+    protected $page;
12 12
 
13 13
     public function __construct(Page $page)
14 14
     {
@@ -17,12 +17,12 @@  discard block
 block discarded – undo
17 17
 
18 18
     public function find(string $id)
19 19
     {
20
-    	return $this->page->where('id', $id)->first();
20
+        return $this->page->where('id', $id)->first();
21 21
     }
22 22
 
23 23
     public function create(Request $request)
24 24
     {
25
-    	$page = new Page();
25
+        $page = new Page();
26 26
 
27 27
         $meta = [];
28 28
         foreach (ChuckSite::getSupportedLocales() as $langKey => $langValue) {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,8 +49,8 @@
 block discarded – undo
49 49
                 $follow = 'nofollow';
50 50
             }
51 51
 
52
-            $meta[$langKey]['robots'] = $index.$follow;
53
-            $meta[$langKey]['googlebots'] = $index.$follow;
52
+            $meta[$langKey]['robots'] = $index . $follow;
53
+            $meta[$langKey]['googlebots'] = $index . $follow;
54 54
             $count = count($request->get('meta_key')[$langKey]);
55 55
             for ($i = 0; $i < $count; $i++) {
56 56
                 $meta[$langKey][$request->get('meta_key')[$langKey][$i]] = $request->get('meta_value')[$langKey][$i];
Please login to merge, or discard this patch.
src/Controllers/FrontEndController.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -64,16 +64,16 @@  discard block
 block discarded – undo
64 64
 
65 65
             $repeater = $this->repeater->where('url', $slug)->first();
66 66
             if ($repeater !== null) {
67
-                $templateHintpath = explode('::', (string) $repeater->page)[0];
67
+                $templateHintpath = explode('::', (string)$repeater->page)[0];
68 68
                 $template = $this->template->where('active', 1)->where('hintpath', $templateHintpath)->first();
69 69
 
70
-                return view((string) $repeater->page, compact('template', 'repeater'));
70
+                return view((string)$repeater->page, compact('template', 'repeater'));
71 71
             }
72 72
 
73
-            $page = $this->page->where('slug->'.app()->getLocale(), $slug)->first();
73
+            $page = $this->page->where('slug->' . app()->getLocale(), $slug)->first();
74 74
             if ($page == null) {
75 75
                 foreach (\LaravelLocalization::getSupportedLocales() as $localeCode => $properties) {
76
-                    $page = $this->page->where('slug->'.$localeCode, $slug)->first();
76
+                    $page = $this->page->where('slug->' . $localeCode, $slug)->first();
77 77
                     if ($page !== null && $localeCode == app()->getLocale()) {
78 78
                         break;
79 79
                     }
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
                         app()->setLocale($localeCode);
84 84
                         \LaravelLocalization::setLocale($localeCode);
85 85
 
86
-                        return redirect($localeCode.'/'.$slug);
86
+                        return redirect($localeCode . '/' . $slug);
87 87
                     }
88 88
                 }
89 89
             }
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
 
127 127
         $template = $this->template->where('active', 1)->where('id', $page->template_id)->first();
128 128
 
129
-        return view($template->hintpath.'::templates.'.$template->slug.'.page', compact('template', 'page', 'pageblocks'));
129
+        return view($template->hintpath . '::templates.' . $template->slug . '.page', compact('template', 'page', 'pageblocks'));
130 130
     }
131 131
 
132 132
     public function css(Page $page)
Please login to merge, or discard this patch.
src/Models/Page.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
 
41 41
     public static function getUrl($id)
42 42
     {
43
-        return ChuckSite::getSetting('domain').'/'.self::where('id', $id)->first()->slug;
43
+        return ChuckSite::getSetting('domain') . '/' . self::where('id', $id)->first()->slug;
44 44
     }
45 45
 
46 46
     public function deleteById($id)
Please login to merge, or discard this patch.