@@ -99,7 +99,7 @@ |
||
99 | 99 | * Returns the configuration attribute definitions of the provider to generate a list of available fields and |
100 | 100 | * rules for the value of each field in the administration interface. |
101 | 101 | * |
102 | - * @return array List of attribute definitions implementing \Aimeos\MW\Common\Critera\Attribute\Iface |
|
102 | + * @return \Aimeos\MW\Criteria\Attribute\Iface[] List of attribute definitions implementing \Aimeos\MW\Common\Critera\Attribute\Iface |
|
103 | 103 | */ |
104 | 104 | public function getConfigBE() |
105 | 105 | { |
@@ -172,7 +172,7 @@ |
||
172 | 172 | * Returns the configuration attribute definitions of the provider to generate a list of available fields and |
173 | 173 | * rules for the value of each field in the administration interface. |
174 | 174 | * |
175 | - * @return array List of attribute definitions implementing \Aimeos\MW\Common\Critera\Attribute\Iface |
|
175 | + * @return \Aimeos\MW\Criteria\Attribute\Iface[] List of attribute definitions implementing \Aimeos\MW\Common\Critera\Attribute\Iface |
|
176 | 176 | */ |
177 | 177 | public function getConfigBE() |
178 | 178 | { |
@@ -78,10 +78,10 @@ discard block |
||
78 | 78 | $address = $basket->getAddress( \Aimeos\MShop\Order\Item\Base\Address\Base::TYPE_PAYMENT ); |
79 | 79 | |
80 | 80 | if( ( $fn = $address->getFirstname() ) !== '' && ( $ln = $address->getLastname() ) !== '' ) { |
81 | - $feconfig['directdebit.accountowner']['default'] = $fn . ' ' . $ln; |
|
81 | + $feconfig['directdebit.accountowner']['default'] = $fn.' '.$ln; |
|
82 | 82 | } |
83 | 83 | } |
84 | - catch( \Aimeos\MShop\Order\Exception $e ) { ; } // If address isn't available |
|
84 | + catch( \Aimeos\MShop\Order\Exception $e ) {; } // If address isn't available |
|
85 | 85 | |
86 | 86 | return $this->getConfigItems( $feconfig ); |
87 | 87 | } |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | $len = strlen( $value ); |
120 | 120 | $xstr = ( $len > 3 ? str_repeat( 'X', $len - 3 ) : '' ); |
121 | 121 | |
122 | - $attrItem->setValue( $xstr . substr( $value, -3 ) ); |
|
122 | + $attrItem->setValue( $xstr.substr( $value, -3 ) ); |
|
123 | 123 | $orderServiceItem->setAttributeItem( $attrItem ); |
124 | 124 | } |
125 | 125 | } |
@@ -81,7 +81,9 @@ |
||
81 | 81 | $feconfig['directdebit.accountowner']['default'] = $fn . ' ' . $ln; |
82 | 82 | } |
83 | 83 | } |
84 | - catch( \Aimeos\MShop\Order\Exception $e ) { ; } // If address isn't available |
|
84 | + catch( \Aimeos\MShop\Order\Exception $e ) |
|
85 | + { |
|
86 | +; } // If address isn't available |
|
85 | 87 | |
86 | 88 | return $this->getConfigItems( $feconfig ); |
87 | 89 | } |
@@ -114,7 +114,9 @@ |
||
114 | 114 | $feconfig['time.hourminute']['default'] = $value; |
115 | 115 | } |
116 | 116 | } |
117 | - catch( \Aimeos\MShop\Order\Exception $e ) { echo $e->getMessage(); } // If service isn't available |
|
117 | + catch( \Aimeos\MShop\Order\Exception $e ) |
|
118 | + { |
|
119 | +echo $e->getMessage(); } // If service isn't available |
|
118 | 120 | |
119 | 121 | return array_merge( $this->getProvider()->getConfigFE( $basket ), $this->getConfigItems( $feconfig ) ); |
120 | 122 | } |
@@ -134,7 +134,9 @@ |
||
134 | 134 | $feconfig['supplier.code']['default'] = array( $value => $address ) + $feconfig['supplier.code']['default']; |
135 | 135 | } |
136 | 136 | } |
137 | - catch( \Aimeos\MShop\Order\Exception $e ) {} // If service isn't available |
|
137 | + catch( \Aimeos\MShop\Order\Exception $e ) |
|
138 | + { |
|
139 | +} // If service isn't available |
|
138 | 140 | |
139 | 141 | return array_merge( $this->getProvider()->getConfigFE( $basket ), $this->getConfigItems( $feconfig ) ); |
140 | 142 | } |