@@ -30,14 +30,14 @@ discard block |
||
30 | 30 | * @param ResponseInterface $response Response object |
31 | 31 | * @return ResponseInterface $response Modified response object with generated output |
32 | 32 | */ |
33 | - public static function countAction( ContainerInterface $container, ServerRequestInterface $request, ResponseInterface $response, array $args ) |
|
33 | + public static function countAction(ContainerInterface $container, ServerRequestInterface $request, ResponseInterface $response, array $args) |
|
34 | 34 | { |
35 | - $contents = $container->get( 'aimeos_page' )->getSections( 'catalog-count', $request, $response, $args ); |
|
35 | + $contents = $container->get('aimeos_page')->getSections('catalog-count', $request, $response, $args); |
|
36 | 36 | |
37 | - $response = $response->withStatus( 200 ); |
|
38 | - $response = $response->withHeader( 'Content-Type', 'application/javascript' ); |
|
37 | + $response = $response->withStatus(200); |
|
38 | + $response = $response->withHeader('Content-Type', 'application/javascript'); |
|
39 | 39 | |
40 | - return $container->get( 'view' )->render( $response, 'Catalog/count.html.twig', $contents ); |
|
40 | + return $container->get('view')->render($response, 'Catalog/count.html.twig', $contents); |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | |
@@ -49,10 +49,10 @@ discard block |
||
49 | 49 | * @param ResponseInterface $response Response object |
50 | 50 | * @return ResponseInterface $response Modified response object with generated output |
51 | 51 | */ |
52 | - public static function detailAction( ContainerInterface $container, ServerRequestInterface $request, ResponseInterface $response, array $args ) |
|
52 | + public static function detailAction(ContainerInterface $container, ServerRequestInterface $request, ResponseInterface $response, array $args) |
|
53 | 53 | { |
54 | - $contents = $container->get( 'aimeos_page' )->getSections( 'catalog-detail', $request, $response, $args ); |
|
55 | - return $container->get( 'view' )->render( $response, 'Catalog/detail.html.twig', $contents ); |
|
54 | + $contents = $container->get('aimeos_page')->getSections('catalog-detail', $request, $response, $args); |
|
55 | + return $container->get('view')->render($response, 'Catalog/detail.html.twig', $contents); |
|
56 | 56 | } |
57 | 57 | |
58 | 58 | |
@@ -64,10 +64,10 @@ discard block |
||
64 | 64 | * @param ResponseInterface $response Response object |
65 | 65 | * @return ResponseInterface $response Modified response object with generated output |
66 | 66 | */ |
67 | - public static function listAction( ContainerInterface $container, ServerRequestInterface $request, ResponseInterface $response, array $args ) |
|
67 | + public static function listAction(ContainerInterface $container, ServerRequestInterface $request, ResponseInterface $response, array $args) |
|
68 | 68 | { |
69 | - $contents = $container->get( 'aimeos_page' )->getSections( 'catalog-list', $request, $response, $args ); |
|
70 | - return $container->get( 'view' )->render( $response, 'Catalog/list.html.twig', $contents ); |
|
69 | + $contents = $container->get('aimeos_page')->getSections('catalog-list', $request, $response, $args); |
|
70 | + return $container->get('view')->render($response, 'Catalog/list.html.twig', $contents); |
|
71 | 71 | } |
72 | 72 | |
73 | 73 | |
@@ -79,14 +79,14 @@ discard block |
||
79 | 79 | * @param ResponseInterface $response Response object |
80 | 80 | * @return ResponseInterface $response Modified response object with generated output |
81 | 81 | */ |
82 | - public static function stockAction( ContainerInterface $container, ServerRequestInterface $request, ResponseInterface $response, array $args ) |
|
82 | + public static function stockAction(ContainerInterface $container, ServerRequestInterface $request, ResponseInterface $response, array $args) |
|
83 | 83 | { |
84 | - $contents = $container->get( 'aimeos_page' )->getSections( 'catalog-stock', $request, $response, $args ); |
|
84 | + $contents = $container->get('aimeos_page')->getSections('catalog-stock', $request, $response, $args); |
|
85 | 85 | |
86 | - $response = $response->withStatus( 200 ); |
|
87 | - $response = $response->withHeader( 'Content-Type', 'application/javascript' ); |
|
86 | + $response = $response->withStatus(200); |
|
87 | + $response = $response->withHeader('Content-Type', 'application/javascript'); |
|
88 | 88 | |
89 | - return $container->get( 'view' )->render( $response, 'Catalog/stock.html.twig', $contents ); |
|
89 | + return $container->get('view')->render($response, 'Catalog/stock.html.twig', $contents); |
|
90 | 90 | } |
91 | 91 | |
92 | 92 | |
@@ -98,13 +98,13 @@ discard block |
||
98 | 98 | * @param ResponseInterface $response Response object |
99 | 99 | * @return ResponseInterface $response Modified response object with generated output |
100 | 100 | */ |
101 | - public static function suggestAction( ContainerInterface $container, ServerRequestInterface $request, ResponseInterface $response, array $args ) |
|
101 | + public static function suggestAction(ContainerInterface $container, ServerRequestInterface $request, ResponseInterface $response, array $args) |
|
102 | 102 | { |
103 | - $contents = $container->get( 'aimeos_page' )->getSections( 'catalog-suggest', $request, $response, $args ); |
|
103 | + $contents = $container->get('aimeos_page')->getSections('catalog-suggest', $request, $response, $args); |
|
104 | 104 | |
105 | - $response = $response->withStatus( 200 ); |
|
106 | - $response = $response->withHeader( 'Content-Type', 'application/json' ); |
|
105 | + $response = $response->withStatus(200); |
|
106 | + $response = $response->withHeader('Content-Type', 'application/json'); |
|
107 | 107 | |
108 | - return $container->get( 'view' )->render( $response, 'Catalog/suggest.html.twig', $contents ); |
|
108 | + return $container->get('view')->render($response, 'Catalog/suggest.html.twig', $contents); |
|
109 | 109 | } |
110 | 110 | } |
111 | 111 | \ No newline at end of file |