Skip to content

Commit

Permalink
LocalSvgRenderer private methods
Browse files Browse the repository at this point in the history
  • Loading branch information
jmleroux committed Mar 23, 2016
1 parent 1b70bbe commit b584260
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Render/LocalSvgRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ abstract protected function getTemplateName();
*
* @return string SVG content of the template
*/
protected function getTemplate($format)
private function getTemplate($format)
{
$templatesDirectory = __DIR__ . '/../Resources/templates';
$filepath = sprintf('%s/%s.svg', $templatesDirectory, $format);
Expand All @@ -83,7 +83,7 @@ protected function getTemplate($format)
*
* @return float
*/
protected function stringWidth($text)
private function stringWidth($text)
{
return $this->textSizeCalculator->calculateWidth($text);
}
Expand All @@ -95,7 +95,7 @@ protected function stringWidth($text)
*
* @return Image
*/
protected function renderSvg($render, $parameters, $format)
private function renderSvg($render, $parameters, $format)
{
foreach ($parameters as $key => $variable) {
$render = str_replace(sprintf('{{ %s }}', $key), $variable, $render);
Expand Down

0 comments on commit b584260

Please sign in to comment.