Completed
Push — master ( 9f51fe...10606c )
by Aimeos
02:50
created
controller/frontend/src/Controller/Frontend/Service/Standard.php 1 patch
Spacing   +69 added lines, -69 removed lines patch added patch discarded remove patch
@@ -35,12 +35,12 @@  discard block
 block discarded – undo
35 35
 	 * @param string[] $attributes List of attribute codes as keys and strings entered by the customer as value
36 36
 	 * @return string[] List of attributes codes as keys and error messages as values for invalid or missing values
37 37
 	 */
38
-	public function checkAttributes( $serviceId, array $attributes )
38
+	public function checkAttributes($serviceId, array $attributes)
39 39
 	{
40
-		$manager = \Aimeos\MShop\Factory::createManager( $this->getContext(), 'service' );
41
-		$provider = $manager->getProvider( $manager->getItem( $serviceId, [], true ) );
40
+		$manager = \Aimeos\MShop\Factory::createManager($this->getContext(), 'service');
41
+		$provider = $manager->getProvider($manager->getItem($serviceId, [], true));
42 42
 
43
-		return array_filter( $provider->checkConfigFE( $attributes ) );
43
+		return array_filter($provider->checkConfigFE($attributes));
44 44
 	}
45 45
 
46 46
 
@@ -51,10 +51,10 @@  discard block
 block discarded – undo
51 51
 	 * @param string[] $ref List of domain names whose items should be fetched too
52 52
 	 * @return \Aimeos\MShop\Service\Provider\Iface Service provider object
53 53
 	 */
54
-	public function getProvider( $serviceId, $ref = ['media', 'price', 'text'] )
54
+	public function getProvider($serviceId, $ref = ['media', 'price', 'text'])
55 55
 	{
56
-		$manager = \Aimeos\MShop\Factory::createManager( $this->getContext(), 'service' );
57
-		return $manager->getProvider( $manager->getItem( $serviceId, $ref, true ) );
56
+		$manager = \Aimeos\MShop\Factory::createManager($this->getContext(), 'service');
57
+		return $manager->getProvider($manager->getItem($serviceId, $ref, true));
58 58
 	}
59 59
 
60 60
 
@@ -65,26 +65,26 @@  discard block
 block discarded – undo
65 65
 	 * @param string[] $ref List of domain names whose items should be fetched too
66 66
 	 * @return \Aimeos\MShop\Service\Provider\Iface[] List of service IDs as keys and service provider objects as values
67 67
 	 */
