summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Build/NameHandler.php4
-rw-r--r--src/Build/RelationshipHandler.php4
-rw-r--r--src/Build/TopLevelHandler.php4
3 files changed, 9 insertions, 3 deletions
diff --git a/src/Build/NameHandler.php b/src/Build/NameHandler.php
index 4661eac..f5e0e2a 100644
--- a/src/Build/NameHandler.php
+++ b/src/Build/NameHandler.php
@@ -24,6 +24,8 @@ final class NameHandler implements RegionHandler
{
$exported = VarExporter::export($this->data);
- file_put_contents($destination, '<?php return '.$exported.';');
+ file_put_contents($destination, sprintf('<?php return %s;'.PHP_EOL,
+ $exported
+ ));
}
}
diff --git a/src/Build/RelationshipHandler.php b/src/Build/RelationshipHandler.php
index c17def9..4f0e752 100644
--- a/src/Build/RelationshipHandler.php
+++ b/src/Build/RelationshipHandler.php
@@ -119,6 +119,8 @@ final class RelationshipHandler implements RegionHandler
{
$exported = VarExporter::export($this->data);
- file_put_contents($destination, '<?php return '.$exported.';');
+ file_put_contents($destination, sprintf('<?php return %s;'.PHP_EOL,
+ $exported
+ ));
}
}
diff --git a/src/Build/TopLevelHandler.php b/src/Build/TopLevelHandler.php
index edb500d..0df2b60 100644
--- a/src/Build/TopLevelHandler.php
+++ b/src/Build/TopLevelHandler.php
@@ -33,6 +33,8 @@ final class TopLevelHandler implements RegionHandler
{
$exported = VarExporter::export($this->data);
- file_put_contents($destination, '<?php return '.$exported.';');
+ file_put_contents($destination, sprintf('<?php return %s;'.PHP_EOL,
+ $exported
+ ));
}
}