@@ -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 createClient( \Aimeos\MShop\Context\Item\Iface $context, $name = null ) |
|
| 32 | + public static function createClient(\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::createClientBase( $context, $classname, $iface ); |
|
| 80 | + $client = self::createClientBase($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 createClient( \Aimeos\MShop\Context\Item\Iface $context, $name = null ) |
|
| 32 | + public static function createClient(\Aimeos\MShop\Context\Item\Iface $context, $name = null) |
|
| 33 | 33 | { |
| 34 | 34 | /** admin/jqadm/plugin/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/plugin/name', 'Standard' ); |
|
| 67 | + if ($name === null) { |
|
| 68 | + $name = $context->getConfig()->get('admin/jqadm/plugin/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\\Plugin\\' . $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\\Plugin\\' . $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\\Plugin\\' . $name; |
| 79 | 79 | |
| 80 | - $client = self::createClientBase( $context, $classname, $iface ); |
|
| 80 | + $client = self::createClientBase($context, $classname, $iface); |
|
| 81 | 81 | |
| 82 | - return self::addClientDecorators( $context, $client, 'plugin' ); |
|
| 82 | + return self::addClientDecorators($context, $client, 'plugin'); |
|
| 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 createClient( \Aimeos\MShop\Context\Item\Iface $context, $name = null ) |
|
| 32 | + public static function createClient(\Aimeos\MShop\Context\Item\Iface $context, $name = null) |
|
| 33 | 33 | { |
| 34 | 34 | /** admin/jqadm/coupon/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/coupon/name', 'Standard' ); |
|
| 67 | + if ($name === null) { |
|
| 68 | + $name = $context->getConfig()->get('admin/jqadm/coupon/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\\Coupon\\' . $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\\Coupon\\' . $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\\Coupon\\' . $name; |
| 79 | 79 | |
| 80 | - $client = self::createClientBase( $context, $classname, $iface ); |
|
| 80 | + $client = self::createClientBase($context, $classname, $iface); |
|
| 81 | 81 | |
| 82 | - return self::addClientDecorators( $context, $client, 'coupon' ); |
|
| 82 | + return self::addClientDecorators($context, $client, 'coupon'); |
|
| 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 createClient( \Aimeos\MShop\Context\Item\Iface $context, $name = null ) |
|
| 32 | + public static function createClient(\Aimeos\MShop\Context\Item\Iface $context, $name = null) |
|
| 33 | 33 | { |
| 34 | 34 | /** admin/jqadm/customer/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/customer/name', 'Standard' ); |
|
| 67 | + if ($name === null) { |
|
| 68 | + $name = $context->getConfig()->get('admin/jqadm/customer/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\\Customer\\' . $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\\Customer\\' . $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\\Customer\\' . $name; |
| 79 | 79 | |
| 80 | - $client = self::createClientBase( $context, $classname, $iface ); |
|
| 80 | + $client = self::createClientBase($context, $classname, $iface); |
|
| 81 | 81 | |
| 82 | - return self::addClientDecorators( $context, $client, 'customer' ); |
|
| 82 | + return self::addClientDecorators($context, $client, 'customer'); |
|
| 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 createClient( \Aimeos\MShop\Context\Item\Iface $context, $name = null ) |
|
| 32 | + public static function createClient(\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::createClientBase( $context, $classname, $iface ); |
|
| 80 | + $client = self::createClientBase($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 |
@@ -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 createClient( \Aimeos\MShop\Context\Item\Iface $context, $name = null ) |
|
| 32 | + public static function createClient(\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::createClientBase( $context, $classname, $iface ); |
|
| 80 | + $client = self::createClientBase($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 |
@@ -25,5 +25,5 @@ |
||
| 25 | 25 | * |
| 26 | 26 | * @param \Aimeos\MShop\Context\Item\Iface $context Context object |
| 27 | 27 | */ |
| 28 | - public function __construct( \Aimeos\MShop\Context\Item\Iface $context ); |
|
| 28 | + public function __construct(\Aimeos\MShop\Context\Item\Iface $context); |
|
| 29 | 29 | } |
@@ -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 createClient( \Aimeos\MShop\Context\Item\Iface $context, $name = null ); |
|
| 29 | + public static function createClient(\Aimeos\MShop\Context\Item\Iface $context, $name = null); |
|
| 30 | 30 | } |
@@ -30,10 +30,10 @@ discard block |
||
| 30 | 30 | * @param \Aimeos\Admin\JQAdm\Iface $client Admin object |
| 31 | 31 | * @param \Aimeos\MShop\Context\Item\Iface $context Context object with required objects |
| 32 | 32 | */ |
| 33 | - public function __construct( \Aimeos\Admin\JQAdm\Iface $client, |
|
| 34 | - \Aimeos\MShop\Context\Item\Iface $context ) |
|
| 33 | + public function __construct(\Aimeos\Admin\JQAdm\Iface $client, |
|
| 34 | + \Aimeos\MShop\Context\Item\Iface $context) |
|
| 35 | 35 | { |
| 36 | - parent::__construct( $context ); |
|
| 36 | + parent::__construct($context); |
|
| 37 | 37 | |
| 38 | 38 | $this->client = $client; |
| 39 | 39 | } |
@@ -47,9 +47,9 @@ discard block |
||
| 47 | 47 | * @return mixed Returns the value of the called method |
| 48 | 48 | * @throws \Aimeos\Admin\JQAdm\Exception If method call failed |
| 49 | 49 | */ |
| 50 | - public function __call( $name, array $param ) |
|
| 50 | + public function __call($name, array $param) |
|
| 51 | 51 | { |
| 52 | - return @call_user_func_array( array( $this->client, $name ), $param ); |
|
| 52 | + return @call_user_func_array(array($this->client, $name), $param); |
|
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | |
@@ -148,9 +148,9 @@ discard block |
||
| 148 | 148 | * @param string|null $name Name of the sub-client (Default if null) |
| 149 | 149 | * @return \Aimeos\Admin\JQAdm\Iface Sub-client object |
| 150 | 150 | */ |
| 151 | - public function getSubClient( $type, $name = null ) |
|
| 151 | + public function getSubClient($type, $name = null) |
|
| 152 | 152 | { |
| 153 | - return $this->client->getSubClient( $type, $name ); |
|
| 153 | + return $this->client->getSubClient($type, $name); |
|
| 154 | 154 | } |
| 155 | 155 | |
| 156 | 156 | |
@@ -171,11 +171,11 @@ discard block |
||
| 171 | 171 | * @param \Aimeos\MW\View\Iface $view The view object which generates the admin output |
| 172 | 172 | * @return \Aimeos\Admin\JQAdm\Iface Reference to this object for fluent calls |
| 173 | 173 | */ |
| 174 | - public function setView( \Aimeos\MW\View\Iface $view ) |
|
| 174 | + public function setView(\Aimeos\MW\View\Iface $view) |
|
| 175 | 175 | { |
| 176 | - parent::setView( $view ); |
|
| 176 | + parent::setView($view); |
|
| 177 | 177 | |
| 178 | - $this->client->setView( $view ); |
|
| 178 | + $this->client->setView($view); |
|
| 179 | 179 | return $this; |
| 180 | 180 | } |
| 181 | 181 | |
@@ -197,11 +197,11 @@ discard block |
||
| 197 | 197 | * @param \Aimeos\Bootstrap $aimeos The Aimeos bootstrap object |
| 198 | 198 | * @return \Aimeos\Admin\JQAdm\Iface Reference to this object for fluent calls |
| 199 | 199 | */ |
| 200 | - public function setAimeos( \Aimeos\Bootstrap $aimeos ) |
|
| 200 | + public function setAimeos(\Aimeos\Bootstrap $aimeos) |
|
| 201 | 201 | { |
| 202 | - parent::setAimeos( $aimeos ); |
|
| 202 | + parent::setAimeos($aimeos); |
|
| 203 | 203 | |
| 204 | - $this->client->setAimeos( $aimeos ); |
|
| 204 | + $this->client->setAimeos($aimeos); |
|
| 205 | 205 | return $this; |
| 206 | 206 | } |
| 207 | 207 | |