@@ -36,7 +36,7 @@ |
||
| 36 | 36 | return; |
| 37 | 37 | } |
| 38 | 38 | |
| 39 | - $availableApplicatorsString = implode(array_map(function ($applicator) { return get_class($applicator);}, $this->applicators), ','); |
|
| 39 | + $availableApplicatorsString = implode(array_map(function($applicator) { return get_class($applicator); }, $this->applicators), ','); |
|
| 40 | 40 | |
| 41 | 41 | throw new \RuntimeException("No proper template applicator found. $sourceClassName [$sourceId] cannot be applied as template. Available applicators: [$availableApplicatorsString]"); |
| 42 | 42 | } |
@@ -53,13 +53,13 @@ |
||
| 53 | 53 | |
| 54 | 54 | if ($child instanceof Module && $child->isPageSpecific()) { |
| 55 | 55 | $duplicatedChild = $child::create([ |
| 56 | - 'slug' => $targetModel->title ? $targetModel->title . '-' . $child->slug : $child->slug . '-copy', |
|
| 56 | + 'slug' => $targetModel->title ? $targetModel->title.'-'.$child->slug : $child->slug.'-copy', |
|
| 57 | 57 | 'owner_id' => $targetModel->id, |
| 58 | 58 | 'owner_type' => $targetModel->getMorphClass() |
| 59 | 59 | ]); |
| 60 | 60 | |
| 61 | 61 | $this->moduleTemplateApplicator->handle($child, $duplicatedChild); |
| 62 | - } else { |
|
| 62 | + }else { |
|
| 63 | 63 | $duplicatedChild = $child; |
| 64 | 64 | } |
| 65 | 65 | |