Passed
Pull Request — master (#441)
by Philippe
54:46
created
src/Templates/ApplyTemplate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Templates/PageTemplateApplicator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,13 +53,13 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.