Completed
Push — master ( ea7c09...15cf0d )
by Aimeos
06:26
created
client/html/src/Client/Html/Common/Summary/Detail/Base.php 2 patches
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -27,47 +27,47 @@  discard block
 block discarded – undo
27 27
 	 * @param \Aimeos\MShop\Order\Item\Base\Iface $basket Basket containing the products, services, etc.
28 28
 	 * @return array Associative list of tax rates as key and corresponding amounts as value
29 29
 	 */
30
-	protected function getTaxRates( \Aimeos\MShop\Order\Item\Base\Iface $basket )
30
+	protected function getTaxRates(\Aimeos\MShop\Order\Item\Base\Iface $basket)
31 31
 	{
32 32
 		$taxrates = array();
33 33
 
34
-		foreach( $basket->getProducts() as $product )
34
+		foreach ($basket->getProducts() as $product)
35 35
 		{
36 36
 			$price = clone $product->getPrice();
37 37
 			$taxrate = $price->getTaxrate();
38 38
 
39
-			if( isset( $taxrates[$taxrate] ) ) {
40
-				$taxrates[$taxrate]->addItem( $price, $product->getQuantity() );
39
+			if (isset($taxrates[$taxrate])) {
40
+				$taxrates[$taxrate]->addItem($price, $product->getQuantity());
41 41
 			} else {
42
-				$taxrates[$taxrate] = $price->addItem( $price, $product->getQuantity() - 1 );
42
+				$taxrates[$taxrate] = $price->addItem($price, $product->getQuantity() - 1);
43 43
 			}
44 44
 		}
45 45
 
46 46
 		try
47 47
 		{
48
-			$price = clone $basket->getService( 'delivery' )->getPrice();
48
+			$price = clone $basket->getService('delivery')->getPrice();
49 49
 			$taxrate = $price->getTaxrate();
50 50
 
51
-			if( isset( $taxrates[$taxrate] ) ) {
52
-				$taxrates[$taxrate]->addItem( $price );
51
+			if (isset($taxrates[$taxrate])) {
52
+				$taxrates[$taxrate]->addItem($price);
53 53
 			} else {
54 54
 				$taxrates[$taxrate] = $price;
55 55
 			}
56 56
 		}
57
-		catch( \Exception $e ) { ; } // if delivery service isn't available
57
+		catch (\Exception $e) {; } // if delivery service isn't available
58 58
 
59 59
 		try
60 60
 		{
61
-			$price = clone $basket->getService( 'payment' )->getPrice();
61
+			$price = clone $basket->getService('payment')->getPrice();
62 62
 			$taxrate = $price->getTaxrate();
63 63
 
64
-			if( isset( $taxrates[$taxrate] ) ) {
65
-				$taxrates[$taxrate]->addItem( $price );
64
+			if (isset($taxrates[$taxrate])) {
65
+				$taxrates[$taxrate]->addItem($price);
66 66
 			} else {
67 67
 				$taxrates[$taxrate] = $price;
68 68
 			}
69 69
 		}
70
-		catch( \Exception $e ) { ; } // if payment service isn't available
70
+		catch (\Exception $e) {; } // if payment service isn't available
71 71
 
72 72
 		return $taxrates;
73 73
 	}
@@ -101,6 +101,6 @@  discard block
 block discarded – undo
101 101
 		 * @category User
102 102
 		 * @category Developer
103 103
 		 */
104
-		return $config->get( 'client/html/common/summary/detail/download/payment-status', $default );
104
+		return $config->get('client/html/common/summary/detail/download/payment-status', $default);
105 105
 	}
106 106
 }
107 107
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,8 +53,7 @@  discard block
 block discarded – undo
53 53
 			} else {
54 54
 				$taxrates[$taxrate] = $price;
55 55
 			}
56
-		}
57
-		catch( \Exception $e ) { ; } // if delivery service isn't available
56
+		} catch( \Exception $e ) { ; } // if delivery service isn't available
58 57
 
59 58
 		try
60 59
 		{
@@ -66,8 +65,7 @@  discard block
 block discarded – undo
66 65
 			} else {
67 66
 				$taxrates[$taxrate] = $price;
68 67
 			}
