@@ -67,13 +67,13 @@ discard block |
||
| 67 | 67 | * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry) |
| 68 | 68 | * @return string HTML code |
| 69 | 69 | */ |
| 70 | - public function getBody( $uid = '', array &$tags = array(), &$expire = null ) |
|
| 70 | + public function getBody($uid = '', array &$tags = array(), &$expire = null) |
|
| 71 | 71 | { |
| 72 | - $view = $this->setViewParams( $this->getView(), $tags, $expire ); |
|
| 72 | + $view = $this->setViewParams($this->getView(), $tags, $expire); |
|
| 73 | 73 | |
| 74 | 74 | $html = ''; |
| 75 | - foreach( $this->getSubClients() as $subclient ) { |
|
| 76 | - $html .= $subclient->setView( $view )->getBody( $uid, $tags, $expire ); |
|
| 75 | + foreach ($this->getSubClients() as $subclient) { |
|
| 76 | + $html .= $subclient->setView($view)->getBody($uid, $tags, $expire); |
|
| 77 | 77 | } |
| 78 | 78 | $view->serviceBody = $html; |
| 79 | 79 | |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | $tplconf = 'client/html/email/payment/html/summary/service/standard/template-body'; |
| 102 | 102 | $default = 'common/summary/service-body-default.php'; |
| 103 | 103 | |
| 104 | - return $view->render( $view->config( $tplconf, $default ) ); |
|
| 104 | + return $view->render($view->config($tplconf, $default)); |
|
| 105 | 105 | } |
| 106 | 106 | |
| 107 | 107 | |
@@ -113,13 +113,13 @@ discard block |
||
| 113 | 113 | * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry) |
| 114 | 114 | * @return string|null String including HTML tags for the header on error |
| 115 | 115 | */ |
| 116 | - public function getHeader( $uid = '', array &$tags = array(), &$expire = null ) |
|
| 116 | + public function getHeader($uid = '', array &$tags = array(), &$expire = null) |
|
| 117 | 117 | { |
| 118 | - $view = $this->setViewParams( $this->getView(), $tags, $expire ); |
|
| 118 | + $view = $this->setViewParams($this->getView(), $tags, $expire); |
|
| 119 | 119 | |
| 120 | 120 | $html = ''; |
| 121 | - foreach( $this->getSubClients() as $subclient ) { |
|
| 122 | - $html .= $subclient->setView( $view )->getHeader( $uid, $tags, $expire ); |
|
| 121 | + foreach ($this->getSubClients() as $subclient) { |
|
| 122 | + $html .= $subclient->setView($view)->getHeader($uid, $tags, $expire); |
|
| 123 | 123 | } |
| 124 | 124 | $view->serviceHeader = $html; |
| 125 | 125 | |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | $tplconf = 'client/html/email/payment/html/summary/service/standard/template-header'; |
| 149 | 149 | $default = 'common/summary/service-header-default.php'; |
| 150 | 150 | |
| 151 | - return $view->render( $view->config( $tplconf, $default ) ); |
|
| 151 | + return $view->render($view->config($tplconf, $default)); |
|
| 152 | 152 | } |
| 153 | 153 | |
| 154 | 154 | |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | * @param string|null $name Name of the sub-client (Default if null) |
| 160 | 160 | * @return \Aimeos\Client\Html\Iface Sub-client object |
| 161 | 161 | */ |
| 162 | - public function getSubClient( $type, $name = null ) |
|
| 162 | + public function getSubClient($type, $name = null) |
|
| 163 | 163 | { |
| 164 | 164 | /** client/html/email/payment/html/summary/service/decorators/excludes |
| 165 | 165 | * Excludes decorators added by the "common" option from the email payment html summary service html client |
@@ -235,7 +235,7 @@ discard block |
||
| 235 | 235 | * @see client/html/email/payment/html/summary/service/decorators/global |
| 236 | 236 | */ |
| 237 | 237 | |
| 238 | - return $this->createSubClient( 'email/payment/html/summary/service/' . $type, $name ); |
|
| 238 | + return $this->createSubClient('email/payment/html/summary/service/'.$type, $name); |
|
| 239 | 239 | } |
| 240 | 240 | |
| 241 | 241 | |
@@ -246,6 +246,6 @@ discard block |
||
| 246 | 246 | */ |
| 247 | 247 | protected function getSubClientNames() |
| 248 | 248 | { |
| 249 | - return $this->getContext()->getConfig()->get( $this->subPartPath, $this->subPartNames ); |
|
| 249 | + return $this->getContext()->getConfig()->get($this->subPartPath, $this->subPartNames); |
|
| 250 | 250 | } |
| 251 | 251 | } |
@@ -67,13 +67,13 @@ discard block |
||
| 67 | 67 | * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry) |
| 68 | 68 | * @return string HTML code |
| 69 | 69 | */ |
| 70 | - public function getBody( $uid = '', array &$tags = array(), &$expire = null ) |
|
| 70 | + public function getBody($uid = '', array &$tags = array(), &$expire = null) |
|
| 71 | 71 | { |
| 72 | - $view = $this->setViewParams( $this->getView(), $tags, $expire ); |
|
| 72 | + $view = $this->setViewParams($this->getView(), $tags, $expire); |
|
| 73 | 73 | |
| 74 | 74 | $html = ''; |
| 75 | - foreach( $this->getSubClients() as $subclient ) { |
|
| 76 | - $html .= $subclient->setView( $view )->getBody( $uid, $tags, $expire ); |
|
| 75 | + foreach ($this->getSubClients() as $subclient) { |
|
| 76 | + $html .= $subclient->setView($view)->getBody($uid, $tags, $expire); |
|
| 77 | 77 | } |
| 78 | 78 | $view->couponBody = $html; |
| 79 | 79 | |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | $tplconf = 'client/html/email/payment/html/summary/coupon/standard/template-body'; |
| 102 | 102 | $default = 'common/summary/coupon-body-default.php'; |
| 103 | 103 | |
| 104 | - return $view->render( $view->config( $tplconf, $default ) ); |
|
| 104 | + return $view->render($view->config($tplconf, $default)); |
|
| 105 | 105 | } |
| 106 | 106 | |
| 107 | 107 | |
@@ -113,13 +113,13 @@ discard block |
||
| 113 | 113 | * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry) |
| 114 | 114 | * @return string|null String including HTML tags for the header on error |
| 115 | 115 | */ |
| 116 | - public function getHeader( $uid = '', array &$tags = array(), &$expire = null ) |
|
| 116 | + public function getHeader($uid = '', array &$tags = array(), &$expire = null) |
|
| 117 | 117 | { |
| 118 | - $view = $this->setViewParams( $this->getView(), $tags, $expire ); |
|
| 118 | + $view = $this->setViewParams($this->getView(), $tags, $expire); |
|
| 119 | 119 | |
| 120 | 120 | $html = ''; |
| 121 | - foreach( $this->getSubClients() as $subclient ) { |
|
| 122 | - $html .= $subclient->setView( $view )->getHeader( $uid, $tags, $expire ); |
|
| 121 | + foreach ($this->getSubClients() as $subclient) { |
|
| 122 | + $html .= $subclient->setView($view)->getHeader($uid, $tags, $expire); |
|
| 123 | 123 | } |
| 124 | 124 | $view->couponHeader = $html; |
| 125 | 125 | |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | $tplconf = 'client/html/email/payment/html/summary/coupon/standard/template-header'; |
| 149 | 149 | $default = 'common/summary/coupon-header-default.php'; |
| 150 | 150 | |
| 151 | - return $view->render( $view->config( $tplconf, $default ) ); |
|
| 151 | + return $view->render($view->config($tplconf, $default)); |
|
| 152 | 152 | } |
| 153 | 153 | |
| 154 | 154 | |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | * @param string|null $name Name of the sub-client (Default if null) |
| 160 | 160 | * @return \Aimeos\Client\Html\Iface Sub-client object |
| 161 | 161 | */ |
| 162 | - public function getSubClient( $type, $name = null ) |
|
| 162 | + public function getSubClient($type, $name = null) |
|
| 163 | 163 | { |
| 164 | 164 | /** client/html/email/payment/html/summary/coupon/decorators/excludes |
| 165 | 165 | * Excludes decorators added by the "common" option from the email payment html summary coupon html client |
@@ -235,7 +235,7 @@ discard block |
||
| 235 | 235 | * @see client/html/email/payment/html/summary/coupon/decorators/global |
| 236 | 236 | */ |
| 237 | 237 | |
| 238 | - return $this->createSubClient( 'email/payment/html/summary/coupon/' . $type, $name ); |
|
| 238 | + return $this->createSubClient('email/payment/html/summary/coupon/'.$type, $name); |
|
| 239 | 239 | } |
| 240 | 240 | |
| 241 | 241 | |
@@ -246,6 +246,6 @@ discard block |
||
| 246 | 246 | */ |
| 247 | 247 | protected function getSubClientNames() |
| 248 | 248 | { |
| 249 | - return $this->getContext()->getConfig()->get( $this->subPartPath, $this->subPartNames ); |
|
| 249 | + return $this->getContext()->getConfig()->get($this->subPartPath, $this->subPartNames); |
|
| 250 | 250 | } |
| 251 | 251 | } |
@@ -67,13 +67,13 @@ discard block |
||
| 67 | 67 | * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry) |
| 68 | 68 | * @return string HTML code |
| 69 | 69 | */ |
| 70 | - public function getBody( $uid = '', array &$tags = array(), &$expire = null ) |
|
| 70 | + public function getBody($uid = '', array &$tags = array(), &$expire = null) |
|
| 71 | 71 | { |
| 72 | - $view = $this->setViewParams( $this->getView(), $tags, $expire ); |
|
| 72 | + $view = $this->setViewParams($this->getView(), $tags, $expire); |
|
| 73 | 73 | |
| 74 | 74 | $html = ''; |
| 75 | - foreach( $this->getSubClients() as $subclient ) { |
|
| 76 | - $html .= $subclient->setView( $view )->getBody( $uid, $tags, $expire ); |
|
| 75 | + foreach ($this->getSubClients() as $subclient) { |
|
| 76 | + $html .= $subclient->setView($view)->getBody($uid, $tags, $expire); |
|
| 77 | 77 | } |
| 78 | 78 | $view->detailBody = $html; |
| 79 | 79 | |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | $tplconf = 'client/html/email/payment/html/summary/detail/standard/template-body'; |
| 102 | 102 | $default = 'common/summary/detail-body-default.php'; |
| 103 | 103 | |
| 104 | - return $view->render( $view->config( $tplconf, $default ) ); |
|
| 104 | + return $view->render($view->config($tplconf, $default)); |
|
| 105 | 105 | } |
| 106 | 106 | |
| 107 | 107 | |
@@ -113,13 +113,13 @@ discard block |
||
| 113 | 113 | * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry) |
| 114 | 114 | * @return string|null String including HTML tags for the header on error |
| 115 | 115 | */ |
| 116 | - public function getHeader( $uid = '', array &$tags = array(), &$expire = null ) |
|
| 116 | + public function getHeader($uid = '', array &$tags = array(), &$expire = null) |
|
| 117 | 117 | { |
| 118 | - $view = $this->setViewParams( $this->getView(), $tags, $expire ); |
|
| 118 | + $view = $this->setViewParams($this->getView(), $tags, $expire); |
|
| 119 | 119 | |
| 120 | 120 | $html = ''; |
| 121 | - foreach( $this->getSubClients() as $subclient ) { |
|
| 122 | - $html .= $subclient->setView( $view )->getHeader( $uid, $tags, $expire ); |
|
| 121 | + foreach ($this->getSubClients() as $subclient) { |
|
| 122 | + $html .= $subclient->setView($view)->getHeader($uid, $tags, $expire); |
|
| 123 | 123 | } |
| 124 | 124 | $view->detailHeader = $html; |
| 125 | 125 | |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | $tplconf = 'client/html/email/payment/html/summary/detail/standard/template-header'; |
| 149 | 149 | $default = 'common/summary/detail-header-default.php'; |
| 150 | 150 | |
| 151 | - return $view->render( $view->config( $tplconf, $default ) ); |
|
| 151 | + return $view->render($view->config($tplconf, $default)); |
|
| 152 | 152 | } |
| 153 | 153 | |
| 154 | 154 | |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | * @param string|null $name Name of the sub-client (Default if null) |
| 160 | 160 | * @return \Aimeos\Client\Html\Iface Sub-client object |
| 161 | 161 | */ |
| 162 | - public function getSubClient( $type, $name = null ) |
|
| 162 | + public function getSubClient($type, $name = null) |
|
| 163 | 163 | { |
| 164 | 164 | /** client/html/email/payment/html/summary/detail/decorators/excludes |
| 165 | 165 | * Excludes decorators added by the "common" option from the email payment html summary detail html client |
@@ -235,7 +235,7 @@ discard block |
||
| 235 | 235 | * @see client/html/email/payment/html/summary/detail/decorators/global |
| 236 | 236 | */ |
| 237 | 237 | |
| 238 | - return $this->createSubClient( 'email/payment/html/summary/detail/' . $type, $name ); |
|
| 238 | + return $this->createSubClient('email/payment/html/summary/detail/'.$type, $name); |
|
| 239 | 239 | } |
| 240 | 240 | |
| 241 | 241 | |
@@ -246,7 +246,7 @@ discard block |
||
| 246 | 246 | */ |
| 247 | 247 | protected function getSubClientNames() |
| 248 | 248 | { |
| 249 | - return $this->getContext()->getConfig()->get( $this->subPartPath, $this->subPartNames ); |
|
| 249 | + return $this->getContext()->getConfig()->get($this->subPartPath, $this->subPartNames); |
|
| 250 | 250 | } |
| 251 | 251 | |
| 252 | 252 | |
@@ -258,12 +258,12 @@ discard block |
||
| 258 | 258 | * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry) |
| 259 | 259 | * @return \Aimeos\MW\View\Iface Modified view object |
| 260 | 260 | */ |
| 261 | - protected function setViewParams( \Aimeos\MW\View\Iface $view, array &$tags = array(), &$expire = null ) |
|
| 261 | + protected function setViewParams(\Aimeos\MW\View\Iface $view, array &$tags = array(), &$expire = null) |
|
| 262 | 262 | { |
| 263 | 263 | // we can't cache the calculation because the same client object is used for all e-mails |
| 264 | - $view->summaryTaxRates = $this->getTaxRates( $view->extOrderBaseItem ); |
|
| 264 | + $view->summaryTaxRates = $this->getTaxRates($view->extOrderBaseItem); |
|
| 265 | 265 | |
| 266 | - if( $view->extOrderItem->getPaymentStatus() >= $this->getDownloadPaymentStatus() ) { |
|
| 266 | + if ($view->extOrderItem->getPaymentStatus() >= $this->getDownloadPaymentStatus()) { |
|
| 267 | 267 | $view->summaryShowDownloadAttributes = true; |
| 268 | 268 | } |
| 269 | 269 | |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | * @since 2014.03 |
| 101 | 101 | * @category Developer |
| 102 | 102 | */ |
| 103 | - private $subPartNames = array( 'address', 'service', 'coupon', 'detail' ); |
|
| 103 | + private $subPartNames = array('address', 'service', 'coupon', 'detail'); |
|
| 104 | 104 | |
| 105 | 105 | |
| 106 | 106 | /** |
@@ -111,13 +111,13 @@ discard block |
||
| 111 | 111 | * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry) |
| 112 | 112 | * @return string HTML code |
| 113 | 113 | */ |
| 114 | - public function getBody( $uid = '', array &$tags = array(), &$expire = null ) |
|
| 114 | + public function getBody($uid = '', array &$tags = array(), &$expire = null) |
|
| 115 | 115 | { |
| 116 | - $view = $this->setViewParams( $this->getView(), $tags, $expire ); |
|
| 116 | + $view = $this->setViewParams($this->getView(), $tags, $expire); |
|
| 117 | 117 | |
| 118 | 118 | $content = ''; |
| 119 | - foreach( $this->getSubClients() as $subclient ) { |
|
| 120 | - $content .= $subclient->setView( $view )->getBody( $uid, $tags, $expire ); |
|
| 119 | + foreach ($this->getSubClients() as $subclient) { |
|
| 120 | + $content .= $subclient->setView($view)->getBody($uid, $tags, $expire); |
|
| 121 | 121 | } |
| 122 | 122 | $view->summaryBody = $content; |
| 123 | 123 | |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | $tplconf = 'client/html/email/payment/html/summary/standard/template-body'; |
| 152 | 152 | $default = 'email/common/html-summary-body-default.php'; |
| 153 | 153 | |
| 154 | - return $view->render( $view->config( $tplconf, $default ) ); |
|
| 154 | + return $view->render($view->config($tplconf, $default)); |
|
| 155 | 155 | } |
| 156 | 156 | |
| 157 | 157 | |
@@ -163,13 +163,13 @@ discard block |
||
| 163 | 163 | * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry) |
| 164 | 164 | * @return string|null String including HTML tags for the header on error |
| 165 | 165 | */ |
| 166 | - public function getHeader( $uid = '', array &$tags = array(), &$expire = null ) |
|
| 166 | + public function getHeader($uid = '', array &$tags = array(), &$expire = null) |
|
| 167 | 167 | { |
| 168 | - $view = $this->setViewParams( $this->getView(), $tags, $expire ); |
|
| 168 | + $view = $this->setViewParams($this->getView(), $tags, $expire); |
|
| 169 | 169 | |
| 170 | 170 | $content = ''; |
| 171 | - foreach( $this->getSubClients() as $subclient ) { |
|
| 172 | - $content .= $subclient->setView( $view )->getHeader( $uid, $tags, $expire ); |
|
| 171 | + foreach ($this->getSubClients() as $subclient) { |
|
| 172 | + $content .= $subclient->setView($view)->getHeader($uid, $tags, $expire); |
|
| 173 | 173 | } |
| 174 | 174 | $view->summaryHeader = $content; |
| 175 | 175 | |
@@ -197,7 +197,7 @@ discard block |
||
| 197 | 197 | $tplconf = 'client/html/email/payment/html/summary/standard/template-header'; |
| 198 | 198 | $default = 'email/common/html-summary-header-default.php'; |
| 199 | 199 | |
| 200 | - return $view->render( $view->config( $tplconf, $default ) ); |
|
| 200 | + return $view->render($view->config($tplconf, $default)); |
|
| 201 | 201 | } |
| 202 | 202 | |
| 203 | 203 | |
@@ -208,7 +208,7 @@ discard block |
||
| 208 | 208 | * @param string|null $name Name of the sub-client (Default if null) |
| 209 | 209 | * @return \Aimeos\Client\Html\Iface Sub-client object |
| 210 | 210 | */ |
| 211 | - public function getSubClient( $type, $name = null ) |
|
| 211 | + public function getSubClient($type, $name = null) |
|
| 212 | 212 | { |
| 213 | 213 | /** client/html/email/payment/html/summary/decorators/excludes |
| 214 | 214 | * Excludes decorators added by the "common" option from the email payment html summary html client |
@@ -284,7 +284,7 @@ discard block |
||
| 284 | 284 | * @see client/html/email/payment/html/summary/decorators/global |
| 285 | 285 | */ |
| 286 | 286 | |
| 287 | - return $this->createSubClient( 'email/payment/html/summary/' . $type, $name ); |
|
| 287 | + return $this->createSubClient('email/payment/html/summary/'.$type, $name); |
|
| 288 | 288 | } |
| 289 | 289 | |
| 290 | 290 | |
@@ -295,7 +295,7 @@ discard block |
||
| 295 | 295 | */ |
| 296 | 296 | protected function getSubClientNames() |
| 297 | 297 | { |
| 298 | - return $this->getContext()->getConfig()->get( $this->subPartPath, $this->subPartNames ); |
|
| 298 | + return $this->getContext()->getConfig()->get($this->subPartPath, $this->subPartNames); |
|
| 299 | 299 | } |
| 300 | 300 | |
| 301 | 301 | |
@@ -307,7 +307,7 @@ discard block |
||
| 307 | 307 | * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry) |
| 308 | 308 | * @return \Aimeos\MW\View\Iface Modified view object |
| 309 | 309 | */ |
| 310 | - protected function setViewParams( \Aimeos\MW\View\Iface $view, array &$tags = array(), &$expire = null ) |
|
| 310 | + protected function setViewParams(\Aimeos\MW\View\Iface $view, array &$tags = array(), &$expire = null) |
|
| 311 | 311 | { |
| 312 | 312 | $view->summaryBasket = $view->extOrderBaseItem; |
| 313 | 313 | |
@@ -67,13 +67,13 @@ discard block |
||
| 67 | 67 | * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry) |
| 68 | 68 | * @return string HTML code |
| 69 | 69 | */ |
| 70 | - public function getBody( $uid = '', array &$tags = array(), &$expire = null ) |
|
| 70 | + public function getBody($uid = '', array &$tags = array(), &$expire = null) |
|
| 71 | 71 | { |
| 72 | - $view = $this->setViewParams( $this->getView(), $tags, $expire ); |
|
| 72 | + $view = $this->setViewParams($this->getView(), $tags, $expire); |
|
| 73 | 73 | |
| 74 | 74 | $html = ''; |
| 75 | - foreach( $this->getSubClients() as $subclient ) { |
|
| 76 | - $html .= $subclient->setView( $view )->getBody( $uid, $tags, $expire ); |
|
| 75 | + foreach ($this->getSubClients() as $subclient) { |
|
| 76 | + $html .= $subclient->setView($view)->getBody($uid, $tags, $expire); |
|
| 77 | 77 | } |
| 78 | 78 | $view->addressBody = $html; |
| 79 | 79 | |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | $tplconf = 'client/html/email/payment/html/summary/address/standard/template-body'; |
| 102 | 102 | $default = 'common/summary/address-body-default.php'; |
| 103 | 103 | |
| 104 | - return $view->render( $view->config( $tplconf, $default ) ); |
|
| 104 | + return $view->render($view->config($tplconf, $default)); |
|
| 105 | 105 | } |
| 106 | 106 | |
| 107 | 107 | |
@@ -113,13 +113,13 @@ discard block |
||
| 113 | 113 | * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry) |
| 114 | 114 | * @return string|null String including HTML tags for the header on error |
| 115 | 115 | */ |
| 116 | - public function getHeader( $uid = '', array &$tags = array(), &$expire = null ) |
|
| 116 | + public function getHeader($uid = '', array &$tags = array(), &$expire = null) |
|
| 117 | 117 | { |
| 118 | - $view = $this->setViewParams( $this->getView(), $tags, $expire ); |
|
| 118 | + $view = $this->setViewParams($this->getView(), $tags, $expire); |
|
| 119 | 119 | |
| 120 | 120 | $html = ''; |
| 121 | - foreach( $this->getSubClients() as $subclient ) { |
|
| 122 | - $html .= $subclient->setView( $view )->getHeader( $uid, $tags, $expire ); |
|
| 121 | + foreach ($this->getSubClients() as $subclient) { |
|
| 122 | + $html .= $subclient->setView($view)->getHeader($uid, $tags, $expire); |
|
| 123 | 123 | } |
| 124 | 124 | $view->addressHeader = $html; |
| 125 | 125 | |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | $tplconf = 'client/html/email/payment/html/summary/address/standard/template-header'; |
| 149 | 149 | $default = 'common/summary/address-header-default.php'; |
| 150 | 150 | |
| 151 | - return $view->render( $view->config( $tplconf, $default ) ); |
|
| 151 | + return $view->render($view->config($tplconf, $default)); |
|
| 152 | 152 | } |
| 153 | 153 | |
| 154 | 154 | |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | * @param string|null $name Name of the sub-client (Default if null) |
| 160 | 160 | * @return \Aimeos\Client\Html\Iface Sub-client object |
| 161 | 161 | */ |
| 162 | - public function getSubClient( $type, $name = null ) |
|
| 162 | + public function getSubClient($type, $name = null) |
|
| 163 | 163 | { |
| 164 | 164 | /** client/html/email/payment/html/summary/address/decorators/excludes |
| 165 | 165 | * Excludes decorators added by the "common" option from the email payment html summary address html client |
@@ -235,7 +235,7 @@ discard block |
||
| 235 | 235 | * @see client/html/email/payment/html/summary/address/decorators/global |
| 236 | 236 | */ |
| 237 | 237 | |
| 238 | - return $this->createSubClient( 'email/payment/html/summary/address/' . $type, $name ); |
|
| 238 | + return $this->createSubClient('email/payment/html/summary/address/'.$type, $name); |
|
| 239 | 239 | } |
| 240 | 240 | |
| 241 | 241 | |
@@ -246,6 +246,6 @@ discard block |
||
| 246 | 246 | */ |
| 247 | 247 | protected function getSubClientNames() |
| 248 | 248 | { |
| 249 | - return $this->getContext()->getConfig()->get( $this->subPartPath, $this->subPartNames ); |
|
| 249 | + return $this->getContext()->getConfig()->get($this->subPartPath, $this->subPartNames); |
|
| 250 | 250 | } |
| 251 | 251 | } |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | * @since 2014.03 |
| 112 | 112 | * @category Developer |
| 113 | 113 | */ |
| 114 | - private $subPartNames = array( 'salutation', 'intro', 'summary', 'outro', 'legal' ); |
|
| 114 | + private $subPartNames = array('salutation', 'intro', 'summary', 'outro', 'legal'); |
|
| 115 | 115 | |
| 116 | 116 | |
| 117 | 117 | /** |
@@ -122,13 +122,13 @@ discard block |
||
| 122 | 122 | * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry) |
| 123 | 123 | * @return string HTML code |
| 124 | 124 | */ |
| 125 | - public function getBody( $uid = '', array &$tags = array(), &$expire = null ) |
|
| 125 | + public function getBody($uid = '', array &$tags = array(), &$expire = null) |
|
| 126 | 126 | { |
| 127 | - $view = $this->setViewParams( $this->getView(), $tags, $expire ); |
|
| 127 | + $view = $this->setViewParams($this->getView(), $tags, $expire); |
|
| 128 | 128 | |
| 129 | 129 | $content = ''; |
| 130 | - foreach( $this->getSubClients() as $subclient ) { |
|
| 131 | - $content .= $subclient->setView( $view )->getBody( $uid, $tags, $expire ); |
|
| 130 | + foreach ($this->getSubClients() as $subclient) { |
|
| 131 | + $content .= $subclient->setView($view)->getBody($uid, $tags, $expire); |
|
| 132 | 132 | } |
| 133 | 133 | $view->htmlBody = $content; |
| 134 | 134 | |
@@ -162,10 +162,10 @@ discard block |
||
| 162 | 162 | $tplconf = 'client/html/email/payment/html/standard/template-body'; |
| 163 | 163 | |
| 164 | 164 | $status = $view->extOrderItem->getPaymentStatus(); |
| 165 | - $default = array( 'email/payment/' . $status . '/html-body-default.php', 'email/common/html-body-default.php' ); |
|
| 165 | + $default = array('email/payment/'.$status.'/html-body-default.php', 'email/common/html-body-default.php'); |
|
| 166 | 166 | |
| 167 | - $html = $view->render( $view->config( $tplconf, $default ) ); |
|
| 168 | - $view->mail()->setBodyHtml( $html ); |
|
| 167 | + $html = $view->render($view->config($tplconf, $default)); |
|
| 168 | + $view->mail()->setBodyHtml($html); |
|
| 169 | 169 | return $html; |
| 170 | 170 | } |
| 171 | 171 | |
@@ -178,13 +178,13 @@ discard block |
||
| 178 | 178 | * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry) |
| 179 | 179 | * @return string|null String including HTML tags for the header on error |
| 180 | 180 | */ |
| 181 | - public function getHeader( $uid = '', array &$tags = array(), &$expire = null ) |
|
| 181 | + public function getHeader($uid = '', array &$tags = array(), &$expire = null) |
|
| 182 | 182 | { |
| 183 | - $view = $this->setViewParams( $this->getView(), $tags, $expire ); |
|
| 183 | + $view = $this->setViewParams($this->getView(), $tags, $expire); |
|
| 184 | 184 | |
| 185 | 185 | $content = ''; |
| 186 | - foreach( $this->getSubClients() as $subclient ) { |
|
| 187 | - $content .= $subclient->setView( $view )->getHeader( $uid, $tags, $expire ); |
|
| 186 | + foreach ($this->getSubClients() as $subclient) { |
|
| 187 | + $content .= $subclient->setView($view)->getHeader($uid, $tags, $expire); |
|
| 188 | 188 | } |
| 189 | 189 | $view->htmlHeader = $content; |
| 190 | 190 | |
@@ -219,9 +219,9 @@ discard block |
||
| 219 | 219 | $tplconf = 'client/html/email/payment/html/standard/template-header'; |
| 220 | 220 | |
| 221 | 221 | $status = $view->extOrderItem->getPaymentStatus(); |
| 222 | - $default = array( 'email/payment/' . $status . '/html-header-default.php', 'email/common/html-header-default.php' ); |
|
| 222 | + $default = array('email/payment/'.$status.'/html-header-default.php', 'email/common/html-header-default.php'); |
|
| 223 | 223 | |
| 224 | - return $view->render( $view->config( $tplconf, $default ) ); |
|
| 224 | + return $view->render($view->config($tplconf, $default)); |
|
| 225 | 225 | } |
| 226 | 226 | |
| 227 | 227 | |
@@ -232,7 +232,7 @@ discard block |
||
| 232 | 232 | * @param string|null $name Name of the sub-client (Default if null) |
| 233 | 233 | * @return \Aimeos\Client\Html\Iface Sub-client object |
| 234 | 234 | */ |
| 235 | - public function getSubClient( $type, $name = null ) |
|
| 235 | + public function getSubClient($type, $name = null) |
|
| 236 | 236 | { |
| 237 | 237 | /** client/html/email/payment/html/decorators/excludes |
| 238 | 238 | * Excludes decorators added by the "common" option from the "email payment html" html client |
@@ -308,7 +308,7 @@ discard block |
||
| 308 | 308 | * @see client/html/email/payment/html/decorators/global |
| 309 | 309 | */ |
| 310 | 310 | |
| 311 | - return $this->createSubClient( 'email/payment/html/' . $type, $name ); |
|
| 311 | + return $this->createSubClient('email/payment/html/'.$type, $name); |
|
| 312 | 312 | } |
| 313 | 313 | |
| 314 | 314 | |
@@ -319,6 +319,6 @@ discard block |
||
| 319 | 319 | */ |
| 320 | 320 | protected function getSubClientNames() |
| 321 | 321 | { |
| 322 | - return $this->getContext()->getConfig()->get( $this->subPartPath, $this->subPartNames ); |
|
| 322 | + return $this->getContext()->getConfig()->get($this->subPartPath, $this->subPartNames); |
|
| 323 | 323 | } |
| 324 | 324 | } |
| 325 | 325 | \ No newline at end of file |
@@ -67,13 +67,13 @@ discard block |
||
| 67 | 67 | * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry) |
| 68 | 68 | * @return string HTML code |
| 69 | 69 | */ |
| 70 | - public function getBody( $uid = '', array &$tags = array(), &$expire = null ) |
|
| 70 | + public function getBody($uid = '', array &$tags = array(), &$expire = null) |
|
| 71 | 71 | { |
| 72 | - $view = $this->setViewParams( $this->getView(), $tags, $expire ); |
|
| 72 | + $view = $this->setViewParams($this->getView(), $tags, $expire); |
|
| 73 | 73 | |
| 74 | 74 | $content = ''; |
| 75 | - foreach( $this->getSubClients() as $subclient ) { |
|
| 76 | - $content .= $subclient->setView( $view )->getBody( $uid, $tags, $expire ); |
|
| 75 | + foreach ($this->getSubClients() as $subclient) { |
|
| 76 | + $content .= $subclient->setView($view)->getBody($uid, $tags, $expire); |
|
| 77 | 77 | } |
| 78 | 78 | $view->outroBody = $content; |
| 79 | 79 | |
@@ -107,9 +107,9 @@ discard block |
||
| 107 | 107 | $tplconf = 'client/html/email/payment/html/outro/standard/template-body'; |
| 108 | 108 | |
| 109 | 109 | $status = $view->extOrderItem->getPaymentStatus(); |
| 110 | - $default = array( 'email/payment/' . $status . '/html-outro-body-default.php', 'email/common/html-outro-body-default.php' ); |
|
| 110 | + $default = array('email/payment/'.$status.'/html-outro-body-default.php', 'email/common/html-outro-body-default.php'); |
|
| 111 | 111 | |
| 112 | - return $view->render( $view->config( $tplconf, $default ) ); |
|
| 112 | + return $view->render($view->config($tplconf, $default)); |
|
| 113 | 113 | } |
| 114 | 114 | |
| 115 | 115 | |
@@ -121,13 +121,13 @@ discard block |
||
| 121 | 121 | * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry) |
| 122 | 122 | * @return string|null String including HTML tags for the header on error |
| 123 | 123 | */ |
| 124 | - public function getHeader( $uid = '', array &$tags = array(), &$expire = null ) |
|
| 124 | + public function getHeader($uid = '', array &$tags = array(), &$expire = null) |
|
| 125 | 125 | { |
| 126 | - $view = $this->setViewParams( $this->getView(), $tags, $expire ); |
|
| 126 | + $view = $this->setViewParams($this->getView(), $tags, $expire); |
|
| 127 | 127 | |
| 128 | 128 | $content = ''; |
| 129 | - foreach( $this->getSubClients() as $subclient ) { |
|
| 130 | - $content .= $subclient->setView( $view )->getHeader( $uid, $tags, $expire ); |
|
| 129 | + foreach ($this->getSubClients() as $subclient) { |
|
| 130 | + $content .= $subclient->setView($view)->getHeader($uid, $tags, $expire); |
|
| 131 | 131 | } |
| 132 | 132 | $view->outroHeader = $content; |
| 133 | 133 | |
@@ -162,9 +162,9 @@ discard block |
||
| 162 | 162 | $tplconf = 'client/html/email/payment/html/outro/standard/template-header'; |
| 163 | 163 | |
| 164 | 164 | $status = $view->extOrderItem->getPaymentStatus(); |
| 165 | - $default = array( 'email/payment/' . $status . '/html-outro-header-default.php', 'email/common/html-outro-header-default.php' ); |
|
| 165 | + $default = array('email/payment/'.$status.'/html-outro-header-default.php', 'email/common/html-outro-header-default.php'); |
|
| 166 | 166 | |
| 167 | - return $view->render( $view->config( $tplconf, $default ) ); |
|
| 167 | + return $view->render($view->config($tplconf, $default)); |
|
| 168 | 168 | } |
| 169 | 169 | |
| 170 | 170 | |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | * @param string|null $name Name of the sub-client (Default if null) |
| 176 | 176 | * @return \Aimeos\Client\Html\Iface Sub-client object |
| 177 | 177 | */ |
| 178 | - public function getSubClient( $type, $name = null ) |
|
| 178 | + public function getSubClient($type, $name = null) |
|
| 179 | 179 | { |
| 180 | 180 | /** client/html/email/payment/html/outro/decorators/excludes |
| 181 | 181 | * Excludes decorators added by the "common" option from the email payment html outro html client |
@@ -251,7 +251,7 @@ discard block |
||
| 251 | 251 | * @see client/html/email/payment/html/outro/decorators/global |
| 252 | 252 | */ |
| 253 | 253 | |
| 254 | - return $this->createSubClient( 'email/payment/html/outro/' . $type, $name ); |
|
| 254 | + return $this->createSubClient('email/payment/html/outro/'.$type, $name); |
|
| 255 | 255 | } |
| 256 | 256 | |
| 257 | 257 | |
@@ -262,6 +262,6 @@ discard block |
||
| 262 | 262 | */ |
| 263 | 263 | protected function getSubClientNames() |
| 264 | 264 | { |
| 265 | - return $this->getContext()->getConfig()->get( $this->subPartPath, $this->subPartNames ); |
|
| 265 | + return $this->getContext()->getConfig()->get($this->subPartPath, $this->subPartNames); |
|
| 266 | 266 | } |
| 267 | 267 | } |
| 268 | 268 | \ No newline at end of file |
@@ -67,13 +67,13 @@ discard block |
||
| 67 | 67 | * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry) |
| 68 | 68 | * @return string HTML code |
| 69 | 69 | */ |
| 70 | - public function getBody( $uid = '', array &$tags = array(), &$expire = null ) |
|
| 70 | + public function getBody($uid = '', array &$tags = array(), &$expire = null) |
|
| 71 | 71 | { |
| 72 | - $view = $this->setViewParams( $this->getView(), $tags, $expire ); |
|
| 72 | + $view = $this->setViewParams($this->getView(), $tags, $expire); |
|
| 73 | 73 | |
| 74 | 74 | $content = ''; |
| 75 | - foreach( $this->getSubClients() as $subclient ) { |
|
| 76 | - $content .= $subclient->setView( $view )->getBody( $uid, $tags, $expire ); |
|
| 75 | + foreach ($this->getSubClients() as $subclient) { |
|
| 76 | + $content .= $subclient->setView($view)->getBody($uid, $tags, $expire); |
|
| 77 | 77 | } |
| 78 | 78 | $view->salutationBody = $content; |
| 79 | 79 | |
@@ -107,9 +107,9 @@ discard block |
||
| 107 | 107 | $tplconf = 'client/html/email/payment/html/salutation/standard/template-body'; |
| 108 | 108 | |
| 109 | 109 | $status = $view->extOrderItem->getPaymentStatus(); |
| 110 | - $default = array( 'email/payment/' . $status . '/html-salutation-body-default.php', 'email/common/html-salutation-body-default.php' ); |
|
| 110 | + $default = array('email/payment/'.$status.'/html-salutation-body-default.php', 'email/common/html-salutation-body-default.php'); |
|
| 111 | 111 | |
| 112 | - return $view->render( $view->config( $tplconf, $default ) ); |
|
| 112 | + return $view->render($view->config($tplconf, $default)); |
|
| 113 | 113 | } |
| 114 | 114 | |
| 115 | 115 | |
@@ -121,13 +121,13 @@ discard block |
||
| 121 | 121 | * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry) |
| 122 | 122 | * @return string|null String including HTML tags for the header on error |
| 123 | 123 | */ |
| 124 | - public function getHeader( $uid = '', array &$tags = array(), &$expire = null ) |
|
| 124 | + public function getHeader($uid = '', array &$tags = array(), &$expire = null) |
|
| 125 | 125 | { |
| 126 | - $view = $this->setViewParams( $this->getView(), $tags, $expire ); |
|
| 126 | + $view = $this->setViewParams($this->getView(), $tags, $expire); |
|
| 127 | 127 | |
| 128 | 128 | $content = ''; |
| 129 | - foreach( $this->getSubClients() as $subclient ) { |
|
| 130 | - $content .= $subclient->setView( $view )->getHeader( $uid, $tags, $expire ); |
|
| 129 | + foreach ($this->getSubClients() as $subclient) { |
|
| 130 | + $content .= $subclient->setView($view)->getHeader($uid, $tags, $expire); |
|
| 131 | 131 | } |
| 132 | 132 | $view->salutationHeader = $content; |
| 133 | 133 | |
@@ -162,9 +162,9 @@ discard block |
||
| 162 | 162 | $tplconf = 'client/html/email/payment/html/salutation/standard/template-header'; |
| 163 | 163 | |
| 164 | 164 | $status = $view->extOrderItem->getPaymentStatus(); |
| 165 | - $default = array( 'email/payment/' . $status . '/html-salutation-header-default.php', 'email/common/html-salutation-header-default.php' ); |
|
| 165 | + $default = array('email/payment/'.$status.'/html-salutation-header-default.php', 'email/common/html-salutation-header-default.php'); |
|
| 166 | 166 | |
| 167 | - return $view->render( $view->config( $tplconf, $default ) ); |
|
| 167 | + return $view->render($view->config($tplconf, $default)); |
|
| 168 | 168 | } |
| 169 | 169 | |
| 170 | 170 | |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | * @param string|null $name Name of the sub-client (Default if null) |
| 176 | 176 | * @return \Aimeos\Client\Html\Iface Sub-client object |
| 177 | 177 | */ |
| 178 | - public function getSubClient( $type, $name = null ) |
|
| 178 | + public function getSubClient($type, $name = null) |
|
| 179 | 179 | { |
| 180 | 180 | /** client/html/email/payment/html/salutation/decorators/excludes |
| 181 | 181 | * Excludes decorators added by the "common" option from the email payment html salutation html client |
@@ -251,7 +251,7 @@ discard block |
||
| 251 | 251 | * @see client/html/email/payment/html/salutation/decorators/global |
| 252 | 252 | */ |
| 253 | 253 | |
| 254 | - return $this->createSubClient( 'email/payment/html/salutation/' . $type, $name ); |
|
| 254 | + return $this->createSubClient('email/payment/html/salutation/'.$type, $name); |
|
| 255 | 255 | } |
| 256 | 256 | |
| 257 | 257 | |
@@ -262,6 +262,6 @@ discard block |
||
| 262 | 262 | */ |
| 263 | 263 | protected function getSubClientNames() |
| 264 | 264 | { |
| 265 | - return $this->getContext()->getConfig()->get( $this->subPartPath, $this->subPartNames ); |
|
| 265 | + return $this->getContext()->getConfig()->get($this->subPartPath, $this->subPartNames); |
|
| 266 | 266 | } |
| 267 | 267 | } |
| 268 | 268 | \ No newline at end of file |
@@ -67,13 +67,13 @@ discard block |
||
| 67 | 67 | * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry) |
| 68 | 68 | * @return string HTML code |
| 69 | 69 | */ |
| 70 | - public function getBody( $uid = '', array &$tags = array(), &$expire = null ) |
|
| 70 | + public function getBody($uid = '', array &$tags = array(), &$expire = null) |
|
| 71 | 71 | { |
| 72 | - $view = $this->setViewParams( $this->getView(), $tags, $expire ); |
|
| 72 | + $view = $this->setViewParams($this->getView(), $tags, $expire); |
|
| 73 | 73 | |
| 74 | 74 | $content = ''; |
| 75 | - foreach( $this->getSubClients() as $subclient ) { |
|
| 76 | - $content .= $subclient->setView( $view )->getBody( $uid, $tags, $expire ); |
|
| 75 | + foreach ($this->getSubClients() as $subclient) { |
|
| 76 | + $content .= $subclient->setView($view)->getBody($uid, $tags, $expire); |
|
| 77 | 77 | } |
| 78 | 78 | $view->legalBody = $content; |
| 79 | 79 | |
@@ -107,9 +107,9 @@ discard block |
||
| 107 | 107 | $tplconf = 'client/html/email/payment/html/legal/standard/template-body'; |
| 108 | 108 | |
| 109 | 109 | $status = $view->extOrderItem->getPaymentStatus(); |
| 110 | - $default = array( 'email/payment/' . $status . '/html-legal-body-default.php', 'email/common/html-legal-body-default.php' ); |
|
| 110 | + $default = array('email/payment/'.$status.'/html-legal-body-default.php', 'email/common/html-legal-body-default.php'); |
|
| 111 | 111 | |
| 112 | - return $view->render( $view->config( $tplconf, $default ) ); |
|
| 112 | + return $view->render($view->config($tplconf, $default)); |
|
| 113 | 113 | } |
| 114 | 114 | |
| 115 | 115 | |
@@ -121,13 +121,13 @@ discard block |
||
| 121 | 121 | * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry) |
| 122 | 122 | * @return string|null String including HTML tags for the header on error |
| 123 | 123 | */ |
| 124 | - public function getHeader( $uid = '', array &$tags = array(), &$expire = null ) |
|
| 124 | + public function getHeader($uid = '', array &$tags = array(), &$expire = null) |
|
| 125 | 125 | { |
| 126 | - $view = $this->setViewParams( $this->getView(), $tags, $expire ); |
|
| 126 | + $view = $this->setViewParams($this->getView(), $tags, $expire); |
|
| 127 | 127 | |
| 128 | 128 | $content = ''; |
| 129 | - foreach( $this->getSubClients() as $subclient ) { |
|
| 130 | - $content .= $subclient->setView( $view )->getHeader( $uid, $tags, $expire ); |
|
| 129 | + foreach ($this->getSubClients() as $subclient) { |
|
| 130 | + $content .= $subclient->setView($view)->getHeader($uid, $tags, $expire); |
|
| 131 | 131 | } |
| 132 | 132 | $view->legalHeader = $content; |
| 133 | 133 | |
@@ -162,9 +162,9 @@ discard block |
||
| 162 | 162 | $tplconf = 'client/html/email/payment/html/legal/standard/template-header'; |
| 163 | 163 | |
| 164 | 164 | $status = $view->extOrderItem->getPaymentStatus(); |
| 165 | - $default = array( 'email/payment/' . $status . '/html-legal-header-default.php', 'email/common/html-legal-header-default.php' ); |
|
| 165 | + $default = array('email/payment/'.$status.'/html-legal-header-default.php', 'email/common/html-legal-header-default.php'); |
|
| 166 | 166 | |
| 167 | - return $view->render( $view->config( $tplconf, $default ) ); |
|
| 167 | + return $view->render($view->config($tplconf, $default)); |
|
| 168 | 168 | } |
| 169 | 169 | |
| 170 | 170 | |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | * @param string|null $name Name of the sub-client (Default if null) |
| 176 | 176 | * @return \Aimeos\Client\Html\Iface Sub-client object |
| 177 | 177 | */ |
| 178 | - public function getSubClient( $type, $name = null ) |
|
| 178 | + public function getSubClient($type, $name = null) |
|
| 179 | 179 | { |
| 180 | 180 | /** client/html/email/payment/html/legal/decorators/excludes |
| 181 | 181 | * Excludes decorators added by the "common" option from the email payment html legal html client |
@@ -251,7 +251,7 @@ discard block |
||
| 251 | 251 | * @see client/html/email/payment/html/legal/decorators/global |
| 252 | 252 | */ |
| 253 | 253 | |
| 254 | - return $this->createSubClient( 'email/payment/html/legal/' . $type, $name ); |
|
| 254 | + return $this->createSubClient('email/payment/html/legal/'.$type, $name); |
|
| 255 | 255 | } |
| 256 | 256 | |
| 257 | 257 | |
@@ -262,6 +262,6 @@ discard block |
||
| 262 | 262 | */ |
| 263 | 263 | protected function getSubClientNames() |
| 264 | 264 | { |
| 265 | - return $this->getContext()->getConfig()->get( $this->subPartPath, $this->subPartNames ); |
|
| 265 | + return $this->getContext()->getConfig()->get($this->subPartPath, $this->subPartNames); |
|
| 266 | 266 | } |
| 267 | 267 | } |
| 268 | 268 | \ No newline at end of file |