@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | * @return \Aimeos\Admin\JQAdm\Iface Filter part implementing \Aimeos\Admin\JQAdm\Iface |
30 | 30 | * @throws \Aimeos\Admin\JQAdm\Exception If requested client implementation couldn't be found or initialisation fails |
31 | 31 | */ |
32 | - public static function create( \Aimeos\MShop\Context\Item\Iface $context, $name = null ) |
|
32 | + public static function create(\Aimeos\MShop\Context\Item\Iface $context, $name = null) |
|
33 | 33 | { |
34 | 34 | /** admin/jqadm/order/name |
35 | 35 | * Class name of the used account favorite client implementation |
@@ -64,22 +64,22 @@ discard block |
||
64 | 64 | * @since 2016.01 |
65 | 65 | * @category Developer |
66 | 66 | */ |
67 | - if( $name === null ) { |
|
68 | - $name = $context->getConfig()->get( 'admin/jqadm/order/name', 'Standard' ); |
|
67 | + if ($name === null) { |
|
68 | + $name = $context->getConfig()->get('admin/jqadm/order/name', 'Standard'); |
|
69 | 69 | } |
70 | 70 | |
71 | - if( ctype_alnum( $name ) === false ) |
|
71 | + if (ctype_alnum($name) === false) |
|
72 | 72 | { |
73 | - $classname = is_string( $name ) ? '\\Aimeos\\Admin\\JQAdm\\Order\\' . $name : '<not a string>'; |
|
74 | - throw new \Aimeos\Admin\JQAdm\Exception( sprintf( 'Invalid characters in class name "%1$s"', $classname ) ); |
|
73 | + $classname = is_string($name) ? '\\Aimeos\\Admin\\JQAdm\\Order\\' . $name : '<not a string>'; |
|
74 | + throw new \Aimeos\Admin\JQAdm\Exception(sprintf('Invalid characters in class name "%1$s"', $classname)); |
|
75 | 75 | } |
76 | 76 | |
77 | 77 | $iface = '\\Aimeos\\Admin\\JQAdm\\Iface'; |
78 | 78 | $classname = '\\Aimeos\\Admin\\JQAdm\\Order\\' . $name; |
79 | 79 | |
80 | - $client = self::createAdmin( $context, $classname, $iface ); |
|
80 | + $client = self::createAdmin($context, $classname, $iface); |
|
81 | 81 | |
82 | - return self::addClientDecorators( $context, $client, 'order' ); |
|
82 | + return self::addClientDecorators($context, $client, 'order'); |
|
83 | 83 | } |
84 | 84 | |
85 | 85 | } |
86 | 86 | \ No newline at end of file |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | * @return \Aimeos\Admin\JQAdm\Iface Filter part implementing \Aimeos\Admin\JQAdm\Iface |
30 | 30 | * @throws \Aimeos\Admin\JQAdm\Exception If requested client implementation couldn't be found or initialisation fails |
31 | 31 | */ |
32 | - public static function create( \Aimeos\MShop\Context\Item\Iface $context, $name = null ) |
|
32 | + public static function create(\Aimeos\MShop\Context\Item\Iface $context, $name = null) |
|
33 | 33 | { |
34 | 34 | /** admin/jqadm/product/name |
35 | 35 | * Class name of the used account favorite client implementation |
@@ -64,22 +64,22 @@ discard block |
||
64 | 64 | * @since 2016.01 |
65 | 65 | * @category Developer |
66 | 66 | */ |
67 | - if( $name === null ) { |
|
68 | - $name = $context->getConfig()->get( 'admin/jqadm/product/name', 'Standard' ); |
|
67 | + if ($name === null) { |
|
68 | + $name = $context->getConfig()->get('admin/jqadm/product/name', 'Standard'); |
|
69 | 69 | } |
70 | 70 | |
71 | - if( ctype_alnum( $name ) === false ) |
|
71 | + if (ctype_alnum($name) === false) |
|
72 | 72 | { |
73 | - $classname = is_string( $name ) ? '\\Aimeos\\Admin\\JQAdm\\Product\\' . $name : '<not a string>'; |
|
74 | - throw new \Aimeos\Admin\JQAdm\Exception( sprintf( 'Invalid characters in class name "%1$s"', $classname ) ); |
|
73 | + $classname = is_string($name) ? '\\Aimeos\\Admin\\JQAdm\\Product\\' . $name : '<not a string>'; |
|
74 | + throw new \Aimeos\Admin\JQAdm\Exception(sprintf('Invalid characters in class name "%1$s"', $classname)); |
|
75 | 75 | } |
76 | 76 | |
77 | 77 | $iface = '\\Aimeos\\Admin\\JQAdm\\Iface'; |
78 | 78 | $classname = '\\Aimeos\\Admin\\JQAdm\\Product\\' . $name; |
79 | 79 | |
80 | - $client = self::createAdmin( $context, $classname, $iface ); |
|
80 | + $client = self::createAdmin($context, $classname, $iface); |
|
81 | 81 | |
82 | - return self::addClientDecorators( $context, $client, 'product' ); |
|
82 | + return self::addClientDecorators($context, $client, 'product'); |
|
83 | 83 | } |
84 | 84 | |
85 | 85 | } |
86 | 86 | \ No newline at end of file |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | * @return \Aimeos\Admin\JQAdm\Iface Filter part implementing \Aimeos\Admin\JQAdm\Iface |
30 | 30 | * @throws \Aimeos\Admin\JQAdm\Exception If requested client implementation couldn't be found or initialisation fails |
31 | 31 | */ |
32 | - public static function create( \Aimeos\MShop\Context\Item\Iface $context, $name = null ) |
|
32 | + public static function create(\Aimeos\MShop\Context\Item\Iface $context, $name = null) |
|
33 | 33 | { |
34 | 34 | /** admin/jqadm/attribute/name |
35 | 35 | * Class name of the used account favorite client implementation |
@@ -64,22 +64,22 @@ discard block |
||
64 | 64 | * @since 2017.07 |
65 | 65 | * @category Developer |
66 | 66 | */ |
67 | - if( $name === null ) { |
|
68 | - $name = $context->getConfig()->get( 'admin/jqadm/attribute/name', 'Standard' ); |
|
67 | + if ($name === null) { |
|
68 | + $name = $context->getConfig()->get('admin/jqadm/attribute/name', 'Standard'); |
|
69 | 69 | } |
70 | 70 | |
71 | - if( ctype_alnum( $name ) === false ) |
|
71 | + if (ctype_alnum($name) === false) |
|
72 | 72 | { |
73 | - $classname = is_string( $name ) ? '\\Aimeos\\Admin\\JQAdm\\Attribute\\' . $name : '<not a string>'; |
|
74 | - throw new \Aimeos\Admin\JQAdm\Exception( sprintf( 'Invalid characters in class name "%1$s"', $classname ) ); |
|
73 | + $classname = is_string($name) ? '\\Aimeos\\Admin\\JQAdm\\Attribute\\' . $name : '<not a string>'; |
|
74 | + throw new \Aimeos\Admin\JQAdm\Exception(sprintf('Invalid characters in class name "%1$s"', $classname)); |
|
75 | 75 | } |
76 | 76 | |
77 | 77 | $iface = '\\Aimeos\\Admin\\JQAdm\\Iface'; |
78 | 78 | $classname = '\\Aimeos\\Admin\\JQAdm\\Attribute\\' . $name; |
79 | 79 | |
80 | - $client = self::createAdmin( $context, $classname, $iface ); |
|
80 | + $client = self::createAdmin($context, $classname, $iface); |
|
81 | 81 | |
82 | - return self::addClientDecorators( $context, $client, 'attribute' ); |
|
82 | + return self::addClientDecorators($context, $client, 'attribute'); |
|
83 | 83 | } |
84 | 84 | |
85 | 85 | } |
86 | 86 | \ No newline at end of file |
@@ -26,5 +26,5 @@ |
||
26 | 26 | * @param string $name Admin name (from configuration or "Standard" if null) |
27 | 27 | * @return \Aimeos\Admin\JQAdm\Iface New client object |
28 | 28 | */ |
29 | - public static function create( \Aimeos\MShop\Context\Item\Iface $context, $name = null ); |
|
29 | + public static function create(\Aimeos\MShop\Context\Item\Iface $context, $name = null); |
|
30 | 30 | } |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | * @param string $classname Full name of the class for which the object should be returned |
31 | 31 | * @param \Aimeos\Admin\JQAdm\Iface|null $client ExtJS client object |
32 | 32 | */ |
33 | - public static function injectClient( $classname, \Aimeos\Admin\JQAdm\Iface $client = null ) |
|
33 | + public static function injectClient($classname, \Aimeos\Admin\JQAdm\Iface $client = null) |
|
34 | 34 | { |
35 | 35 | self::$objects[$classname] = $client; |
36 | 36 | } |
@@ -45,26 +45,26 @@ discard block |
||
45 | 45 | * @param string $classprefix Decorator class prefix, e.g. "\Aimeos\Admin\JQAdm\Catalog\Decorator\" |
46 | 46 | * @return \Aimeos\Admin\JQAdm\Iface Admin object |
47 | 47 | */ |
48 | - protected static function addDecorators( \Aimeos\MShop\Context\Item\Iface $context, |
|
49 | - \Aimeos\Admin\JQAdm\Iface $client, array $decorators, $classprefix ) |
|
48 | + protected static function addDecorators(\Aimeos\MShop\Context\Item\Iface $context, |
|
49 | + \Aimeos\Admin\JQAdm\Iface $client, array $decorators, $classprefix) |
|
50 | 50 | { |
51 | - foreach( $decorators as $name ) |
|
51 | + foreach ($decorators as $name) |
|
52 | 52 | { |
53 | - if( ctype_alnum( $name ) === false ) |
|
53 | + if (ctype_alnum($name) === false) |
|
54 | 54 | { |
55 | - $classname = is_string( $name ) ? $classprefix . $name : '<not a string>'; |
|
56 | - throw new \Aimeos\Admin\JQAdm\Exception( sprintf( 'Invalid class name "%1$s"', $classname ) ); |
|
55 | + $classname = is_string($name) ? $classprefix . $name : '<not a string>'; |
|
56 | + throw new \Aimeos\Admin\JQAdm\Exception(sprintf('Invalid class name "%1$s"', $classname)); |
|
57 | 57 | } |
58 | 58 | |
59 | 59 | $classname = $classprefix . $name; |
60 | 60 | |
61 | - if( class_exists( $classname ) === false ) { |
|
62 | - throw new \Aimeos\Admin\JQAdm\Exception( sprintf( 'Class "%1$s" not found', $classname ) ); |
|
61 | + if (class_exists($classname) === false) { |
|
62 | + throw new \Aimeos\Admin\JQAdm\Exception(sprintf('Class "%1$s" not found', $classname)); |
|
63 | 63 | } |
64 | 64 | |
65 | - $client = new $classname( $client, $context ); |
|
65 | + $client = new $classname($client, $context); |
|
66 | 66 | |
67 | - \Aimeos\MW\Common\Base::checkClass( '\\Aimeos\\Admin\\JQAdm\\Common\\Decorator\\Iface', $client ); |
|
67 | + \Aimeos\MW\Common\Base::checkClass('\\Aimeos\\Admin\\JQAdm\\Common\\Decorator\\Iface', $client); |
|
68 | 68 | } |
69 | 69 | |
70 | 70 | return $client; |
@@ -79,14 +79,14 @@ discard block |
||
79 | 79 | * @param string $path Path of the client in lower case, e.g. "catalog/detail" |
80 | 80 | * @return \Aimeos\Admin\JQAdm\Iface Admin object |
81 | 81 | */ |
82 | - protected static function addClientDecorators( \Aimeos\MShop\Context\Item\Iface $context, |
|
83 | - \Aimeos\Admin\JQAdm\Iface $client, $path ) |
|
82 | + protected static function addClientDecorators(\Aimeos\MShop\Context\Item\Iface $context, |
|
83 | + \Aimeos\Admin\JQAdm\Iface $client, $path) |
|
84 | 84 | { |
85 | - if( !is_string( $path ) || $path === '' ) { |
|
86 | - throw new \Aimeos\Admin\JQAdm\Exception( sprintf( 'Invalid domain "%1$s"', $path ) ); |
|
85 | + if (!is_string($path) || $path === '') { |
|
86 | + throw new \Aimeos\Admin\JQAdm\Exception(sprintf('Invalid domain "%1$s"', $path)); |
|
87 | 87 | } |
88 | 88 | |
89 | - $localClass = str_replace( ' ', '\\', ucwords( str_replace( '/', ' ', $path ) ) ); |
|
89 | + $localClass = str_replace(' ', '\\', ucwords(str_replace('/', ' ', $path))); |
|
90 | 90 | $config = $context->getConfig(); |
91 | 91 | |
92 | 92 | /** admin/jqadm/common/decorators/default |
@@ -111,26 +111,26 @@ discard block |
||
111 | 111 | * @since 2014.03 |
112 | 112 | * @category Developer |
113 | 113 | */ |
114 | - $decorators = $config->get( 'admin/jqadm/common/decorators/default', [] ); |
|
115 | - $excludes = $config->get( 'admin/jqadm/' . $path . '/decorators/excludes', [] ); |
|
114 | + $decorators = $config->get('admin/jqadm/common/decorators/default', []); |
|
115 | + $excludes = $config->get('admin/jqadm/' . $path . '/decorators/excludes', []); |
|
116 | 116 | |
117 | - foreach( $decorators as $key => $name ) |
|
117 | + foreach ($decorators as $key => $name) |
|
118 | 118 | { |
119 | - if( in_array( $name, $excludes ) ) { |
|
120 | - unset( $decorators[$key] ); |
|
119 | + if (in_array($name, $excludes)) { |
|
120 | + unset($decorators[$key]); |
|
121 | 121 | } |
122 | 122 | } |
123 | 123 | |
124 | 124 | $classprefix = '\\Aimeos\\Admin\\JQAdm\\Common\\Decorator\\'; |
125 | - $client = self::addDecorators( $context, $client, $decorators, $classprefix ); |
|
125 | + $client = self::addDecorators($context, $client, $decorators, $classprefix); |
|
126 | 126 | |
127 | 127 | $classprefix = '\\Aimeos\\Admin\\JQAdm\\Common\\Decorator\\'; |
128 | - $decorators = $config->get( 'admin/jqadm/' . $path . '/decorators/global', [] ); |
|
129 | - $client = self::addDecorators( $context, $client, $decorators, $classprefix ); |
|
128 | + $decorators = $config->get('admin/jqadm/' . $path . '/decorators/global', []); |
|
129 | + $client = self::addDecorators($context, $client, $decorators, $classprefix); |
|
130 | 130 | |
131 | 131 | $classprefix = '\\Aimeos\\Admin\\JQAdm\\' . $localClass . '\\Decorator\\'; |
132 | - $decorators = $config->get( 'admin/jqadm/' . $path . '/decorators/local', [] ); |
|
133 | - $client = self::addDecorators( $context, $client, $decorators, $classprefix ); |
|
132 | + $decorators = $config->get('admin/jqadm/' . $path . '/decorators/local', []); |
|
133 | + $client = self::addDecorators($context, $client, $decorators, $classprefix); |
|
134 | 134 | |
135 | 135 | return $client; |
136 | 136 | } |
@@ -145,19 +145,19 @@ discard block |
||
145 | 145 | * @return \Aimeos\Admin\JQAdm\\Iface Admin object |
146 | 146 | * @throws \Aimeos\Admin\JQAdm\Exception If client couldn't be found or doesn't implement the interface |
147 | 147 | */ |
148 | - protected static function createAdmin( \Aimeos\MShop\Context\Item\Iface $context, $classname, $interface ) |
|
148 | + protected static function createAdmin(\Aimeos\MShop\Context\Item\Iface $context, $classname, $interface) |
|
149 | 149 | { |
150 | - if( isset( self::$objects[$classname] ) ) { |
|
150 | + if (isset(self::$objects[$classname])) { |
|
151 | 151 | return self::$objects[$classname]; |
152 | 152 | } |
153 | 153 | |
154 | - if( class_exists( $classname ) === false ) { |
|
155 | - throw new \Aimeos\Admin\JQAdm\Exception( sprintf( 'Class "%1$s" not available', $classname ) ); |
|
154 | + if (class_exists($classname) === false) { |
|
155 | + throw new \Aimeos\Admin\JQAdm\Exception(sprintf('Class "%1$s" not available', $classname)); |
|
156 | 156 | } |
157 | 157 | |
158 | - $client = new $classname( $context ); |
|
158 | + $client = new $classname($context); |
|
159 | 159 | |
160 | - \Aimeos\MW\Common\Base::checkClass( $interface, $client ); |
|
160 | + \Aimeos\MW\Common\Base::checkClass($interface, $client); |
|
161 | 161 | |
162 | 162 | return $client; |
163 | 163 | } |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | * @return \Aimeos\Admin\JQAdm\Iface Filter part implementing \Aimeos\Admin\JQAdm\Iface |
30 | 30 | * @throws \Aimeos\Admin\JQAdm\Exception If requested client implementation couldn't be found or initialisation fails |
31 | 31 | */ |
32 | - public static function create( \Aimeos\MShop\Context\Item\Iface $context, $name = null ) |
|
32 | + public static function create(\Aimeos\MShop\Context\Item\Iface $context, $name = null) |
|
33 | 33 | { |
34 | 34 | /** admin/jqadm/log/name |
35 | 35 | * Class name of the used account favorite client implementation |
@@ -64,22 +64,22 @@ discard block |
||
64 | 64 | * @since 2018.04 |
65 | 65 | * @category Developer |
66 | 66 | */ |
67 | - if( $name === null ) { |
|
68 | - $name = $context->getConfig()->get( 'admin/jqadm/log/name', 'Standard' ); |
|
67 | + if ($name === null) { |
|
68 | + $name = $context->getConfig()->get('admin/jqadm/log/name', 'Standard'); |
|
69 | 69 | } |
70 | 70 | |
71 | - if( ctype_alnum( $name ) === false ) |
|
71 | + if (ctype_alnum($name) === false) |
|
72 | 72 | { |
73 | - $classname = is_string( $name ) ? '\\Aimeos\\Admin\\JQAdm\\Log\\' . $name : '<not a string>'; |
|
74 | - throw new \Aimeos\Admin\JQAdm\Exception( sprintf( 'Invalid characters in class name "%1$s"', $classname ) ); |
|
73 | + $classname = is_string($name) ? '\\Aimeos\\Admin\\JQAdm\\Log\\' . $name : '<not a string>'; |
|
74 | + throw new \Aimeos\Admin\JQAdm\Exception(sprintf('Invalid characters in class name "%1$s"', $classname)); |
|
75 | 75 | } |
76 | 76 | |
77 | 77 | $iface = '\\Aimeos\\Admin\\JQAdm\\Iface'; |
78 | 78 | $classname = '\\Aimeos\\Admin\\JQAdm\\Log\\' . $name; |
79 | 79 | |
80 | - $client = self::createAdmin( $context, $classname, $iface ); |
|
80 | + $client = self::createAdmin($context, $classname, $iface); |
|
81 | 81 | |
82 | - return self::addClientDecorators( $context, $client, 'log' ); |
|
82 | + return self::addClientDecorators($context, $client, 'log'); |
|
83 | 83 | } |
84 | 84 | |
85 | 85 | } |
86 | 86 | \ No newline at end of file |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | * @return \Aimeos\Admin\JQAdm\Iface Filter part implementing \Aimeos\Admin\JQAdm\Iface |
30 | 30 | * @throws \Aimeos\Admin\JQAdm\Exception If requested client implementation couldn't be found or initialisation fails |
31 | 31 | */ |
32 | - public static function create( \Aimeos\MShop\Context\Item\Iface $context, $name = null ) |
|
32 | + public static function create(\Aimeos\MShop\Context\Item\Iface $context, $name = null) |
|
33 | 33 | { |
34 | 34 | /** admin/jqadm/locale/site/name |
35 | 35 | * Class name of the used account favorite client implementation |
@@ -64,22 +64,22 @@ discard block |
||
64 | 64 | * @since 2017.10 |
65 | 65 | * @category Developer |
66 | 66 | */ |
67 | - if( $name === null ) { |
|
68 | - $name = $context->getConfig()->get( 'admin/jqadm/locale/site/name', 'Standard' ); |
|
67 | + if ($name === null) { |
|
68 | + $name = $context->getConfig()->get('admin/jqadm/locale/site/name', 'Standard'); |
|
69 | 69 | } |
70 | 70 | |
71 | - if( ctype_alnum( $name ) === false ) |
|
71 | + if (ctype_alnum($name) === false) |
|
72 | 72 | { |
73 | - $classname = is_string( $name ) ? '\\Aimeos\\Admin\\JQAdm\\Locale\\Site\\' . $name : '<not a string>'; |
|
74 | - throw new \Aimeos\Admin\JQAdm\Exception( sprintf( 'Invalid characters in class name "%1$s"', $classname ) ); |
|
73 | + $classname = is_string($name) ? '\\Aimeos\\Admin\\JQAdm\\Locale\\Site\\' . $name : '<not a string>'; |
|
74 | + throw new \Aimeos\Admin\JQAdm\Exception(sprintf('Invalid characters in class name "%1$s"', $classname)); |
|
75 | 75 | } |
76 | 76 | |
77 | 77 | $iface = '\\Aimeos\\Admin\\JQAdm\\Iface'; |
78 | 78 | $classname = '\\Aimeos\\Admin\\JQAdm\\Locale\\Site\\' . $name; |
79 | 79 | |
80 | - $client = self::createAdmin( $context, $classname, $iface ); |
|
80 | + $client = self::createAdmin($context, $classname, $iface); |
|
81 | 81 | |
82 | - return self::addClientDecorators( $context, $client, 'locale/site' ); |
|
82 | + return self::addClientDecorators($context, $client, 'locale/site'); |
|
83 | 83 | } |
84 | 84 | |
85 | 85 | } |
86 | 86 | \ No newline at end of file |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | * @return \Aimeos\Admin\JQAdm\Iface Filter part implementing \Aimeos\Admin\JQAdm\Iface |
30 | 30 | * @throws \Aimeos\Admin\JQAdm\Exception If requested client implementation couldn't be found or initialisation fails |
31 | 31 | */ |
32 | - public static function create( \Aimeos\MShop\Context\Item\Iface $context, $name = null ) |
|
32 | + public static function create(\Aimeos\MShop\Context\Item\Iface $context, $name = null) |
|
33 | 33 | { |
34 | 34 | /** admin/jqadm/locale/currency/name |
35 | 35 | * Class name of the used account favorite client implementation |
@@ -64,22 +64,22 @@ discard block |
||
64 | 64 | * @since 2017.10 |
65 | 65 | * @category Developer |
66 | 66 | */ |
67 | - if( $name === null ) { |
|
68 | - $name = $context->getConfig()->get( 'admin/jqadm/locale/currency/name', 'Standard' ); |
|
67 | + if ($name === null) { |
|
68 | + $name = $context->getConfig()->get('admin/jqadm/locale/currency/name', 'Standard'); |
|
69 | 69 | } |
70 | 70 | |
71 | - if( ctype_alnum( $name ) === false ) |
|
71 | + if (ctype_alnum($name) === false) |
|
72 | 72 | { |
73 | - $classname = is_string( $name ) ? '\\Aimeos\\Admin\\JQAdm\\Locale\\Currency\\' . $name : '<not a string>'; |
|
74 | - throw new \Aimeos\Admin\JQAdm\Exception( sprintf( 'Invalid characters in class name "%1$s"', $classname ) ); |
|
73 | + $classname = is_string($name) ? '\\Aimeos\\Admin\\JQAdm\\Locale\\Currency\\' . $name : '<not a string>'; |
|
74 | + throw new \Aimeos\Admin\JQAdm\Exception(sprintf('Invalid characters in class name "%1$s"', $classname)); |
|
75 | 75 | } |
76 | 76 | |
77 | 77 | $iface = '\\Aimeos\\Admin\\JQAdm\\Iface'; |
78 | 78 | $classname = '\\Aimeos\\Admin\\JQAdm\\Locale\\Currency\\' . $name; |
79 | 79 | |
80 | - $client = self::createAdmin( $context, $classname, $iface ); |
|
80 | + $client = self::createAdmin($context, $classname, $iface); |
|
81 | 81 | |
82 | - return self::addClientDecorators( $context, $client, 'locale/currency' ); |
|
82 | + return self::addClientDecorators($context, $client, 'locale/currency'); |
|
83 | 83 | } |
84 | 84 | |
85 | 85 | } |
86 | 86 | \ No newline at end of file |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | * @return \Aimeos\Admin\JQAdm\Iface Filter part implementing \Aimeos\Admin\JQAdm\Iface |
30 | 30 | * @throws \Aimeos\Admin\JQAdm\Exception If requested client implementation couldn't be found or initialisation fails |
31 | 31 | */ |
32 | - public static function create( \Aimeos\MShop\Context\Item\Iface $context, $name = null ) |
|
32 | + public static function create(\Aimeos\MShop\Context\Item\Iface $context, $name = null) |
|
33 | 33 | { |
34 | 34 | /** admin/jqadm/locale/language/name |
35 | 35 | * Class name of the used account favorite client implementation |
@@ -64,22 +64,22 @@ discard block |
||
64 | 64 | * @since 2017.10 |
65 | 65 | * @category Developer |
66 | 66 | */ |
67 | - if( $name === null ) { |
|
68 | - $name = $context->getConfig()->get( 'admin/jqadm/locale/language/name', 'Standard' ); |
|
67 | + if ($name === null) { |
|
68 | + $name = $context->getConfig()->get('admin/jqadm/locale/language/name', 'Standard'); |
|
69 | 69 | } |
70 | 70 | |
71 | - if( ctype_alnum( $name ) === false ) |
|
71 | + if (ctype_alnum($name) === false) |
|
72 | 72 | { |
73 | - $classname = is_string( $name ) ? '\\Aimeos\\Admin\\JQAdm\\Locale\\Language\\' . $name : '<not a string>'; |
|
74 | - throw new \Aimeos\Admin\JQAdm\Exception( sprintf( 'Invalid characters in class name "%1$s"', $classname ) ); |
|
73 | + $classname = is_string($name) ? '\\Aimeos\\Admin\\JQAdm\\Locale\\Language\\' . $name : '<not a string>'; |
|
74 | + throw new \Aimeos\Admin\JQAdm\Exception(sprintf('Invalid characters in class name "%1$s"', $classname)); |
|
75 | 75 | } |
76 | 76 | |
77 | 77 | $iface = '\\Aimeos\\Admin\\JQAdm\\Iface'; |
78 | 78 | $classname = '\\Aimeos\\Admin\\JQAdm\\Locale\\Language\\' . $name; |
79 | 79 | |
80 | - $client = self::createAdmin( $context, $classname, $iface ); |
|
80 | + $client = self::createAdmin($context, $classname, $iface); |
|
81 | 81 | |
82 | - return self::addClientDecorators( $context, $client, 'locale/language' ); |
|
82 | + return self::addClientDecorators($context, $client, 'locale/language'); |
|
83 | 83 | } |
84 | 84 | |
85 | 85 | } |
86 | 86 | \ No newline at end of file |