69
-		}
70
-		catch( \Exception $e ) { ; } // if payment service isn't available
68
+		} catch( \Exception $e ) { ; } // if payment service isn't available
71 69
 
72 70
 		return $taxrates;
73 71
 	}
Please login to merge, or discard this patch.
client/html/src/Client/Html/Common/Client/Factory/Iface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,5 +29,5 @@
 block discarded – undo
29 29
 	 * 	and a list of relative paths inside the core or the extension as values
30 30
 	 * @return void
31 31
 	 */
32
-	public function __construct( \Aimeos\MShop\Context\Item\Iface $context, array $templatePaths );
32
+	public function __construct(\Aimeos\MShop\Context\Item\Iface $context, array $templatePaths);
33 33
 }
Please login to merge, or discard this patch.
client/html/src/Client/Html/Common/Client/Factory/Base.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,8 +29,8 @@
 block discarded – undo
29 29
 	 * 	and a list of relative paths inside the core or the extension as values
30 30
 	 * @param \Aimeos\Client\Html\Iface $client Client object
31 31
 	 */
32
-	public function __construct( \Aimeos\MShop\Context\Item\Iface $context, array $templatePaths )
32
+	public function __construct(\Aimeos\MShop\Context\Item\Iface $context, array $templatePaths)
33 33
 	{
34
-		parent::__construct( $context, $templatePaths );
34
+		parent::__construct($context, $templatePaths);
35 35
 	}
36 36
 }
37 37
\ No newline at end of file
Please login to merge, or discard this patch.
client/html/src/Client/Html/Common/Decorator/Iface.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,6 +29,6 @@
 block discarded – undo
29 29
 	 * @param array $templatePaths Associative list of the file system paths to the core or the extensions as key
30 30
 	 * 	and a list of relative paths inside the core or the extension as values
31 31
 	 */
32
-	public function __construct( \Aimeos\Client\Html\Iface $client,
33
-		\Aimeos\MShop\Context\Item\Iface $context, array $templatePaths );
32
+	public function __construct(\Aimeos\Client\Html\Iface $client,
33
+		\Aimeos\MShop\Context\Item\Iface $context, array $templatePaths);
34 34
 }
35 35
\ No newline at end of file
Please login to merge, or discard this patch.
client/html/src/Client/Html/Common/Factory/Iface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,5 +28,5 @@
 block discarded – undo
28 28
 	 * @param string $name Client name (from configuration or "Standard" if null)
29 29
 	 * @return \Aimeos\Client\Html\Iface New client object
30 30
 	 */
31
-	public static function createClient( \Aimeos\MShop\Context\Item\Iface $context, array $templatePaths, $name = null );
31
+	public static function createClient(\Aimeos\MShop\Context\Item\Iface $context, array $templatePaths, $name = null);
32 32
 }
Please login to merge, or discard this patch.
client/html/src/Client/Html/Common/Factory/Base.php 1 patch
Spacing   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 	 * @param string $classname Full name of the class for which the object should be returned
32 32
 	 * @param \Aimeos\Client\Html\Iface|null $client ExtJS client object
33 33
 	 */
34
-	public static function injectClient( $classname, \Aimeos\Client\Html\Iface $client = null )
34
+	public static function injectClient($classname, \Aimeos\Client\Html\Iface $client = null)
35 35
 	{
36 36
 		self::$objects[$classname] = $client;
37 37
 	}
@@ -47,29 +47,29 @@  discard block
 block discarded – undo
47 47
 	 * @param string $classprefix Decorator class prefix, e.g. "\Aimeos\Client\Html\Catalog\Decorator\"
48 48
 	 * @return \Aimeos\Client\Html\Iface Client object
49 49
 	 */
