@@ -32,9 +32,9 @@ discard block |
||
32 | 32 | * @param \Slim\Router $router Slim router object |
33 | 33 | * @param array Associative list of fixed parameters that should be available for all routes |
34 | 34 | */ |
35 | - public function __construct( \Aimeos\MW\View\Iface $view, \Slim\Router $router, array $fixed ) |
|
35 | + public function __construct(\Aimeos\MW\View\Iface $view, \Slim\Router $router, array $fixed) |
|
36 | 36 | { |
37 | - parent::__construct( $view ); |
|
37 | + parent::__construct($view); |
|
38 | 38 | |
39 | 39 | $this->router = $router; |
40 | 40 | $this->fixed = $fixed; |
@@ -52,14 +52,14 @@ discard block |
||
52 | 52 | * @param array $config Additional configuration parameter per URL |
53 | 53 | * @return string Complete URL that can be used in the template |
54 | 54 | */ |
55 | - public function transform( $target = null, $controller = null, $action = null, array $params = array(), array $trailing = array(), array $config = array() ) |
|
55 | + public function transform($target = null, $controller = null, $action = null, array $params = array(), array $trailing = array(), array $config = array()) |
|
56 | 56 | { |
57 | - $params = $this->sanitize( $params ); |
|
57 | + $params = $this->sanitize($params); |
|
58 | 58 | |
59 | - if( isset( $config['absoluteUri'] ) && (bool) $config['absoluteUri'] === true ) { |
|
60 | - return $this->router->pathFor( $target, $this->fixed + $params, $params ); |
|
59 | + if (isset($config['absoluteUri']) && (bool) $config['absoluteUri'] === true) { |
|
60 | + return $this->router->pathFor($target, $this->fixed + $params, $params); |
|
61 | 61 | } |
62 | 62 | |
63 | - return $this->router->relativePathFor( $target, $this->fixed + $params, $params ); |
|
63 | + return $this->router->relativePathFor($target, $this->fixed + $params, $params); |
|
64 | 64 | } |
65 | 65 | } |
66 | 66 | \ No newline at end of file |