@@ -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,19 +51,19 @@ 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 | - $values = $this->getValues( $config ); |
|
| 56 | + $values = $this->getValues($config); |
|
| 57 | 57 | |
| 58 | 58 | $this->builder |
| 59 | 59 | ->reset() |
| 60 | - ->setSection( join( '/', $trailing ) ) |
|
| 61 | - ->setCreateAbsoluteUri( $values['absoluteUri'] ) |
|
| 62 | - ->setFormat( $values['format'] ); |
|
| 60 | + ->setSection(join('/', $trailing)) |
|
| 61 | + ->setCreateAbsoluteUri($values['absoluteUri']) |
|
| 62 | + ->setFormat($values['format']); |
|
| 63 | 63 | |
| 64 | 64 | $params['node'] = $target; |
| 65 | 65 | |
| 66 | - return $this->builder->uriFor( $action, $params + $this->fixed, $controller, $values['package'], $values['subpackage'] ); |
|
| 66 | + return $this->builder->uriFor($action, $params + $this->fixed, $controller, $values['package'], $values['subpackage']); |
|
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | * @param array $config Associative list of key/value pairs |
| 74 | 74 | * @return array Associative list of sanitized key/value pairs |
| 75 | 75 | */ |
| 76 | - protected function getValues( array $config ) |
|
| 76 | + protected function getValues(array $config) |
|
| 77 | 77 | { |
| 78 | 78 | $values = array( |
| 79 | 79 | 'package' => null, |
@@ -82,19 +82,19 @@ discard block |
||
| 82 | 82 | 'format' => 'html', |
| 83 | 83 | ); |
| 84 | 84 | |
| 85 | - if( isset( $config['package'] ) ) { |
|
| 85 | + if (isset($config['package'])) { |
|
| 86 | 86 | $values['package'] = (string) $config['package']; |
| 87 | 87 | } |
| 88 | 88 | |
| 89 | - if( isset( $config['subpackage'] ) ) { |
|
| 89 | + if (isset($config['subpackage'])) { |
|
| 90 | 90 | $values['subpackage'] = (string) $config['subpackage']; |
| 91 | 91 | } |
| 92 | 92 | |
| 93 | - if( isset( $config['absoluteUri'] ) ) { |
|
| 93 | + if (isset($config['absoluteUri'])) { |
|
| 94 | 94 | $values['absoluteUri'] = (bool) $config['absoluteUri']; |
| 95 | 95 | } |
| 96 | 96 | |
| 97 | - if( isset( $config['format'] ) ) { |
|
| 97 | + if (isset($config['format'])) { |
|
| 98 | 98 | $values['format'] = (string) $config['format']; |
| 99 | 99 | } |
| 100 | 100 | |
@@ -30,9 +30,9 @@ |
||
| 30 | 30 | * @param \\Aimeos\MW\View\Iface $view View instance with registered view helpers |
| 31 | 31 | * @param \TYPO3\Flow\Http\Request $request Flow request object |
| 32 | 32 | */ |
| 33 | - public function __construct( \Aimeos\MW\View\Iface $view, \TYPO3\Flow\Http\Request $request ) |
|
| 33 | + public function __construct(\Aimeos\MW\View\Iface $view, \TYPO3\Flow\Http\Request $request) |
|
| 34 | 34 | { |
| 35 | - parent::__construct( $view ); |
|
| 35 | + parent::__construct($view); |
|
| 36 | 36 | |
| 37 | 37 | $this->request = $request; |
| 38 | 38 | } |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | * @param \Aimeos\MShop\Context\Item\Iface $context MShop context object |
| 33 | 33 | * @param \TYPO3\Flow\Cache\Frontend\StringFrontend $cache Flow cache object |
| 34 | 34 | */ |
| 35 | - public function __construct( \Aimeos\MShop\Context\Item\Iface $context, \TYPO3\Flow\Cache\Frontend\StringFrontend $cache ) |
|
| 35 | + public function __construct(\Aimeos\MShop\Context\Item\Iface $context, \TYPO3\Flow\Cache\Frontend\StringFrontend $cache) |
|
| 36 | 36 | { |
| 37 | 37 | $this->context = $context; |
| 38 | 38 | $this->cache = $cache; |
@@ -46,11 +46,11 @@ discard block |
||
| 46 | 46 | */ |
| 47 | 47 | protected function getObject() |
| 48 | 48 | { |
| 49 | - if( !isset( $this->object ) ) |
|
| 49 | + if (!isset($this->object)) |
|
| 50 | 50 | { |
| 51 | 51 | $siteid = $this->context->getLocale()->getSiteId(); |
| 52 | - $conf = array( 'siteid' => $this->context->getConfig()->get( 'madmin/cache/prefix' ) . $siteid ); |
|
| 53 | - $this->object = \Aimeos\MW\Cache\Factory::createManager( 'Flow', $conf, $this->cache ); |
|
| 52 | + $conf = array('siteid' => $this->context->getConfig()->get('madmin/cache/prefix') . $siteid); |
|
| 53 | + $this->object = \Aimeos\MW\Cache\Factory::createManager('Flow', $conf, $this->cache); |
|
| 54 | 54 | } |
| 55 | 55 | |
| 56 | 56 | return $this->object; |