Skip to content

Commit

Permalink
Code Review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Baldur Rensch committed Mar 19, 2013
1 parent 88d222d commit f4ad86f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion FSCHateoasBundle.php
Expand Up @@ -8,7 +8,7 @@

class FSCHateoasBundle extends Bundle
{
public function build(ContainerBuilder $container)
public function build(ContainerBuilder $container)
{
parent::build($container);

Expand Down
6 changes: 4 additions & 2 deletions Factory/LinkFactory.php
Expand Up @@ -8,6 +8,7 @@
use FSC\HateoasBundle\Metadata\MetadataFactoryInterface;
use FSC\HateoasBundle\Metadata\ClassMetadataInterface;
use FSC\HateoasBundle\Metadata\RelationMetadataInterface;
use FSC\HateoasBundle\Routing\RelationUrlGenerator;

class LinkFactory extends AbstractLinkFactory implements LinkFactoryInterface
{
Expand All @@ -16,8 +17,9 @@ class LinkFactory extends AbstractLinkFactory implements LinkFactoryInterface
protected $relationUrlGenerator;

public function __construct(MetadataFactoryInterface $metadataFactory,
ParametersFactoryInterface $parametersFactory, $relationUrlGenerator)
{
ParametersFactoryInterface $parametersFactory,
RelationUrlGenerator $relationUrlGenerator
) {
parent::__construct($relationUrlGenerator);

$this->metadataFactory = $metadataFactory;
Expand Down
2 changes: 1 addition & 1 deletion Routing/UrlGenerator.php
Expand Up @@ -37,7 +37,7 @@ public function getContext()
/**
* {@inheritdoc}
*/
public function generate($name, $parameters = array(), $absolute = false, $options = array())
public function generate($name, $parameters = array(), $absolute = false)
{
$parameters = array_merge($this->extraParameters, $parameters);

Expand Down

0 comments on commit f4ad86f

Please sign in to comment.