Completed
Push — master ( 86ce10...3f6ef7 )
by Aimeos
07:57
created
client/html/src/Client/Html/Account/History/Lists/Standard.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@
 block discarded – undo
117 117
 	 * @param string $uid Unique identifier for the output if the content is placed more than once on the same page
118 118
 	 * @param array &$tags Result array for the list of tags that are associated to the output
119 119
 	 * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry)
120
-	 * @return string|null String including HTML tags for the header on error
120
+	 * @return string String including HTML tags for the header on error
121 121
 	 */
122 122
 	public function getHeader( $uid = '', array &$tags = array(), &$expire = null )
123 123
 	{
Please login to merge, or discard this patch.
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -68,19 +68,19 @@  discard block
 block discarded – undo
68 68
 	 * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry)
69 69
 	 * @return string HTML code
70 70
 	 */
71
-	public function getBody( $uid = '', array &$tags = array(), &$expire = null )
71
+	public function getBody($uid = '', array &$tags = array(), &$expire = null)
72 72
 	{
73 73
 		$view = $this->getView();
74 74
 
75
-		if( $view->param( 'his_action', 'list' ) != 'list' ) {
75
+		if ($view->param('his_action', 'list') != 'list') {
76 76
 			return '';
77 77
 		}
78 78
 
79
-		$view = $this->setViewParams( $view, $tags, $expire );
79
+		$view = $this->setViewParams($view, $tags, $expire);
80 80
 
81 81
 		$html = '';
82
-		foreach( $this->getSubClients() as $subclient ) {
83
-			$html .= $subclient->setView( $view )->getBody( $uid, $tags, $expire );
82
+		foreach ($this->getSubClients() as $subclient) {
83
+			$html .= $subclient->setView($view)->getBody($uid, $tags, $expire);
84 84
 		}
85 85
 		$view->listsBody = $html;
86 86
 
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 		$tplconf = 'client/html/account/history/lists/standard/template-body';
108 108
 		$default = 'account/history/list-body-default.php';
109 109
 
110
-		return $view->render( $view->config( $tplconf, $default ) );
110
+		return $view->render($view->config($tplconf, $default));
111 111
 	}
112 112
 
113 113
 
@@ -119,19 +119,19 @@  discard block
 block discarded – undo
119 119
 	 * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry)
120 120
 	 * @return string|null String including HTML tags for the header on error
121 121
 	 */
122
-	public function getHeader( $uid = '', array &$tags = array(), &$expire = null )
122
+	public function getHeader($uid = '', array &$tags = array(), &$expire = null)
123 123
 	{
124 124
 		$view = $this->getView();
125 125
 
126
-		if( $view->param( 'his_action', 'list' ) != 'list' ) {
126
+		if ($view->param('his_action', 'list') != 'list') {
127 127
 			return '';
128 128
 		}
129 129
 
130
-		$view = $this->setViewParams( $view, $tags, $expire );
130
+		$view = $this->setViewParams($view, $tags, $expire);
131 131
 
132 132
 		$html = '';
133
-		foreach( $this->getSubClients() as $subclient ) {
134
-			$html .= $subclient->setView( $view )->getHeader( $uid, $tags, $expire );
133
+		foreach ($this->getSubClients() as $subclient) {
134
+			$html .= $subclient->setView($view)->getHeader($uid, $tags, $expire);
135 135
 		}
136 136
 		$view->listsHeader = $html;
137 137
 
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
 		$tplconf = 'client/html/account/history/lists/standard/template-header';
160 160
 		$default = 'account/history/list-header-default.php';
161 161
 
162
-		return $view->render( $view->config( $tplconf, $default ) );
162
+		return $view->render($view->config($tplconf, $default));
163 163
 	}
164 164
 
165 165
 
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
 	 * @param string|null $name Name of the sub-client (Default if null)
171 171
 	 * @return \Aimeos\Client\Html\Iface Sub-client object
172 172
 	 */
173
-	public function getSubClient( $type, $name = null )
173
+	public function getSubClient($type, $name = null)
174 174
 	{
175 175
 		/** client/html/account/history/lists/decorators/excludes
176 176
 		 * Excludes decorators added by the "common" option from the account history list html client
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
 		 * @see client/html/account/history/lists/decorators/global
247 247
 		 */
248 248
 
249
-		return $this->createSubClient( 'account/history/lists/' . $type, $name );
249
+		return $this->createSubClient('account/history/lists/'.$type, $name);
250 250
 	}
251 251
 
252 252
 
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
 	 */
258 258
 	protected function getSubClientNames()
259 259
 	{
260
-		return $this->getContext()->getConfig()->get( $this->subPartPath, $this->subPartNames );
260
+		return $this->getContext()->getConfig()->get($this->subPartPath, $this->subPartNames);
261 261
 	}
262 262
 
263 263
 
@@ -269,24 +269,24 @@  discard block
 block discarded – undo
269 269
 	 * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry)
270 270
 	 * @return \Aimeos\MW\View\Iface Modified view object
271 271
 	 */
272
-	protected function setViewParams( \Aimeos\MW\View\Iface $view, array &$tags = array(), &$expire = null )
272
+	protected function setViewParams(\Aimeos\MW\View\Iface $view, array &$tags = array(), &$expire = null)
273 273
 	{
274
-		if( !isset( $this->cache ) )
274
+		if (!isset($this->cache))
275 275
 		{
276 276
 			$context = $this->getContext();
277
-			$manager = \Aimeos\MShop\Factory::createManager( $context, 'order' );
277
+			$manager = \Aimeos\MShop\Factory::createManager($context, 'order');
278 278
 
279 279
 
280
-			$search = $manager->createSearch( true );
280
+			$search = $manager->createSearch(true);
281 281
 			$expr = array(
282 282
 				$search->getConditions(),
283
-				$search->compare( '==', 'order.base.customerid', $context->getUserId() ),
283
+				$search->compare('==', 'order.base.customerid', $context->getUserId()),
284 284
 			);
285
-			$search->setConditions( $search->combine( '&&', $expr ) );
286
-			$search->setSortations( array( $search->sort( '-', 'order.id' ) ) );
285
+			$search->setConditions($search->combine('&&', $expr));
286
+			$search->setSortations(array($search->sort('-', 'order.id')));
287 287
 
288 288
 
289
-			$view->listsOrderItems = $manager->searchItems( $search );
289
+			$view->listsOrderItems = $manager->searchItems($search);
290 290
 
291 291
 			$this->cache = $view;
292 292
 		}
Please login to merge, or discard this patch.
client/html/src/Client/Html/Account/History/Order/Address/Standard.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
 	 * @param string $uid Unique identifier for the output if the content is placed more than once on the same page
112 112
 	 * @param array &$tags Result array for the list of tags that are associated to the output
113 113
 	 * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry)
114
-	 * @return string|null String including HTML tags for the header on error
114
+	 * @return string String including HTML tags for the header on error
115 115
 	 */
116 116
 	public function getHeader( $uid = '', array &$tags = array(), &$expire = null )
117 117
 	{
Please login to merge, or discard this 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
 		$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
 block discarded – undo
101 101
 		$tplconf = 'client/html/account/history/order/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
 block discarded – undo
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
 block discarded – undo
148 148
 		$tplconf = 'client/html/account/history/order/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
 block discarded – undo
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/account/history/order/address/decorators/excludes
165 165
 		 * Excludes decorators added by the "common" option from the account history order address html client
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
 		 * @see client/html/account/history/order/address/decorators/excludes
235 235
 		 * @see client/html/account/history/order/address/decorators/global
236 236
 		 */
237
-		return $this->createSubClient( 'account/history/order/address/' . $type, $name );
237
+		return $this->createSubClient('account/history/order/address/'.$type, $name);
238 238
 	}
239 239
 
240 240
 
@@ -245,6 +245,6 @@  discard block
 block discarded – undo
245 245
 	 */
246 246
 	protected function getSubClientNames()
247 247
 	{
248
-		return $this->getContext()->getConfig()->get( $this->subPartPath, $this->subPartNames );
248
+		return $this->getContext()->getConfig()->get($this->subPartPath, $this->subPartNames);
249 249
 	}
250 250
 }
251 251
\ No newline at end of file
Please login to merge, or discard this patch.
client/html/src/Client/Html/Account/History/Order/Coupon/Standard.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@
 block discarded – undo
110 110
 	 * @param string $uid Unique identifier for the output if the content is placed more than once on the same page
111 111
 	 * @param array &$tags Result array for the list of tags that are associated to the output
112 112
 	 * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry)
