@@ -33,7 +33,7 @@ |
||
33 | 33 | * @param \Aimeos\MShop\Coupon\Item\Iface $couponItem Coupon item with configuration for the provider |
34 | 34 | * @param string $code Coupon code entered by the customer |
35 | 35 | */ |
36 | - public function __construct( \Aimeos\MShop\Coupon\Provider\Iface $provider, |
|
36 | + public function __construct( \Aimeos\MShop\Coupon\Provider\Iface $provider, |
|
37 | 37 | \Aimeos\MShop\Context\Item\Iface $context, \Aimeos\MShop\Coupon\Item\Iface $couponItem, $code ) |
38 | 38 | { |
39 | 39 | $this->provider = $provider; |
@@ -35,7 +35,7 @@ |
||
35 | 35 | $this->orderBase = new \Aimeos\MShop\Order\Item\Base\Standard( $priceManager->createItem(), $context->getLocale() ); |
36 | 36 | |
37 | 37 | $provider = new \Aimeos\MShop\Coupon\Provider\Example( $context, $item, 'abcd' ); |
38 | - $this->object = new \Aimeos\MShop\Coupon\Provider\Decorator\Example( $provider, $context, $item, 'abcd'); |
|
38 | + $this->object = new \Aimeos\MShop\Coupon\Provider\Decorator\Example( $provider, $context, $item, 'abcd' ); |
|
39 | 39 | $this->object->setObject( $this->object ); |
40 | 40 | } |
41 | 41 |
@@ -33,7 +33,7 @@ |
||
33 | 33 | $this->couponItem = \Aimeos\MShop\Coupon\Manager\Factory::createManager( $context )->createItem(); |
34 | 34 | |
35 | 35 | $provider = new \Aimeos\MShop\Coupon\Provider\Example( $context, $this->couponItem, 'abcd' ); |
36 | - $this->object = new \Aimeos\MShop\Coupon\Provider\Decorator\Required( $provider, $context, $this->couponItem, 'abcd'); |
|
36 | + $this->object = new \Aimeos\MShop\Coupon\Provider\Decorator\Required( $provider, $context, $this->couponItem, 'abcd' ); |
|
37 | 37 | $this->object->setObject( $this->object ); |
38 | 38 | |
39 | 39 | $orderManager = \Aimeos\MShop\Order\Manager\Factory::createManager( $context ); |
@@ -76,7 +76,7 @@ |
||
76 | 76 | { |
77 | 77 | if( $code == $this->getCode() ) { return $this; } |
78 | 78 | |
79 | - $this->values['locale.site.code'] = (string) $this->checkCode( $code );; |
|
79 | + $this->values['locale.site.code'] = (string) $this->checkCode( $code ); ; |
|
80 | 80 | $this->setModified(); |
81 | 81 | |
82 | 82 | return $this; |
@@ -191,7 +191,7 @@ |
||
191 | 191 | { |
192 | 192 | if( $code == $this->getCode() ) { return $this; } |
193 | 193 | |
194 | - $this->values['order.base.service.attribute.code'] = (string) $this->checkCode( $code );; |
|
194 | + $this->values['order.base.service.attribute.code'] = (string) $this->checkCode( $code ); ; |
|
195 | 195 | $this->setModified(); |
196 | 196 | |
197 | 197 | return $this; |
@@ -145,7 +145,7 @@ |
||
145 | 145 | { |
146 | 146 | if( $code == $this->getCode() ) { return $this; } |
147 | 147 | |
148 | - $this->values['order.base.service.code'] = (string) $this->checkCode( $code );; |
|
148 | + $this->values['order.base.service.code'] = (string) $this->checkCode( $code ); ; |
|
149 | 149 | $this->setModified(); |
150 | 150 | |
151 | 151 | return $this; |
@@ -64,7 +64,7 @@ |
||
64 | 64 | { |
65 | 65 | if( $code == $this->getCode() ) { return $this; } |
66 | 66 | |
67 | - $this->values['service.code'] = (string) $this->checkCode( $code );; |
|
67 | + $this->values['service.code'] = (string) $this->checkCode( $code ); ; |
|
68 | 68 | $this->setModified(); |
69 | 69 | |
70 | 70 | return $this; |
@@ -96,7 +96,7 @@ |
||
96 | 96 | { |
97 | 97 | if( $value == $this->getCode() ) { return $this; } |
98 | 98 | |
99 | - $this->values['supplier.code'] = (string) $this->checkCode( $value );; |
|
99 | + $this->values['supplier.code'] = (string) $this->checkCode( $value ); ; |
|
100 | 100 | $this->setModified(); |
101 | 101 | |
102 | 102 | return $this; |
@@ -152,7 +152,7 @@ |
||
152 | 152 | * @return self |
153 | 153 | * @throws \InvalidArgumentException for invalid header names or values. |
154 | 154 | */ |
155 | - public function withHeader($name, $value ) |
|
155 | + public function withHeader( $name, $value ) |
|
156 | 156 | { |
157 | 157 | $this->response = $this->response->withHeader( $name, $value ); |
158 | 158 | return $this; |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | * |
104 | 104 | * @param string $version HTTP protocol version |
105 | 105 | * @return self |
106 | - */ |
|
106 | + */ |
|
107 | 107 | public function withProtocolVersion( $version ) |
108 | 108 | { |
109 | 109 | $this->response = $this->response->withProtocolVersion( $version ); |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | * @return string[][] Returns an associative array of the message's headers. |
118 | 118 | * Each key MUST be a header name, and each value MUST be an array of |
119 | 119 | * strings for that header. |
120 | - */ |
|
120 | + */ |
|
121 | 121 | public function getHeaders() |
122 | 122 | { |
123 | 123 | return $this->response->getHeaders(); |