50
-	protected static function addDecorators( \Aimeos\MShop\Context\Item\Iface $context,
51
-		\Aimeos\Client\Html\Iface $client, array $templatePaths, array $decorators, $classprefix )
50
+	protected static function addDecorators(\Aimeos\MShop\Context\Item\Iface $context,
51
+		\Aimeos\Client\Html\Iface $client, array $templatePaths, array $decorators, $classprefix)
52 52
 	{
53 53
 		$iface = '\\Aimeos\\Client\\Html\\Common\\Decorator\\Iface';
54 54
 
55
-		foreach( $decorators as $name )
55
+		foreach ($decorators as $name)
56 56
 		{
57
-			if( ctype_alnum( $name ) === false )
57
+			if (ctype_alnum($name) === false)
58 58
 			{
59
-				$classname = is_string( $name ) ? $classprefix . $name : '<not a string>';
60
-				throw new \Aimeos\Client\Html\Exception( sprintf( 'Invalid class name "%1$s"', $classname ) );
59
+				$classname = is_string($name) ? $classprefix.$name : '<not a string>';
60
+				throw new \Aimeos\Client\Html\Exception(sprintf('Invalid class name "%1$s"', $classname));
61 61
 			}
62 62
 
63
-			$classname = $classprefix . $name;
63
+			$classname = $classprefix.$name;
64 64
 
65
-			if( class_exists( $classname ) === false ) {
66
-				throw new \Aimeos\Client\Html\Exception( sprintf( 'Class "%1$s" not found', $classname ) );
65
+			if (class_exists($classname) === false) {
66
+				throw new \Aimeos\Client\Html\Exception(sprintf('Class "%1$s" not found', $classname));
67 67
 			}
68 68
 
69
-			$client = new $classname( $client, $context, $templatePaths );
69
+			$client = new $classname($client, $context, $templatePaths);
70 70
 
71
-			if( !( $client instanceof $iface ) ) {
72
-				throw new \Aimeos\Client\Html\Exception( sprintf( 'Class "%1$s" does not implement "%2$s"', $classname, $iface ) );
71
+			if (!($client instanceof $iface)) {
72
+				throw new \Aimeos\Client\Html\Exception(sprintf('Class "%1$s" does not implement "%2$s"', $classname, $iface));
73 73
 			}
74 74
 		}
75 75
 
@@ -86,14 +86,14 @@  discard block
 block discarded – undo
86 86
 	 * @param string $path Path of the client in lower case, e.g. "catalog/detail"
87 87
 	 * @return \Aimeos\Client\Html\Iface Client object
88 88
 	 */
89
-	protected static function addClientDecorators( \Aimeos\MShop\Context\Item\Iface $context,
90
-		\Aimeos\Client\Html\Iface $client, array $templatePaths, $path )
89
+	protected static function addClientDecorators(\Aimeos\MShop\Context\Item\Iface $context,
90
+		\Aimeos\Client\Html\Iface $client, array $templatePaths, $path)
91 91
 	{
92
-		if( !is_string( $path ) || $path === '' ) {
93
-			throw new \Aimeos\Client\Html\Exception( sprintf( 'Invalid domain "%1$s"', $path ) );
92
+		if (!is_string($path) || $path === '') {
93
+			throw new \Aimeos\Client\Html\Exception(sprintf('Invalid domain "%1$s"', $path));
94 94
 		}
95 95
 
96
-		$localClass = str_replace( ' ', '\\', ucwords( str_replace( '/', ' ', $path ) ) );
96
+		$localClass = str_replace(' ', '\\', ucwords(str_replace('/', ' ', $path)));
97 97
 		$config = $context->getConfig();
98 98
 
99 99
 		/** client/html/common/decorators/default
@@ -118,26 +118,26 @@  discard block
 block discarded – undo
118 118
 		 * @since 2014.03
119 119
 		 * @category Developer
120 120
 		 */
121
-		$decorators = $config->get( 'client/html/common/decorators/default', array() );
122
-		$excludes = $config->get( 'client/html/' . $path . '/decorators/excludes', array() );
121
+		$decorators = $config->get('client/html/common/decorators/default', array());
122
+		$excludes = $config->get('client/html/'.$path.'/decorators/excludes', array());
123 123
 
124
-		foreach( $decorators as $key => $name )
124
+		foreach ($decorators as $key => $name)
125 125
 		{
126
-			if( in_array( $name, $excludes ) ) {
127
-				unset( $decorators[$key] );
126
+			if (in_array($name, $excludes)) {
127
+				unset($decorators[$key]);
128 128
 			}
129 129
 		}
130 130
 
131 131
 		$classprefix = '\\Aimeos\\Client\\Html\\Common\\Decorator\\';
132
-		$client = self::addDecorators( $context, $client, $templatePaths, $decorators, $classprefix );
132
+		$client = self::addDecorators($context, $client, $templatePaths, $decorators, $classprefix);
133 133
 
134 134
 		$classprefix = '\\Aimeos\\Client\\Html\\Common\\Decorator\\';
135
-		$decorators = $config->get( 'client/html/' . $path . '/decorators/global', array() );
136
-		$client = self::addDecorators( $context, $client, $templatePaths, $decorators, $classprefix );
135
+		$decorators = $config->get('client/html/'.$path.'/decorators/global', array());
136
+		$client = self::addDecorators($context, $client, $templatePaths, $decorators, $classprefix);
137 137
 
138
-		$classprefix = '\\Aimeos\\Client\\Html\\' . $localClass . '\\Decorator\\';
139
-		$decorators = $config->get( 'client/html/' . $path . '/decorators/local', array() );
140
-		$client = self::addDecorators( $context, $client, $templatePaths, $decorators, $classprefix );
138
+		$classprefix = '\\Aimeos\\Client\\Html\\'.$localClass.'\\Decorator\\';
139
+		$decorators = $config->get('client/html/'.$path.'/decorators/local', array());
140
+		$client = self::addDecorators($context, $client, $templatePaths, $decorators, $classprefix);
141 141
 
142 142
 		return $client;
143 143
 	}
@@ -153,20 +153,20 @@  discard block
 block discarded – undo
153 153
 	 * @return \Aimeos\Client\Html\\Iface Client object
154 154
 	 * @throws \Aimeos\Client\Html\Exception If client couldn't be found or doesn't implement the interface
155 155
 	 */
156
-	protected static function createClientBase( \Aimeos\MShop\Context\Item\Iface $context, $classname, $interface, $templatePaths )
156
+	protected static function createClientBase(\Aimeos\MShop\Context\Item\Iface $context, $classname, $interface, $templatePaths)
157 157
 	{
158
-		if( isset( self::$objects[$classname] ) ) {
158
+		if (isset(self::$objects[$classname])) {
159 159
 			return self::$objects[$classname];
160 160
 		}
161 161
 
162
-		if( class_exists( $classname ) === false ) {
163
-			throw new \Aimeos\Client\Html\Exception( sprintf( 'Class "%1$s" not available', $classname ) );
162
+		if (class_exists($classname) === false) {
163
+			throw new \Aimeos\Client\Html\Exception(sprintf('Class "%1$s" not available', $classname));
164 164
 		}
165 165
 
166
-		$client = new $classname( $context, $templatePaths );
166
+		$client = new $classname($context, $templatePaths);
167 167
 
168
-		if( !( $client instanceof $interface ) ) {
169
-			throw new \Aimeos\Client\Html\Exception( sprintf( 'Class "%1$s" does not implement interface "%2$s"', $classname, $interface ) );
168
+		if (!($client instanceof $interface)) {
169
+			throw new \Aimeos\Client\Html\Exception(sprintf('Class "%1$s" does not implement interface "%2$s"', $classname, $interface));
170 170
 		}
171 171
 
172 172
 		return $client;
Please login to merge, or discard this patch.
client/html/src/Client/Html/Iface.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 	 * @param string|null $name Name of the sub-client (Default if null)
28 28
 	 * @return \Aimeos\Client\Html\Iface Sub-client object
29 29
 	 */
30
-	public function getSubClient( $type, $name = null );
30
+	public function getSubClient($type, $name = null);
31 31
 
32 32
 	/**
33 33
 	 * Returns the HTML string for insertion into the header.
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 	 * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry)
38 38
 	 * @return string|null String including HTML tags for the header on error
39 39
 	 */
40
-	public function getHeader( $uid = '', array &$tags = array(), &$expire = null );
40
+	public function getHeader($uid = '', array &$tags = array(), &$expire = null);
41 41
 
42 42
 	/**
43 43
 	 * Returns the HTML code for insertion into the body.
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 	 * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry)
48 48
 	 * @return string HTML code
49 49
 	 */
50
-	public function getBody( $uid = '', array &$tags = array(), &$expire = null );
50
+	public function getBody($uid = '', array &$tags = array(), &$expire = null);
51 51
 
52 52
 	/**
53 53
 	 * Returns the view object that will generate the HTML output.
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 	 * @param \Aimeos\MW\View\Iface $view The view object which generates the HTML output
63 63
 	 * @return \Aimeos\Client\Html\Iface Reference to this object for fluent calls
64 64
 	 */
65
-	public function setView( \Aimeos\MW\View\Iface $view );
65
+	public function setView(\Aimeos\MW\View\Iface $view);
66 66
 
67 67
 	/**
68 68
 	 * Modifies the cached body content to replace content based on sessions or cookies.
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 	 * @param string $uid Unique identifier for the output if the content is placed more than once on the same page
72 72
 	 * @return string Modified body content
73 73
 	 */
74
-	public function modifyBody( $content, $uid );
74
+	public function modifyBody($content, $uid);
75 75
 
76 76
 	/**
77 77
 	 * Modifies the cached header content to replace content based on sessions or cookies.
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 	 * @param string $uid Unique identifier for the output if the content is placed more than once on the same page
81 81
 	 * @return string Modified header content
82 82
 	 */
83
-	public function modifyHeader( $content, $uid );
83
+	public function modifyHeader($content, $uid);
84 84
 
85 85
 	/**
86 86
 	 * Processes the input, e.g. store given values.
Please login to merge, or discard this patch.
client/html/src/Client/Html/Locale/Select/Currency/Standard.php 1 patch
Spacing   +16 added lines, -16 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->currencyBody = $html;
79 79
 
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 		$tplconf = 'client/html/locale/select/currency/standard/template-body';
101 101
 		$default = 'locale/select/currency-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->currencyHeader = $html;
124 124
 
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 		$tplconf = 'client/html/locale/select/currency/standard/template-header';
147 147
 		$default = 'locale/select/currency-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/locale/select/currency/decorators/excludes
163 163
 		 * Excludes decorators added by the "common" option from the locale select currency html client
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
 		 * @see client/html/locale/select/currency/decorators/global
234 234
 		 */
235 235
 
236
-		return $this->createSubClient( 'locale/select/currency/' . $type, $name );
236
+		return $this->createSubClient('locale/select/currency/'.$type, $name);
237 237
 	}
238 238
 
239 239
 
@@ -249,10 +249,10 @@  discard block
 block discarded – undo
249 249
 		$config = $context->getConfig();
250 250
 		$session = $context->getSession();
251 251
 
252
-		$name = $config->get( 'client/html/locale/select/currency/param-name', 'loc_currencyid' );
252
+		$name = $config->get('client/html/locale/select/currency/param-name', 'loc_currencyid');
253 253
 
254
-		if( ( $currencyId = $view->param( $name ) ) !== null ) {
255
-			$session->set( 'aimeos/locale/currencyId', $currencyId );
254
+		if (($currencyId = $view->param($name)) !== null) {
255
+			$session->set('aimeos/locale/currencyId', $currencyId);
256 256
 		}
257 257
 
258 258
 		parent::process();
@@ -266,6 +266,6 @@  discard block
 block discarded – undo
266 266
 	 */
267 267
 	protected function getSubClientNames()
268 268
 	{
269
-		return $this->getContext()->getConfig()->get( $this->subPartPath, $this->subPartNames );
269
+		return $this->getContext()->getConfig()->get($this->subPartPath, $this->subPartNames);
270 270
 	}
271 271
 }
272 272
\ No newline at end of file
Please login to merge, or discard this patch.
client/html/src/Client/Html/Locale/Select/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/locale/select/name
37 37
 		 * Class name of the used locale select client implementation
@@ -66,21 +66,21 @@  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/locale/select/name', 'Standard' );
69
+		if ($name === null) {
70
+			$name = $context->getConfig()->get('client/html/locale/select/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\\Locale\\Select\\' . $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\\Locale\\Select\\'.$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\\Locale\\Select\\' . $name;
80
+		$classname = '\\Aimeos\\Client\\Html\\Locale\\Select\\'.$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, 'locale/select' );
84
+		return self::addClientDecorators($context, $client, $templatePaths, 'locale/select');
85 85
 	}
86 86
 }
87 87
\ No newline at end of file
Please login to merge, or discard this patch.