Passed
Pull Request — 0.5 (#453)
by Philippe
08:02
created
src/Templates/PageTemplateApplicator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,13 +55,13 @@
 block discarded – undo
55 55
             if ($child instanceof Module && $child->isPageSpecific())
56 56
             {
57 57
                 $duplicatedChild = $child::create([
58
-                    'slug'           => $targetModel->title ? $targetModel->title . '-' . $child->slug : $child->slug . '-copy',
58
+                    'slug'           => $targetModel->title ? $targetModel->title.'-'.$child->slug : $child->slug.'-copy',
59 59
                     'owner_id'        => $targetModel->id,
60 60
                     'owner_type' => $targetModel->getMorphClass()
61 61
                 ]);
62 62
 
63 63
                 $this->moduleTemplateApplicator->handle($child, $duplicatedChild);
64
-            } else
64
+            }else
65 65
             {
66 66
                 $duplicatedChild = $child;
67 67
             }
Please login to merge, or discard this patch.
src/Management/Application/StoreManager.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -37,12 +37,12 @@
 block discarded – undo
37 37
         }
38 38
 
39 39
         $manager->saveCreateFields($request);
40
-        if($request->filled('template')) {
40
+        if ($request->filled('template')) {
41 41
             $this->applyTemplate->handle(
42 42
                 FlatReferenceFactory::fromString($request->input('template'))->className(),
43
-                (string) FlatReferenceFactory::fromString($request->input('template'))->id(),
43
+                (string)FlatReferenceFactory::fromString($request->input('template'))->id(),
44 44
                 get_class($manager->existingModel()),
45
-                (string) $manager->existingModel()->id
45
+                (string)$manager->existingModel()->id
46 46
             );
47 47
         }
48 48
 
Please login to merge, or discard this patch.