Completed
Push — master ( b384ce...7658b0 )
by Aimeos
05:56
created
html/src/Client/Html/Email/Delivery/Text/Summary/Service/Standard.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -67,13 +67,13 @@  discard block
 block discarded – undo
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->summaryBody = $content;
79 79
 
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 		$tplconf = 'client/html/email/delivery/text/summary/service/standard/template-body';
101 101
 		$default = 'email/common/text-summary-service-body-default.php';
102 102
 
103
-		return $view->render( $view->config( $tplconf, $default ) );
103
+		return $view->render($view->config($tplconf, $default));
104 104
 	}
105 105
 
106 106
 
@@ -112,13 +112,13 @@  discard block
 block discarded – undo
112 112
 	 * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry)
113 113
 	 * @return string|null String including HTML tags for the header on error
114 114
 	 */
115
-	public function getHeader( $uid = '', array &$tags = array(), &$expire = null )
115
+	public function getHeader($uid = '', array &$tags = array(), &$expire = null)
116 116
 	{
117
-		$view = $this->setViewParams( $this->getView(), $tags, $expire );
117
+		$view = $this->setViewParams($this->getView(), $tags, $expire);
118 118
 
119 119
 		$content = '';
120
-		foreach( $this->getSubClients() as $subclient ) {
121
-			$content .= $subclient->setView( $view )->getHeader( $uid, $tags, $expire );
120
+		foreach ($this->getSubClients() as $subclient) {
121
+			$content .= $subclient->setView($view)->getHeader($uid, $tags, $expire);
122 122
 		}
123 123
 		$view->summaryHeader = $content;
124 124
 
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 		$tplconf = 'client/html/email/delivery/text/summary/service/standard/template-header';
147 147
 		$default = 'email/common/text-summary-service-header-default.php';
148 148
 
149
-		return $view->render( $view->config( $tplconf, $default ) );
149
+		return $view->render($view->config($tplconf, $default));
150 150
 	}
151 151
 
152 152
 
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
 	 * @param string|null $name Name of the sub-client (Default if null)
158 158
 	 * @return \Aimeos\Client\Html\Iface Sub-client object
159 159
 	 */
160
-	public function getSubClient( $type, $name = null )
160
+	public function getSubClient($type, $name = null)
161 161
 	{
162 162
 		/** client/html/email/delivery/text/summary/service/decorators/excludes
163 163
 		 * Excludes decorators added by the "common" option from the "email delivery text summary service" html client
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
 		 * @see client/html/email/delivery/text/summary/service/decorators/global
234 234
 		 */
235 235
 
236
-		return $this->createSubClient( 'email/delivery/text/summary/service/' . $type, $name );
236
+		return $this->createSubClient('email/delivery/text/summary/service/'.$type, $name);
237 237
 	}
238 238
 
239 239
 
@@ -244,6 +244,6 @@  discard block
 block discarded – undo
244 244
 	 */
245 245
 	protected function getSubClientNames()
246 246
 	{
247
-		return $this->getContext()->getConfig()->get( $this->subPartPath, $this->subPartNames );
247
+		return $this->getContext()->getConfig()->get($this->subPartPath, $this->subPartNames);
248 248
 	}
249 249
 }
Please login to merge, or discard this patch.
client/html/src/Client/Html/Email/Delivery/Text/Summary/Coupon/Standard.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -67,13 +67,13 @@  discard block
 block discarded – undo
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->summaryBody = $content;
79 79
 
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 		$tplconf = 'client/html/email/delivery/text/summary/coupon/standard/template-body';
101 101
 		$default = 'email/common/text-summary-coupon-body-default.php';
102 102
 
103
-		return $view->render( $view->config( $tplconf, $default ) );
103
+		return $view->render($view->config($tplconf, $default));
104 104
 	}
105 105
 
106 106
 
@@ -112,13 +112,13 @@  discard block
 block discarded – undo
112 112
 	 * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry)
113 113
 	 * @return string|null String including HTML tags for the header on error
114 114
 	 */
