@@ -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/delivery/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/delivery/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/delivery/html/summary/detail/decorators/excludes |
| 165 | 165 | * Excludes decorators added by the "common" option from the email delivery html summary detail html client |
@@ -235,7 +235,7 @@ discard block |
||
| 235 | 235 | * @see client/html/email/delivery/html/summary/detail/decorators/global |
| 236 | 236 | */ |
| 237 | 237 | |
| 238 | - return $this->createSubClient( 'email/delivery/html/summary/detail/' . $type, $name ); |
|
| 238 | + return $this->createSubClient('email/delivery/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 | |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | $tplconf = 'client/html/email/delivery/html/summary/standard/template-body'; |
| 145 | 145 | $default = 'email/common/html-summary-body-default.php'; |
| 146 | 146 | |
| 147 | - return $view->render( $view->config( $tplconf, $default ) ); |
|
| 147 | + return $view->render($view->config($tplconf, $default)); |
|
| 148 | 148 | } |
| 149 | 149 | |
| 150 | 150 | |
@@ -156,13 +156,13 @@ discard block |
||
| 156 | 156 | * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry) |
| 157 | 157 | * @return string|null String including HTML tags for the header on error |
| 158 | 158 | */ |
| 159 | - public function getHeader( $uid = '', array &$tags = array(), &$expire = null ) |
|
| 159 | + public function getHeader($uid = '', array &$tags = array(), &$expire = null) |
|
| 160 | 160 | { |
| 161 | - $view = $this->setViewParams( $this->getView(), $tags, $expire ); |
|
| 161 | + $view = $this->setViewParams($this->getView(), $tags, $expire); |
|
| 162 | 162 | |
| 163 | 163 | $content = ''; |
| 164 | - foreach( $this->getSubClients() as $subclient ) { |
|
| 165 | - $content .= $subclient->setView( $view )->getHeader( $uid, $tags, $expire ); |
|
| 164 | + foreach ($this->getSubClients() as $subclient) { |
|
| 165 | + $content .= $subclient->setView($view)->getHeader($uid, $tags, $expire); |
|
| 166 | 166 | } |
| 167 | 167 | $view->summaryHeader = $content; |
| 168 | 168 | |
@@ -190,7 +190,7 @@ discard block |
||
| 190 | 190 | $tplconf = 'client/html/email/delivery/html/summary/standard/template-header'; |
| 191 | 191 | $default = 'email/common/html-summary-header-default.php'; |
| 192 | 192 | |
| 193 | - return $view->render( $view->config( $tplconf, $default ) ); |
|
| 193 | + return $view->render($view->config($tplconf, $default)); |
|
| 194 | 194 | } |
| 195 | 195 | |
| 196 | 196 | |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | * @param string|null $name Name of the sub-client (Default if null) |
| 202 | 202 | * @return \Aimeos\Client\Html\Iface Sub-client object |
| 203 | 203 | */ |
| 204 | - public function getSubClient( $type, $name = null ) |
|
| 204 | + public function getSubClient($type, $name = null) |
|
| 205 | 205 | { |
| 206 | 206 | /** client/html/email/delivery/html/summary/decorators/excludes |
| 207 | 207 | * Excludes decorators added by the "common" option from the email delivery html summary html client |
@@ -277,7 +277,7 @@ discard block |
||
| 277 | 277 | * @see client/html/email/delivery/html/summary/decorators/global |
| 278 | 278 | */ |
| 279 | 279 | |
| 280 | - return $this->createSubClient( 'email/delivery/html/summary/' . $type, $name ); |
|
| 280 | + return $this->createSubClient('email/delivery/html/summary/'.$type, $name); |
|
| 281 | 281 | } |
| 282 | 282 | |
| 283 | 283 | |
@@ -288,7 +288,7 @@ discard block |
||
| 288 | 288 | */ |
| 289 | 289 | protected function getSubClientNames() |
| 290 | 290 | { |
| 291 | - return $this->getContext()->getConfig()->get( $this->subPartPath, $this->subPartNames ); |
|
| 291 | + return $this->getContext()->getConfig()->get($this->subPartPath, $this->subPartNames); |
|
| 292 | 292 | } |
| 293 | 293 | |
| 294 | 294 | |
@@ -300,7 +300,7 @@ discard block |
||
| 300 | 300 | * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry) |
| 301 | 301 | * @return \Aimeos\MW\View\Iface Modified view object |
| 302 | 302 | */ |
| 303 | - protected function setViewParams( \Aimeos\MW\View\Iface $view, array &$tags = array(), &$expire = null ) |
|
| 303 | + protected function setViewParams(\Aimeos\MW\View\Iface $view, array &$tags = array(), &$expire = null) |
|
| 304 | 304 | { |
| 305 | 305 | $view->summaryBasket = $view->extOrderBaseItem; |
| 306 | 306 | |
@@ -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/delivery/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/delivery/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/delivery/html/summary/address/decorators/excludes |
| 165 | 165 | * Excludes decorators added by the "common" option from the email delivery html summary address html client |
@@ -235,7 +235,7 @@ discard block |
||
| 235 | 235 | * @see client/html/email/delivery/html/summary/address/decorators/global |
| 236 | 236 | */ |
| 237 | 237 | |
| 238 | - return $this->createSubClient( 'email/delivery/html/summary/address/' . $type, $name ); |
|
| 238 | + return $this->createSubClient('email/delivery/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/delivery/html/standard/template-body'; |
| 163 | 163 | |
| 164 | 164 | $status = $view->extOrderItem->getDeliveryStatus(); |
| 165 | - $default = array( 'email/delivery/' . $status . '/html-body-default.php', 'email/common/html-body-default.php' ); |
|
| 165 | + $default = array('email/delivery/'.$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/delivery/html/standard/template-header'; |
| 220 | 220 | |
| 221 | 221 | $status = $view->extOrderItem->getDeliveryStatus(); |
| 222 | - $default = array( 'email/delivery/' . $status . '/html-header-default.php', 'email/common/html-header-default.php' ); |
|
| 222 | + $default = array('email/delivery/'.$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/delivery/html/decorators/excludes |
| 238 | 238 | * Excludes decorators added by the "common" option from the "email delivery html" html client |
@@ -308,7 +308,7 @@ discard block |
||
| 308 | 308 | * @see client/html/email/delivery/html/decorators/global |
| 309 | 309 | */ |
| 310 | 310 | |
| 311 | - return $this->createSubClient( 'email/delivery/html/' . $type, $name ); |
|
| 311 | + return $this->createSubClient('email/delivery/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/delivery/html/outro/standard/template-body'; |
| 108 | 108 | |
| 109 | 109 | $status = $view->extOrderItem->getDeliveryStatus(); |
| 110 | - $default = array( 'email/delivery/' . $status . '/html-outro-body-default.php', 'email/common/html-outro-body-default.php' ); |
|
| 110 | + $default = array('email/delivery/'.$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/delivery/html/outro/standard/template-header'; |
| 163 | 163 | |
| 164 | 164 | $status = $view->extOrderItem->getDeliveryStatus(); |
| 165 | - $default = array( 'email/delivery/' . $status . '/html-outro-header-default.php', 'email/common/html-outro-header-default.php' ); |
|
| 165 | + $default = array('email/delivery/'.$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/delivery/html/outro/decorators/excludes |
| 181 | 181 | * Excludes decorators added by the "common" option from the email delivery html outro html client |
@@ -251,7 +251,7 @@ discard block |
||
| 251 | 251 | * @see client/html/email/delivery/html/outro/decorators/global |
| 252 | 252 | */ |
| 253 | 253 | |
| 254 | - return $this->createSubClient( 'email/delivery/html/outro/' . $type, $name ); |
|
| 254 | + return $this->createSubClient('email/delivery/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/delivery/html/salutation/standard/template-body'; |
| 108 | 108 | |
| 109 | 109 | $status = $view->extOrderItem->getDeliveryStatus(); |
| 110 | - $default = array( 'email/delivery/' . $status . '/html-salutation-body-default.php', 'email/common/html-salutation-body-default.php' ); |
|
| 110 | + $default = array('email/delivery/'.$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/delivery/html/salutation/standard/template-header'; |
| 163 | 163 | |
| 164 | 164 | $status = $view->extOrderItem->getDeliveryStatus(); |
| 165 | - $default = array( 'email/delivery/' . $status . '/html-salutation-header-default.php', 'email/common/html-salutation-header-default.php' ); |
|
| 165 | + $default = array('email/delivery/'.$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/delivery/html/salutation/decorators/excludes |
| 181 | 181 | * Excludes decorators added by the "common" option from the email delivery html salutation html client |
@@ -251,7 +251,7 @@ discard block |
||
| 251 | 251 | * @see client/html/email/delivery/html/salutation/decorators/global |
| 252 | 252 | */ |
| 253 | 253 | |
| 254 | - return $this->createSubClient( 'email/delivery/html/salutation/' . $type, $name ); |
|
| 254 | + return $this->createSubClient('email/delivery/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/delivery/html/legal/standard/template-body'; |
| 108 | 108 | |
| 109 | 109 | $status = $view->extOrderItem->getDeliveryStatus(); |
| 110 | - $default = array( 'email/delivery/' . $status . '/html-legal-body-default.php', 'email/common/html-legal-body-default.php' ); |
|
| 110 | + $default = array('email/delivery/'.$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/delivery/html/legal/standard/template-header'; |
| 163 | 163 | |
| 164 | 164 | $status = $view->extOrderItem->getDeliveryStatus(); |
| 165 | - $default = array( 'email/delivery/' . $status . '/html-legal-header-default.php', 'email/common/html-legal-header-default.php' ); |
|
| 165 | + $default = array('email/delivery/'.$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/delivery/html/legal/decorators/excludes |
| 181 | 181 | * Excludes decorators added by the "common" option from the email delivery html legal html client |
@@ -251,7 +251,7 @@ discard block |
||
| 251 | 251 | * @see client/html/email/delivery/html/legal/decorators/global |
| 252 | 252 | */ |
| 253 | 253 | |
| 254 | - return $this->createSubClient( 'email/delivery/html/legal/' . $type, $name ); |
|
| 254 | + return $this->createSubClient('email/delivery/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 |
@@ -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->introBody = $content; |
| 79 | 79 | |
@@ -107,9 +107,9 @@ discard block |
||
| 107 | 107 | $tplconf = 'client/html/email/delivery/html/intro/standard/template-body'; |
| 108 | 108 | |
| 109 | 109 | $status = $view->extOrderItem->getDeliveryStatus(); |
| 110 | - $default = array( 'email/delivery/' . $status . '/html-intro-body-default.php', 'email/delivery/html-intro-body-default.php' ); |
|
| 110 | + $default = array('email/delivery/'.$status.'/html-intro-body-default.php', 'email/delivery/html-intro-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->introHeader = $content; |
| 133 | 133 | |
@@ -162,9 +162,9 @@ discard block |
||
| 162 | 162 | $tplconf = 'client/html/email/delivery/html/intro/standard/template-header'; |
| 163 | 163 | |
| 164 | 164 | $status = $view->extOrderItem->getDeliveryStatus(); |
| 165 | - $default = array( 'email/delivery/' . $status . '/html-intro-header-default.php', 'email/delivery/html-intro-header-default.php' ); |
|
| 165 | + $default = array('email/delivery/'.$status.'/html-intro-header-default.php', 'email/delivery/html-intro-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/delivery/html/intro/decorators/excludes |
| 181 | 181 | * Excludes decorators added by the "common" option from the email delivery html intro html client |
@@ -251,7 +251,7 @@ discard block |
||
| 251 | 251 | * @see client/html/email/delivery/html/intro/decorators/global |
| 252 | 252 | */ |
| 253 | 253 | |
| 254 | - return $this->createSubClient( 'email/delivery/html/intro/' . $type, $name ); |
|
| 254 | + return $this->createSubClient('email/delivery/html/intro/'.$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 |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | * @return \Aimeos\Client\Html\Iface Filter part implementing \Aimeos\Client\Html\Iface |
| 32 | 32 | * @throws \Aimeos\Client\Html\Exception If requested client implementation couldn't be found or initialisation fails |
| 33 | 33 | */ |
| 34 | - public static function createClient( \Aimeos\MShop\Context\Item\Iface $context, array $templatePaths, $name = null ) |
|
| 34 | + public static function createClient(\Aimeos\MShop\Context\Item\Iface $context, array $templatePaths, $name = null) |
|
| 35 | 35 | { |
| 36 | 36 | /** client/html/email/delivery/name |
| 37 | 37 | * Class name of the used email delivery client implementation |
@@ -66,22 +66,22 @@ discard block |
||
| 66 | 66 | * @since 2014.03 |
| 67 | 67 | * @category Developer |
| 68 | 68 | */ |
| 69 | - if( $name === null ) { |
|
| 70 | - $name = $context->getConfig()->get( 'client/html/email/delivery/name', 'Standard' ); |
|
| 69 | + if ($name === null) { |
|
| 70 | + $name = $context->getConfig()->get('client/html/email/delivery/name', 'Standard'); |
|
| 71 | 71 | } |
| 72 | 72 | |
| 73 | - if( ctype_alnum( $name ) === false ) |
|
| 73 | + if (ctype_alnum($name) === false) |
|
| 74 | 74 | { |
| 75 | - $classname = is_string( $name ) ? '\\Aimeos\\Client\\Html\\Email\\Delivery\\' . $name : '<not a string>'; |
|
| 76 | - throw new \Aimeos\Client\Html\Exception( sprintf( 'Invalid characters in class name "%1$s"', $classname ) ); |
|
| 75 | + $classname = is_string($name) ? '\\Aimeos\\Client\\Html\\Email\\Delivery\\'.$name : '<not a string>'; |
|
| 76 | + throw new \Aimeos\Client\Html\Exception(sprintf('Invalid characters in class name "%1$s"', $classname)); |
|
| 77 | 77 | } |
| 78 | 78 | |
| 79 | 79 | $iface = '\\Aimeos\\Client\\Html\\Iface'; |
| 80 | - $classname = '\\Aimeos\\Client\\Html\\Email\\Delivery\\' . $name; |
|
| 80 | + $classname = '\\Aimeos\\Client\\Html\\Email\\Delivery\\'.$name; |
|
| 81 | 81 | |
| 82 | - $client = self::createClientBase( $context, $classname, $iface, $templatePaths ); |
|
| 82 | + $client = self::createClientBase($context, $classname, $iface, $templatePaths); |
|
| 83 | 83 | |
| 84 | - return self::addClientDecorators( $context, $client, $templatePaths, 'email/delivery' ); |
|
| 84 | + return self::addClientDecorators($context, $client, $templatePaths, 'email/delivery'); |
|
| 85 | 85 | } |
| 86 | 86 | } |
| 87 | 87 | |