@@ -194,9 +194,12 @@ |
||
194 | 194 | $psrRequest = new \Zend\Diactoros\ServerRequest(); |
195 | 195 | $flowRequest = $this->request->getHttpRequest(); |
196 | 196 | |
197 | - try { |
|
197 | + try |
|
198 | + { |
|
198 | 199 | $resource = $flowRequest->getContent( true ); |
199 | - } catch( \Neos\Flow\Http\Exception $exception ) { |
|
200 | + } |
|
201 | + catch( \Neos\Flow\Http\Exception $exception ) |
|
202 | + { |
|
200 | 203 | $resource = fopen( 'php://temp', 'rw' ); |
201 | 204 | fwrite( $resource, $flowRequest->getContent() ); |
202 | 205 | } |
@@ -236,8 +236,7 @@ |
||
236 | 236 | { |
237 | 237 | $i18n = $this->i18n->get( array( $langid ) ); |
238 | 238 | $translation = $i18n[$langid]; |
239 | - } |
|
240 | - else |
|
239 | + } else |
|
241 | 240 | { |
242 | 241 | $translation = new \Aimeos\MW\Translation\None( 'en' ); |
243 | 242 | } |
@@ -71,9 +71,12 @@ |
||
71 | 71 | { |
72 | 72 | $localeManager = \Aimeos\MShop::create( $context, 'locale' ); |
73 | 73 | |
74 | - try { |
|
74 | + try |
|
75 | + { |
|
75 | 76 | $localeItem = $localeManager->bootstrap( $site, '', '', false, null, true ); |
76 | - } catch( \Aimeos\MShop\Exception $e ) { |
|
77 | + } |
|
78 | + catch( \Aimeos\MShop\Exception $e ) |
|
79 | + { |
|
77 | 80 | $localeItem = $localeManager->createItem(); |
78 | 81 | } |
79 | 82 |
@@ -194,9 +194,12 @@ |
||
194 | 194 | $psrRequest = new \Zend\Diactoros\ServerRequest(); |
195 | 195 | $flowRequest = $this->request->getHttpRequest(); |
196 | 196 | |
197 | - try { |
|
197 | + try |
|
198 | + { |
|
198 | 199 | $resource = $flowRequest->getContent( true ); |
199 | - } catch( \Neos\Flow\Http\Exception $exception ) { |
|
200 | + } |
|
201 | + catch( \Neos\Flow\Http\Exception $exception ) |
|
202 | + { |
|
200 | 203 | $resource = fopen( 'php://temp', 'rw' ); |
201 | 204 | fwrite( $resource, $flowRequest->getContent() ); |
202 | 205 | } |