Skip to content

Commit

Permalink
- Working on tests
Browse files Browse the repository at this point in the history
  • Loading branch information
akadlec committed Jan 15, 2017
1 parent 5446b2e commit 9d99f55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/IPub/Gravatar/Latte/Macros.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function macroGravatar(MacroNode $node, PhpWriter $writer) : string
throw new Latte\CompileException('Please provide email address.');
}

return $writer->write('echo property_exists($this, "filters") ? %escape(call_user_func($this->filters->gravatar, ' . $arguments['email'] . ', ' . $arguments['size'] . ')) : $template->getGravatarService()->buildUrl(' . $arguments['email'] . ', ' . $arguments['size'] . ');');
return $writer->write('echo %escape(property_exists($this, "filters") ? call_user_func($this->filters->gravatar, ' . $arguments['email'] . ', ' . $arguments['size'] . ') : $template->getGravatarService()->buildUrl(' . $arguments['email'] . ', ' . $arguments['size'] . '));');
}


Expand All @@ -91,7 +91,7 @@ public function macroAttrGravatar(MacroNode $node, PhpWriter $writer) : string
throw new Latte\CompileException('Please provide email address.');
}

return $writer->write('?> ' . ($node->htmlNode->name === 'a' ? 'href' : 'src') . '="<?php echo property_exists($this, "filters") ? %escape(call_user_func($this->filters->gravatar, ' . $arguments['email'] . ', ' . $arguments['size'] . ')) : $template->getGravatarService()->buildUrl(' . $arguments['email'] . ', ' . $arguments['size'] . ');?>" <?php');
return $writer->write('?> ' . ($node->htmlNode->name === 'a' ? 'href' : 'src') . '="<?php echo %escape(property_exists($this, "filters") ? call_user_func($this->filters->gravatar, ' . $arguments['email'] . ', ' . $arguments['size'] . ') : $template->getGravatarService()->buildUrl(' . $arguments['email'] . ', ' . $arguments['size'] . '));?>" <?php');
}


Expand Down

0 comments on commit 9d99f55

Please sign in to comment.