Completed
Push — master ( 74e438...55fcad )
by Aimeos
02:09
created
lib/custom/src/MW/View/Helper/Url/Slim.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -32,9 +32,9 @@  discard block
 block discarded – undo
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,12 +52,12 @@  discard block
 block discarded – undo
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
-		if( isset( $config['absoluteUri'] ) && (bool) $config['absoluteUri'] === true ) {
58
-			return $this->router->pathFor( $target, $this->fixed + $params, $params );
57
+		if (isset($config['absoluteUri']) && (bool) $config['absoluteUri'] === true) {
58
+			return $this->router->pathFor($target, $this->fixed + $params, $params);
59 59
 		}
60 60
 
61
-		return $this->router->relativePathFor( $target, $this->fixed + $params, $params );
61
+		return $this->router->relativePathFor($target, $this->fixed + $params, $params);
62 62
 	}
63 63
 }
64 64
\ No newline at end of file
Please login to merge, or discard this patch.