115
-	public function getHeader( $uid = '', array &$tags = array(), &$expire = null )
115
+	public function getHeader($uid = '', array &$tags = array(), &$expire = null)
116 116
 	{
117
-		$view = $this->setViewParams( $this->getView(), $tags, $expire );
117
+		$view = $this->setViewParams($this->getView(), $tags, $expire);
118 118
 
119 119
 		$content = '';
120
-		foreach( $this->getSubClients() as $subclient ) {
121
-			$content .= $subclient->setView( $view )->getHeader( $uid, $tags, $expire );
120
+		foreach ($this->getSubClients() as $subclient) {
121
+			$content .= $subclient->setView($view)->getHeader($uid, $tags, $expire);
122 122
 		}
123 123
 		$view->summaryHeader = $content;
124 124
 
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 		$tplconf = 'client/html/email/delivery/text/summary/coupon/standard/template-header';
147 147
 		$default = 'email/common/text-summary-coupon-header-default.php';
148 148
 
149
-		return $view->render( $view->config( $tplconf, $default ) );
149
+		return $view->render($view->config($tplconf, $default));
150 150
 	}
151 151
 
152 152
 
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
 	 * @param string|null $name Name of the sub-client (Default if null)
158 158
 	 * @return \Aimeos\Client\Html\Iface Sub-client object
159 159
 	 */
160
-	public function getSubClient( $type, $name = null )
160
+	public function getSubClient($type, $name = null)
161 161
 	{
162 162
 		/** client/html/email/delivery/text/summary/coupon/decorators/excludes
163 163
 		 * Excludes decorators added by the "common" option from the "email delivery text summary coupon" html client
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
 		 * @see client/html/email/delivery/text/summary/coupon/decorators/global
234 234
 		 */
235 235
 
236
-		return $this->createSubClient( 'email/delivery/text/summary/coupon/' . $type, $name );
236
+		return $this->createSubClient('email/delivery/text/summary/coupon/'.$type, $name);
237 237
 	}
238 238
 
239 239
 
@@ -244,6 +244,6 @@  discard block
 block discarded – undo
244 244
 	 */
245 245
 	protected function getSubClientNames()
246 246
 	{
247
-		return $this->getContext()->getConfig()->get( $this->subPartPath, $this->subPartNames );
247
+		return $this->getContext()->getConfig()->get($this->subPartPath, $this->subPartNames);
248 248
 	}
249 249
 }
Please login to merge, or discard this patch.
client/html/src/Client/Html/Email/Delivery/Text/Summary/Detail/Standard.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -67,13 +67,13 @@  discard block
 block discarded – undo
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->summaryBody = $content;
79 79
 
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 		$tplconf = 'client/html/email/delivery/text/summary/detail/standard/template-body';
101 101
 		$default = 'email/common/text-summary-detail-body-default.php';
102 102
 
103
-		return $view->render( $view->config( $tplconf, $default ) );
103
+		return $view->render($view->config($tplconf, $default));
104 104
 	}
105 105
 
106 106
 
@@ -112,13 +112,13 @@  discard block
 block discarded – undo
112 112
 	 * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry)
113 113
 	 * @return string|null String including HTML tags for the header on error
114 114
 	 */
115
-	public function getHeader( $uid = '', array &$tags = array(), &$expire = null )
115
+	public function getHeader($uid = '', array &$tags = array(), &$expire = null)
116 116
 	{
117
-		$view = $this->setViewParams( $this->getView(), $tags, $expire );
117
+		$view = $this->setViewParams($this->getView(), $tags, $expire);
118 118
 
119 119
 		$content = '';
120
-		foreach( $this->getSubClients() as $subclient ) {
121
-			$content .= $subclient->setView( $view )->getHeader( $uid, $tags, $expire );
120
+		foreach ($this->getSubClients() as $subclient) {
121
+			$content .= $subclient->setView($view)->getHeader($uid, $tags, $expire);
122 122
 		}
123 123
 		$view->summaryHeader = $content;
124 124
 
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 		$tplconf = 'client/html/email/delivery/text/summary/detail/standard/template-header';
147 147
 		$default = 'email/common/text-summary-detail-header-default.php';
148 148
 
149
-		return $view->render( $view->config( $tplconf, $default ) );
149
+		return $view->render($view->config($tplconf, $default));
150 150
 	}
151 151
 
152 152
 
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
 	 * @param string|null $name Name of the sub-client (Default if null)
158 158
 	 * @return \Aimeos\Client\Html\Iface Sub-client object
159 159
 	 */
160
-	public function getSubClient( $type, $name = null )
160
+	public function getSubClient($type, $name = null)
161 161
 	{
162 162
 		/** client/html/email/delivery/text/summary/detail/decorators/excludes
163 163
 		 * Excludes decorators added by the "common" option from the "email delivery text summary detail" html client
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
 		 * @see client/html/email/delivery/text/summary/detail/decorators/global
234 234
 		 */
235 235
 
236
-		return $this->createSubClient( 'email/delivery/text/summary/detail/' . $type, $name );
236
+		return $this->createSubClient('email/delivery/text/summary/detail/'.$type, $name);
237 237
 	}
238 238
 
239 239
 
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
 	 */
245 245
 	protected function getSubClientNames()
246 246
 	{
247
-		return $this->getContext()->getConfig()->get( $this->subPartPath, $this->subPartNames );
247
+		return $this->getContext()->getConfig()->get($this->subPartPath, $this->subPartNames);
248 248
 	}
249 249
 
250 250
 
@@ -256,12 +256,12 @@  discard block
 block discarded – undo
256 256
 	 * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry)
