@@ -31,9 +31,9 @@ discard block |
||
31 | 31 | * @param \TYPO3\Flow\Mvc\Routing\UriBuilder $builder Flow URI builder object |
32 | 32 | * @param array Associative list of fixed parameters that should be available for all routes |
33 | 33 | */ |
34 | - public function __construct( $view, \TYPO3\Flow\Mvc\Routing\UriBuilder $builder, array $fixed ) |
|
34 | + public function __construct($view, \TYPO3\Flow\Mvc\Routing\UriBuilder $builder, array $fixed) |
|
35 | 35 | { |
36 | - parent::__construct( $view ); |
|
36 | + parent::__construct($view); |
|
37 | 37 | |
38 | 38 | $this->builder = $builder; |
39 | 39 | $this->fixed = $fixed; |
@@ -51,20 +51,20 @@ discard block |
||
51 | 51 | * @param array $config Additional configuration parameter per URL |
52 | 52 | * @return string Complete URL that can be used in the template |
53 | 53 | */ |
54 | - public function transform( $target = null, $controller = null, $action = null, array $params = array(), array $trailing = array(), array $config = array() ) |
|
54 | + public function transform($target = null, $controller = null, $action = null, array $params = array(), array $trailing = array(), array $config = array()) |
|
55 | 55 | { |
56 | - $params = $this->sanitize( $params ); |
|
57 | - $values = $this->getValues( $config ); |
|
56 | + $params = $this->sanitize($params); |
|
57 | + $values = $this->getValues($config); |
|
58 | 58 | |
59 | 59 | $this->builder |
60 | 60 | ->reset() |
61 | - ->setSection( join( '/', $trailing ) ) |
|
62 | - ->setCreateAbsoluteUri( $values['absoluteUri'] ) |
|
63 | - ->setFormat( $values['format'] ); |
|
61 | + ->setSection(join('/', $trailing)) |
|
62 | + ->setCreateAbsoluteUri($values['absoluteUri']) |
|
63 | + ->setFormat($values['format']); |
|
64 | 64 | |
65 | 65 | $params['node'] = $target; |
66 | 66 | |
67 | - return $this->builder->uriFor( $action, $params + $this->fixed, $controller, $values['package'], $values['subpackage'] ); |
|
67 | + return $this->builder->uriFor($action, $params + $this->fixed, $controller, $values['package'], $values['subpackage']); |
|
68 | 68 | } |
69 | 69 | |
70 | 70 | |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | * @param array $config Associative list of key/value pairs |
75 | 75 | * @return array Associative list of sanitized key/value pairs |
76 | 76 | */ |
77 | - protected function getValues( array $config ) |
|
77 | + protected function getValues(array $config) |
|
78 | 78 | { |
79 | 79 | $values = array( |
80 | 80 | 'package' => null, |
@@ -83,19 +83,19 @@ discard block |
||
83 | 83 | 'format' => 'html', |
84 | 84 | ); |
85 | 85 | |
86 | - if( isset( $config['package'] ) ) { |
|
86 | + if (isset($config['package'])) { |
|
87 | 87 | $values['package'] = (string) $config['package']; |
88 | 88 | } |
89 | 89 | |
90 | - if( isset( $config['subpackage'] ) ) { |
|
90 | + if (isset($config['subpackage'])) { |
|
91 | 91 | $values['subpackage'] = (string) $config['subpackage']; |
92 | 92 | } |
93 | 93 | |
94 | - if( isset( $config['absoluteUri'] ) ) { |
|
94 | + if (isset($config['absoluteUri'])) { |
|
95 | 95 | $values['absoluteUri'] = (bool) $config['absoluteUri']; |
96 | 96 | } |
97 | 97 | |
98 | - if( isset( $config['format'] ) ) { |
|
98 | + if (isset($config['format'])) { |
|
99 | 99 | $values['format'] = (string) $config['format']; |
100 | 100 | } |
101 | 101 |