68
-	public function getProviders( $type = null, $ref = ['media', 'price', 'text'] )
68
+	public function getProviders($type = null, $ref = ['media', 'price', 'text'])
69 69
 	{
70 70
 		$list = [];
71
-		$manager = \Aimeos\MShop\Factory::createManager( $this->getContext(), 'service' );
71
+		$manager = \Aimeos\MShop\Factory::createManager($this->getContext(), 'service');
72 72
 
73
-		$search = $manager->createSearch( true );
74
-		$search->setSortations( array( $search->sort( '+', 'service.position' ) ) );
73
+		$search = $manager->createSearch(true);
74
+		$search->setSortations(array($search->sort('+', 'service.position')));
75 75
 
76
-		if( $type != null )
76
+		if ($type != null)
77 77
 		{
78 78
 			$expr = array(
79 79
 				$search->getConditions(),
80
-				$search->compare( '==', 'service.type.code', $type ),
81
-				$search->compare( '==', 'service.type.domain', 'service' ),
80
+				$search->compare('==', 'service.type.code', $type),
81
+				$search->compare('==', 'service.type.domain', 'service'),
82 82
 			);
83
-			$search->setConditions( $search->combine( '&&', $expr ) );
83
+			$search->setConditions($search->combine('&&', $expr));
84 84
 		}
85 85
 
86
-		foreach( $manager->searchItems( $search, $ref ) as $id => $item ) {
87
-			$list[$id] = $manager->getProvider( $item );
86
+		foreach ($manager->searchItems($search, $ref) as $id => $item) {
87
+			$list[$id] = $manager->getProvider($item);
88 88
 		}
89 89
 
90 90
 		return $list;
@@ -102,14 +102,14 @@  discard block
 block discarded – undo
102 102
 	 * @return \Aimeos\MShop\Common\Item\Helper\Form\Iface|null Form object with URL, parameters, etc.
103 103
 	 * 	or null if no form data is required
104 104
 	 */
105
-	public function process( \Aimeos\MShop\Order\Item\Iface $orderItem, $serviceId, array $urls, array $params )
105
+	public function process(\Aimeos\MShop\Order\Item\Iface $orderItem, $serviceId, array $urls, array $params)
106 106
 	{
107
-		$manager = \Aimeos\MShop\Factory::createManager( $this->getContext(), 'service' );
107
+		$manager = \Aimeos\MShop\Factory::createManager($this->getContext(), 'service');
108 108
 
109
-		$provider = $manager->getProvider( $manager->getItem( $serviceId, [], true ) );
110
-		$provider->injectGlobalConfigBE( $urls );
109
+		$provider = $manager->getProvider($manager->getItem($serviceId, [], true));
110
+		$provider->injectGlobalConfigBE($urls);
111 111
 
112
-		return $provider->process( $orderItem, $params );
112
+		return $provider->process($orderItem, $params);
113 113
 	}
114 114
 
115 115
 
@@ -122,35 +122,35 @@  discard block
 block discarded – undo
122 122
 	 * 	(keys are <type>.url-self, <type>.url-success, <type>.url-update where type can be "delivery" or "payment")
123 123
 	 * @return \Aimeos\MShop\Order\Item\Iface $orderItem Order item that has been updated
124 124
 	 */
125
-	public function updateSync( ServerRequestInterface $request, ResponseInterface $response, array $urls )
125
+	public function updateSync(ServerRequestInterface $request, ResponseInterface $response, array $urls)
126 126
 	{
127 127
 		$queryParams = $request->getQueryParams();
128 128
 
129
-		if( !isset( $queryParams['code'] ) ) {
129
+		if (!isset($queryParams['code'])) {
130 130
 			return;
131 131
 		}
132 132
 
133 133
 		$context = $this->getContext();
134
-		$manager = \Aimeos\MShop\Factory::createManager( $context, 'service' );
134
+		$manager = \Aimeos\MShop\Factory::createManager($context, 'service');
135 135
 
136
-		$provider = $manager->getProvider( $manager->findItem( $queryParams['code'] ) );
137
-		$provider->injectGlobalConfigBE( $urls );
136
+		$provider = $manager->getProvider($manager->findItem($queryParams['code']));
137
+		$provider->injectGlobalConfigBE($urls);
138 138
 
139
-		$params = array_merge( $queryParams, (array) $request->getParsedBody() );
139
+		$params = array_merge($queryParams, (array) $request->getParsedBody());
140 140
 		$body = (string) $request->getBody();
141 141
 		$response = null;
142 142
 		$headers = [];
143 143
 
144
-		if( ( $orderItem = $provider->updateSync( $params, $body, $response, $headers ) ) !== null )
144
+		if (($orderItem = $provider->updateSync($params, $body, $response, $headers)) !== null)
145 145
 		{
146
-			if( $orderItem->getPaymentStatus() === \Aimeos\MShop\Order\Item\Base::PAY_UNFINISHED
147
-				&& $provider->isImplemented( \Aimeos\MShop\Service\Provider\Payment\Base::FEAT_QUERY )
146
+			if ($orderItem->getPaymentStatus() === \Aimeos\MShop\Order\Item\Base::PAY_UNFINISHED
147
+				&& $provider->isImplemented(\Aimeos\MShop\Service\Provider\Payment\Base::FEAT_QUERY)
148 148
 			) {
149
-				$provider->query( $orderItem );
149
+				$provider->query($orderItem);
150 150
 			}
151 151
 
152 152
 			// update stock, coupons, etc.
153
-			\Aimeos\Controller\Frontend\Factory::createController( $context, 'order' )->update( $orderItem );
153
+			\Aimeos\Controller\Frontend\Factory::createController($context, 'order')->update($orderItem);
154 154
 		}
155 155
 
156 156
 		return $orderItem;
@@ -167,38 +167,38 @@  discard block
 block discarded – undo
167 167
 	 * @throws \Exception If an error occurs
168 168
 	 * @deprecated Use getProviders() instead
169 169
 	 */
170
-	public function getServices( $type, \Aimeos\MShop\Order\Item\Base\Iface $basket, $ref = ['media', 'price', 'text'] )
170
+	public function getServices($type, \Aimeos\MShop\Order\Item\Base\Iface $basket, $ref = ['media', 'price', 'text'])
171 171
 	{
172
-		$serviceManager = \Aimeos\MShop\Factory::createManager( $this->getContext(), 'service' );
172
+		$serviceManager = \Aimeos\MShop\Factory::createManager($this->getContext(), 'service');
173 173
 
174
-		$search = $serviceManager->createSearch( true );
174
+		$search = $serviceManager->createSearch(true);
175 175
 		$expr = array(
176 176
 			$search->getConditions(),
177
-			$search->compare( '==', 'service.type.domain', 'service' ),
178
-			$search->compare( '==', 'service.type.code', $type ),
177
+			$search->compare('==', 'service.type.domain', 'service'),
178
+			$search->compare('==', 'service.type.code', $type),
179 179
 		);
180
-		$search->setConditions( $search->combine( '&&', $expr ) );
181
-		$search->setSortations( array( $search->sort( '+', 'service.position' ) ) );
180
+		$search->setConditions($search->combine('&&', $expr));
181
+		$search->setSortations(array($search->sort('+', 'service.position')));
182 182
 
183
-		$items = $serviceManager->searchItems( $search, $ref );
183
+		$items = $serviceManager->searchItems($search, $ref);
184 184
 
185 185
 
186
-		foreach( $items as $id => $service )
186
+		foreach ($items as $id => $service)
187 187
 		{
188 188
 			try
189 189
 			{
190
-				$provider = $serviceManager->getProvider( $service );
190
+				$provider = $serviceManager->getProvider($service);
191 191
 
192
-				if( $provider->isAvailable( $basket ) ) {
192
+				if ($provider->isAvailable($basket)) {
193 193
 					$this->providers[$type][$id] = $provider;
194 194
 				} else {
195
-					unset( $items[$id] );
195
+					unset($items[$id]);
196 196
 				}
197 197
 			}
198
-			catch( \Aimeos\MShop\Service\Exception $e )
198
+			catch (\Aimeos\MShop\Service\Exception $e)
199 199
 			{
200
-				$msg = sprintf( 'Unable to create provider "%1$s" for service with ID "%2$s"', $service->getCode(), $id );
201
-				$this->getContext()->getLogger()->log( $msg, \Aimeos\MW\Logger\Base::WARN );
200
+				$msg = sprintf('Unable to create provider "%1$s" for service with ID "%2$s"', $service->getCode(), $id);
201
+				$this->getContext()->getLogger()->log($msg, \Aimeos\MW\Logger\Base::WARN);
202 202
 			}
203 203
 		}
204 204
 
@@ -219,16 +219,16 @@  discard block
 block discarded – undo
219 219
 	 * @throws \Exception If an error occurs
220 220
 	 * @deprecated Use getProvider() instead
221 221
 	 */
222
-	public function getServiceAttributes( $type, $serviceId, \Aimeos\MShop\Order\Item\Base\Iface $basket )
222
+	public function getServiceAttributes($type, $serviceId, \Aimeos\MShop\Order\Item\Base\Iface $basket)
223 223
 	{
224
-		if( isset( $this->providers[$type][$serviceId] ) ) {
225
-			return $this->providers[$type][$serviceId]->getConfigFE( $basket );
224
+		if (isset($this->providers[$type][$serviceId])) {
225
+			return $this->providers[$type][$serviceId]->getConfigFE($basket);
226 226
 		}
227 227
 
228
-		$serviceManager = \Aimeos\MShop\Factory::createManager( $this->getContext(), 'service' );
229
-		$item = $serviceManager->getItem( $serviceId, ['price'], true );
228
+		$serviceManager = \Aimeos\MShop\Factory::createManager($this->getContext(), 'service');
229
+		$item = $serviceManager->getItem($serviceId, ['price'], true);
230 230
 
231
-		return $serviceManager->getProvider( $item )->getConfigFE( $basket );
231
+		return $serviceManager->getProvider($item)->getConfigFE($basket);
232 232
 	}
233 233
 
234 234
 
@@ -244,16 +244,16 @@  discard block
 block discarded – undo
244 244
 	 * @throws \Exception If an error occurs
245 245
 	 * @deprecated Use getProvider() instead
246 246
 	 */
247
-	public function getServicePrice( $type, $serviceId, \Aimeos\MShop\Order\Item\Base\Iface $basket )
247
+	public function getServicePrice($type, $serviceId, \Aimeos\MShop\Order\Item\Base\Iface $basket)
248 248
 	{
249
-		if( isset( $this->providers[$type][$serviceId] ) ) {
250
-			return $this->providers[$type][$serviceId]->calcPrice( $basket );
249
+		if (isset($this->providers[$type][$serviceId])) {
250
+			return $this->providers[$type][$serviceId]->calcPrice($basket);
251 251
 		}
252 252
 
253
-		$serviceManager = \Aimeos\MShop\Factory::createManager( $this->getContext(), 'service' );
254
-		$item = $serviceManager->getItem( $serviceId, ['price'], true );
253
+		$serviceManager = \Aimeos\MShop\Factory::createManager($this->getContext(), 'service');
254
+		$item = $serviceManager->getItem($serviceId, ['price'], true);
255 255
 
256
-		return $serviceManager->getProvider( $item )->calcPrice( $basket );
256
+		return $serviceManager->getProvider($item)->calcPrice($basket);
257 257
 	}
258 258
 
259 259
 
@@ -269,22 +269,22 @@  discard block
 block discarded – undo
269 269
 	 * @throws \Aimeos\Controller\Frontend\Service\Exception If no active service provider for this ID is available
270 270
 	 * @deprecated Use checkAttributes() instead
271 271
 	 */
272
-	public function checkServiceAttributes( $type, $serviceId, array $attributes )
272
+	public function checkServiceAttributes($type, $serviceId, array $attributes)
273 273
 	{
274
-		if( !isset( $this->providers[$type][$serviceId] ) )
274
+		if (!isset($this->providers[$type][$serviceId]))
275 275
 		{
276
-			$serviceManager = \Aimeos\MShop\Factory::createManager( $this->getContext(), 'service' );
277
-			$item = $serviceManager->getItem( $serviceId, ['price'], true );
276
+			$serviceManager = \Aimeos\MShop\Factory::createManager($this->getContext(), 'service');
277
+			$item = $serviceManager->getItem($serviceId, ['price'], true);
278 278
 
279
-			$this->providers[$type][$serviceId] = $serviceManager->getProvider( $item );
279
+			$this->providers[$type][$serviceId] = $serviceManager->getProvider($item);
280 280
 		}
281 281
 
282
-		$errors = $this->providers[$type][$serviceId]->checkConfigFE( $attributes );
282
+		$errors = $this->providers[$type][$serviceId]->checkConfigFE($attributes);
283 283
 
284
-		foreach( $errors as $key => $msg )
284
+		foreach ($errors as $key => $msg)
285 285
 		{
286
-			if( $msg === null ) {
287
-				unset( $errors[$key] );
286
+			if ($msg === null) {
287
+				unset($errors[$key]);
288 288
 			}
289 289
 		}
290 290
 
Please login to merge, or discard this patch.
controller/frontend/src/Controller/Frontend/Service/Iface.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 	 * @param string[] $attributes List of attribute codes as keys and strings entered by the customer as value
31 31
 	 * @return string[] List of attributes codes as keys and error messages as values for invalid or missing values
32 32
 	 */
33
-	public function checkAttributes( $serviceId, array $attributes );
33
+	public function checkAttributes($serviceId, array $attributes);
34 34
 
35 35
 	/**
36 36
 	 * Returns the service item for the given ID
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 	 * @param array $ref List of domains for which the items referenced by the services should be fetched too
40 40
 	 * @return \Aimeos\MShop\Service\Provider\Iface Service provider object
41 41
 	 */
42
-	public function getProvider( $serviceId, $ref = ['media', 'price', 'text'] );
42
+	public function getProvider($serviceId, $ref = ['media', 'price', 'text']);
43 43
 
44 44
 	/**
45 45
 	 * Returns the service providers for the given type
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 	 * @param array $ref List of domains for which the items referenced by the services should be fetched too
49 49
 	 * @return \Aimeos\MShop\Service\Provider\Iface[] List of service IDs as keys and service provider objects as values
50 50
 	 */
51
-	public function getProviders( $type = null, $ref = ['media', 'price', 'text'] );
51
+	public function getProviders($type = null, $ref = ['media', 'price', 'text']);
52 52
 
53 53
 	/**
54 54
 	 * Processes the service for the given order, e.g. payment and delivery services
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 	 * @return \Aimeos\MShop\Common\Item\Helper\Form\Iface|null Form object with URL, parameters, etc.
62 62
 	 * 	or null if no form data is required
63 63
 	 */
64
-	public function process( \Aimeos\MShop\Order\Item\Iface $orderItem, $serviceId, array $urls, array $params );
64
+	public function process(\Aimeos\MShop\Order\Item\Iface $orderItem, $serviceId, array $urls, array $params);
65 65
 
66 66
 	/**
67 67
 	 * Updates the payment or delivery status for the given request
@@ -72,5 +72,5 @@  discard block
 block discarded – undo
72 72
 	 * 	(keys are <type>.url-self, <type>.url-success, <type>.url-update where type can be "delivery" or "payment")
73 73
 	 * @return \Aimeos\MShop\Order\Item\Iface $orderItem Order item that has been updated
74 74
 	 */
75
-	public function updateSync( ServerRequestInterface $request, ResponseInterface $response, array $urls );
75
+	public function updateSync(ServerRequestInterface $request, ResponseInterface $response, array $urls);
76 76
 }
Please login to merge, or discard this patch.
controller/frontend/src/Controller/Frontend/Service/Decorator/Base.php 1 patch
Spacing   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -33,18 +33,18 @@  discard block
 block discarded – undo
33 33
 	 * @param \Aimeos\Controller\Frontend\Iface $controller Controller object
34 34
 	 * @param \Aimeos\MShop\Context\Item\Iface $context Context object with required objects
35 35
 	 */
36
-	public function __construct( \Aimeos\Controller\Frontend\Iface $controller, \Aimeos\MShop\Context\Item\Iface $context )
36
+	public function __construct(\Aimeos\Controller\Frontend\Iface $controller, \Aimeos\MShop\Context\Item\Iface $context)
37 37
 	{
38 38
 		$iface = '\Aimeos\Controller\Frontend\Service\Iface';
39
-		if( !( $controller instanceof $iface ) )
39
+		if (!($controller instanceof $iface))
40 40
 		{
41
-			$msg = sprintf( 'Class "%1$s" does not implement interface "%2$s"', get_class( $controller ), $iface );
42
-			throw new \Aimeos\Controller\Frontend\Exception( $msg );
41
+			$msg = sprintf('Class "%1$s" does not implement interface "%2$s"', get_class($controller), $iface);
42
+			throw new \Aimeos\Controller\Frontend\Exception($msg);
43 43
 		}
44 44
 
45 45
 		$this->controller = $controller;
46 46
 
47
-		parent::__construct( $context );
47
+		parent::__construct($context);
48 48
 	}
49 49
 
50 50
 
@@ -56,9 +56,9 @@  discard block
 block discarded – undo
56 56
 	 * @return mixed Returns the value of the called method
57 57
 	 * @throws \Aimeos\Controller\Frontend\Exception If method call failed
58 58
 	 */
59
-	public function __call( $name, array $param )
59
+	public function __call($name, array $param)
60 60
 	{
61
-		return @call_user_func_array( array( $this->controller, $name ), $param );
61
+		return @call_user_func_array(array($this->controller, $name), $param);
62 62
 	}
63 63
 
64 64
 
@@ -69,9 +69,9 @@  discard block
 block discarded – undo
69 69
 	 * @param string[] $attributes List of attribute codes as keys and strings entered by the customer as value
70 70
 	 * @return string[] List of attributes codes as keys and error messages as values for invalid or missing values
71 71
 	 */
72
-	public function checkAttributes( $serviceId, array $attributes )
72
+	public function checkAttributes($serviceId, array $attributes)
73 73
 	{
74
-		return $this->controller->checkAttributes( $serviceId, $attributes );
74
+		return $this->controller->checkAttributes($serviceId, $attributes);
75 75
 	}
76 76
 
77 77
 
@@ -82,9 +82,9 @@  discard block
 block discarded – undo
82 82
 	 * @param array $ref List of domains for which the items referenced by the services should be fetched too
83 83
 	 * @return \Aimeos\MShop\Service\Provider\Iface Service provider object
84 84
 	 */
85
-	public function getProvider( $serviceId, $ref = ['media', 'price', 'text'] )
85
+	public function getProvider($serviceId, $ref = ['media', 'price', 'text'])
86 86
 	{
87
-		return $this->controller->getProvider( $serviceId, $ref );
87
+		return $this->controller->getProvider($serviceId, $ref);
88 88
 	}
89 89
 
90 90
 
@@ -95,9 +95,9 @@  discard block
 block discarded – undo
95 95
 	 * @param array $ref List of domains for which the items referenced by the services should be fetched too
96 96
 	 * @return \Aimeos\MShop\Service\Provider\Iface[] List of service IDs as keys and service provider objects as values
97 97
 	 */
98
-	public function getProviders( $type = null, $ref = ['media', 'price', 'text'] )
98
+	public function getProviders($type = null, $ref = ['media', 'price', 'text'])
99 99
 	{
100
-		return $this->controller->getProviders( $type, $ref );
100
+		return $this->controller->getProviders($type, $ref);
101 101
 	}
102 102
 
103 103
 
@@ -112,9 +112,9 @@  discard block
 block discarded – undo
112 112
 	 * @return \Aimeos\MShop\Common\Item\Helper\Form\Iface|null Form object with URL, parameters, etc.
113 113
 	 * 	or null if no form data is required
114 114
 	 */
115
-	public function process( \Aimeos\MShop\Order\Item\Iface $orderItem, $serviceId, array $urls, array $params )
115
+	public function process(\Aimeos\MShop\Order\Item\Iface $orderItem, $serviceId, array $urls, array $params)
116 116
 	{
117
-		return $this->controller->process( $orderItem, $serviceId, $urls, $params );
117
+		return $this->controller->process($orderItem, $serviceId, $urls, $params);
118 118
 	}
119 119
 
120 120
 
@@ -127,9 +127,9 @@  discard block
 block discarded – undo
127 127
 	 * 	(keys are <type>.url-self, <type>.url-success, <type>.url-update where type can be "delivery" or "payment")
128 128
 	 * @return \Aimeos\MShop\Order\Item\Iface $orderItem Order item that has been updated
129 129
 	 */
130
-	public function updateSync( ServerRequestInterface $request, ResponseInterface $response, array $urls )
130
+	public function updateSync(ServerRequestInterface $request, ResponseInterface $response, array $urls)
131 131
 	{
132
-		return $this->controller->updateSync( $request, $response, $urls );
132
+		return $this->controller->updateSync($request, $response, $urls);
133 133
 	}
134 134
 
135 135
 
@@ -142,10 +142,10 @@  discard block
 block discarded – undo
142 142
 	 * @return array List of service items implementing \Aimeos\MShop\Service\Item\Iface with referenced items
143 143
 	 * @deprecated Use getProviders() instead
144 144
 	 */
145
-	public function getServices( $type, \Aimeos\MShop\Order\Item\Base\Iface $basket,
146
-		$ref = array( 'media', 'price', 'text' ) )
145
+	public function getServices($type, \Aimeos\MShop\Order\Item\Base\Iface $basket,
146
+		$ref = array('media', 'price', 'text'))
147 147
 	{
148
-		return $this->controller->getServices( $type, $basket, $ref );
148
+		return $this->controller->getServices($type, $basket, $ref);
149 149
 	}
150 150
 
151 151
 
@@ -159,9 +159,9 @@  discard block
 block discarded – undo
159 159
 	 * @return array List of attribute definitions implementing \Aimeos\MW\Criteria\Attribute\Iface
160 160
 	 * @deprecated Use getProvider() instead
161 161
 	 */
162
-	public function getServiceAttributes( $type, $serviceId, \Aimeos\MShop\Order\Item\Base\Iface $basket )
162
+	public function getServiceAttributes($type, $serviceId, \Aimeos\MShop\Order\Item\Base\Iface $basket)
163 163
 	{
164
-		return $this->controller->getServiceAttributes( $type, $serviceId, $basket );
164
+		return $this->controller->getServiceAttributes($type, $serviceId, $basket);
165 165
 	}
166 166
 
167 167
 
@@ -177,9 +177,9 @@  discard block
 block discarded – undo
177 177
 	 * @throws \Exception If an error occurs
178 178
 	 * @deprecated Use getProvider() instead
179 179
 	 */
180
-	public function getServicePrice( $type, $serviceId, \Aimeos\MShop\Order\Item\Base\Iface $basket )
180
+	public function getServicePrice($type, $serviceId, \Aimeos\MShop\Order\Item\Base\Iface $basket)
181 181
 	{
182
-		return $this->controller->getServicePrice( $type, $serviceId, $basket );
182
+		return $this->controller->getServicePrice($type, $serviceId, $basket);
183 183
 	}
184 184
 
185 185
 
@@ -194,9 +194,9 @@  discard block
 block discarded – undo
194 194
 	 * 	missing
195 195
 	 * @deprecated Use checkAttributes() instead
196 196
 	 */
197
-	public function checkServiceAttributes( $type, $serviceId, array $attributes )
197
+	public function checkServiceAttributes($type, $serviceId, array $attributes)
198 198
 	{
199
-		return $this->controller->checkServiceAttributes( $type, $serviceId, $attributes );
199
+		return $this->controller->checkServiceAttributes($type, $serviceId, $attributes);
200 200
 	}
201 201
 
202 202
 
Please login to merge, or discard this patch.