Completed
Push — master ( 8b8334...2005c2 )
by Aimeos
07:11
created
client/html/src/Client/Html/Catalog/Filter/Factory.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 	 * @return \Aimeos\Client\Html\Iface Filter part implementing \Aimeos\Client\Html\Iface
32 32
 	 * @throws \Aimeos\Client\Html\Exception If requested client implementation couldn't be found or initialisation fails
33 33
 	 */
34
-	public static function createClient( \Aimeos\MShop\Context\Item\Iface $context, array $templatePaths, $name = null )
34
+	public static function createClient(\Aimeos\MShop\Context\Item\Iface $context, array $templatePaths, $name = null)
35 35
 	{
36 36
 		/** client/html/catalog/filter/name
37 37
 		 * Class name of the used catalog filter client implementation
@@ -66,22 +66,22 @@  discard block
 block discarded – undo
66 66
 		 * @since 2014.03
67 67
 		 * @category Developer
68 68
 		 */
69
-		if( $name === null ) {
70
-			$name = $context->getConfig()->get( 'client/html/catalog/filter/name', 'Standard' );
69
+		if ($name === null) {
70
+			$name = $context->getConfig()->get('client/html/catalog/filter/name', 'Standard');
71 71
 		}
72 72
 
73
-		if( ctype_alnum( $name ) === false )
73
+		if (ctype_alnum($name) === false)
74 74
 		{
75
-			$classname = is_string( $name ) ? '\\Aimeos\\Client\\Html\\Catalog\\Filter\\' . $name : '<not a string>';
76
-			throw new \Aimeos\Client\Html\Exception( sprintf( 'Invalid characters in class name "%1$s"', $classname ) );
75
+			$classname = is_string($name) ? '\\Aimeos\\Client\\Html\\Catalog\\Filter\\'.$name : '<not a string>';
76
+			throw new \Aimeos\Client\Html\Exception(sprintf('Invalid characters in class name "%1$s"', $classname));
77 77
 		}
78 78
 
79 79
 		$iface = '\\Aimeos\\Client\\Html\\Iface';
80
-		$classname = '\\Aimeos\\Client\\Html\\Catalog\\Filter\\' . $name;
80
+		$classname = '\\Aimeos\\Client\\Html\\Catalog\\Filter\\'.$name;
81 81
 
82
-		$client = self::createClientBase( $context, $classname, $iface, $templatePaths );
82
+		$client = self::createClientBase($context, $classname, $iface, $templatePaths);
83 83
 
84
-		return self::addClientDecorators( $context, $client, $templatePaths, 'catalog/filter' );
84
+		return self::addClientDecorators($context, $client, $templatePaths, 'catalog/filter');
85 85
 	}
86 86
 }
87 87
 
Please login to merge, or discard this patch.
client/html/src/Client/Html/Catalog/Filter/Standard.php 1 patch
Spacing   +63 added lines, -63 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 	 * @since 2014.03
92 92
 	 * @category Developer
93 93
 	 */
94
-	private $subPartNames = array( 'search', 'tree', 'attribute' );
94
+	private $subPartNames = array('search', 'tree', 'attribute');
95 95
 	private $cache;
96 96
 
97 97
 
@@ -103,9 +103,9 @@  discard block
 block discarded – undo
103 103
 	 * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry)
104 104
 	 * @return string HTML code
105 105
 	 */