257 257
 	 * @return \Aimeos\MW\View\Iface Modified view object
258 258
 	 */
259
-	protected function setViewParams( \Aimeos\MW\View\Iface $view, array &$tags = array(), &$expire = null )
259
+	protected function setViewParams(\Aimeos\MW\View\Iface $view, array &$tags = array(), &$expire = null)
260 260
 	{
261 261
 		// we can't cache the calculation because the same client object is used for all e-mails
262
-		$view->summaryTaxRates = $this->getTaxRates( $view->extOrderBaseItem );
262
+		$view->summaryTaxRates = $this->getTaxRates($view->extOrderBaseItem);
263 263
 
264
-		if( $view->extOrderItem->getPaymentStatus() >= $this->getDownloadPaymentStatus() ) {
264
+		if ($view->extOrderItem->getPaymentStatus() >= $this->getDownloadPaymentStatus()) {
265 265
 			$view->summaryShowDownloadAttributes = true;
266 266
 		}
267 267
 
Please login to merge, or discard this patch.
client/html/src/Client/Html/Email/Delivery/Text/Summary/Standard.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
144 144
 		$tplconf = 'client/html/email/delivery/text/summary/standard/template-body';
145 145
 		$default = 'email/common/text-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
 block discarded – undo
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
 block discarded – undo
190 190
 		$tplconf = 'client/html/email/delivery/text/summary/standard/template-header';
191 191
 		$default = 'email/common/text-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
 block discarded – undo
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/text/summary/decorators/excludes
207 207
 		 * Excludes decorators added by the "common" option from the "email delivery text summary" html client
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
 		 * @see client/html/email/delivery/text/summary/decorators/global
278 278
 		 */
279 279
 
280
-		return $this->createSubClient( 'email/delivery/text/summary/' . $type, $name );
280
+		return $this->createSubClient('email/delivery/text/summary/'.$type, $name);
281 281
 	}
282 282
 
283 283
 
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
html/src/Client/Html/Email/Delivery/Text/Summary/Address/Standard.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -67,13 +67,13 @@  discard block
 block discarded – undo
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->summaryBody = $content;
79 79
 
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 		$tplconf = 'client/html/email/delivery/text/summary/address/standard/template-body';
101 101
 		$default = 'email/common/text-summary-address-body-default.php';
102 102
 
103
-		return $view->render( $view->config( $tplconf, $default ) );
103
+		return $view->render($view->config($tplconf, $default));
104 104
 	}
105 105
 
106 106
 
@@ -112,13 +112,13 @@  discard block
 block discarded – undo
112 112
 	 * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry)
113 113
 	 * @return string|null String including HTML tags for the header on error
114 114
 	 */
