Completed
Push — master ( c5bd01...9848ae )
by Aimeos
13:00
created
lib/custom/src/MW/View/Helper/Url/Symfony2.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -32,9 +32,9 @@  discard block
 block discarded – undo
32 32
 	 * @param Symfony\Component\Routing\RouterInterface $router Symfony2 Router implementation
33 33
 	 * @param array $fixed Fixed parameters that should be added to each URL
34 34
 	 */
35
-	public function __construct( $view, \Symfony\Component\Routing\RouterInterface $router, array $fixed )
35
+	public function __construct($view, \Symfony\Component\Routing\RouterInterface $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,19 +52,19 @@  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( !empty( $trailing ) ) {
58
-			$params['trailing'] = join( '_', $trailing );
57
+		if (!empty($trailing)) {
58
+			$params['trailing'] = join('_', $trailing);
59 59
 		}
60 60
 
61
-		$params = $this->sanitize( $params );
61
+		$params = $this->sanitize($params);
62 62
 		$refType = \Symfony\Component\Routing\Generator\UrlGeneratorInterface::ABSOLUTE_PATH;
63 63
 
64
-		if( isset( $config['absoluteUri'] ) ) {
64
+		if (isset($config['absoluteUri'])) {
65 65
 			$refType = \Symfony\Component\Routing\Generator\UrlGeneratorInterface::ABSOLUTE_URL;
66 66
 		}
67 67
 
68
-		return $this->router->generate( $target, $params + $this->fixed, $refType );
68
+		return $this->router->generate($target, $params + $this->fixed, $refType);
69 69
 	}
70 70
 }
Please login to merge, or discard this patch.