Passed
Pull Request — master (#441)
by Philippe
55:46
created
src/Management/Application/StoreManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,9 +40,9 @@
 block discarded – undo
40 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.
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.