115
-	public function getHeader( $uid = '', array &$tags = array(), &$expire = null )
115
+	public function getHeader($uid = '', array &$tags = array(), &$expire = null)
116 116
 	{
117
-		$view = $this->setViewParams( $this->getView(), $tags, $expire );
117
+		$view = $this->setViewParams($this->getView(), $tags, $expire);
118 118
 
119 119
 		$content = '';
120
-		foreach( $this->getSubClients() as $subclient ) {
121
-			$content .= $subclient->setView( $view )->getHeader( $uid, $tags, $expire );
120
+		foreach ($this->getSubClients() as $subclient) {
121
+			$content .= $subclient->setView($view)->getHeader($uid, $tags, $expire);
122 122
 		}
123 123
 		$view->summaryHeader = $content;
124 124
 
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 		$tplconf = 'client/html/email/delivery/text/summary/address/standard/template-header';
147 147
 		$default = 'email/common/text-summary-address-header-default.php';
148 148
 
149
-		return $view->render( $view->config( $tplconf, $default ) );
149
+		return $view->render($view->config($tplconf, $default));
150 150
 	}
151 151
 
152 152
 
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
 	 * @param string|null $name Name of the sub-client (Default if null)
158 158
 	 * @return \Aimeos\Client\Html\Iface Sub-client object
159 159
 	 */
160
-	public function getSubClient( $type, $name = null )
160
+	public function getSubClient($type, $name = null)
161 161
 	{
162 162
 		/** client/html/email/delivery/text/summary/address/decorators/excludes
163 163
 		 * Excludes decorators added by the "common" option from the "email delivery text summary address" html client
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
 		 * @see client/html/email/delivery/text/summary/address/decorators/global
234 234
 		 */
235 235
 
236
-		return $this->createSubClient( 'email/delivery/text/summary/address/' . $type, $name );
236
+		return $this->createSubClient('email/delivery/text/summary/address/'.$type, $name);
237 237
 	}
238 238
 
239 239
 
@@ -244,6 +244,6 @@  discard block
 block discarded – undo
244 244
 	 */
245 245
 	protected function getSubClientNames()
246 246
 	{
247
-		return $this->getContext()->getConfig()->get( $this->subPartPath, $this->subPartNames );
247
+		return $this->getContext()->getConfig()->get($this->subPartPath, $this->subPartNames);
248 248
 	}
249 249
 }
Please login to merge, or discard this patch.
client/html/src/Client/Html/Email/Delivery/Text/Standard.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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->textBody = $content;
134 134
 
@@ -162,10 +162,10 @@  discard block
 block discarded – undo
162 162
 		$tplconf = 'client/html/email/delivery/text/standard/template-body';
163 163
 
164 164
 		$status = $view->extOrderItem->getDeliveryStatus();
165
-		$default = array( 'email/delivery/' . $status . '/text-body-default.php', 'email/common/text-body-default.php' );
165
+		$default = array('email/delivery/'.$status.'/text-body-default.php', 'email/common/text-body-default.php');
166 166
 
167
-		$text = $view->render( $view->config( $tplconf, $default ) );
168
-		$view->mail()->setBody( $text );
167
+		$text = $view->render($view->config($tplconf, $default));
168
+		$view->mail()->setBody($text);
169 169
 		return $text;
170 170
 	}
171 171
 
@@ -178,13 +178,13 @@  discard block
 block discarded – undo
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->textHeader = $content;
190 190
 
@@ -219,9 +219,9 @@  discard block
 block discarded – undo
219 219
 		$tplconf = 'client/html/email/delivery/text/standard/template-header';
220 220
 
221 221
 		$status = $view->extOrderItem->getDeliveryStatus();
222
-		$default = array( 'email/delivery/' . $status . '/text-header-default.php', 'email/common/text-header-default.php' );
222
+		$default = array('email/delivery/'.$status.'/text-header-default.php', 'email/common/text-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
 block discarded – undo
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/text/decorators/excludes
238 238
 		 * Excludes decorators added by the "common" option from the "email delivery text" html client
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
 		 * @see client/html/email/delivery/text/decorators/global
309 309
 		 */
310 310
 
311
-		return $this->createSubClient( 'email/delivery/text/' . $type, $name );
311
+		return $this->createSubClient('email/delivery/text/'.$type, $name);
312 312
 	}
313 313
 
314 314
 
@@ -319,6 +319,6 @@  discard block
 block discarded – undo
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
Please login to merge, or discard this patch.
client/html/src/Client/Html/Email/Delivery/Text/Outro/Standard.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -67,13 +67,13 @@  discard block
 block discarded – undo
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
 block discarded – undo
107 107
 		$tplconf = 'client/html/email/delivery/text/outro/standard/template-body';
108 108
 
109 109
 		$status = $view->extOrderItem->getDeliveryStatus();