113
-	 * @return string|null String including HTML tags for the header on error
113
+	 * @return string String including HTML tags for the header on error
114 114
 	 */
115 115
 	public function getHeader( $uid = '', array &$tags = array(), &$expire = null )
116 116
 	{
Please login to merge, or discard this patch.
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -66,13 +66,13 @@  discard block
 block discarded – undo
66 66
 	 * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry)
67 67
 	 * @return string HTML code
68 68
 	*/
69
-	public function getBody( $uid = '', array &$tags = array(), &$expire = null )
69
+	public function getBody($uid = '', array &$tags = array(), &$expire = null)
70 70
 	{
71
-		$view = $this->setViewParams( $this->getView(), $tags, $expire );
71
+		$view = $this->setViewParams($this->getView(), $tags, $expire);
72 72
 
73 73
 		$html = '';
74
-		foreach( $this->getSubClients() as $subclient ) {
75
-			$html .= $subclient->setView( $view )->getBody( $uid, $tags, $expire );
74
+		foreach ($this->getSubClients() as $subclient) {
75
+			$html .= $subclient->setView($view)->getBody($uid, $tags, $expire);
76 76
 		}
77 77
 		$view->couponBody = $html;
78 78
 
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 		$tplconf = 'client/html/account/history/order/coupon/standard/template-body';
101 101
 		$default = 'common/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
 		$html = '';
120
-		foreach( $this->getSubClients() as $subclient ) {
121
-			$html .= $subclient->setView( $view )->getHeader( $uid, $tags, $expire );
120
+		foreach ($this->getSubClients() as $subclient) {
121
+			$html .= $subclient->setView($view)->getHeader($uid, $tags, $expire);
122 122
 		}
123 123
 		$view->couponHeader = $html;
124 124
 
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
 		$tplconf = 'client/html/account/history/order/coupon/standard/template-header';
148 148
 		$default = 'common/summary/coupon-header-default.php';
149 149
 
150
-		return $view->render( $view->config( $tplconf, $default ) );
150
+		return $view->render($view->config($tplconf, $default));
151 151
 	}
152 152
 
153 153
 
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
 	 * @param string|null $name Name of the sub-client (Default if null)
159 159
 	 * @return \Aimeos\Client\Html\Iface Sub-client object
160 160
 	 */
161
-	public function getSubClient( $type, $name = null )
161
+	public function getSubClient($type, $name = null)
162 162
 	{
163 163
 		/** client/html/account/history/order/coupon/decorators/excludes
164 164
 		 * Excludes decorators added by the "common" option from the account history order coupon html client
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
 		 * @see client/html/account/history/order/coupon/decorators/excludes
234 234
 		 * @see client/html/account/history/order/coupon/decorators/global
235 235
 		 */
236
-		return $this->createSubClient( 'account/history/order/coupon/' . $type, $name );
236
+		return $this->createSubClient('account/history/order/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
 }
250 250
\ No newline at end of file
Please login to merge, or discard this patch.
client/html/src/Client/Html/Account/History/Order/Detail/Standard.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
 	 * @param string $uid Unique identifier for the output if the content is placed more than once on the same page
112 112
 	 * @param array &$tags Result array for the list of tags that are associated to the output
113 113
 	 * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry)
114
-	 * @return string|null String including HTML tags for the header on error
114
+	 * @return string String including HTML tags for the header on error
115 115
 	 */
116 116
 	public function getHeader( $uid = '', array &$tags = array(), &$expire = null )
117 117
 	{
Please login to merge, or discard this patch.
Spacing   +18 added lines, -18 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
 		$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
 block discarded – undo
101 101
 		$tplconf = 'client/html/account/history/order/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
 block discarded – undo
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
 block discarded – undo
148 148
 		$tplconf = 'client/html/account/history/order/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
 block discarded – undo
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/account/history/order/detail/decorators/excludes
165 165
 		 * Excludes decorators added by the "common" option from the account history order detail html client
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
 		 * @see client/html/account/history/order/detail/decorators/excludes
235 235
 		 * @see client/html/account/history/order/detail/decorators/global
236 236
 		 */
237
-		return $this->createSubClient( 'account/history/order/detail/' . $type, $name );
237
+		return $this->createSubClient('account/history/order/detail/'.$type, $name);
238 238
 	}
239 239
 
240 240
 
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
 	 */
246 246
 	protected function getSubClientNames()
247 247
 	{
248
-		return $this->getContext()->getConfig()->get( $this->subPartPath, $this->subPartNames );
248
+		return $this->getContext()->getConfig()->get($this->subPartPath, $this->subPartNames);
249 249
 	}
250 250
 
251 251
 
@@ -257,17 +257,17 @@  discard block
 block discarded – undo
257 257
 	 * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry)
258 258
 	 * @return \Aimeos\MW\View\Iface Modified view object
259 259
 	 */
260
-	protected function setViewParams( \Aimeos\MW\View\Iface $view, array &$tags = array(), &$expire = null )
260
+	protected function setViewParams(\Aimeos\MW\View\Iface $view, array &$tags = array(), &$expire = null)
261 261
 	{
262
-		if( !isset( $this->cache ) )
262
+		if (!isset($this->cache))
263 263
 		{
264
-			$view = parent::setViewParams( $view );
264
+			$view = parent::setViewParams($view);
265 265
 
266
-			if( $view->orderItem->getPaymentStatus() >= $this->getDownloadPaymentStatus() ) {
266
+			if ($view->orderItem->getPaymentStatus() >= $this->getDownloadPaymentStatus()) {
267 267
 				$view->summaryShowDownloadAttributes = true;
268 268
 			}
269 269
 
270
-			$view->summaryTaxRates = $this->getTaxRates( $view->summaryBasket );
270
+			$view->summaryTaxRates = $this->getTaxRates($view->summaryBasket);
271 271
 
272 272
 			$this->cache = $view;
273 273
 		}
Please login to merge, or discard this patch.
client/html/src/Client/Html/Account/History/Order/Service/Standard.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@
 block discarded – undo
110 110
 	 * @param string $uid Unique identifier for the output if the content is placed more than once on the same page
111 111
 	 * @param array &$tags Result array for the list of tags that are associated to the output
112 112
 	 * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry)
113
-	 * @return string|null String including HTML tags for the header on error
113
+	 * @return string String including HTML tags for the header on error
114 114
 	 */
115 115
 	public function getHeader( $uid = '', array &$tags = array(), &$expire = null )
116 116
 	{
Please login to merge, or discard this patch.
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -66,13 +66,13 @@  discard block
 block discarded – undo
66 66
 	 * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry)
67 67
 	 * @return string HTML code
68 68
 	*/
69
-	public function getBody( $uid = '', array &$tags = array(), &$expire = null )
69
+	public function getBody($uid = '', array &$tags = array(), &$expire = null)
70 70
 	{
71
-		$view = $this->setViewParams( $this->getView(), $tags, $expire );
71
+		$view = $this->setViewParams($this->getView(), $tags, $expire);
72 72
 
73 73
 		$html = '';
74
-		foreach( $this->getSubClients() as $subclient ) {
75
-			$html .= $subclient->setView( $view )->getBody( $uid, $tags, $expire );
74
+		foreach ($this->getSubClients() as $subclient) {
75
+			$html .= $subclient->setView($view)->getBody($uid, $tags, $expire);
76 76
 		}
77 77
 		$view->serviceBody = $html;
78 78
 
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 		$tplconf = 'client/html/account/history/order/service/standard/template-body';
101 101
 		$default = 'common/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
 		$html = '';
120
-		foreach( $this->getSubClients() as $subclient ) {
121
-			$html .= $subclient->setView( $view )->getHeader( $uid, $tags, $expire );
120
+		foreach ($this->getSubClients() as $subclient) {
121
+			$html .= $subclient->setView($view)->getHeader($uid, $tags, $expire);
122 122
 		}
123 123
 		$view->serviceHeader = $html;
124 124
 
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
 		$tplconf = 'client/html/account/history/order/service/standard/template-header';
148 148
 		$default = 'common/summary/service-header-default.php';
149 149
 
150
-		return $view->render( $view->config( $tplconf, $default ) );
150
+		return $view->render($view->config($tplconf, $default));
151 151
 	}
152 152
 
153 153
 
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
 	 * @param string|null $name Name of the sub-client (Default if null)
159 159
 	 * @return \Aimeos\Client\Html\Iface Sub-client object
160 160
 	 */
161
-	public function getSubClient( $type, $name = null )
161
+	public function getSubClient($type, $name = null)
162 162
 	{
163 163
 		/** client/html/account/history/order/service/decorators/excludes
164 164
 		 * Excludes decorators added by the "common" option from the account history order service html client
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
 		 * @see client/html/account/history/order/service/decorators/excludes
234 234
 		 * @see client/html/account/history/order/service/decorators/global
235 235
 		 */
236
-		return $this->createSubClient( 'account/history/order/service/' . $type, $name );
236
+		return $this->createSubClient('account/history/order/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
 }
250 250
\ No newline at end of file
Please login to merge, or discard this patch.
client/html/src/Client/Html/Account/History/Order/Standard.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -162,7 +162,7 @@
 block discarded – undo
162 162
 	 * @param string $uid Unique identifier for the output if the content is placed more than once on the same page
163 163
 	 * @param array &$tags Result array for the list of tags that are associated to the output
164 164
 	 * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry)
165
-	 * @return string|null String including HTML tags for the header on error
165
+	 * @return string String including HTML tags for the header on error
166 166
 	 */
167 167
 	public function getHeader( $uid = '', array &$tags = array(), &$expire = null )
168 168
 	{
Please login to merge, or discard this patch.
Spacing   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 	 * @since 2015.02
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
 	private $cache;
106 106
 
@@ -113,19 +113,19 @@  discard block
 block discarded – undo
113 113
 	 * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry)
114 114
 	 * @return string HTML code
115 115
 	 */
116
-	public function getBody( $uid = '', array &$tags = array(), &$expire = null )
116
+	public function getBody($uid = '', array &$tags = array(), &$expire = null)
117 117
 	{
118 118
 		$view = $this->getView();
119 119
 
120
-		if( $view->param( 'his_action' ) != 'order' ) {
120
+		if ($view->param('his_action') != 'order') {
121 121
 			return '';
122 122
 		}
123 123
 
124
-		$view = $this->setViewParams( $view, $tags, $expire );
124
+		$view = $this->setViewParams($view, $tags, $expire);
125 125
 
126 126
 		$html = '';
127
-		foreach( $this->getSubClients() as $subclient ) {
128
-			$html .= $subclient->setView( $view )->getBody( $uid, $tags, $expire );
127
+		foreach ($this->getSubClients() as $subclient) {
128
+			$html .= $subclient->setView($view)->getBody($uid, $tags, $expire);
129 129
 		}
130 130
 		$view->orderBody = $html;
131 131
 
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
 		$tplconf = 'client/html/account/history/order/standard/template-body';
153 153
 		$default = 'account/history/order-body-default.php';
154 154
 
155
-		return $view->render( $view->config( $tplconf, $default ) );
155
+		return $view->render($view->config($tplconf, $default));
156 156
 	}
157 157
 
158 158
 
@@ -164,19 +164,19 @@  discard block
 block discarded – undo
164 164
 	 * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry)
165 165
 	 * @return string|null String including HTML tags for the header on error
166 166
 	 */
167
-	public function getHeader( $uid = '', array &$tags = array(), &$expire = null )
167
+	public function getHeader($uid = '', array &$tags = array(), &$expire = null)
168 168
 	{
169 169
 		$view = $this->getView();
170 170
 
171
-		if( $view->param( 'his_action' ) != 'order' ) {
171
+		if ($view->param('his_action') != 'order') {
172 172
 			return '';
173 173
 		}
174 174
 
175
-		$view = $this->setViewParams( $view, $tags, $expire );
175
+		$view = $this->setViewParams($view, $tags, $expire);
176 176
 
177 177
 		$html = '';
178
-		foreach( $this->getSubClients() as $subclient ) {
179
-			$html .= $subclient->setView( $view )->getHeader( $uid, $tags, $expire );
178
+		foreach ($this->getSubClients() as $subclient) {
179
+			$html .= $subclient->setView($view)->getHeader($uid, $tags, $expire);
180 180
 		}
181 181
 		$view->orderHeader = $html;
182 182
 
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
 		$tplconf = 'client/html/account/history/order/standard/template-header';
205 205
 		$default = 'account/history/order-header-default.php';
206 206
 
207
-		return $view->render( $view->config( $tplconf, $default ) );
207
+		return $view->render($view->config($tplconf, $default));
208 208
 	}
209 209
 
210 210
 
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
 	 * @param string|null $name Name of the sub-client (Default if null)
216 216
 	 * @return \Aimeos\Client\Html\Iface Sub-client object
217 217
 	 */
218
-	public function getSubClient( $type, $name = null )
218
+	public function getSubClient($type, $name = null)
219 219
 	{
220 220
 		/** client/html/account/history/order/decorators/excludes
221 221
 		 * Excludes decorators added by the "common" option from the account history order html client
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
 		 * @see client/html/account/history/order/decorators/global
292 292
 		 */
293 293
 
294
-		return $this->createSubClient( 'account/history/order/' . $type, $name );
294
+		return $this->createSubClient('account/history/order/'.$type, $name);
295 295
 	}
296 296
 
297 297
 
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
 	 */
303 303
 	protected function getSubClientNames()
304 304
 	{
305
-		return $this->getContext()->getConfig()->get( $this->subPartPath, $this->subPartNames );
305
+		return $this->getContext()->getConfig()->get($this->subPartPath, $this->subPartNames);
306 306
 	}
307 307
 
308 308
 
@@ -314,35 +314,35 @@  discard block
 block discarded – undo
314 314
 	 * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry)
315 315
 	 * @return \Aimeos\MW\View\Iface Modified view object
316 316
 	 */
317
-	protected function setViewParams( \Aimeos\MW\View\Iface $view, array &$tags = array(), &$expire = null )
317
+	protected function setViewParams(\Aimeos\MW\View\Iface $view, array &$tags = array(), &$expire = null)
318 318
 	{
319
-		if( !isset( $this->cache ) )
319
+		if (!isset($this->cache))
320 320
 		{
321 321
 			$context = $this->getContext();
322
-			$manager = \Aimeos\MShop\Factory::createManager( $context, 'order' );
322
+			$manager = \Aimeos\MShop\Factory::createManager($context, 'order');
323 323
 
324
-			$orderId = $view->param( 'his_id', null );
324
+			$orderId = $view->param('his_id', null);
325 325
 
326
-			if( $orderId !== null )
326
+			if ($orderId !== null)
327 327
 			{
328
-				$search = $manager->createSearch( true );
328
+				$search = $manager->createSearch(true);
329 329
 				$expr = array(
330 330
 					$search->getConditions(),
331
-					$search->compare( '==', 'order.id', $orderId ),
332
-					$search->compare( '==', 'order.base.customerid', $context->getUserId() ),
331
+					$search->compare('==', 'order.id', $orderId),
332
+					$search->compare('==', 'order.base.customerid', $context->getUserId()),
333 333
 				);
334
-				$search->setConditions( $search->combine( '&&', $expr ) );
334
+				$search->setConditions($search->combine('&&', $expr));
335 335
 
336
-				$orderItems = $manager->searchItems( $search );
336
+				$orderItems = $manager->searchItems($search);
337 337
 
338
-				if( ( $orderItem = reset( $orderItems ) ) === false )
338
+				if (($orderItem = reset($orderItems)) === false)
339 339
 				{
340
-					$msg = $view->translate( 'client', 'Order with ID "%1$s" not found' );
341
-					throw new \Aimeos\Client\Html\Exception( sprintf( $msg, $orderId ) );
340
+					$msg = $view->translate('client', 'Order with ID "%1$s" not found');
341
+					throw new \Aimeos\Client\Html\Exception(sprintf($msg, $orderId));
342 342
 				}
343 343
 
344
-				$baseManager = \Aimeos\MShop\Factory::createManager( $context, 'order/base' );
345
-				$view->summaryBasket = $baseManager->load( $orderItem->getBaseId() );
344
+				$baseManager = \Aimeos\MShop\Factory::createManager($context, 'order/base');
345
+				$view->summaryBasket = $baseManager->load($orderItem->getBaseId());
346 346
 				$view->orderItem = $orderItem;
347 347
 			}
348 348
 
Please login to merge, or discard this patch.
client/html/src/Client/Html/Basket/Mini/Main/Standard.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
 	 * @param string $uid Unique identifier for the output if the content is placed more than once on the same page
112 112
 	 * @param array &$tags Result array for the list of tags that are associated to the output
113 113
 	 * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry)
114
-	 * @return string|null String including HTML tags for the header on error
114
+	 * @return string String including HTML tags for the header on error
115 115
 	 */
116 116
 	public function getHeader( $uid = '', array &$tags = array(), &$expire = null )
117 117
 	{
Please login to merge, or discard this patch.
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -68,13 +68,13 @@  discard block
 block discarded – undo
68 68
 	 * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry)
69 69
 	 * @return string HTML code
70 70
 	 */
71
-	public function getBody( $uid = '', array &$tags = array(), &$expire = null )
71
+	public function getBody($uid = '', array &$tags = array(), &$expire = null)
72 72
 	{
73
-		$view = $this->setViewParams( $this->getView(), $tags, $expire );
73
+		$view = $this->setViewParams($this->getView(), $tags, $expire);
74 74
 
75 75
 		$html = '';
76
-		foreach( $this->getSubClients() as $subclient ) {
77
-			$html .= $subclient->setView( $view )->getBody( $uid, $tags, $expire );
76
+		foreach ($this->getSubClients() as $subclient) {
77
+			$html .= $subclient->setView($view)->getBody($uid, $tags, $expire);
78 78
 		}
79 79
 		$view->mainBody = $html;
80 80
 
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 		$tplconf = 'client/html/basket/mini/main/standard/template-body';
102 102
 		$default = 'basket/mini/main-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
 block discarded – undo
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->mainHeader = $html;
125 125
 
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
 		$tplconf = 'client/html/basket/mini/main/standard/template-header';
148 148
 		$default = 'basket/mini/main-header-default.php';
149 149
 
150
-		return $view->render( $view->config( $tplconf, $default ) );
150
+		return $view->render($view->config($tplconf, $default));
151 151
 	}
152 152
 
153 153
 
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
 	 * @param string|null $name Name of the sub-client (Default if null)
159 159
 	 * @return \Aimeos\Client\Html\Iface Sub-client object
160 160
 	 */
161
-	public function getSubClient( $type, $name = null )
161
+	public function getSubClient($type, $name = null)
162 162
 	{
163 163
 		/** client/html/basket/mini/main/decorators/excludes
164 164
 		 * Excludes decorators added by the "common" option from the basket mini main html client
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
 		 * @see client/html/basket/mini/main/decorators/excludes
234 234
 		 * @see client/html/basket/mini/main/decorators/global
235 235
 		 */
236
-		return $this->createSubClient( 'basket/mini/main/' . $type, $name );
236
+		return $this->createSubClient('basket/mini/main/'.$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,14 +256,14 @@  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
-		if( !isset( $this->cache ) )
261
+		if (!isset($this->cache))
262 262
 		{
263 263
 			$view->mainPriceItem = $view->miniBasket->getPrice();
264 264
 
265 265
 			$count = 0;
266
-			foreach( $view->miniBasket->getProducts() as $product ) {
266
+			foreach ($view->miniBasket->getProducts() as $product) {
267 267
 				$count += $product->getQuantity();
268 268
 			}
269 269
 
Please login to merge, or discard this patch.
client/html/src/Client/Html/Basket/Mini/Product/Standard.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@
 block discarded – undo
110 110
 	 * @param string $uid Unique identifier for the output if the content is placed more than once on the same page
111 111
 	 * @param array &$tags Result array for the list of tags that are associated to the output
112 112
 	 * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry)
113
-	 * @return string|null String including HTML tags for the header on error
113
+	 * @return string String including HTML tags for the header on error
114 114
 	 */
115 115
 	public function getHeader($uid = '', array &$tags = array(), &$expire = null)
116 116
 	{
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -72,8 +72,8 @@  discard block
 block discarded – undo
72 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->productBody = $html;
79 79
 
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 		$tplconf = 'client/html/basket/mini/product/standard/template-body';
101 101
 		$default = 'basket/mini/product-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
 
@@ -114,11 +114,11 @@  discard block
 block discarded – undo
114 114
 	 */
115 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
 		$html = '';
120
-		foreach( $this->getSubClients() as $subclient ) {
121
-			$html .= $subclient->setView( $view )->getHeader( $uid, $tags, $expire );
120
+		foreach ($this->getSubClients() as $subclient) {
121
+			$html .= $subclient->setView($view)->getHeader($uid, $tags, $expire);
122 122
 		}
123 123
 		$view->productHeader = $html;
124 124
 
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 		$tplconf = 'client/html/basket/mini/product/standard/template-header';
147 147
 		$default = 'basket/mini/product-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
 
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
 		 * @see client/html/basket/mini/product/decorators/global
234 234
 		 */
235 235
 
236
-		return $this->createSubClient( 'basket/mini/product/' . $type, $name );
236
+		return $this->createSubClient('basket/mini/product/'.$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
 }
250 250
\ No newline at end of file
Please login to merge, or discard this patch.
client/html/src/Client/Html/Basket/Related/Bought/Standard.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@
 block discarded – undo
110 110
 	 * @param string $uid Unique identifier for the output if the content is placed more than once on the same page
111 111
 	 * @param array &$tags Result array for the list of tags that are associated to the output
112 112
 	 * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry)
113
-	 * @return string|null String including HTML tags for the header on error
113
+	 * @return string String including HTML tags for the header on error
114 114
 	 */
115 115
 	public function getHeader( $uid = '', array &$tags = array(), &$expire = null )
116 116
 	{
Please login to merge, or discard this patch.
Spacing   +45 added lines, -45 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
 		$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->boughtBody = $html;
79 79
 
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 		$tplconf = 'client/html/basket/related/bought/standard/template-body';
101 101
 		$default = 'basket/related/bought-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
 		$html = '';
120
-		foreach( $this->getSubClients() as $subclient ) {
121
-			$html .= $subclient->setView( $view )->getHeader( $uid, $tags, $expire );
120
+		foreach ($this->getSubClients() as $subclient) {
121
+			$html .= $subclient->setView($view)->getHeader($uid, $tags, $expire);
122 122
 		}
123 123
 		$view->boughtHeader = $html;
124 124
 
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 		$tplconf = 'client/html/basket/related/bought/standard/template-header';
147 147
 		$default = 'basket/related/bought-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/basket/related/bought/decorators/excludes
163 163
 		 * Excludes decorators added by the "common" option from the basket related bought html client
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
 		 * @see client/html/basket/related/bought/decorators/global
234 234
 		 */
235 235
 
236
-		return $this->createSubClient( 'basket/related/bought/' . $type, $name );
236
+		return $this->createSubClient('basket/related/bought/'.$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,31 +256,31 @@  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
-		if( !isset( $this->cache ) )
261
+		if (!isset($this->cache))
262 262
 		{
263
-			if( isset( $view->relatedBasket ) )
263
+			if (isset($view->relatedBasket))
264 264
 			{
265 265
 				$refIds = $items = array();
266 266
 				$context = $this->getContext();
267 267
 
268
-				$prodIds = $this->getProductIdsFromBasket( $view->relatedBasket );
268
+				$prodIds = $this->getProductIdsFromBasket($view->relatedBasket);
269 269
 
270
-				foreach( $this->getListItems( $prodIds ) as $listItem )
270
+				foreach ($this->getListItems($prodIds) as $listItem)
271 271
 				{
272 272
 					$refId = $listItem->getRefId();
273 273
 
274
-					if( !isset( $prodIds[$refId] ) ) {
274
+					if (!isset($prodIds[$refId])) {
275 275
 						$refIds[$refId] = $refId;
276 276
 					}
277 277
 				}
278 278
 
279
-				$products = $this->getProductItems( $refIds );
279
+				$products = $this->getProductItems($refIds);
280 280
 
281
-				foreach( $refIds as $id )
281
+				foreach ($refIds as $id)
282 282
 				{
283
-					if( isset( $products[$id] ) ) {
283
+					if (isset($products[$id])) {
284 284
 						$items[$id] = $products[$id];
285 285
 					}
286 286
 				}
@@ -300,10 +300,10 @@  discard block
 block discarded – undo
300 300
 				 * @param integer Number of products
301 301
 				 * @since 2014.09
302 302
 				 */
303
-				$size = $context->getConfig()->get( 'client/html/basket/related/bought/standard/limit', 6 );
303
+				$size = $context->getConfig()->get('client/html/basket/related/bought/standard/limit', 6);
304 304
 
305 305
 
306
-				$view->boughtItems = array_slice( $items, 0, $size, true );
306
+				$view->boughtItems = array_slice($items, 0, $size, true);
307 307
 			}
308 308
 
309 309
 			$this->cache = $view;
@@ -319,22 +319,22 @@  discard block
 block discarded – undo
319 319
 	 * @param string[] $prodIds List of product IDs
320 320
 	 * @return \Aimeos\MShop\Product\Item\Lists\Iface[] List of product list items
321 321
 	 */
322
-	protected function getListItems( array $prodIds )
322
+	protected function getListItems(array $prodIds)
323 323
 	{
324
-		$typeItem = $this->getTypeItem( 'product/lists/type', 'product', 'bought-together' );
325
-		$manager = \Aimeos\MShop\Factory::createManager( $this->getContext(), 'product/lists' );
324
+		$typeItem = $this->getTypeItem('product/lists/type', 'product', 'bought-together');
325
+		$manager = \Aimeos\MShop\Factory::createManager($this->getContext(), 'product/lists');
326 326
 
327
-		$search = $manager->createSearch( true );
327
+		$search = $manager->createSearch(true);
328 328
 		$expr = array(
329
-				$search->compare( '==', 'product.lists.parentid', $prodIds ),
330
-				$search->compare( '==', 'product.lists.typeid', $typeItem->getId() ),
331
-				$search->compare( '==', 'product.lists.domain', 'product' ),
329
+				$search->compare('==', 'product.lists.parentid', $prodIds),
330
+				$search->compare('==', 'product.lists.typeid', $typeItem->getId()),
331
+				$search->compare('==', 'product.lists.domain', 'product'),
332 332
 				$search->getConditions(),
333 333
 		);
334
-		$search->setConditions( $search->combine( '&&', $expr ) );
335
-		$search->setSortations( array( $search->sort( '+', 'product.lists.position' ) ) );
334
+		$search->setConditions($search->combine('&&', $expr));
335
+		$search->setSortations(array($search->sort('+', 'product.lists.position')));
336 336
 
337
-		return $manager->searchItems( $search );
337
+		return $manager->searchItems($search);
338 338
 	}
339 339
 
340 340
 
@@ -344,20 +344,20 @@  discard block
 block discarded – undo
344 344
 	 * @param \Aimeos\MShop\Order\Item\Base\Iface $basket Basket object
345 345
 	 * @return string[] List of product IDs
346 346
 	 */
347
-	protected function getProductIdsFromBasket( \Aimeos\MShop\Order\Item\Base\Iface $basket )
347
+	protected function getProductIdsFromBasket(\Aimeos\MShop\Order\Item\Base\Iface $basket)
348 348
 	{
349 349
 		$list = array();
350 350
 
351
-		foreach( $basket->getProducts() as $orderProduct )
351
+		foreach ($basket->getProducts() as $orderProduct)
352 352
 		{
353
-			$list[ $orderProduct->getProductId() ] = true;
353
+			$list[$orderProduct->getProductId()] = true;
354 354
 
355
-			foreach( $orderProduct->getProducts() as $subProduct ) {
356
-				$list[ $subProduct->getProductId() ] = true;
355
+			foreach ($orderProduct->getProducts() as $subProduct) {
356
+				$list[$subProduct->getProductId()] = true;
357 357
 			}
358 358
 		}
359 359
 
360
-		return array_keys( $list );
360
+		return array_keys($list);
361 361
 	}
362 362
 
363 363
 
@@ -367,7 +367,7 @@  discard block
 block discarded – undo
367 367
 	 * @param string[] $ids List of product IDs
368 368
 	 * @return \Aimeos\MShop\Product\Item\Iface[] List of product items
369 369
 	 */
370
-	protected function getProductItems( array $ids )
370
+	protected function getProductItems(array $ids)
371 371
 	{
372 372
 		$context = $this->getContext();
373 373
 		$config = $context->getConfig();
@@ -387,11 +387,11 @@  discard block
 block discarded – undo
387 387
 		 * @since 2014.09
388 388
 		 * @category Developer
389 389
 		 */
390
-		$domains = array( 'text', 'price', 'media' );
391
-		$domains = $config->get( 'client/html/basket/related/bought/standard/domains', $domains );
390
+		$domains = array('text', 'price', 'media');
391
+		$domains = $config->get('client/html/basket/related/bought/standard/domains', $domains);
392 392
 
393
-		$controller = \Aimeos\Controller\Frontend\Factory::createController( $context, 'catalog' );
393
+		$controller = \Aimeos\Controller\Frontend\Factory::createController($context, 'catalog');
394 394
 
395
-		return $controller->getProductItems( $ids, $domains );
395
+		return $controller->getProductItems($ids, $domains);
396 396
 	}
397 397
 }
398 398
\ No newline at end of file
Please login to merge, or discard this patch.