@@ -55,13 +55,13 @@ |
||
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 | } |
@@ -37,12 +37,12 @@ |
||
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 |