110
-		$default = array( 'email/delivery/' . $status . '/text-outro-body-default.php', 'email/common/text-outro-body-default.php' );
110
+		$default = array('email/delivery/'.$status.'/text-outro-body-default.php', 'email/common/text-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
 block discarded – undo
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
 block discarded – undo
162 162
 		$tplconf = 'client/html/email/delivery/text/outro/standard/template-header';
163 163
 
164 164
 		$status = $view->extOrderItem->getDeliveryStatus();
165
-		$default = array( 'email/delivery/' . $status . '/text-outro-header-default.php', 'email/common/text-outro-header-default.php' );
165
+		$default = array('email/delivery/'.$status.'/text-outro-header-default.php', 'email/common/text-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
 block discarded – undo
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/text/outro/decorators/excludes
181 181
 		 * Excludes decorators added by the "common" option from the "email delivery text outro" html client
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
 		 * @see client/html/email/delivery/text/outro/decorators/global
252 252
 		 */
253 253
 
254
-		return $this->createSubClient( 'email/delivery/text/outro/' . $type, $name );
254
+		return $this->createSubClient('email/delivery/text/outro/'.$type, $name);
255 255
 	}
256 256
 
257 257
 
@@ -262,6 +262,6 @@  discard block
 block discarded – undo
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
Please login to merge, or discard this patch.
client/html/src/Client/Html/Email/Delivery/Text/Salutation/Standard.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -67,13 +67,13 @@  discard block
 block discarded – undo
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
 block discarded – undo
107 107
 		$tplconf = 'client/html/email/delivery/text/salutation/standard/template-body';
108 108
 
109 109
 		$status = $view->extOrderItem->getDeliveryStatus();
110
-		$default = array( 'email/delivery/' . $status . '/text-salutation-body-default.php', 'email/common/text-salutation-body-default.php' );
110
+		$default = array('email/delivery/'.$status.'/text-salutation-body-default.php', 'email/common/text-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
 block discarded – undo
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
 block discarded – undo
162 162
 		$tplconf = 'client/html/email/delivery/text/salutation/standard/template-header';
163 163
 
164 164
 		$status = $view->extOrderItem->getDeliveryStatus();
165
-		$default = array( 'email/delivery/' . $status . '/text-salutation-header-default.php', 'email/common/text-salutation-header-default.php' );
165
+		$default = array('email/delivery/'.$status.'/text-salutation-header-default.php', 'email/common/text-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
 block discarded – undo
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/text/salutation/decorators/excludes
181 181
 		 * Excludes decorators added by the "common" option from the "email delivery text salutation" html client
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
 		 * @see client/html/email/delivery/text/salutation/decorators/global
252 252
 		 */
253 253
 
254
-		return $this->createSubClient( 'email/delivery/text/salutation/' . $type, $name );
254
+		return $this->createSubClient('email/delivery/text/salutation/'.$type, $name);
255 255
 	}
256 256
 
257 257
 
@@ -262,6 +262,6 @@  discard block
 block discarded – undo
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
Please login to merge, or discard this patch.
client/html/src/Client/Html/Email/Delivery/Text/Legal/Standard.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -67,13 +67,13 @@  discard block
 block discarded – undo
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
 block discarded – undo
107 107
 		$tplconf = 'client/html/email/delivery/text/legal/standard/template-body';
108 108
 
109 109
 		$status = $view->extOrderItem->getDeliveryStatus();
110
-		$default = array( 'email/delivery/' . $status . '/text-legal-body-default.php', 'email/common/text-legal-body-default.php' );
110
+		$default = array('email/delivery/'.$status.'/text-legal-body-default.php', 'email/common/text-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
 block discarded – undo
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
 block discarded – undo
162 162
 		$tplconf = 'client/html/email/delivery/text/legal/standard/template-header';
163 163
 
164 164
 		$status = $view->extOrderItem->getDeliveryStatus();
165
-		$default = array( 'email/delivery/' . $status . '/text-legal-header-default.php', 'email/common/text-legal-header-default.php' );
165
+		$default = array('email/delivery/'.$status.'/text-legal-header-default.php', 'email/common/text-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
 block discarded – undo
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/text/legal/decorators/excludes
181 181
 		 * Excludes decorators added by the "common" option from the "email delivery text legal" html client
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
 		 * @see client/html/email/delivery/text/legal/decorators/global
252 252
 		 */
253 253
 
254
-		return $this->createSubClient( 'email/delivery/text/legal/' . $type, $name );
254
+		return $this->createSubClient('email/delivery/text/legal/'.$type, $name);
255 255
 	}
256 256
 
257 257
 
@@ -262,6 +262,6 @@  discard block
 block discarded – undo
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
Please login to merge, or discard this patch.