Passed
Pull Request — master (#198)
by Daniel
05:34
created
Classes/Controller/AdminController.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -26,16 +26,16 @@
 block discarded – undo
26 26
     {
27 27
         $site = 'default';
28 28
 
29
-        if (isset($GLOBALS['BE_USER']->user['siteid']) && $GLOBALS['BE_USER']->user['siteid'] != '') {
30
-            $siteManager = \Aimeos\MShop::create($this->contextBackend(), 'locale/site');
31
-            $siteId = current(array_reverse(explode('.', trim($GLOBALS['BE_USER']->user['siteid'], '.'))));
32
-            $site = ($siteId ? $siteManager->get($siteId)->getCode() : 'default');
29
+        if( isset( $GLOBALS['BE_USER']->user['siteid'] ) && $GLOBALS['BE_USER']->user['siteid'] != '' ) {
30
+            $siteManager = \Aimeos\MShop::create( $this->contextBackend(), 'locale/site' );
31
+            $siteId = current( array_reverse( explode( '.', trim( $GLOBALS['BE_USER']->user['siteid'], '.' ) ) ) );
32
+            $site = ( $siteId ? $siteManager->get( $siteId )->getCode() : 'default' );
33 33
         }
34 34
 
35
-        if (!class_exists('\TYPO3\CMS\Extbase\Http\ForwardResponse')) {
36
-            return $this->forward('search', 'Jqadm', null, ['site' => $site]);
35
+        if( !class_exists( '\TYPO3\CMS\Extbase\Http\ForwardResponse' ) ) {
36
+            return $this->forward( 'search', 'Jqadm', null, ['site' => $site] );
37 37
         }
38 38
 
39
-        return (new ForwardResponse('search'))->withControllerName('Jqadm')->withArguments(['site' => $site]);
39
+        return ( new ForwardResponse( 'search' ) )->withControllerName( 'Jqadm' )->withArguments( ['site' => $site] );
40 40
     }
41 41
 }
Please login to merge, or discard this patch.
Classes/Controller/LocaleController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
      */
27 27
     public function selectAction()
28 28
     {
29
-        $client = \Aimeos\Client\Html::create($this->context(), 'locale/select');
30
-        return $this->getClientOutput($client);
29
+        $client = \Aimeos\Client\Html::create( $this->context(), 'locale/select' );
30
+        return $this->getClientOutput( $client );
31 31
     }
32 32
 }
Please login to merge, or discard this patch.
Classes/Controller/GraphqlController.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      */
28 28
     public function indexAction()
29 29
     {
30
-        return \Aimeos\Admin\Graphql::execute($this->contextBackend(''), $this->getPsrRequest());
30
+        return \Aimeos\Admin\Graphql::execute( $this->contextBackend( '' ), $this->getPsrRequest() );
31 31
     }
32 32
 
33 33
 
@@ -57,15 +57,15 @@  discard block
 block discarded – undo
57 57
      * @param \Psr\Http\Message\ResponseInterface $response PSR-7 response object
58 58
      * @return string Generated output
59 59
      */
60
-    protected function setPsrResponse(\Psr\Http\Message\ResponseInterface $response)
60
+    protected function setPsrResponse( \Psr\Http\Message\ResponseInterface $response )
61 61
     {
62
-        if (!isset($this->responseFactory)) // TYPO3 10
62
+        if( !isset( $this->responseFactory ) ) // TYPO3 10
63 63
         {
64
-            $this->response->setStatus($response->getStatusCode());
64
+            $this->response->setStatus( $response->getStatusCode() );
65 65
 
66
-            foreach ($response->getHeaders() as $key => $value) {
67
-                foreach ((array) $value as $val) {
68
-                    $this->response->setHeader($key, $val);
66
+            foreach( $response->getHeaders() as $key => $value ) {
67
+                foreach( (array) $value as $val ) {
68
+                    $this->response->setHeader( $key, $val );
69 69
                 }
70 70
             }
71 71
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,9 +59,11 @@
 block discarded – undo
59 59
      */
60 60
     protected function setPsrResponse(\Psr\Http\Message\ResponseInterface $response)
61 61
     {
62
-        if (!isset($this->responseFactory)) // TYPO3 10
62
+        if (!isset($this->responseFactory)) {
63
+            // TYPO3 10
63 64
         {
64 65
             $this->response->setStatus($response->getStatusCode());
66
+        }
65 67
 
66 68
             foreach ($response->getHeaders() as $key => $value) {
67 69
                 foreach ((array) $value as $val) {
Please login to merge, or discard this patch.
Classes/Controller/JqadmController.php 1 patch
Spacing   +66 added lines, -66 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     protected function initializeAction()
30 30
     {
31 31
         parent::initializeAction();
32
-        $this->uriBuilder->setArgumentPrefix('tx_aimeos_web_aimeostxaimeosadmin');
32
+        $this->uriBuilder->setArgumentPrefix( 'tx_aimeos_web_aimeostxaimeosadmin' );
33 33
     }
34 34
 
35 35
 
@@ -42,41 +42,41 @@  discard block
 block discarded – undo
42 42
     {
43 43
         $contents = '';
44 44
         $files = [];
45
-        $type = $this->request->getArgument('type');
45
+        $type = $this->request->getArgument( 'type' );
46 46
 
47
-        foreach (Base::aimeos()->getCustomPaths('admin/jqadm') as $base => $paths) {
48
-            foreach($paths as $path) {
47
+        foreach( Base::aimeos()->getCustomPaths( 'admin/jqadm' ) as $base => $paths ) {
48
+            foreach( $paths as $path ) {
49 49
                 $jsbAbsPath = $base . '/' . $path;
50
-                $jsb2 = new \Aimeos\MW\Jsb2\Standard($jsbAbsPath, dirname($jsbAbsPath));
51
-                $files = array_merge($files, $jsb2->getFiles($type));
50
+                $jsb2 = new \Aimeos\MW\Jsb2\Standard( $jsbAbsPath, dirname( $jsbAbsPath ) );
51
+                $files = array_merge( $files, $jsb2->getFiles( $type ) );
52 52
             }
53 53
         }
54 54
 
55
-        foreach ($files as $file) {
56
-            if (($content = file_get_contents($file)) === false) {
57
-                throw new \RuntimeException(sprintf('File "%1$s" not found', $jsbAbsPath));
55
+        foreach( $files as $file ) {
56
+            if( ( $content = file_get_contents( $file ) ) === false ) {
57
+                throw new \RuntimeException( sprintf( 'File "%1$s" not found', $jsbAbsPath ) );
58 58
             }
59 59
 
60 60
             $contents .= $content;
61 61
         }
62 62
 
63
-        if (!isset($this->responseFactory)) { // TYPO3 10
64
-            if ($type === 'js') {
65
-                $this->response->setHeader('Content-Type', 'application/javascript');
66
-            } elseif ($type === 'css') {
67
-                $this->response->setHeader('Content-Type', 'text/css');
63
+        if( !isset( $this->responseFactory ) ) { // TYPO3 10
64
+            if( $type === 'js' ) {
65
+                $this->response->setHeader( 'Content-Type', 'application/javascript' );
66
+            } elseif( $type === 'css' ) {
67
+                $this->response->setHeader( 'Content-Type', 'text/css' );
68 68
             }
69 69
 
70 70
             return $contents;
71 71
         }
72 72
 
73 73
         $response = $this->responseFactory->createResponse()
74
-            ->withBody($this->streamFactory->createStream($contents));
74
+            ->withBody( $this->streamFactory->createStream( $contents ) );
75 75
 
76
-        if ($type === 'js') {
77
-            $response = $response->withAddedHeader('Content-Type', 'application/javascript');
78
-        } elseif ($type === 'css') {
79
-            $response = $response->withAddedHeader('Content-Type', 'text/css');
76
+        if( $type === 'js' ) {
77
+            $response = $response->withAddedHeader( 'Content-Type', 'application/javascript' );
78
+        } elseif( $type === 'css' ) {
79
+            $response = $response->withAddedHeader( 'Content-Type', 'text/css' );
80 80
         }
81 81
 
82 82
         return $response;
@@ -92,11 +92,11 @@  discard block
 block discarded – undo
92 92
     {
93 93
         $cntl = $this->createAdmin();
94 94
 
95
-        if (($html = $cntl->batch()) == '') {
96
-            return $this->setPsrResponse($cntl->response());
95
+        if( ( $html = $cntl->batch() ) == '' ) {
96
+            return $this->setPsrResponse( $cntl->response() );
97 97
         }
98 98
 
99
-        $this->view->assign('content', $html);
99
+        $this->view->assign( 'content', $html );
100 100
         return $this->render();
101 101
     }
102 102
 
@@ -110,11 +110,11 @@  discard block
 block discarded – undo
110 110
     {
111 111
         $cntl = $this->createAdmin();
112 112
 
113
-        if (($html = $cntl->copy()) == '') {
114
-            return $this->setPsrResponse($cntl->response());
113
+        if( ( $html = $cntl->copy() ) == '' ) {
114
+            return $this->setPsrResponse( $cntl->response() );
115 115
         }
116 116
 
117
-        $this->view->assign('content', $html);
117
+        $this->view->assign( 'content', $html );
118 118
         return $this->render();
119 119
     }
120 120
 
@@ -128,11 +128,11 @@  discard block
 block discarded – undo
128 128
     {
129 129
         $cntl = $this->createAdmin();
130 130
 
131
-        if (($html = $cntl->create()) == '') {
132
-            return $this->setPsrResponse($cntl->response());
131
+        if( ( $html = $cntl->create() ) == '' ) {
132
+            return $this->setPsrResponse( $cntl->response() );
133 133
         }
134 134
 
135
-        $this->view->assign('content', $html);
135
+        $this->view->assign( 'content', $html );
136 136
         return $this->render();
137 137
     }
138 138
 
@@ -146,11 +146,11 @@  discard block
 block discarded – undo
146 146
     {
147 147
         $cntl = $this->createAdmin();
148 148
 
149
-        if (($html = $cntl->delete()) == '') {
150
-            return $this->setPsrResponse($cntl->response());
149
+        if( ( $html = $cntl->delete() ) == '' ) {
150
+            return $this->setPsrResponse( $cntl->response() );
151 151
         }
152 152
 
153
-        $this->view->assign('content', $html);
153
+        $this->view->assign( 'content', $html );
154 154
         return $this->render();
155 155
     }
156 156
 
@@ -164,11 +164,11 @@  discard block
 block discarded – undo
164 164
     {
165 165
         $cntl = $this->createAdmin();
166 166
 
167
-        if (($html = $cntl->export()) == '') {
168
-            return $this->setPsrResponse($cntl->response());
167
+        if( ( $html = $cntl->export() ) == '' ) {
168
+            return $this->setPsrResponse( $cntl->response() );
169 169
         }
170 170
 
171
-        $this->view->assign('content', $html);
171
+        $this->view->assign( 'content', $html );
172 172
         return $this->render();
173 173
     }
174 174
 
@@ -182,11 +182,11 @@  discard block
 block discarded – undo
182 182
     {
183 183
         $cntl = $this->createAdmin();
184 184
 
185
-        if (($html = $cntl->get()) == '') {
186
-            return $this->setPsrResponse($cntl->response());
185
+        if( ( $html = $cntl->get() ) == '' ) {
186
+            return $this->setPsrResponse( $cntl->response() );
187 187
         }
188 188
 
189
-        $this->view->assign('content', $html);
189
+        $this->view->assign( 'content', $html );
190 190
         return $this->render();
191 191
     }
192 192
 
@@ -200,11 +200,11 @@  discard block
 block discarded – undo
200 200
     {
201 201
         $cntl = $this->createAdmin();
202 202
 
203
-        if (($html = $cntl->import()) == '') {
204
-            return $this->setPsrResponse($cntl->response());
203
+        if( ( $html = $cntl->import() ) == '' ) {
204
+            return $this->setPsrResponse( $cntl->response() );
205 205
         }
206 206
 
207
-        $this->view->assign('content', $html);
207
+        $this->view->assign( 'content', $html );
208 208
         return $this->render();
209 209
     }
210 210
 
@@ -218,11 +218,11 @@  discard block
 block discarded – undo
218 218
     {
219 219
         $cntl = $this->createAdmin();
220 220
 
221
-        if (($html = $cntl->save()) == '') {
222
-            return $this->setPsrResponse($cntl->response());
221
+        if( ( $html = $cntl->save() ) == '' ) {
222
+            return $this->setPsrResponse( $cntl->response() );
223 223
         }
224 224
 
225
-        $this->view->assign('content', $html);
225
+        $this->view->assign( 'content', $html );
226 226
         return $this->render();
227 227
     }
228 228
 
@@ -236,11 +236,11 @@  discard block
 block discarded – undo
236 236
     {
237 237
         $cntl = $this->createAdmin();
238 238
 
239
-        if (($html = $cntl->search()) == '') {
240
-            return $this->setPsrResponse($cntl->response());
239
+        if( ( $html = $cntl->search() ) == '' ) {
240
+            return $this->setPsrResponse( $cntl->response() );
241 241
         }
242 242
 
243
-        $this->view->assign('content', $html);
243
+        $this->view->assign( 'content', $html );
244 244
         return $this->render();
245 245
     }
246 246
 
@@ -254,24 +254,24 @@  discard block
 block discarded – undo
254 254
     {
255 255
         $resource = 'dashboard';
256 256
 
257
-        if ($this->request->hasArgument('resource')
258
-            && ($value = $this->request->getArgument('resource')) != ''
257
+        if( $this->request->hasArgument( 'resource' )
258
+            && ( $value = $this->request->getArgument( 'resource' ) ) != ''
259 259
         ) {
260 260
             $resource = $value;
261 261
         }
262 262
 
263 263
         $aimeos = Base::aimeos();
264
-        $context = $this->contextBackend('admin/jqadm/templates');
264
+        $context = $this->contextBackend( 'admin/jqadm/templates' );
265 265
 
266 266
         $view = $context->view();
267 267
 
268 268
         $view->aimeosType = 'TYPO3';
269 269
         $view->aimeosVersion = Base::getVersion();
270
-        $view->aimeosExtensions = implode(',', $aimeos->getExtensions());
270
+        $view->aimeosExtensions = implode( ',', $aimeos->getExtensions() );
271 271
 
272
-        $context->setView($view);
272
+        $context->setView( $view );
273 273
 
274
-        return \Aimeos\Admin\JQAdm::create($context, $aimeos, $resource);
274
+        return \Aimeos\Admin\JQAdm::create( $context, $aimeos, $resource );
275 275
     }
276 276
 
277 277
 
@@ -280,10 +280,10 @@  discard block
 block discarded – undo
280 280
      */
281 281
     protected function render()
282 282
     {
283
-        if (isset($this->responseFactory)) { // TYPO3 11
283
+        if( isset( $this->responseFactory ) ) { // TYPO3 11
284 284
             return $this->responseFactory->createResponse()
285
-                ->withAddedHeader('Content-Type', 'text/html; charset=utf-8')
286
-                ->withBody($this->streamFactory->createStream($this->view->render()));
285
+                ->withAddedHeader( 'Content-Type', 'text/html; charset=utf-8' )
286
+                ->withBody( $this->streamFactory->createStream( $this->view->render() ) );
287 287
         }
288 288
     }
289 289
 
@@ -295,9 +295,9 @@  discard block
 block discarded – undo
295 295
      */
296 296
     protected function resolveView()
297 297
     {
298
-        if ($this->request->hasArgument('locale') && ($value = $this->request->getArgument('locale')) != '') {
298
+        if( $this->request->hasArgument( 'locale' ) && ( $value = $this->request->getArgument( 'locale' ) ) != '' ) {
299 299
             $lang = $value;
300
-        } elseif (isset($GLOBALS['BE_USER']->uc['lang']) && $GLOBALS['BE_USER']->uc['lang'] != '') {
300
+        } elseif( isset( $GLOBALS['BE_USER']->uc['lang'] ) && $GLOBALS['BE_USER']->uc['lang'] != '' ) {
301 301
             $lang = $GLOBALS['BE_USER']->uc['lang'];
302 302
         } else {
303 303
             $lang = 'en';
@@ -305,9 +305,9 @@  discard block
 block discarded – undo
305 305
 
306 306
         $view = \TYPO3\CMS\Extbase\Mvc\Controller\ActionController::resolveView();
307 307
 
308
-        $view->assign('theme', ($_COOKIE['aimeos_backend_theme'] ?? null) == 'dark' ? 'dark' : 'light');
309
-        $view->assign('localeDir', in_array($lang, ['ar', 'az', 'dv', 'fa', 'he', 'ku', 'ur']) ? 'rtl' : 'ltr');
310
-        $view->assign('locale', $lang);
308
+        $view->assign( 'theme', ( $_COOKIE['aimeos_backend_theme'] ?? null ) == 'dark' ? 'dark' : 'light' );
309
+        $view->assign( 'localeDir', in_array( $lang, ['ar', 'az', 'dv', 'fa', 'he', 'ku', 'ur'] ) ? 'rtl' : 'ltr' );
310
+        $view->assign( 'locale', $lang );
311 311
 
312 312
         return $view;
313 313
     }
@@ -319,14 +319,14 @@  discard block
 block discarded – undo
319 319
      * @param \Psr\Http\Message\ResponseInterface $response PSR-7 response object
320 320
      * @return string Generated output
321 321
      */
322
-    protected function setPsrResponse(\Psr\Http\Message\ResponseInterface $response)
322
+    protected function setPsrResponse( \Psr\Http\Message\ResponseInterface $response )
323 323
     {
324
-        if (!isset($this->responseFactory)) { // TYPO3 10
325
-            $this->response->setStatus($response->getStatusCode());
324
+        if( !isset( $this->responseFactory ) ) { // TYPO3 10
325
+            $this->response->setStatus( $response->getStatusCode() );
326 326
 
327
-            foreach ($response->getHeaders() as $key => $value) {
328
-                foreach ((array) $value as $val) {
329
-                    $this->response->setHeader($key, $val);
327
+            foreach( $response->getHeaders() as $key => $value ) {
328
+                foreach( (array) $value as $val ) {
329
+                    $this->response->setHeader( $key, $val );
330 330
                 }
331 331
             }
332 332
 
Please login to merge, or discard this patch.
Classes/Controller/CheckoutController.php 2 patches
Spacing   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -27,8 +27,8 @@  discard block
 block discarded – undo
27 27
      */
28 28
     public function indexAction()
29 29
     {
30
-        $client = \Aimeos\Client\Html::create($this->context(), 'checkout/standard');
31
-        return $this->getClientOutput($client);
30
+        $client = \Aimeos\Client\Html::create( $this->context(), 'checkout/standard' );
31
+        return $this->getClientOutput( $client );
32 32
     }
33 33
 
34 34
 
@@ -38,29 +38,29 @@  discard block
 block discarded – undo
38 38
     public function confirmAction()
39 39
     {
40 40
         $context = $this->context();
41
-        $client = \Aimeos\Client\Html::create($context, 'checkout/confirm');
41
+        $client = \Aimeos\Client\Html::create( $context, 'checkout/confirm' );
42 42
 
43 43
         $view = $context->view();
44
-        $param = array_merge(GeneralUtility::_GET(), GeneralUtility::_POST());
45
-        $helper = new \Aimeos\Base\View\Helper\Param\Standard($view, $param);
46
-        $view->addHelper('param', $helper);
44
+        $param = array_merge( GeneralUtility::_GET(), GeneralUtility::_POST() );
45
+        $helper = new \Aimeos\Base\View\Helper\Param\Standard( $view, $param );
46
+        $view->addHelper( 'param', $helper );
47 47
 
48
-        $client->setView($view)->init();
48
+        $client->setView( $view )->init();
49 49
 
50 50
         $header = (string) $client->header();
51 51
         $html = (string) $client->body();
52 52
 
53
-        if (!isset($this->responseFactory)) // TYPO3 10
53
+        if( !isset( $this->responseFactory ) ) // TYPO3 10
54 54
         {
55
-            $this->response->addAdditionalHeaderData($header);
55
+            $this->response->addAdditionalHeaderData( $header );
56 56
             return $html;
57 57
         }
58 58
 
59
-        GeneralUtility::makeInstance(\TYPO3\CMS\Core\Page\PageRenderer::class)->addHeaderData($header);
59
+        GeneralUtility::makeInstance( \TYPO3\CMS\Core\Page\PageRenderer::class )->addHeaderData( $header );
60 60
 
61 61
         return $this->responseFactory->createResponse()
62
-            ->withAddedHeader('Content-Type', 'text/html; charset=utf-8')
63
-            ->withBody($this->streamFactory->createStream($html));
62
+            ->withAddedHeader( 'Content-Type', 'text/html; charset=utf-8' )
63
+            ->withBody( $this->streamFactory->createStream( $html ) );
64 64
     }
65 65
 
66 66
 
@@ -71,37 +71,37 @@  discard block
 block discarded – undo
71 71
     {
72 72
         try {
73 73
             $context = $this->context();
74
-            $client = \Aimeos\Client\Html::create($context, 'checkout/update');
74
+            $client = \Aimeos\Client\Html::create( $context, 'checkout/update' );
75 75
 
76 76
             $view = $context->view();
77
-            $param = array_merge(GeneralUtility::_GET(), GeneralUtility::_POST());
78
-            $helper = new \Aimeos\Base\View\Helper\Param\Standard($view, $param);
79
-            $view->addHelper('param', $helper);
77
+            $param = array_merge( GeneralUtility::_GET(), GeneralUtility::_POST() );
78
+            $helper = new \Aimeos\Base\View\Helper\Param\Standard( $view, $param );
79
+            $view->addHelper( 'param', $helper );
80 80
 
81
-            $client->setView($view)->init();
81
+            $client->setView( $view )->init();
82 82
 
83 83
             $header = (string) $client->header();
84 84
             $html = (string) $client->body();
85 85
 
86
-            if (!isset($this->responseFactory)) // TYPO3 10
86
+            if( !isset( $this->responseFactory ) ) // TYPO3 10
87 87
             {
88
-                $this->response->addAdditionalHeaderData($header);
88
+                $this->response->addAdditionalHeaderData( $header );
89 89
                 return $html;
90 90
             }
91 91
 
92
-            GeneralUtility::makeInstance(\TYPO3\CMS\Core\Page\PageRenderer::class)->addHeaderData($header);
92
+            GeneralUtility::makeInstance( \TYPO3\CMS\Core\Page\PageRenderer::class )->addHeaderData( $header );
93 93
 
94 94
             return $this->responseFactory->createResponse()
95
-                ->withBody($this->streamFactory->createStream($html));
96
-        } catch(\Exception $e) {
97
-            if (!isset($this->responseFactory)) // TYPO3 10
95
+                ->withBody( $this->streamFactory->createStream( $html ) );
96
+        } catch( \Exception $e ) {
97
+            if( !isset( $this->responseFactory ) ) // TYPO3 10
98 98
             {
99
-                @header('HTTP/1.1 500 Internal server error', true, 500);
99
+                @header( 'HTTP/1.1 500 Internal server error', true, 500 );
100 100
                 return 'Error: ' . $e->getMessage();
101 101
             }
102 102
 
103
-            return $this->responseFactory->createResponse()->withStatus(500)
104
-                ->withBody($this->streamFactory->createStream('Error: ' . $e->getMessage()));
103
+            return $this->responseFactory->createResponse()->withStatus( 500 )
104
+                ->withBody( $this->streamFactory->createStream( 'Error: ' . $e->getMessage() ) );
105 105
         }
106 106
     }
107 107
 }
Please login to merge, or discard this patch.
Braces   +14 added lines, -5 removed lines patch added patch discarded remove patch
@@ -50,9 +50,11 @@  discard block
 block discarded – undo
50 50
         $header = (string) $client->header();
51 51
         $html = (string) $client->body();
52 52
 
53
-        if (!isset($this->responseFactory)) // TYPO3 10
53
+        if (!isset($this->responseFactory)) {
54
+            // TYPO3 10
54 55
         {
55 56
             $this->response->addAdditionalHeaderData($header);
57
+        }
56 58
             return $html;
57 59
         }
58 60
 
@@ -69,7 +71,8 @@  discard block
 block discarded – undo
69 71
      */
70 72
     public function updateAction()
71 73
     {
72
-        try {
74
+        try
75
+        {
73 76
             $context = $this->context();
74 77
             $client = \Aimeos\Client\Html::create($context, 'checkout/update');
75 78
 
@@ -83,9 +86,11 @@  discard block
 block discarded – undo
83 86
             $header = (string) $client->header();
84 87
             $html = (string) $client->body();
85 88
 
86
-            if (!isset($this->responseFactory)) // TYPO3 10
89
+            if (!isset($this->responseFactory)) {
90
+                // TYPO3 10
87 91
             {
88 92
                 $this->response->addAdditionalHeaderData($header);
93
+            }
89 94
                 return $html;
90 95
             }
91 96
 
@@ -93,10 +98,14 @@  discard block
 block discarded – undo
93 98
 
94 99
             return $this->responseFactory->createResponse()
95 100
                 ->withBody($this->streamFactory->createStream($html));
96
-        } catch(\Exception $e) {
97
-            if (!isset($this->responseFactory)) // TYPO3 10
101
+        }
102
+        catch(\Exception $e)
103
+        {
104
+            if (!isset($this->responseFactory)) {
105
+                // TYPO3 10
98 106
             {
99 107
                 @header('HTTP/1.1 500 Internal server error', true, 500);
108
+            }
100 109
                 return 'Error: ' . $e->getMessage();
101 110
             }
102 111
 
Please login to merge, or discard this patch.
Classes/Controller/AccountController.php 2 patches
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -26,8 +26,8 @@  discard block
 block discarded – undo
26 26
      */
27 27
     public function basketAction()
28 28
     {
29
-        $client = \Aimeos\Client\Html::create($this->context(), 'account/basket');
30
-        return $this->getClientOutput($client);
29
+        $client = \Aimeos\Client\Html::create( $this->context(), 'account/basket' );
30
+        return $this->getClientOutput( $client );
31 31
     }
32 32
 
33 33
 
@@ -39,17 +39,17 @@  discard block
 block discarded – undo
39 39
         $context = $this->context();
40 40
         $view = $context->view();
41 41
 
42
-        $client = \Aimeos\Client\Html::create($context, 'account/download');
43
-        $client->setView($view)->init();
42
+        $client = \Aimeos\Client\Html::create( $context, 'account/download' );
43
+        $client->setView( $view )->init();
44 44
 
45
-        if (!isset($this->responseFactory)) // TYPO3 10
45
+        if( !isset( $this->responseFactory ) ) // TYPO3 10
46 46
         {
47 47
             $response = $view->response();
48 48
 
49
-            $this->response->setStatus($response->getStatusCode());
49
+            $this->response->setStatus( $response->getStatusCode() );
50 50
 
51
-            foreach ($response->getHeaders() as $key => $value) {
52
-                $this->response->setHeader($key, implode(', ', $value));
51
+            foreach( $response->getHeaders() as $key => $value ) {
52
+                $this->response->setHeader( $key, implode( ', ', $value ) );
53 53
             }
54 54
 
55 55
             return (string) $response->getBody();
@@ -64,8 +64,8 @@  discard block
 block discarded – undo
64 64
      */
65 65
     public function historyAction()
66 66
     {
67
-        $client = \Aimeos\Client\Html::create($this->context(), 'account/history');
68
-        return $this->getClientOutput($client);
67
+        $client = \Aimeos\Client\Html::create( $this->context(), 'account/history' );
68
+        return $this->getClientOutput( $client );
69 69
     }
70 70
 
71 71
 
@@ -74,8 +74,8 @@  discard block
 block discarded – undo
74 74
      */
75 75
     public function favoriteAction()
76 76
     {
77
-        $client = \Aimeos\Client\Html::create($this->context(), 'account/favorite');
78
-        return $this->getClientOutput($client);
77
+        $client = \Aimeos\Client\Html::create( $this->context(), 'account/favorite' );
78
+        return $this->getClientOutput( $client );
79 79
     }
80 80
 
81 81
 
@@ -84,8 +84,8 @@  discard block
 block discarded – undo
84 84
      */
85 85
     public function profileAction()
86 86
     {
87
-        $client = \Aimeos\Client\Html::create($this->context(), 'account/profile');
88
-        return $this->getClientOutput($client);
87
+        $client = \Aimeos\Client\Html::create( $this->context(), 'account/profile' );
88
+        return $this->getClientOutput( $client );
89 89
     }
90 90
 
91 91
 
@@ -94,8 +94,8 @@  discard block
 block discarded – undo
94 94
      */
95 95
     public function reviewAction()
96 96
     {
97
-        $client = \Aimeos\Client\Html::create($this->context(), 'account/review');
98
-        return $this->getClientOutput($client);
97
+        $client = \Aimeos\Client\Html::create( $this->context(), 'account/review' );
98
+        return $this->getClientOutput( $client );
99 99
     }
100 100
 
101 101
 
@@ -104,8 +104,8 @@  discard block
 block discarded – undo
104 104
      */
105 105
     public function subscriptionAction()
106 106
     {
107
-        $client = \Aimeos\Client\Html::create($this->context(), 'account/subscription');
108
-        return $this->getClientOutput($client);
107
+        $client = \Aimeos\Client\Html::create( $this->context(), 'account/subscription' );
108
+        return $this->getClientOutput( $client );
109 109
     }
110 110
 
111 111
 
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
      */
115 115
     public function watchAction()
116 116
     {
117
-        $client = \Aimeos\Client\Html::create($this->context(), 'account/watch');
118
-        return $this->getClientOutput($client);
117
+        $client = \Aimeos\Client\Html::create( $this->context(), 'account/watch' );
118
+        return $this->getClientOutput( $client );
119 119
     }
120 120
 }
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,9 +42,11 @@
 block discarded – undo
42 42
         $client = \Aimeos\Client\Html::create($context, 'account/download');
43 43
         $client->setView($view)->init();
44 44
 
45
-        if (!isset($this->responseFactory)) // TYPO3 10
45
+        if (!isset($this->responseFactory)) {
46
+            // TYPO3 10
46 47
         {
47 48
             $response = $view->response();
49
+        }
48 50
 
49 51
             $this->response->setStatus($response->getStatusCode());
50 52
 
Please login to merge, or discard this patch.
Classes/Controller/CatalogController.php 2 patches
Spacing   +64 added lines, -64 removed lines patch added patch discarded remove patch
@@ -27,8 +27,8 @@  discard block
 block discarded – undo
27 27
      */
28 28
     public function attributeAction()
29 29
     {
30
-        $client = \Aimeos\Client\Html::create($this->context(), 'catalog/attribute');
31
-        return $this->getClientOutput($client);
30
+        $client = \Aimeos\Client\Html::create( $this->context(), 'catalog/attribute' );
31
+        return $this->getClientOutput( $client );
32 32
     }
33 33
 
34 34
 
@@ -37,18 +37,18 @@  discard block
 block discarded – undo
37 37
      */
38 38
     public function countAction()
39 39
     {
40
-        $client = \Aimeos\Client\Html::create($this->context(), 'catalog/count');
40
+        $client = \Aimeos\Client\Html::create( $this->context(), 'catalog/count' );
41 41
 
42
-        if (!isset($this->responseFactory)) { // TYPO3 10
43
-            return $this->getClientOutput($client);
42
+        if( !isset( $this->responseFactory ) ) { // TYPO3 10
43
+            return $this->getClientOutput( $client );
44 44
         }
45 45
 
46
-        $client->setView($this->context()->view())->init();
46
+        $client->setView( $this->context()->view() )->init();
47 47
 
48 48
         return $this->responseFactory->createResponse()
49
-            ->withAddedHeader('Content-Type', 'application/javascript')
50
-            ->withAddedHeader('Cache-Control', 'public, max-age=300')
51
-            ->withBody($this->streamFactory->createStream((string) $client->body()));
49
+            ->withAddedHeader( 'Content-Type', 'application/javascript' )
50
+            ->withAddedHeader( 'Cache-Control', 'public, max-age=300' )
51
+            ->withBody( $this->streamFactory->createStream( (string) $client->body() ) );
52 52
     }
53 53
 
54 54
 
@@ -59,10 +59,10 @@  discard block
 block discarded – undo
59 59
     {
60 60
         try {
61 61
             $this->removeMetatags();
62
-            $client = \Aimeos\Client\Html::create($this->context(), 'catalog/detail');
63
-            return $this->getClientOutput($client);
64
-        } catch(\Exception $e) {
65
-            $this->exception($e);
62
+            $client = \Aimeos\Client\Html::create( $this->context(), 'catalog/detail' );
63
+            return $this->getClientOutput( $client );
64
+        } catch( \Exception $e ) {
65
+            $this->exception( $e );
66 66
         }
67 67
     }
68 68
 
@@ -72,8 +72,8 @@  discard block
 block discarded – undo
72 72
      */
73 73
     public function filterAction()
74 74
     {
75
-        $client = \Aimeos\Client\Html::create($this->context(), 'catalog/filter');
76
-        return $this->getClientOutput($client);
75
+        $client = \Aimeos\Client\Html::create( $this->context(), 'catalog/filter' );
76
+        return $this->getClientOutput( $client );
77 77
     }
78 78
 
79 79
 
@@ -83,8 +83,8 @@  discard block
 block discarded – undo
83 83
     public function homeAction()
84 84
     {
85 85
         $this->removeMetatags();
86
-        $client = \Aimeos\Client\Html::create($this->context(), 'catalog/home');
87
-        return $this->getClientOutput($client);
86
+        $client = \Aimeos\Client\Html::create( $this->context(), 'catalog/home' );
87
+        return $this->getClientOutput( $client );
88 88
     }
89 89
 
90 90
 
@@ -94,8 +94,8 @@  discard block
 block discarded – undo
94 94
     public function listAction()
95 95
     {
96 96
         $this->removeMetatags();
97
-        $client = \Aimeos\Client\Html::create($this->context(), 'catalog/lists');
98
-        return $this->getClientOutput($client);
97
+        $client = \Aimeos\Client\Html::create( $this->context(), 'catalog/lists' );
98
+        return $this->getClientOutput( $client );
99 99
     }
100 100
 
101 101
 
@@ -104,8 +104,8 @@  discard block
 block discarded – undo
104 104
      */
105 105
     public function priceAction()
106 106
     {
107
-        $client = \Aimeos\Client\Html::create($this->context(), 'catalog/price');
108
-        return $this->getClientOutput($client);
107
+        $client = \Aimeos\Client\Html::create( $this->context(), 'catalog/price' );
108
+        return $this->getClientOutput( $client );
109 109
     }
110 110
 
111 111
 
@@ -114,8 +114,8 @@  discard block
 block discarded – undo
114 114
      */
115 115
     public function searchAction()
116 116
     {
117
-        $client = \Aimeos\Client\Html::create($this->context(), 'catalog/search');
118
-        return $this->getClientOutput($client);
117
+        $client = \Aimeos\Client\Html::create( $this->context(), 'catalog/search' );
118
+        return $this->getClientOutput( $client );
119 119
     }
120 120
 
121 121
 
@@ -124,8 +124,8 @@  discard block
 block discarded – undo
124 124
      */
125 125
     public function sessionAction()
126 126
     {
127
-        $client = \Aimeos\Client\Html::create($this->context(), 'catalog/session');
128
-        return $this->getClientOutput($client);
127
+        $client = \Aimeos\Client\Html::create( $this->context(), 'catalog/session' );
128
+        return $this->getClientOutput( $client );
129 129
     }
130 130
 
131 131
 
@@ -134,8 +134,8 @@  discard block
 block discarded – undo
134 134
      */
135 135
     public function stageAction()
136 136
     {
137
-        $client = \Aimeos\Client\Html::create($this->context(), 'catalog/stage');
138
-        return $this->getClientOutput($client);
137
+        $client = \Aimeos\Client\Html::create( $this->context(), 'catalog/stage' );
138
+        return $this->getClientOutput( $client );
139 139
     }
140 140
 
141 141
 
@@ -144,18 +144,18 @@  discard block
 block discarded – undo
144 144
      */
145 145
     public function stockAction()
146 146
     {
147
-        $client = \Aimeos\Client\Html::create($this->context(), 'catalog/stock');
147
+        $client = \Aimeos\Client\Html::create( $this->context(), 'catalog/stock' );
148 148
 
149
-        if (!isset($this->responseFactory)) { // TYPO3 10
150
-            return $this->getClientOutput($client);
149
+        if( !isset( $this->responseFactory ) ) { // TYPO3 10
150
+            return $this->getClientOutput( $client );
151 151
         }
152 152
 
153
-        $client->setView($this->context()->view())->init();
153
+        $client->setView( $this->context()->view() )->init();
154 154
 
155 155
         return $this->responseFactory->createResponse()
156
-            ->withAddedHeader('Content-Type', 'application/javascript')
157
-            ->withAddedHeader('Cache-Control', 'public, max-age=300')
158
-            ->withBody($this->streamFactory->createStream((string) $client->body()));
156
+            ->withAddedHeader( 'Content-Type', 'application/javascript' )
157
+            ->withAddedHeader( 'Cache-Control', 'public, max-age=300' )
158
+            ->withBody( $this->streamFactory->createStream( (string) $client->body() ) );
159 159
     }
160 160
 
161 161
 
@@ -164,18 +164,18 @@  discard block
 block discarded – undo
164 164
      */
165 165
     public function suggestAction()
166 166
     {
167
-        $client = \Aimeos\Client\Html::create($this->context(), 'catalog/suggest');
167
+        $client = \Aimeos\Client\Html::create( $this->context(), 'catalog/suggest' );
168 168
 
169
-        if (!isset($this->responseFactory)) { // TYPO3 10
170
-            return $this->getClientOutput($client);
169
+        if( !isset( $this->responseFactory ) ) { // TYPO3 10
170
+            return $this->getClientOutput( $client );
171 171
         }
172 172
 
173
-        $client->setView($this->context()->view())->init();
173
+        $client->setView( $this->context()->view() )->init();
174 174
 
175 175
         return $this->responseFactory->createResponse()
176
-            ->withAddedHeader('Content-Type', 'application/json')
177
-            ->withAddedHeader('Cache-Control', 'public, max-age=300')
178
-            ->withBody($this->streamFactory->createStream((string) $client->body()));
176
+            ->withAddedHeader( 'Content-Type', 'application/json' )
177
+            ->withAddedHeader( 'Cache-Control', 'public, max-age=300' )
178
+            ->withBody( $this->streamFactory->createStream( (string) $client->body() ) );
179 179
     }
180 180
 
181 181
 
@@ -184,8 +184,8 @@  discard block
 block discarded – undo
184 184
      */
185 185
     public function supplierAction()
186 186
     {
187
-        $client = \Aimeos\Client\Html::create($this->context(), 'catalog/supplier');
188
-        return $this->getClientOutput($client);
187
+        $client = \Aimeos\Client\Html::create( $this->context(), 'catalog/supplier' );
188
+        return $this->getClientOutput( $client );
189 189
     }
190 190
 
191 191
 
@@ -195,10 +195,10 @@  discard block
 block discarded – undo
195 195
     public function treeAction()
196 196
     {
197 197
         try {
198
-            $client = \Aimeos\Client\Html::create($this->context(), 'catalog/tree');
199
-            return $this->getClientOutput($client);
200
-        } catch(\Exception $e) {
201
-            $this->exception($e);
198
+            $client = \Aimeos\Client\Html::create( $this->context(), 'catalog/tree' );
199
+            return $this->getClientOutput( $client );
200
+        } catch( \Exception $e ) {
201
+            $this->exception( $e );
202 202
         }
203 203
     }
204 204
 
@@ -209,15 +209,15 @@  discard block
 block discarded – undo
209 209
      * @param \Exception $e Caught exception
210 210
      * @throws \Exception Thrown exception
211 211
      */
212
-    protected function exception(\Exception $e)
212
+    protected function exception( \Exception $e )
213 213
     {
214
-        if ($e->getCode() > 400) {
214
+        if( $e->getCode() > 400 ) {
215 215
             $name = \TYPO3\CMS\Frontend\Controller\ErrorController::class;
216 216
 
217
-            $response = GeneralUtility::makeInstance($name)->pageNotFoundAction(
217
+            $response = GeneralUtility::makeInstance( $name )->pageNotFoundAction(
218 218
                 $this->request, $e->getMessage(), ['code' => $e->getCode()]
219 219
             );
220
-            throw new \TYPO3\CMS\Core\Http\ImmediateResponseException($response);
220
+            throw new \TYPO3\CMS\Core\Http\ImmediateResponseException( $response );
221 221
         }
222 222
 
223 223
         throw $e;
@@ -229,24 +229,24 @@  discard block
 block discarded – undo
229 229
      */
230 230
     protected function removeMetatags()
231 231
     {
232
-        if (is_object($GLOBALS['TSFE']) && isset($GLOBALS['TSFE']->config['config'])) {
232
+        if( is_object( $GLOBALS['TSFE'] ) && isset( $GLOBALS['TSFE']->config['config'] ) ) {
233 233
             $GLOBALS['TSFE']->config['config']['disableCanonical'] = true;
234 234
             $GLOBALS['TSFE']->config['config']['noPageTitle'] = 2;
235 235
         }
236 236
 
237
-        if (class_exists('\TYPO3\CMS\Core\MetaTag\MetaTagManagerRegistry')
238
-            && !\Aimeos\Aimeos\Base::getExtConfig('typo3Metatags', true)
237
+        if( class_exists( '\TYPO3\CMS\Core\MetaTag\MetaTagManagerRegistry' )
238
+            && !\Aimeos\Aimeos\Base::getExtConfig( 'typo3Metatags', true )
239 239
         ) {
240
-            $registry = GeneralUtility::makeInstance('TYPO3\CMS\Core\MetaTag\MetaTagManagerRegistry');
241
-
242
-            $registry->getManagerForProperty('keywords')->removeProperty('keywords');
243
-            $registry->getManagerForProperty('description')->removeProperty('description');
244
-            $registry->getManagerForProperty('og:type')->removeProperty('og:type');
245
-            $registry->getManagerForProperty('og:title')->removeProperty('og:title');
246
-            $registry->getManagerForProperty('og:url')->removeProperty('og:url');
247
-            $registry->getManagerForProperty('og:description')->removeProperty('og:description');
248
-            $registry->getManagerForProperty('og:image')->removeProperty('og:image');
249
-            $registry->getManagerForProperty('twitter:card')->removeProperty('twitter:card');
240
+            $registry = GeneralUtility::makeInstance( 'TYPO3\CMS\Core\MetaTag\MetaTagManagerRegistry' );
241
+
242
+            $registry->getManagerForProperty( 'keywords' )->removeProperty( 'keywords' );
243
+            $registry->getManagerForProperty( 'description' )->removeProperty( 'description' );
244
+            $registry->getManagerForProperty( 'og:type' )->removeProperty( 'og:type' );
245
+            $registry->getManagerForProperty( 'og:title' )->removeProperty( 'og:title' );
246
+            $registry->getManagerForProperty( 'og:url' )->removeProperty( 'og:url' );
247
+            $registry->getManagerForProperty( 'og:description' )->removeProperty( 'og:description' );
248
+            $registry->getManagerForProperty( 'og:image' )->removeProperty( 'og:image' );
249
+            $registry->getManagerForProperty( 'twitter:card' )->removeProperty( 'twitter:card' );
250 250
         }
251 251
     }
252 252
 }
Please login to merge, or discard this patch.
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -57,11 +57,14 @@  discard block
 block discarded – undo
57 57
      */
58 58
     public function detailAction()
59 59
     {
60
-        try {
60
+        try
61
+        {
61 62
             $this->removeMetatags();
62 63
             $client = \Aimeos\Client\Html::create($this->context(), 'catalog/detail');
63 64
             return $this->getClientOutput($client);
64
-        } catch(\Exception $e) {
65
+        }
66
+        catch(\Exception $e)
67
+        {
65 68
             $this->exception($e);
66 69
         }
67 70
     }
@@ -194,10 +197,13 @@  discard block
 block discarded – undo
194 197
      */
195 198
     public function treeAction()
196 199
     {
197
-        try {
200
+        try
201
+        {
198 202
             $client = \Aimeos\Client\Html::create($this->context(), 'catalog/tree');
199 203
             return $this->getClientOutput($client);
200
-        } catch(\Exception $e) {
204
+        }
205
+        catch(\Exception $e)
206
+        {
201 207
             $this->exception($e);
202 208
         }
203 209
     }
Please login to merge, or discard this patch.
Classes/Controller/SupplierController.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -28,8 +28,8 @@  discard block
 block discarded – undo
28 28
     public function detailAction()
29 29
     {
30 30
         $this->removeMetatags();
31
-        $client = \Aimeos\Client\Html::create($this->context(), 'supplier/detail');
32
-        return $this->getClientOutput($client);
31
+        $client = \Aimeos\Client\Html::create( $this->context(), 'supplier/detail' );
32
+        return $this->getClientOutput( $client );
33 33
     }
34 34
 
35 35
 
@@ -38,19 +38,19 @@  discard block
 block discarded – undo
38 38
      */
39 39
     protected function removeMetatags()
40 40
     {
41
-        if (class_exists('\TYPO3\CMS\Core\MetaTag\MetaTagManagerRegistry')
42
-            && !\Aimeos\Aimeos\Base::getExtConfig('typo3Metatags', true)
41
+        if( class_exists( '\TYPO3\CMS\Core\MetaTag\MetaTagManagerRegistry' )
42
+            && !\Aimeos\Aimeos\Base::getExtConfig( 'typo3Metatags', true )
43 43
         ) {
44
-            $registry = GeneralUtility::makeInstance('TYPO3\CMS\Core\MetaTag\MetaTagManagerRegistry');
45
-
46
-            $registry->getManagerForProperty('keywords')->removeProperty('keywords');
47
-            $registry->getManagerForProperty('description')->removeProperty('description');
48
-            $registry->getManagerForProperty('og:type')->removeProperty('og:type');
49
-            $registry->getManagerForProperty('og:title')->removeProperty('og:title');
50
-            $registry->getManagerForProperty('og:url')->removeProperty('og:url');
51
-            $registry->getManagerForProperty('og:description')->removeProperty('og:description');
52
-            $registry->getManagerForProperty('og:image')->removeProperty('og:image');
53
-            $registry->getManagerForProperty('twitter:card')->removeProperty('twitter:card');
44
+            $registry = GeneralUtility::makeInstance( 'TYPO3\CMS\Core\MetaTag\MetaTagManagerRegistry' );
45
+
46
+            $registry->getManagerForProperty( 'keywords' )->removeProperty( 'keywords' );
47
+            $registry->getManagerForProperty( 'description' )->removeProperty( 'description' );
48
+            $registry->getManagerForProperty( 'og:type' )->removeProperty( 'og:type' );
49
+            $registry->getManagerForProperty( 'og:title' )->removeProperty( 'og:title' );
50
+            $registry->getManagerForProperty( 'og:url' )->removeProperty( 'og:url' );
51
+            $registry->getManagerForProperty( 'og:description' )->removeProperty( 'og:description' );
52
+            $registry->getManagerForProperty( 'og:image' )->removeProperty( 'og:image' );
53
+            $registry->getManagerForProperty( 'twitter:card' )->removeProperty( 'twitter:card' );
54 54
         }
55 55
     }
56 56
 }
Please login to merge, or discard this patch.
Classes/Controller/BasketController.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -26,8 +26,8 @@  discard block
 block discarded – undo
26 26
      */
27 27
     public function indexAction()
28 28
     {
29
-        $client = \Aimeos\Client\Html::create($this->context(), 'basket/standard');
30
-        return $this->getClientOutput($client);
29
+        $client = \Aimeos\Client\Html::create( $this->context(), 'basket/standard' );
30
+        return $this->getClientOutput( $client );
31 31
     }
32 32
 
33 33
 
@@ -36,8 +36,8 @@  discard block
 block discarded – undo
36 36
      */
37 37
     public function bulkAction()
38 38
     {
39
-        $client = \Aimeos\Client\Html::create($this->context(), 'basket/bulk');
40
-        return $this->getClientOutput($client);
39
+        $client = \Aimeos\Client\Html::create( $this->context(), 'basket/bulk' );
40
+        return $this->getClientOutput( $client );
41 41
     }
42 42
 
43 43
 
@@ -46,8 +46,8 @@  discard block
 block discarded – undo
46 46
      */
47 47
     public function smallAction()
48 48
     {
49
-        $client = \Aimeos\Client\Html::create($this->context(), 'basket/mini');
50
-        return $this->getClientOutput($client);
49
+        $client = \Aimeos\Client\Html::create( $this->context(), 'basket/mini' );
50
+        return $this->getClientOutput( $client );
51 51
     }
52 52
 
53 53
 
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      */
57 57
     public function relatedAction()
58 58
     {
59
-        $client = \Aimeos\Client\Html::create($this->context(), 'basket/related');
60
-        return $this->getClientOutput($client);
59
+        $client = \Aimeos\Client\Html::create( $this->context(), 'basket/related' );
60
+        return $this->getClientOutput( $client );
61 61
     }
62 62
 }
Please login to merge, or discard this patch.