106
-	public function getBody( $uid = '', array &$tags = array(), &$expire = null )
106
+	public function getBody($uid = '', array &$tags = array(), &$expire = null)
107 107
 	{
108
-		$prefixes = array( 'f' );
108
+		$prefixes = array('f');
109 109
 		$context = $this->getContext();
110 110
 
111 111
 		/** client/html/catalog/filter
@@ -120,41 +120,41 @@  discard block
 block discarded – undo
120 120
 		 */
121 121
 		$confkey = 'client/html/catalog/filter';
122 122
 
123
-		if( $context->getUserId() != null || ( $html = $this->getCached( 'body', $uid, $prefixes, $confkey ) ) === null )
123
+		if ($context->getUserId() != null || ($html = $this->getCached('body', $uid, $prefixes, $confkey)) === null)
124 124
 		{
125 125
 			$view = $this->getView();
126 126
 
127 127
 			try
128 128
 			{
129
-				$view = $this->setViewParams( $view, $tags, $expire );
129
+				$view = $this->setViewParams($view, $tags, $expire);
130 130
 
131 131
 				$html = '';
132
-				foreach( $this->getSubClients() as $subclient ) {
133
-					$html .= $subclient->setView( $view )->getBody( $uid, $tags, $expire );
132
+				foreach ($this->getSubClients() as $subclient) {
133
+					$html .= $subclient->setView($view)->getBody($uid, $tags, $expire);
134 134
 				}
135 135
 				$view->filterBody = $html;
136 136
 			}
137
-			catch( \Aimeos\Client\Html\Exception $e )
137
+			catch (\Aimeos\Client\Html\Exception $e)
138 138
 			{
139
-				$error = array( $context->getI18n()->dt( 'client', $e->getMessage() ) );
140
-				$view->filterErrorList = $view->get( 'filterErrorList', array() ) + $error;
139
+				$error = array($context->getI18n()->dt('client', $e->getMessage()));
140
+				$view->filterErrorList = $view->get('filterErrorList', array()) + $error;
141 141
 			}
142
-			catch( \Aimeos\Controller\Frontend\Exception $e )
142
+			catch (\Aimeos\Controller\Frontend\Exception $e)
143 143
 			{
144
-				$error = array( $context->getI18n()->dt( 'controller/frontend', $e->getMessage() ) );
145
-				$view->filterErrorList = $view->get( 'filterErrorList', array() ) + $error;
144
+				$error = array($context->getI18n()->dt('controller/frontend', $e->getMessage()));
145
+				$view->filterErrorList = $view->get('filterErrorList', array()) + $error;
146 146
 			}
147
-			catch( \Aimeos\MShop\Exception $e )
147
+			catch (\Aimeos\MShop\Exception $e)
148 148
 			{
149
-				$error = array( $context->getI18n()->dt( 'mshop', $e->getMessage() ) );
150
-				$view->filterErrorList = $view->get( 'filterErrorList', array() ) + $error;
149
+				$error = array($context->getI18n()->dt('mshop', $e->getMessage()));
150
+				$view->filterErrorList = $view->get('filterErrorList', array()) + $error;
151 151
 			}
152
-			catch( \Exception $e )
152
+			catch (\Exception $e)
153 153
 			{
154
-				$context->getLogger()->log( $e->getMessage() . PHP_EOL . $e->getTraceAsString() );
154
+				$context->getLogger()->log($e->getMessage().PHP_EOL.$e->getTraceAsString());
155 155
 
156
-				$error = array( $context->getI18n()->dt( 'client', 'A non-recoverable error occured' ) );
157
-				$view->filterErrorList = $view->get( 'filterErrorList', array() ) + $error;
156
+				$error = array($context->getI18n()->dt('client', 'A non-recoverable error occured'));
157
+				$view->filterErrorList = $view->get('filterErrorList', array()) + $error;
158 158
 			}
159 159
 
160 160
 			/** client/html/catalog/filter/standard/template-body
@@ -180,13 +180,13 @@  discard block
 block discarded – undo
180 180
 			$tplconf = 'client/html/catalog/filter/standard/template-body';
181 181
 			$default = 'catalog/filter/body-default.php';
182 182
 
183
-			$html = $view->render( $view->config( $tplconf, $default ) );
183
+			$html = $view->render($view->config($tplconf, $default));
184 184
 
185
-			$this->setCached( 'body', $uid, $prefixes, $confkey, $html, $tags, $expire );
185
+			$this->setCached('body', $uid, $prefixes, $confkey, $html, $tags, $expire);
186 186
 		}
187 187
 		else
188 188
 		{
189
-			$html = $this->modifyBody( $html, $uid );
189
+			$html = $this->modifyBody($html, $uid);
190 190
 		}
191 191
 
192 192
 		return $html;
@@ -201,35 +201,35 @@  discard block
 block discarded – undo
201 201
 	 * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry)
202 202
 	 * @return string|null String including HTML tags for the header on error
203 203
 	 */
204
-	public function getHeader( $uid = '', array &$tags = array(), &$expire = null )
204
+	public function getHeader($uid = '', array &$tags = array(), &$expire = null)
205 205
 	{
206
-		if( self::$headerSingleton !== null ) {
206
+		if (self::$headerSingleton !== null) {
207 207
 			return '';
208 208
 		}
209 209
 
210 210
 		self::$headerSingleton = true;
211 211
 
212
-		$prefixes = array( 'f' );
212
+		$prefixes = array('f');
213 213
 		$context = $this->getContext();
214 214
 		$confkey = 'client/html/catalog/filter';
215 215
 
216
-		if( $context->getUserId() != null || ( $html = $this->getCached( 'header', $uid, $prefixes, $confkey ) ) === null )
216
+		if ($context->getUserId() != null || ($html = $this->getCached('header', $uid, $prefixes, $confkey)) === null)
217 217
 		{
218 218
 			$view = $this->getView();
219 219
 
220 220
 			try
221 221
 			{
222
-				$view = $this->setViewParams( $view, $tags, $expire );
222
+				$view = $this->setViewParams($view, $tags, $expire);
223 223
 
224 224
 				$html = '';
225
-				foreach( $this->getSubClients() as $subclient ) {
226
-					$html .= $subclient->setView( $view )->getHeader( $uid, $tags, $expire );
225
+				foreach ($this->getSubClients() as $subclient) {
226
+					$html .= $subclient->setView($view)->getHeader($uid, $tags, $expire);
227 227
 				}
228 228
 				$view->filterHeader = $html;
229 229
 			}
230
-			catch( \Exception $e )
230
+			catch (\Exception $e)
231 231
 			{
232
-				$context->getLogger()->log( $e->getMessage() . PHP_EOL . $e->getTraceAsString() );
232
+				$context->getLogger()->log($e->getMessage().PHP_EOL.$e->getTraceAsString());
233 233
 			}
234 234
 
235 235
 			/** client/html/catalog/filter/standard/template-header
@@ -256,13 +256,13 @@  discard block
 block discarded – undo
256 256
 			$tplconf = 'client/html/catalog/filter/standard/template-header';
257 257
 			$default = 'catalog/filter/header-default.php';
258 258
 
259
-			$html = $view->render( $view->config( $tplconf, $default ) );
259
+			$html = $view->render($view->config($tplconf, $default));
260 260
 
261
-			$this->setCached( 'header', $uid, $prefixes, $confkey, $html, $tags, $expire );
261
+			$this->setCached('header', $uid, $prefixes, $confkey, $html, $tags, $expire);
262 262
 		}
263 263
 		else
264 264
 		{
265
-			$html = $this->modifyHeader( $html, $uid );
265
+			$html = $this->modifyHeader($html, $uid);
266 266
 		}
267 267
 
268 268
 		return $html;
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
 	 * @param string|null $name Name of the sub-client (Default if null)
277 277
 	 * @return \Aimeos\Client\Html\Iface Sub-client object
278 278
 	 */
279
-	public function getSubClient( $type, $name = null )
279
+	public function getSubClient($type, $name = null)
280 280
 	{
281 281
 		/** client/html/catalog/filter/decorators/excludes
282 282
 		 * Excludes decorators added by the "common" option from the catalog filter html client
@@ -352,7 +352,7 @@  discard block
 block discarded – undo
352 352
 		 * @see client/html/catalog/filter/decorators/global
353 353
 		 */
354 354
 
355
-		return $this->createSubClient( 'catalog/filter/' . $type, $name );
355
+		return $this->createSubClient('catalog/filter/'.$type, $name);
356 356
 	}
357 357
 
358 358
 
@@ -363,11 +363,11 @@  discard block
 block discarded – undo
363 363
 	 * @param string $uid Unique identifier for the output if the content is placed more than once on the same page
364 364
 	 * @return string Modified body content
365 365
 	 */
366
-	public function modifyBody( $content, $uid )
366
+	public function modifyBody($content, $uid)
367 367
 	{
368
-		$content = parent::modifyBody( $content, $uid );
368
+		$content = parent::modifyBody($content, $uid);
369 369
 
370
-		return $this->replaceSection( $content, $this->getView()->csrf()->formfield(), 'catalog.filter.csrf' );
370
+		return $this->replaceSection($content, $this->getView()->csrf()->formfield(), 'catalog.filter.csrf');
371 371
 	}
372 372
 
373 373
 
@@ -385,34 +385,34 @@  discard block
 block discarded – undo
385 385
 		{
386 386
 			parent::process();
387 387
 		}
388
-		catch( \Aimeos\MShop\Exception $e )
388
+		catch (\Aimeos\MShop\Exception $e)
389 389
 		{
390
-			$error = array( $context->getI18n()->dt( 'mshop', $e->getMessage() ) );
391
-			$view->filterErrorList = $view->get( 'filterErrorList', array() ) + $error;
390
+			$error = array($context->getI18n()->dt('mshop', $e->getMessage()));
391
+			$view->filterErrorList = $view->get('filterErrorList', array()) + $error;
392 392
 		}
393
-		catch( \Aimeos\Controller\Frontend\Exception $e )
393
+		catch (\Aimeos\Controller\Frontend\Exception $e)
394 394
 		{
395
-			$error = array( $context->getI18n()->dt( 'controller/frontend', $e->getMessage() ) );
396
-			$view->filterErrorList = $view->get( 'filterErrorList', array() ) + $error;
395
+			$error = array($context->getI18n()->dt('controller/frontend', $e->getMessage()));
396
+			$view->filterErrorList = $view->get('filterErrorList', array()) + $error;
397 397
 		}
398
-		catch( \Aimeos\Client\Html\Exception $e )
398
+		catch (\Aimeos\Client\Html\Exception $e)
399 399
 		{
400
-			$error = array( $context->getI18n()->dt( 'client', $e->getMessage() ) );
401
-			$view->filterErrorList = $view->get( 'filterErrorList', array() ) + $error;
400
+			$error = array($context->getI18n()->dt('client', $e->getMessage()));
401
+			$view->filterErrorList = $view->get('filterErrorList', array()) + $error;
402 402
 		}
403
-		catch( \Exception $e )
403
+		catch (\Exception $e)
404 404
 		{
405
-			$context->getLogger()->log( $e->getMessage() . PHP_EOL . $e->getTraceAsString() );
405
+			$context->getLogger()->log($e->getMessage().PHP_EOL.$e->getTraceAsString());
406 406
 
407
-			$error = array( $context->getI18n()->dt( 'client', 'A non-recoverable error occured' ) );
408
-			$view->filterErrorList = $view->get( 'filterErrorList', array() ) + $error;
407
+			$error = array($context->getI18n()->dt('client', 'A non-recoverable error occured'));
408
+			$view->filterErrorList = $view->get('filterErrorList', array()) + $error;
409 409
 		}
410 410
 	}
411 411
 
412 412
 
413 413
 	protected function getSubClientNames()
414 414
 	{
415
-		return $this->getContext()->getConfig()->get( $this->subPartPath, $this->subPartNames );
415
+		return $this->getContext()->getConfig()->get($this->subPartPath, $this->subPartNames);
416 416
 	}
417 417
 
418 418
 
@@ -424,9 +424,9 @@  discard block
 block discarded – undo
424 424
 	 * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry)
425 425
 	 * @return \Aimeos\MW\View\Iface Modified view object
426 426
 	 */
427
-	protected function setViewParams( \Aimeos\MW\View\Iface $view, array &$tags = array(), &$expire = null )
427
+	protected function setViewParams(\Aimeos\MW\View\Iface $view, array &$tags = array(), &$expire = null)
428 428
 	{
429
-		if( !isset( $this->cache ) )
429
+		if (!isset($this->cache))
430 430
 		{
431 431
 			$config = $this->getContext()->getConfig();
432 432
 
@@ -451,7 +451,7 @@  discard block
 block discarded – undo
451 451
 			 * @see client/html/catalog/count/url/action
452 452
 			 * @see client/html/catalog/count/url/config
453 453
 			 */
454
-			if( $config->get( 'client/html/catalog/count/enable', true ) == true )
454
+			if ($config->get('client/html/catalog/count/enable', true) == true)
455 455
 			{
456 456
 				/** client/html/catalog/count/url/target
457 457
 				 * Destination of the URL where the controller specified in the URL is known
@@ -467,7 +467,7 @@  discard block
 block discarded – undo
467 467
 				 * @see client/html/catalog/count/url/action
468 468
 				 * @see client/html/catalog/count/url/config
469 469
 				 */
470
-				$target = $config->get( 'client/html/catalog/count/url/target' );
470
+				$target = $config->get('client/html/catalog/count/url/target');
471 471
 
472 472
 				/** client/html/catalog/count/url/controller
473 473
 				 * Name of the controller whose action should be called
@@ -483,7 +483,7 @@  discard block
 block discarded – undo
483 483
 				 * @see client/html/catalog/count/url/action
484 484
 				 * @see client/html/catalog/count/url/config
485 485
 				 */
486
-				$controller = $config->get( 'client/html/catalog/count/url/controller', 'catalog' );
486
+				$controller = $config->get('client/html/catalog/count/url/controller', 'catalog');
487 487
 
488 488
 				/** client/html/catalog/count/url/action
489 489
 				 * Name of the action that should create the output
@@ -499,7 +499,7 @@  discard block
 block discarded – undo
499 499
 				 * @see client/html/catalog/count/url/controller
500 500
 				 * @see client/html/catalog/count/url/config
501 501
 				 */
502
-				$action = $config->get( 'client/html/catalog/count/url/action', 'count' );
502
+				$action = $config->get('client/html/catalog/count/url/action', 'count');
503 503
 
504 504
 				/** client/html/catalog/count/url/config
505 505
 				 * Associative list of configuration options used for generating the URL
@@ -522,11 +522,11 @@  discard block
 block discarded – undo
522 522
 				 * @see client/html/catalog/count/url/action
523 523
 				 * @see client/html/url/config
524 524
 				 */
525
-				$config = $config->get( 'client/html/catalog/count/url/config', array() );
525
+				$config = $config->get('client/html/catalog/count/url/config', array());
526 526
 
527
-				$params = $this->getClientParams( $view->param(), array( 'f' ) );
527
+				$params = $this->getClientParams($view->param(), array('f'));
528 528
 
529
-				$view->filterCountUrl = $view->url( $target, $controller, $action, $params, array(), $config );
529
+				$view->filterCountUrl = $view->url($target, $controller, $action, $params, array(), $config);
530 530
 			}
531 531
 
532 532
 			$this->cache = $view;
Please login to merge, or discard this patch.
client/html/src/Client/Html/Checkout/Confirm/Retry/Standard.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -67,13 +67,13 @@  discard block
 block discarded – undo
67 67
 	 * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry)
68 68
 	 * @return string HTML code
69 69
 	 */
70
-	public function getBody( $uid = '', array &$tags = array(), &$expire = null )
70
+	public function getBody($uid = '', array &$tags = array(), &$expire = null)
71 71
 	{
72
-		$view = $this->setViewParams( $this->getView(), $tags, $expire );
72
+		$view = $this->setViewParams($this->getView(), $tags, $expire);
73 73
 
74 74
 		$html = '';
75
-		foreach( $this->getSubClients() as $subclient ) {
76
-			$html .= $subclient->setView( $view )->getBody( $uid, $tags, $expire );
75
+		foreach ($this->getSubClients() as $subclient) {
76
+			$html .= $subclient->setView($view)->getBody($uid, $tags, $expire);
77 77
 		}
78 78
 		$view->retryBody = $html;
79 79
 
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 		$tplconf = 'client/html/checkout/confirm/retry/standard/template-body';
101 101
 		$default = 'checkout/confirm/retry-body-default.php';
102 102
 
103
-		return $view->render( $view->config( $tplconf, $default ) );
103
+		return $view->render($view->config($tplconf, $default));
104 104
 	}
105 105
 
106 106
 
@@ -112,13 +112,13 @@  discard block
 block discarded – undo
112 112
 	 * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry)
113 113
 	 * @return string|null String including HTML tags for the header on error
114 114
 	 */
115
-	public function getHeader( $uid = '', array &$tags = array(), &$expire = null )
115
+	public function getHeader($uid = '', array &$tags = array(), &$expire = null)
116 116
 	{
117
-		$view = $this->setViewParams( $this->getView(), $tags, $expire );
117
+		$view = $this->setViewParams($this->getView(), $tags, $expire);
118 118
 
119 119
 		$html = '';
120
-		foreach( $this->getSubClients() as $subclient ) {
121
-			$html .= $subclient->setView( $view )->getHeader( $uid, $tags, $expire );
120
+		foreach ($this->getSubClients() as $subclient) {
121
+			$html .= $subclient->setView($view)->getHeader($uid, $tags, $expire);
122 122
 		}
123 123
 		$view->retryHeader = $html;
124 124
 
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 		$tplconf = 'client/html/checkout/confirm/retry/standard/template-header';
147 147
 		$default = 'checkout/confirm/retry-header-default.php';
148 148
 
149
-		return $view->render( $view->config( $tplconf, $default ) );
149
+		return $view->render($view->config($tplconf, $default));
150 150
 	}
151 151
 
152 152
 
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
 	 * @param string|null $name Name of the sub-client (Default if null)
158 158
 	 * @return \Aimeos\Client\Html\Iface Sub-client object
159 159
 	 */
160
-	public function getSubClient( $type, $name = null )
160
+	public function getSubClient($type, $name = null)
161 161
 	{
162 162
 		/** client/html/checkout/confirm/retry/decorators/excludes
163 163
 		 * Excludes decorators added by the "common" option from the checkout confirm retry html client
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
 		 * @see client/html/checkout/confirm/retry/decorators/global
234 234
 		 */
235 235
 
236
-		return $this->createSubClient( 'checkout/confirm/retry/' . $type, $name );
236
+		return $this->createSubClient('checkout/confirm/retry/'.$type, $name);
237 237
 	}
238 238
 
239 239
 
@@ -244,6 +244,6 @@  discard block
 block discarded – undo
244 244
 	 */
245 245
 	protected function getSubClientNames()
246 246
 	{
247
-		return $this->getContext()->getConfig()->get( $this->subPartPath, $this->subPartNames );
247
+		return $this->getContext()->getConfig()->get($this->subPartPath, $this->subPartNames);
248 248
 	}
249 249
 }
250 250
\ No newline at end of file
Please login to merge, or discard this patch.
client/html/src/Client/Html/Checkout/Confirm/Order/Service/Standard.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -65,13 +65,13 @@  discard block
 block discarded – undo
65 65
 	 * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry)
66 66
 	 * @return string HTML code
67 67
 	*/
68
-	public function getBody( $uid = '', array &$tags = array(), &$expire = null )
68
+	public function getBody($uid = '', array &$tags = array(), &$expire = null)
69 69
 	{
70
-		$view = $this->setViewParams( $this->getView(), $tags, $expire );
70
+		$view = $this->setViewParams($this->getView(), $tags, $expire);
71 71
 
72 72
 		$html = '';
73
-		foreach( $this->getSubClients() as $subclient ) {
74
-			$html .= $subclient->setView( $view )->getBody( $uid, $tags, $expire );
73
+		foreach ($this->getSubClients() as $subclient) {
74
+			$html .= $subclient->setView($view)->getBody($uid, $tags, $expire);
75 75
 		}
76 76
 		$view->serviceBody = $html;
77 77
 
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
 		$tplconf = 'client/html/checkout/confirm/order/service/standard/template-body';
100 100
 		$default = 'common/summary/service-body-default.php';
101 101
 
102
-		return $view->render( $view->config( $tplconf, $default ) );
102
+		return $view->render($view->config($tplconf, $default));
103 103
 	}
104 104
 
105 105
 
@@ -111,13 +111,13 @@  discard block
 block discarded – undo
111 111
 	 * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry)
112 112
 	 * @return string|null String including HTML tags for the header on error
113 113
 	 */
114
-	public function getHeader( $uid = '', array &$tags = array(), &$expire = null )
114
+	public function getHeader($uid = '', array &$tags = array(), &$expire = null)
115 115
 	{
116
-		$view = $this->setViewParams( $this->getView(), $tags, $expire );
116
+		$view = $this->setViewParams($this->getView(), $tags, $expire);
117 117
 
118 118
 		$html = '';
119
-		foreach( $this->getSubClients() as $subclient ) {
120
-			$html .= $subclient->setView( $view )->getHeader( $uid, $tags, $expire );
119
+		foreach ($this->getSubClients() as $subclient) {
120
+			$html .= $subclient->setView($view)->getHeader($uid, $tags, $expire);
121 121
 		}
122 122
 		$view->serviceHeader = $html;
123 123
 
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 		$tplconf = 'client/html/checkout/confirm/order/service/standard/template-header';
147 147
 		$default = 'common/summary/service-header-default.php';
148 148
 
149
-		return $view->render( $view->config( $tplconf, $default ) );
149
+		return $view->render($view->config($tplconf, $default));
150 150
 	}
151 151
 
152 152
 
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
 	 * @param string|null $name Name of the sub-client (Default if null)
158 158
 	 * @return \Aimeos\Client\Html\Iface Sub-client object
159 159
 	 */
160
-	public function getSubClient( $type, $name = null )
160
+	public function getSubClient($type, $name = null)
161 161
 	{
162 162
 		/** client/html/checkout/confirm/order/service/decorators/excludes
163 163
 		 * Excludes decorators added by the "common" option from the checkout confirm order service html client
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
 		 * @see client/html/checkout/confirm/order/service/decorators/global
234 234
 		 */
235 235
 
236
-		return $this->createSubClient( 'checkout/confirm/order/service/' . $type, $name );
236
+		return $this->createSubClient('checkout/confirm/order/service/'.$type, $name);
237 237
 	}
238 238
 
239 239
 
@@ -244,6 +244,6 @@  discard block
 block discarded – undo
244 244
 	 */
245 245
 	protected function getSubClientNames()
246 246
 	{
247
-		return $this->getContext()->getConfig()->get( $this->subPartPath, $this->subPartNames );
247
+		return $this->getContext()->getConfig()->get($this->subPartPath, $this->subPartNames);
248 248
 	}
249 249
 }
250 250
\ No newline at end of file
Please login to merge, or discard this patch.
client/html/src/Client/Html/Checkout/Confirm/Order/Coupon/Standard.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -65,13 +65,13 @@  discard block
 block discarded – undo
65 65
 	 * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry)
66 66
 	 * @return string HTML code
67 67
 	*/
68
-	public function getBody( $uid = '', array &$tags = array(), &$expire = null )
68
+	public function getBody($uid = '', array &$tags = array(), &$expire = null)
69 69
 	{
70
-		$view = $this->setViewParams( $this->getView(), $tags, $expire );
70
+		$view = $this->setViewParams($this->getView(), $tags, $expire);
71 71
 
72 72
 		$html = '';
73
-		foreach( $this->getSubClients() as $subclient ) {
74
-			$html .= $subclient->setView( $view )->getBody( $uid, $tags, $expire );
73
+		foreach ($this->getSubClients() as $subclient) {
74
+			$html .= $subclient->setView($view)->getBody($uid, $tags, $expire);
75 75
 		}
76 76
 		$view->couponBody = $html;
77 77
 
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
 		$tplconf = 'client/html/checkout/confirm/order/coupon/standard/template-body';
100 100
 		$default = 'common/summary/coupon-body-default.php';
101 101
 
102
-		return $view->render( $view->config( $tplconf, $default ) );
102
+		return $view->render($view->config($tplconf, $default));
103 103
 	}
104 104
 
105 105
 
@@ -111,13 +111,13 @@  discard block
 block discarded – undo
111 111
 	 * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry)
112 112
 	 * @return string|null String including HTML tags for the header on error
113 113
 	 */
114
-	public function getHeader( $uid = '', array &$tags = array(), &$expire = null )
114
+	public function getHeader($uid = '', array &$tags = array(), &$expire = null)
115 115
 	{
116
-		$view = $this->setViewParams( $this->getView(), $tags, $expire );
116
+		$view = $this->setViewParams($this->getView(), $tags, $expire);
117 117
 
118 118
 		$html = '';
119
-		foreach( $this->getSubClients() as $subclient ) {
120
-			$html .= $subclient->setView( $view )->getHeader( $uid, $tags, $expire );
119
+		foreach ($this->getSubClients() as $subclient) {
120
+			$html .= $subclient->setView($view)->getHeader($uid, $tags, $expire);
121 121
 		}
122 122
 		$view->couponHeader = $html;
123 123
 
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 		$tplconf = 'client/html/checkout/confirm/order/coupon/standard/template-header';
147 147
 		$default = 'common/summary/coupon-header-default.php';
148 148
 
149
-		return $view->render( $view->config( $tplconf, $default ) );
149
+		return $view->render($view->config($tplconf, $default));
150 150
 	}
151 151
 
152 152
 
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
 	 * @param string|null $name Name of the sub-client (Default if null)
158 158
 	 * @return \Aimeos\Client\Html\Iface Sub-client object
159 159
 	 */
160
-	public function getSubClient( $type, $name = null )
160
+	public function getSubClient($type, $name = null)
161 161
 	{
162 162
 		/** client/html/checkout/confirm/order/coupon/decorators/excludes
163 163
 		 * Excludes decorators added by the "common" option from the checkout confirm order coupon html client
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
 		 * @see client/html/checkout/confirm/order/coupon/decorators/global
234 234
 		 */
235 235
 
236
-		return $this->createSubClient( 'checkout/confirm/order/coupon/' . $type, $name );
236
+		return $this->createSubClient('checkout/confirm/order/coupon/'.$type, $name);
237 237
 	}
238 238
 
239 239
 
@@ -244,6 +244,6 @@  discard block
 block discarded – undo
244 244
 	 */
245 245
 	protected function getSubClientNames()
246 246
 	{
247
-		return $this->getContext()->getConfig()->get( $this->subPartPath, $this->subPartNames );
247
+		return $this->getContext()->getConfig()->get($this->subPartPath, $this->subPartNames);
248 248
 	}
249 249
 }
250 250
\ No newline at end of file
Please login to merge, or discard this patch.
client/html/src/Client/Html/Checkout/Confirm/Order/Detail/Standard.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -66,13 +66,13 @@  discard block
 block discarded – undo
66 66
 	 * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry)
67 67
 	 * @return string HTML code
68 68
 	*/
69
-	public function getBody( $uid = '', array &$tags = array(), &$expire = null )
69
+	public function getBody($uid = '', array &$tags = array(), &$expire = null)
70 70
 	{
71
-		$view = $this->setViewParams( $this->getView(), $tags, $expire );
71
+		$view = $this->setViewParams($this->getView(), $tags, $expire);
72 72
 
73 73
 		$html = '';
74
-		foreach( $this->getSubClients() as $subclient ) {
75
-			$html .= $subclient->setView( $view )->getBody( $uid, $tags, $expire );
74
+		foreach ($this->getSubClients() as $subclient) {
75
+			$html .= $subclient->setView($view)->getBody($uid, $tags, $expire);
76 76
 		}
77 77
 		$view->detailBody = $html;
78 78
 
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 		$tplconf = 'client/html/checkout/confirm/order/detail/standard/template-body';
101 101
 		$default = 'common/summary/detail-body-default.php';
102 102
 
103
-		return $view->render( $view->config( $tplconf, $default ) );
103
+		return $view->render($view->config($tplconf, $default));
104 104
 	}
105 105
 
106 106
 
@@ -112,13 +112,13 @@  discard block
 block discarded – undo
112 112
 	 * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry)
113 113
 	 * @return string|null String including HTML tags for the header on error
114 114
 	 */
115
-	public function getHeader( $uid = '', array &$tags = array(), &$expire = null )
115
+	public function getHeader($uid = '', array &$tags = array(), &$expire = null)
116 116
 	{
117
-		$view = $this->setViewParams( $this->getView(), $tags, $expire );
117
+		$view = $this->setViewParams($this->getView(), $tags, $expire);
118 118
 
119 119
 		$html = '';
120
-		foreach( $this->getSubClients() as $subclient ) {
121
-			$html .= $subclient->setView( $view )->getHeader( $uid, $tags, $expire );
120
+		foreach ($this->getSubClients() as $subclient) {
121
+			$html .= $subclient->setView($view)->getHeader($uid, $tags, $expire);
122 122
 		}
123 123
 		$view->detailHeader = $html;
124 124
 
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
 		$tplconf = 'client/html/checkout/confirm/order/detail/standard/template-header';
148 148
 		$default = 'common/summary/detail-header-default.php';
149 149
 
150
-		return $view->render( $view->config( $tplconf, $default ) );
150
+		return $view->render($view->config($tplconf, $default));
151 151
 	}
152 152
 
153 153
 
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
 	 * @param string|null $name Name of the sub-client (Default if null)
159 159
 	 * @return \Aimeos\Client\Html\Iface Sub-client object
160 160
 	 */
161
-	public function getSubClient( $type, $name = null )
161
+	public function getSubClient($type, $name = null)
162 162
 	{
163 163
 		/** client/html/checkout/confirm/order/detail/decorators/excludes
164 164
 		 * Excludes decorators added by the "common" option from the checkout confirm order detail html client
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
 		 * @see client/html/checkout/confirm/order/detail/decorators/global
235 235
 		 */
236 236
 
237
-		return $this->createSubClient( 'checkout/confirm/order/detail/' . $type, $name );
237
+		return $this->createSubClient('checkout/confirm/order/detail/'.$type, $name);
238 238
 	}
239 239
 
240 240
 
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
 	 */
246 246
 	protected function getSubClientNames()
247 247
 	{
248
-		return $this->getContext()->getConfig()->get( $this->subPartPath, $this->subPartNames );
248
+		return $this->getContext()->getConfig()->get($this->subPartPath, $this->subPartNames);
249 249
 	}
250 250
 
251 251
 
@@ -257,17 +257,17 @@  discard block
 block discarded – undo
257 257
 	 * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry)
258 258
 	 * @return \Aimeos\MW\View\Iface Modified view object
259 259
 	 */
260
-	protected function setViewParams( \Aimeos\MW\View\Iface $view, array &$tags = array(), &$expire = null )
260
+	protected function setViewParams(\Aimeos\MW\View\Iface $view, array &$tags = array(), &$expire = null)
261 261
 	{
262
-		if( !isset( $this->cache ) )
262
+		if (!isset($this->cache))
263 263
 		{
264
-			$view = parent::setViewParams( $view );
264
+			$view = parent::setViewParams($view);
265 265
 
266
-			if( $view->confirmOrderItem->getPaymentStatus() >= $this->getDownloadPaymentStatus() ) {
266
+			if ($view->confirmOrderItem->getPaymentStatus() >= $this->getDownloadPaymentStatus()) {
267 267
 				$view->summaryShowDownloadAttributes = true;
268 268
 			}
269 269
 
270
-			$view->summaryTaxRates = $this->getTaxRates( $view->summaryBasket );
270
+			$view->summaryTaxRates = $this->getTaxRates($view->summaryBasket);
271 271
 
272 272
 			$this->cache = $view;
273 273
 		}
Please login to merge, or discard this patch.
client/html/src/Client/Html/Checkout/Confirm/Order/Standard.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
 	 * @since 2015.02
100 100
 	 * @category Developer
101 101
 	 */
102
-	private $subPartNames = array( 'address', 'service', 'coupon', 'detail' );
102
+	private $subPartNames = array('address', 'service', 'coupon', 'detail');
103 103
 
104 104
 	private $cache;
105 105
 
@@ -112,14 +112,14 @@  discard block
 block discarded – undo
112 112
 	 * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry)
113 113
 	 * @return string HTML code
114 114
 	 */
115
-	public function getBody( $uid = '', array &$tags = array(), &$expire = null )
115
+	public function getBody($uid = '', array &$tags = array(), &$expire = null)
116 116
 	{
117 117
 		$view = $this->getView();
118
-		$view = $this->setViewParams( $view, $tags, $expire );
118
+		$view = $this->setViewParams($view, $tags, $expire);
119 119
 
120 120
 		$html = '';
121
-		foreach( $this->getSubClients() as $subclient ) {
122
-			$html .= $subclient->setView( $view )->getBody( $uid, $tags, $expire );
121
+		foreach ($this->getSubClients() as $subclient) {
122
+			$html .= $subclient->setView($view)->getBody($uid, $tags, $expire);
123 123
 		}
124 124
 		$view->orderBody = $html;
125 125
 
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 		$tplconf = 'client/html/checkout/confirm/order/standard/template-body';
147 147
 		$default = 'checkout/confirm/order-body-default.php';
148 148
 
149
-		return $view->render( $view->config( $tplconf, $default ) );
149
+		return $view->render($view->config($tplconf, $default));
150 150
 	}
151 151
 
152 152
 
@@ -158,14 +158,14 @@  discard block
 block discarded – undo
158 158
 	 * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry)
159 159
 	 * @return string|null String including HTML tags for the header on error
160 160
 	 */
161
-	public function getHeader( $uid = '', array &$tags = array(), &$expire = null )
161
+	public function getHeader($uid = '', array &$tags = array(), &$expire = null)
162 162
 	{
163 163
 		$view = $this->getView();
164
-		$view = $this->setViewParams( $view, $tags, $expire );
164
+		$view = $this->setViewParams($view, $tags, $expire);
165 165
 
166 166
 		$html = '';
167
-		foreach( $this->getSubClients() as $subclient ) {
168
-			$html .= $subclient->setView( $view )->getHeader( $uid, $tags, $expire );
167
+		foreach ($this->getSubClients() as $subclient) {
168
+			$html .= $subclient->setView($view)->getHeader($uid, $tags, $expire);
169 169
 		}
170 170
 		$view->orderHeader = $html;
171 171
 
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
 		$tplconf = 'client/html/checkout/confirm/order/standard/template-header';
194 194
 		$default = 'checkout/confirm/order-header-default.php';
195 195
 
196
-		return $view->render( $view->config( $tplconf, $default ) );
196
+		return $view->render($view->config($tplconf, $default));
197 197
 	}
198 198
 
199 199
 
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
 	 * @param string|null $name Name of the sub-client (Default if null)
205 205
 	 * @return \Aimeos\Client\Html\Iface Sub-client object
206 206
 	 */
207
-	public function getSubClient( $type, $name = null )
207
+	public function getSubClient($type, $name = null)
208 208
 	{
209 209
 		/** client/html/checkout/confirm/order/decorators/excludes
210 210
 		 * Excludes decorators added by the "common" option from the checkout confirm order html client
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
 		 * @see client/html/checkout/confirm/order/decorators/global
281 281
 		 */
282 282
 
283
-		return $this->createSubClient( 'checkout/confirm/order/' . $type, $name );
283
+		return $this->createSubClient('checkout/confirm/order/'.$type, $name);
284 284
 	}
285 285
 
286 286
 
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
 	 */
292 292
 	protected function getSubClientNames()
293 293
 	{
294
-		return $this->getContext()->getConfig()->get( $this->subPartPath, $this->subPartNames );
294
+		return $this->getContext()->getConfig()->get($this->subPartPath, $this->subPartNames);
295 295
 	}
296 296
 
297 297
 
@@ -303,16 +303,16 @@  discard block
 block discarded – undo
303 303
 	 * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry)
304 304
 	 * @return \Aimeos\MW\View\Iface Modified view object
305 305
 	 */
306
-	protected function setViewParams( \Aimeos\MW\View\Iface $view, array &$tags = array(), &$expire = null )
306
+	protected function setViewParams(\Aimeos\MW\View\Iface $view, array &$tags = array(), &$expire = null)
307 307
 	{
308
-		if( !isset( $this->cache ) )
308
+		if (!isset($this->cache))
309 309
 		{
310
-			if( isset( $view->confirmOrderItem ) )
310
+			if (isset($view->confirmOrderItem))
311 311
 			{
312 312
 				$context = $this->getContext();
313
-				$manager = \Aimeos\MShop\Factory::createManager( $context, 'order/base' );
313
+				$manager = \Aimeos\MShop\Factory::createManager($context, 'order/base');
314 314
 
315
-				$view->summaryBasket = $manager->load( $view->confirmOrderItem->getBaseId() );
315
+				$view->summaryBasket = $manager->load($view->confirmOrderItem->getBaseId());
316 316
 			}
317 317
 
318 318
 			$this->cache = $view;
Please login to merge, or discard this patch.
client/html/src/Client/Html/Checkout/Confirm/Order/Address/Standard.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -65,13 +65,13 @@  discard block
 block discarded – undo
65 65
 	 * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry)
66 66
 	 * @return string HTML code
67 67
 	*/
68
-	public function getBody( $uid = '', array &$tags = array(), &$expire = null )
68
+	public function getBody($uid = '', array &$tags = array(), &$expire = null)
69 69
 	{
70
-		$view = $this->setViewParams( $this->getView(), $tags, $expire );
70
+		$view = $this->setViewParams($this->getView(), $tags, $expire);
71 71
 
72 72
 		$html = '';
73
-		foreach( $this->getSubClients() as $subclient ) {
74
-			$html .= $subclient->setView( $view )->getBody( $uid, $tags, $expire );
73
+		foreach ($this->getSubClients() as $subclient) {
74
+			$html .= $subclient->setView($view)->getBody($uid, $tags, $expire);
75 75
 		}
76 76
 		$view->addressBody = $html;
77 77
 
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
 		$tplconf = 'client/html/checkout/confirm/order/address/standard/template-body';
100 100
 		$default = 'common/summary/address-body-default.php';
101 101
 
102
-		return $view->render( $view->config( $tplconf, $default ) );
102
+		return $view->render($view->config($tplconf, $default));
103 103
 	}
104 104
 
105 105
 
@@ -111,13 +111,13 @@  discard block
 block discarded – undo
111 111
 	 * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry)
112 112
 	 * @return string|null String including HTML tags for the header on error
113 113
 	 */
114
-	public function getHeader( $uid = '', array &$tags = array(), &$expire = null )
114
+	public function getHeader($uid = '', array &$tags = array(), &$expire = null)
115 115
 	{
116
-		$view = $this->setViewParams( $this->getView(), $tags, $expire );
116
+		$view = $this->setViewParams($this->getView(), $tags, $expire);
117 117
 
118 118
 		$html = '';
119
-		foreach( $this->getSubClients() as $subclient ) {
120
-			$html .= $subclient->setView( $view )->getHeader( $uid, $tags, $expire );
119
+		foreach ($this->getSubClients() as $subclient) {
120
+			$html .= $subclient->setView($view)->getHeader($uid, $tags, $expire);
121 121
 		}
122 122
 		$view->addressHeader = $html;
123 123
 
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 		$tplconf = 'client/html/checkout/confirm/order/address/standard/template-header';
147 147
 		$default = 'common/summary/address-header-default.php';
148 148
 
149
-		return $view->render( $view->config( $tplconf, $default ) );
149
+		return $view->render($view->config($tplconf, $default));
150 150
 	}
151 151
 
152 152
 
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
 	 * @param string|null $name Name of the sub-client (Default if null)
158 158
 	 * @return \Aimeos\Client\Html\Iface Sub-client object
159 159
 	 */
160
-	public function getSubClient( $type, $name = null )
160
+	public function getSubClient($type, $name = null)
161 161
 	{
162 162
 		/** client/html/checkout/confirm/order/address/decorators/excludes
163 163
 		 * Excludes decorators added by the "common" option from the checkout confirm order address html client
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
 		 * @see client/html/checkout/confirm/order/address/decorators/global
234 234
 		 */
235 235
 
236
-		return $this->createSubClient( 'checkout/confirm/order/address/' . $type, $name );
236
+		return $this->createSubClient('checkout/confirm/order/address/'.$type, $name);
237 237
 	}
238 238
 
239 239
 
@@ -244,6 +244,6 @@  discard block
 block discarded – undo
244 244
 	 */
245 245
 	protected function getSubClientNames()
246 246
 	{
247
-		return $this->getContext()->getConfig()->get( $this->subPartPath, $this->subPartNames );
247
+		return $this->getContext()->getConfig()->get($this->subPartPath, $this->subPartNames);
248 248
 	}
249 249
 }
250 250
\ No newline at end of file
Please login to merge, or discard this patch.
client/html/src/Client/Html/Checkout/Confirm/Factory.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 	 * @return \Aimeos\Client\Html\Iface Filter part implementing \Aimeos\Client\Html\Iface
32 32
 	 * @throws \Aimeos\Client\Html\Exception If requested client implementation couldn't be found or initialisation fails
33 33
 	 */
34
-	public static function createClient( \Aimeos\MShop\Context\Item\Iface $context, array $templatePaths, $name = null )
34
+	public static function createClient(\Aimeos\MShop\Context\Item\Iface $context, array $templatePaths, $name = null)
35 35
 	{
36 36
 		/** client/html/checkout/confirm/name
37 37
 		 * Class name of the used checkout confirm client implementation
@@ -66,22 +66,22 @@  discard block
 block discarded – undo
66 66
 		 * @since 2014.03
67 67
 		 * @category Developer
68 68
 		 */
69
-		if( $name === null ) {
70
-			$name = $context->getConfig()->get( 'client/html/checkout/confirm/name', 'Standard' );
69
+		if ($name === null) {
70
+			$name = $context->getConfig()->get('client/html/checkout/confirm/name', 'Standard');
71 71
 		}
72 72
 
73
-		if( ctype_alnum( $name ) === false )
73
+		if (ctype_alnum($name) === false)
74 74
 		{
75
-			$classname = is_string( $name ) ? '\\Aimeos\\Client\\Html\\Checkout\\Confirm\\' . $name : '<not a string>';
76
-			throw new \Aimeos\Client\Html\Exception( sprintf( 'Invalid characters in class name "%1$s"', $classname ) );
75
+			$classname = is_string($name) ? '\\Aimeos\\Client\\Html\\Checkout\\Confirm\\'.$name : '<not a string>';
76
+			throw new \Aimeos\Client\Html\Exception(sprintf('Invalid characters in class name "%1$s"', $classname));
77 77
 		}
78 78
 
79 79
 		$iface = '\\Aimeos\\Client\\Html\\Iface';
80
-		$classname = '\\Aimeos\\Client\\Html\\Checkout\\Confirm\\' . $name;
80
+		$classname = '\\Aimeos\\Client\\Html\\Checkout\\Confirm\\'.$name;
81 81
 
82
-		$client = self::createClientBase( $context, $classname, $iface, $templatePaths );
82
+		$client = self::createClientBase($context, $classname, $iface, $templatePaths);
83 83
 
84
-		return self::addClientDecorators( $context, $client, $templatePaths, 'checkout/confirm' );
84
+		return self::addClientDecorators($context, $client, $templatePaths, 'checkout/confirm');
85 85
 	}
86 86
 }
87 87
 
Please login to merge, or discard this patch.