Skip to content

Commit

Permalink
Fixed linting
Browse files Browse the repository at this point in the history
  • Loading branch information
leoloso committed Apr 14, 2020
1 parent 8ae289c commit adf24d7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Renderer/FileRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ protected function renderFragment(AbstractRenderableFileFragment $fragment): str
{
$contents = file_get_contents($fragment->getAssetsPath());
foreach ($fragment->getConfiguration() as $key => $replacement) {
$value = $fragment->isJsonReplacement() ? json_encode($replacement, $fragment->getJsonEncodeOptions()) : $replacement;
$value = $fragment->isJsonReplacement() ?
json_encode($replacement, $fragment->getJsonEncodeOptions()) :
$replacement;
$contents = str_replace($key, $value, $contents);
}
return $contents;
Expand Down

0 comments on commit adf24d7

Please sign in to comment.