@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | * @param string[] $attributes List of attribute codes as keys and strings entered by the customer as value |
| 28 | 28 | * @return string[] List of attributes codes as keys and error messages as values for invalid or missing values |
| 29 | 29 | */ |
| 30 | - public function checkAttributes( $serviceId, array $attributes ); |
|
| 30 | + public function checkAttributes($serviceId, array $attributes); |
|
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | 33 | * Returns the service item for the given ID |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | * @param array $ref List of domains for which the items referenced by the services should be fetched too |
| 37 | 37 | * @return \Aimeos\MShop\Service\Provider\Iface Service provider object |
| 38 | 38 | */ |
| 39 | - public function getProvider( $serviceId, $ref = ['media', 'price', 'text'] ); |
|
| 39 | + public function getProvider($serviceId, $ref = ['media', 'price', 'text']); |
|
| 40 | 40 | |
| 41 | 41 | /** |
| 42 | 42 | * Returns the service providers for the given type |
@@ -45,5 +45,5 @@ discard block |
||
| 45 | 45 | * @param array $ref List of domains for which the items referenced by the services should be fetched too |
| 46 | 46 | * @return \Aimeos\MShop\Service\Provider\Iface[] List of service IDs as keys and service provider objects as values |
| 47 | 47 | */ |
| 48 | - public function getProviders( $type, $ref = ['media', 'price', 'text'] ); |
|
| 48 | + public function getProviders($type, $ref = ['media', 'price', 'text']); |
|
| 49 | 49 | } |
@@ -30,18 +30,18 @@ discard block |
||
| 30 | 30 | * @param \Aimeos\Controller\Frontend\Iface $controller Controller object |
| 31 | 31 | * @param \Aimeos\MShop\Context\Item\Iface $context Context object with required objects |
| 32 | 32 | */ |
| 33 | - public function __construct( \Aimeos\Controller\Frontend\Iface $controller, \Aimeos\MShop\Context\Item\Iface $context ) |
|
| 33 | + public function __construct(\Aimeos\Controller\Frontend\Iface $controller, \Aimeos\MShop\Context\Item\Iface $context) |
|
| 34 | 34 | { |
| 35 | 35 | $iface = '\Aimeos\Controller\Frontend\Service\Iface'; |
| 36 | - if( !( $controller instanceof $iface ) ) |
|
| 36 | + if (!($controller instanceof $iface)) |
|
| 37 | 37 | { |
| 38 | - $msg = sprintf( 'Class "%1$s" does not implement interface "%2$s"', get_class( $controller ), $iface ); |
|
| 39 | - throw new \Aimeos\Controller\Frontend\Exception( $msg ); |
|
| 38 | + $msg = sprintf('Class "%1$s" does not implement interface "%2$s"', get_class($controller), $iface); |
|
| 39 | + throw new \Aimeos\Controller\Frontend\Exception($msg); |
|
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | $this->controller = $controller; |
| 43 | 43 | |
| 44 | - parent::__construct( $context ); |
|
| 44 | + parent::__construct($context); |
|
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | |
@@ -53,9 +53,9 @@ discard block |
||
| 53 | 53 | * @return mixed Returns the value of the called method |
| 54 | 54 | * @throws \Aimeos\Controller\Frontend\Exception If method call failed |
| 55 | 55 | */ |
| 56 | - public function __call( $name, array $param ) |
|
| 56 | + public function __call($name, array $param) |
|
| 57 | 57 | { |
| 58 | - return @call_user_func_array( array( $this->controller, $name ), $param ); |
|
| 58 | + return @call_user_func_array(array($this->controller, $name), $param); |
|
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | |
@@ -66,9 +66,9 @@ discard block |
||
| 66 | 66 | * @param string[] $attributes List of attribute codes as keys and strings entered by the customer as value |
| 67 | 67 | * @return string[] List of attributes codes as keys and error messages as values for invalid or missing values |
| 68 | 68 | */ |
| 69 | - public function checkAttributes( $serviceId, array $attributes ) |
|
| 69 | + public function checkAttributes($serviceId, array $attributes) |
|
| 70 | 70 | { |
| 71 | - return $this->controller->checkAttributes( $serviceId, $attributes ); |
|
| 71 | + return $this->controller->checkAttributes($serviceId, $attributes); |
|
| 72 | 72 | } |
| 73 | 73 | |
| 74 | 74 | |
@@ -79,9 +79,9 @@ discard block |
||
| 79 | 79 | * @param array $ref List of domains for which the items referenced by the services should be fetched too |
| 80 | 80 | * @return \Aimeos\MShop\Service\Provider\Iface Service provider object |
| 81 | 81 | */ |
| 82 | - public function getProvider( $serviceId, $ref = ['media', 'price', 'text'] ) |
|
| 82 | + public function getProvider($serviceId, $ref = ['media', 'price', 'text']) |
|
| 83 | 83 | { |
| 84 | - return $this->controller->getProvider( $serviceId, $ref ); |
|
| 84 | + return $this->controller->getProvider($serviceId, $ref); |
|
| 85 | 85 | } |
| 86 | 86 | |
| 87 | 87 | |
@@ -92,9 +92,9 @@ discard block |
||
| 92 | 92 | * @param array $ref List of domains for which the items referenced by the services should be fetched too |
| 93 | 93 | * @return \Aimeos\MShop\Service\Provider\Iface[] List of service IDs as keys and service provider objects as values |
| 94 | 94 | */ |
| 95 | - public function getProviders( $type, $ref = ['media', 'price', 'text'] ) |
|
| 95 | + public function getProviders($type, $ref = ['media', 'price', 'text']) |
|
| 96 | 96 | { |
| 97 | - return $this->controller->getProviders( $type, $ref ); |
|
| 97 | + return $this->controller->getProviders($type, $ref); |
|
| 98 | 98 | } |
| 99 | 99 | |
| 100 | 100 | |
@@ -108,10 +108,10 @@ discard block |
||
| 108 | 108 | * @return array List of service items implementing \Aimeos\MShop\Service\Item\Iface with referenced items |
| 109 | 109 | * @deprecated Use getProviders() instead |
| 110 | 110 | */ |
| 111 | - public function getServices( $type, \Aimeos\MShop\Order\Item\Base\Iface $basket, |
|
| 112 | - $ref = array( 'media', 'price', 'text' ) ) |
|
| 111 | + public function getServices($type, \Aimeos\MShop\Order\Item\Base\Iface $basket, |
|
| 112 | + $ref = array('media', 'price', 'text')) |
|
| 113 | 113 | { |
| 114 | - return $this->controller->getServices( $type, $basket, $ref ); |
|
| 114 | + return $this->controller->getServices($type, $basket, $ref); |
|
| 115 | 115 | } |
| 116 | 116 | |
| 117 | 117 | |
@@ -125,9 +125,9 @@ discard block |
||
| 125 | 125 | * @return array List of attribute definitions implementing \Aimeos\MW\Criteria\Attribute\Iface |
| 126 | 126 | * @deprecated Use getProvider() instead |
| 127 | 127 | */ |
| 128 | - public function getServiceAttributes( $type, $serviceId, \Aimeos\MShop\Order\Item\Base\Iface $basket ) |
|
| 128 | + public function getServiceAttributes($type, $serviceId, \Aimeos\MShop\Order\Item\Base\Iface $basket) |
|
| 129 | 129 | { |
| 130 | - return $this->controller->getServiceAttributes( $type, $serviceId, $basket ); |
|
| 130 | + return $this->controller->getServiceAttributes($type, $serviceId, $basket); |
|
| 131 | 131 | } |
| 132 | 132 | |
| 133 | 133 | |
@@ -143,9 +143,9 @@ discard block |
||
| 143 | 143 | * @throws \Exception If an error occurs |
| 144 | 144 | * @deprecated Use getProvider() instead |
| 145 | 145 | */ |
| 146 | - public function getServicePrice( $type, $serviceId, \Aimeos\MShop\Order\Item\Base\Iface $basket ) |
|
| 146 | + public function getServicePrice($type, $serviceId, \Aimeos\MShop\Order\Item\Base\Iface $basket) |
|
| 147 | 147 | { |
| 148 | - return $this->controller->getServicePrice( $type, $serviceId, $basket ); |
|
| 148 | + return $this->controller->getServicePrice($type, $serviceId, $basket); |
|
| 149 | 149 | } |
| 150 | 150 | |
| 151 | 151 | |
@@ -160,9 +160,9 @@ discard block |
||
| 160 | 160 | * missing |
| 161 | 161 | * @deprecated Use checkAttributes() instead |
| 162 | 162 | */ |
| 163 | - public function checkServiceAttributes( $type, $serviceId, array $attributes ) |
|
| 163 | + public function checkServiceAttributes($type, $serviceId, array $attributes) |
|
| 164 | 164 | { |
| 165 | - return $this->controller->checkServiceAttributes( $type, $serviceId, $attributes ); |
|
| 165 | + return $this->controller->checkServiceAttributes($type, $serviceId, $attributes); |
|
| 166 | 166 | } |
| 167 | 167 | |
| 168 | 168 | |