@@ -32,9 +32,9 @@ discard block |
||
| 32 | 32 | * @param \Illuminate\Contracts\Routing\UrlGenerator $builder Laravel URL builder 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, \Illuminate\Contracts\Routing\UrlGenerator $builder, array $fixed ) |
|
| 35 | + public function __construct(\Aimeos\MW\View\Iface $view, \Illuminate\Contracts\Routing\UrlGenerator $builder, array $fixed) |
|
| 36 | 36 | { |
| 37 | - parent::__construct( $view ); |
|
| 37 | + parent::__construct($view); |
|
| 38 | 38 | |
| 39 | 39 | $this->builder = $builder; |
| 40 | 40 | $this->fixed = $fixed; |
@@ -52,12 +52,12 @@ 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 ); |
|
| 58 | - $values = $this->getValues( $config ); |
|
| 57 | + $params = $this->sanitize($params); |
|
| 58 | + $values = $this->getValues($config); |
|
| 59 | 59 | |
| 60 | - return $this->builder->route( $target, $params + $this->fixed, $values['absoluteUri'] ); |
|
| 60 | + return $this->builder->route($target, $params + $this->fixed, $values['absoluteUri']); |
|
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | |
@@ -67,13 +67,13 @@ discard block |
||
| 67 | 67 | * @param array $config Associative list of key/value pairs |
| 68 | 68 | * @return array Associative list of sanitized key/value pairs |
| 69 | 69 | */ |
| 70 | - protected function getValues( array $config ) |
|
| 70 | + protected function getValues(array $config) |
|
| 71 | 71 | { |
| 72 | 72 | $values = array( |
| 73 | 73 | 'absoluteUri' => false, |
| 74 | 74 | ); |
| 75 | 75 | |
| 76 | - if( isset( $config['absoluteUri'] ) ) { |
|
| 76 | + if (isset($config['absoluteUri'])) { |
|
| 77 | 77 | $values['absoluteUri'] = (bool) $config['absoluteUri']; |
| 78 | 78 | } |
| 79 | 79 | |