Completed
Push — master ( 7b4297...eec074 )
by Aimeos
03:02
created
admin/jqadm/src/Admin/JQAdm/Dashboard/Standard.php 2 patches
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 	 * @category Developer
56 56
 	 */
57 57
 	private $subPartPath = 'admin/jqadm/dashboard/standard/subparts';
58
-	private $subPartNames = array( 'order' );
58
+	private $subPartNames = array('order');
59 59
 
60 60
 
61 61
 	/**
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 	 */
66 66
 	public function copy()
67 67
 	{
68
-		throw new \Aimeos\Admin\JQAdm\Exception( 'The resource can not be copied' );
68
+		throw new \Aimeos\Admin\JQAdm\Exception('The resource can not be copied');
69 69
 	}
70 70
 
71 71
 
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 	 */
77 77
 	public function create()
78 78
 	{
79
-		throw new \Aimeos\Admin\JQAdm\Exception( 'New resources can not be created' );
79
+		throw new \Aimeos\Admin\JQAdm\Exception('New resources can not be created');
80 80
 	}
81 81
 
82 82
 
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 	 */
88 88
 	public function delete()
89 89
 	{
90
-		throw new \Aimeos\Admin\JQAdm\Exception( 'The resource can not be deleted' );
90
+		throw new \Aimeos\Admin\JQAdm\Exception('The resource can not be deleted');
91 91
 	}
92 92
 
93 93
 
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 	 */
99 99
 	public function get()
100 100
 	{
101
-		throw new \Aimeos\Admin\JQAdm\Exception( 'The resource can not be retrieved' );
101
+		throw new \Aimeos\Admin\JQAdm\Exception('The resource can not be retrieved');
102 102
 	}
103 103
 
104 104
 
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 	 */
110 110
 	public function save()
111 111
 	{
112
-		throw new \Aimeos\Admin\JQAdm\Exception( 'The resource can not be modified' );
112
+		throw new \Aimeos\Admin\JQAdm\Exception('The resource can not be modified');
113 113
 	}
114 114
 
115 115
 
@@ -127,25 +127,25 @@  discard block
 block discarded – undo
127 127
 		{
128 128
 			$view->listBody = '';
129 129
 
130
-			foreach( $this->getSubClients() as $client ) {
130
+			foreach ($this->getSubClients() as $client) {
131 131
 				$view->listBody .= $client->search();
132 132
 			}
133 133
 		}
134
-		catch( \Aimeos\MShop\Exception $e )
134
+		catch (\Aimeos\MShop\Exception $e)
135 135
 		{
136
-			$error = array( 'dashboard' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) );
137
-			$view->errors = $view->get( 'errors', array() ) + $error;
136
+			$error = array('dashboard' => $context->getI18n()->dt('mshop', $e->getMessage()));
137
+			$view->errors = $view->get('errors', array()) + $error;
138 138
 		}
139
-		catch( \Exception $e )
139
+		catch (\Exception $e)
140 140
 		{
141
-			$error = array( 'dashboard' => $e->getMessage() );
142
-			$view->errors = $view->get( 'errors', array() ) + $error;
141
+			$error = array('dashboard' => $e->getMessage());
142
+			$view->errors = $view->get('errors', array()) + $error;
143 143
 		}
144 144
 
145 145
 		$tplconf = 'admin/jqadm/dashboard/template-list';
146 146
 		$default = 'dashboard/list-default.php';
147 147
 
148
-		return $view->render( $view->config( $tplconf, $default ) );
148
+		return $view->render($view->config($tplconf, $default));
149 149
 	}
150 150
 
151 151
 
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
 	 * @param string|null $name Name of the sub-client (Default if null)
157 157
 	 * @return \Aimeos\Admin\JQAdm\Iface Sub-client object
158 158
 	 */
159
-	public function getSubClient( $type, $name = null )
159
+	public function getSubClient($type, $name = null)
160 160
 	{
161 161
 		/** admin/jqadm/dashboard/decorators/excludes
162 162
 		 * Excludes decorators added by the "common" option from the dashboard JQAdm client
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
 		 * @see admin/jqadm/dashboard/decorators/excludes
232 232
 		 * @see admin/jqadm/dashboard/decorators/global
233 233
 		 */
234
-		return $this->createSubClient( 'dashboard/' . $type, $name );
234
+		return $this->createSubClient('dashboard/' . $type, $name);
235 235
 	}
236 236
 
237 237
 
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
 	 */
243 243
 	protected function getSubClientNames()
244 244
 	{
245
-		$result = $this->getContext()->getConfig()->get( $this->subPartPath, $this->subPartNames );
245
+		$result = $this->getContext()->getConfig()->get($this->subPartPath, $this->subPartNames);
246 246
 		return $result;
247 247
 	}
248 248
 }
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -151,14 +151,12 @@
 block discarded – undo
151 151
 
152 152
 			$manager->commit();
153 153
 			return;
154
-		}
155
-		catch( \Aimeos\MShop\Exception $e )
154
+		} catch( \Aimeos\MShop\Exception $e )
156 155
 		{
157 156
 			$error = array( 'product-item-category' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) );
158 157
 			$view->errors = $view->get( 'errors', array() ) + $error;
159 158
 			$manager->rollback();
160
-		}
161
-		catch( \Exception $e )
159
+		} catch( \Exception $e )
162 160
 		{
163 161
 			$context->getLogger()->log( $e->getMessage() . ' - ' . $e->getTraceAsString() );
164 162
 			$error = array( 'product-item-category' => $e->getMessage() );
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Dashboard/Order/Standard.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 	 * @category Developer
56 56
 	 */
57 57
 	private $subPartPath = 'admin/jqadm/dashboard/order/standard/subparts';
58
-	private $subPartNames = array( 'paymentstatus' );
58
+	private $subPartNames = array('paymentstatus');
59 59
 
60 60
 
61 61
 	/**
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 	 */
66 66
 	public function copy()
67 67
 	{
68
-		throw new \Aimeos\Admin\JQAdm\Exception( 'The resource can not be copied' );
68
+		throw new \Aimeos\Admin\JQAdm\Exception('The resource can not be copied');
69 69
 	}
70 70
 
71 71
 
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 	 */
77 77
 	public function create()
78 78
 	{
79
-		throw new \Aimeos\Admin\JQAdm\Exception( 'New resources can not be created' );
79
+		throw new \Aimeos\Admin\JQAdm\Exception('New resources can not be created');
80 80
 	}
81 81
 
82 82
 
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 	 */
88 88
 	public function delete()
89 89
 	{
90
-		throw new \Aimeos\Admin\JQAdm\Exception( 'The resource can not be deleted' );
90
+		throw new \Aimeos\Admin\JQAdm\Exception('The resource can not be deleted');
91 91
 	}
92 92
 
93 93
 
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 	 */
99 99
 	public function get()
100 100
 	{
101
-		throw new \Aimeos\Admin\JQAdm\Exception( 'The resource can not be retrieved' );
101
+		throw new \Aimeos\Admin\JQAdm\Exception('The resource can not be retrieved');
102 102
 	}
103 103
 
104 104
 
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 	 */
110 110
 	public function save()
111 111
 	{
112
-		throw new \Aimeos\Admin\JQAdm\Exception( 'The resource can not be modified' );
112
+		throw new \Aimeos\Admin\JQAdm\Exception('The resource can not be modified');
113 113
 	}
114 114
 
115 115
 
@@ -123,14 +123,14 @@  discard block
 block discarded – undo
123 123
 		$view = $this->getView();
124 124
 		$view->orderBody = '';
125 125
 
126
-		foreach( $this->getSubClients() as $client ) {
126
+		foreach ($this->getSubClients() as $client) {
127 127
 			$view->orderBody .= $client->search();
128 128
 		}
129 129
 
130 130
 		$tplconf = 'admin/jqadm/dashboard/order/template-list';
131 131
 		$default = 'dashboard/list-order-default.php';
132 132
 
133
-		return $view->render( $view->config( $tplconf, $default ) );
133
+		return $view->render($view->config($tplconf, $default));
134 134
 	}
135 135
 
136 136
 
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
 	 * @param string|null $name Name of the sub-client (Default if null)
142 142
 	 * @return \Aimeos\Admin\JQAdm\Iface Sub-client object
143 143
 	 */
144
-	public function getSubClient( $type, $name = null )
144
+	public function getSubClient($type, $name = null)
145 145
 	{
146 146
 		/** admin/jqadm/dashboard/order/decorators/excludes
147 147
 		 * Excludes decorators added by the "common" option from the dashboard JQAdm client
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
 		 * @see admin/jqadm/dashboard/order/decorators/excludes
217 217
 		 * @see admin/jqadm/dashboard/order/decorators/global
218 218
 		 */
219
-		return $this->createSubClient( 'dashboard/order/' . $type, $name );
219
+		return $this->createSubClient('dashboard/order/' . $type, $name);
220 220
 	}
221 221
 
222 222
 
@@ -227,6 +227,6 @@  discard block
 block discarded – undo
227 227
 	 */
228 228
 	protected function getSubClientNames()
229 229
 	{
230
-		return $this->getContext()->getConfig()->get( $this->subPartPath, $this->subPartNames );
230
+		return $this->getContext()->getConfig()->get($this->subPartPath, $this->subPartNames);
231 231
 	}
232 232
 }
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Dashboard/Order/Paymentstatus/Standard.php 2 patches
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 	 */
66 66
 	public function copy()
67 67
 	{
68
-		throw new \Aimeos\Admin\JQAdm\Exception( 'The resource can not be copied' );
68
+		throw new \Aimeos\Admin\JQAdm\Exception('The resource can not be copied');
69 69
 	}
70 70
 
71 71
 
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 	 */
77 77
 	public function create()
78 78
 	{
79
-		throw new \Aimeos\Admin\JQAdm\Exception( 'New resources can not be created' );
79
+		throw new \Aimeos\Admin\JQAdm\Exception('New resources can not be created');
80 80
 	}
81 81
 
82 82
 
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 	 */
88 88
 	public function delete()
89 89
 	{
90
-		throw new \Aimeos\Admin\JQAdm\Exception( 'The resource can not be deleted' );
90
+		throw new \Aimeos\Admin\JQAdm\Exception('The resource can not be deleted');
91 91
 	}
92 92
 
93 93
 
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 	 */
99 99
 	public function get()
100 100
 	{
101
-		throw new \Aimeos\Admin\JQAdm\Exception( 'The resource can not be retrieved' );
101
+		throw new \Aimeos\Admin\JQAdm\Exception('The resource can not be retrieved');
102 102
 	}
103 103
 
104 104
 
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 	 */
110 110
 	public function save()
111 111
 	{
112
-		throw new \Aimeos\Admin\JQAdm\Exception( 'The resource can not be modified' );
112
+		throw new \Aimeos\Admin\JQAdm\Exception('The resource can not be modified');
113 113
 	}
114 114
 
115 115
 
@@ -127,25 +127,25 @@  discard block
 block discarded – undo
127 127
 		{
128 128
 			$view->orderpaymentstatusBody = '';
129 129
 
130
-			foreach( $this->getSubClients() as $client ) {
130
+			foreach ($this->getSubClients() as $client) {
131 131
 				$view->orderpaymentstatusBody .= $client->search();
132 132
 			}
133 133
 		}
134
-		catch( \Aimeos\MShop\Exception $e )
134
+		catch (\Aimeos\MShop\Exception $e)
135 135
 		{
136
-			$error = array( 'order-paymentstatus' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) );
137
-			$view->errors = $view->get( 'errors', array() ) + $error;
136
+			$error = array('order-paymentstatus' => $context->getI18n()->dt('mshop', $e->getMessage()));
137
+			$view->errors = $view->get('errors', array()) + $error;
138 138
 		}
139
-		catch( \Exception $e )
139
+		catch (\Exception $e)
140 140
 		{
141
-			$error = array( 'order-paymentstatus' => $e->getMessage() );
142
-			$view->errors = $view->get( 'errors', array() ) + $error;
141
+			$error = array('order-paymentstatus' => $e->getMessage());
142
+			$view->errors = $view->get('errors', array()) + $error;
143 143
 		}
144 144
 
145 145
 		$tplconf = 'admin/jqadm/dashboard/order/paymentstatus/template-item';
146 146
 		$default = 'dashboard/item-order-paymentstatus-default.php';
147 147
 
148
-		return $view->render( $view->config( $tplconf, $default ) );
148
+		return $view->render($view->config($tplconf, $default));
149 149
 	}
150 150
 
151 151
 
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
 	 * @param string|null $name Name of the sub-client (Default if null)
157 157
 	 * @return \Aimeos\Admin\JQAdm\Iface Sub-client object
158 158
 	 */
159
-	public function getSubClient( $type, $name = null )
159
+	public function getSubClient($type, $name = null)
160 160
 	{
161 161
 		/** admin/jqadm/dashboard/order/paymentstatus/decorators/excludes
162 162
 		 * Excludes decorators added by the "common" option from the dashboard JQAdm client
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
 		 * @see admin/jqadm/dashboard/order/paymentstatus/decorators/excludes
232 232
 		 * @see admin/jqadm/dashboard/order/paymentstatus/decorators/global
233 233
 		 */
234
-		return $this->createSubClient( 'dashboard/order/paymentstatus/' . $type, $name );
234
+		return $this->createSubClient('dashboard/order/paymentstatus/' . $type, $name);
235 235
 	}
236 236
 
237 237
 
@@ -242,6 +242,6 @@  discard block
 block discarded – undo
242 242
 	 */
243 243
 	protected function getSubClientNames()
244 244
 	{
245
-		return $this->getContext()->getConfig()->get( $this->subPartPath, $this->subPartNames );
245
+		return $this->getContext()->getConfig()->get($this->subPartPath, $this->subPartNames);
246 246
 	}
247 247
 }
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -151,14 +151,12 @@
 block discarded – undo
151 151
 
152 152
 			$manager->commit();
153 153
 			return;
154
-		}
155
-		catch( \Aimeos\MShop\Exception $e )
154
+		} catch( \Aimeos\MShop\Exception $e )
156 155
 		{
157 156
 			$error = array( 'product-item-category' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) );
158 157
 			$view->errors = $view->get( 'errors', array() ) + $error;
159 158
 			$manager->rollback();
160
-		}
161
-		catch( \Exception $e )
159
+		} catch( \Exception $e )
162 160
 		{
163 161
 			$context->getLogger()->log( $e->getMessage() . ' - ' . $e->getTraceAsString() );
164 162
 			$error = array( 'product-item-category' => $e->getMessage() );
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Dashboard/Order/Latest/Standard.php 2 patches
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 	 */
66 66
 	public function copy()
67 67
 	{
68
-		throw new \Aimeos\Admin\JQAdm\Exception( 'The resource can not be copied' );
68
+		throw new \Aimeos\Admin\JQAdm\Exception('The resource can not be copied');
69 69
 	}
70 70
 
71 71
 
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 	 */
77 77
 	public function create()
78 78
 	{
79
-		throw new \Aimeos\Admin\JQAdm\Exception( 'New resources can not be created' );
79
+		throw new \Aimeos\Admin\JQAdm\Exception('New resources can not be created');
80 80
 	}
81 81
 
82 82
 
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 	 */
88 88
 	public function delete()
89 89
 	{
90
-		throw new \Aimeos\Admin\JQAdm\Exception( 'The resource can not be deleted' );
90
+		throw new \Aimeos\Admin\JQAdm\Exception('The resource can not be deleted');
91 91
 	}
92 92
 
93 93
 
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 	 */
99 99
 	public function get()
100 100
 	{
101
-		throw new \Aimeos\Admin\JQAdm\Exception( 'The resource can not be retrieved' );
101
+		throw new \Aimeos\Admin\JQAdm\Exception('The resource can not be retrieved');
102 102
 	}
103 103
 
104 104
 
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 	 */
110 110
 	public function save()
111 111
 	{
112
-		throw new \Aimeos\Admin\JQAdm\Exception( 'The resource can not be modified' );
112
+		throw new \Aimeos\Admin\JQAdm\Exception('The resource can not be modified');
113 113
 	}
114 114
 
115 115
 
@@ -124,28 +124,28 @@  discard block
 block discarded – undo
124 124
 
125 125
 		try
126 126
 		{
127
-			$this->addOrders( $view );
127
+			$this->addOrders($view);
128 128
 			$view->orderlatestBody = '';
129 129
 
130
-			foreach( $this->getSubClients() as $client ) {
130
+			foreach ($this->getSubClients() as $client) {
131 131
 				$view->orderlatestBody .= $client->search();
132 132
 			}
133 133
 		}
134
-		catch( \Aimeos\MShop\Exception $e )
134
+		catch (\Aimeos\MShop\Exception $e)
135 135
 		{
136
-			$error = array( 'order-latest' => $this->getContext()->getI18n()->dt( 'mshop', $e->getMessage() ) );
137
-			$view->errors = $view->get( 'errors', array() ) + $error;
136
+			$error = array('order-latest' => $this->getContext()->getI18n()->dt('mshop', $e->getMessage()));
137
+			$view->errors = $view->get('errors', array()) + $error;
138 138
 		}
139
-		catch( \Exception $e )
139
+		catch (\Exception $e)
140 140
 		{
141
-			$error = array( 'order-latest' => $e->getMessage() );
142
-			$view->errors = $view->get( 'errors', array() ) + $error;
141
+			$error = array('order-latest' => $e->getMessage());
142
+			$view->errors = $view->get('errors', array()) + $error;
143 143
 		}
144 144
 
145 145
 		$tplconf = 'admin/jqadm/dashboard/order/latest/template-item';
146 146
 		$default = 'dashboard/item-order-latest-default.php';
147 147
 
148
-		return $view->render( $view->config( $tplconf, $default ) );
148
+		return $view->render($view->config($tplconf, $default));
149 149
 	}
150 150
 
151 151
 
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
 	 * @param string|null $name Name of the sub-client (Default if null)
157 157
 	 * @return \Aimeos\Admin\JQAdm\Iface Sub-client object
158 158
 	 */
159
-	public function getSubClient( $type, $name = null )
159
+	public function getSubClient($type, $name = null)
160 160
 	{
161 161
 		/** admin/jqadm/dashboard/order/latest/decorators/excludes
162 162
 		 * Excludes decorators added by the "common" option from the dashboard JQAdm client
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
 		 * @see admin/jqadm/dashboard/order/latest/decorators/excludes
232 232
 		 * @see admin/jqadm/dashboard/order/latest/decorators/global
233 233
 		 */
234
-		return $this->createSubClient( 'dashboard/order/latest/' . $type, $name );
234
+		return $this->createSubClient('dashboard/order/latest/' . $type, $name);
235 235
 	}
236 236
 
237 237
 
@@ -240,23 +240,23 @@  discard block
 block discarded – undo
240 240
 	 *
241 241
 	 * @param \Aimeos\MW\View\Iface $view View object to add the parameters to
242 242
 	 */
243
-	protected function addOrders( \Aimeos\MW\View\Iface $view )
243
+	protected function addOrders(\Aimeos\MW\View\Iface $view)
244 244
 	{
245
-		$manager = \Aimeos\MShop\Factory::createManager( $this->getContext(), 'order/base' );
245
+		$manager = \Aimeos\MShop\Factory::createManager($this->getContext(), 'order/base');
246 246
 
247 247
 		$search = $manager->createSearch();
248
-		$search->setSortations( array( $search->sort( '-', 'order.base.ctime' ) ) );
249
-		$search->setSlice( 0, 10 );
248
+		$search->setSortations(array($search->sort('-', 'order.base.ctime')));
249
+		$search->setSlice(0, 10);
250 250
 
251
-		$orders = $manager->searchItems( $search );
251
+		$orders = $manager->searchItems($search);
252 252
 
253 253
 
254
-		$manager = \Aimeos\MShop\Factory::createManager( $this->getContext(), 'order' );
254
+		$manager = \Aimeos\MShop\Factory::createManager($this->getContext(), 'order');
255 255
 
256 256
 		$search = $manager->createSearch();
257
-		$search->setConditions( $search->compare( '==', 'order.baseid', array_keys( $orders ) ) );
257
+		$search->setConditions($search->compare('==', 'order.baseid', array_keys($orders)));
258 258
 
259
-		$items = $manager->searchItems( $search );
259
+		$items = $manager->searchItems($search);
260 260
 
261 261
 
262 262
 		$view->orderlatestOrders = $orders;
@@ -271,6 +271,6 @@  discard block
 block discarded – undo
271 271
 	 */
272 272
 	protected function getSubClientNames()
273 273
 	{
274
-		return $this->getContext()->getConfig()->get( $this->subPartPath, $this->subPartNames );
274
+		return $this->getContext()->getConfig()->get($this->subPartPath, $this->subPartNames);
275 275
 	}
276 276
 }
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -151,14 +151,12 @@
 block discarded – undo
151 151
 
152 152
 			$manager->commit();
153 153
 			return;
154
-		}
155
-		catch( \Aimeos\MShop\Exception $e )
154
+		} catch( \Aimeos\MShop\Exception $e )
156 155
 		{
157 156
 			$error = array( 'product-item-category' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) );
158 157
 			$view->errors = $view->get( 'errors', array() ) + $error;
159 158
 			$manager->rollback();
160
-		}
161
-		catch( \Exception $e )
159
+		} catch( \Exception $e )
162 160
 		{
163 161
 			$context->getLogger()->log( $e->getMessage() . ' - ' . $e->getTraceAsString() );
164 162
 			$error = array( 'product-item-category' => $e->getMessage() );
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Dashboard/Factory.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 	 * @return \Aimeos\Admin\JQAdm\Iface Filter part implementing \Aimeos\Admin\JQAdm\Iface
31 31
 	 * @throws \Aimeos\Admin\JQAdm\Exception If requested client implementation couldn't be found or initialisation fails
32 32
 	 */
33
-	public static function createClient( \Aimeos\MShop\Context\Item\Iface $context, array $templatePaths, $name = null )
33
+	public static function createClient(\Aimeos\MShop\Context\Item\Iface $context, array $templatePaths, $name = null)
34 34
 	{
35 35
 		/** admin/jqadm/dashboard/name
36 36
 		 * Class name of the used account favorite client implementation
@@ -65,22 +65,22 @@  discard block
 block discarded – undo
65 65
 		 * @since 2016.01
66 66
 		 * @category Developer
67 67
 		 */
68
-		if( $name === null ) {
69
-			$name = $context->getConfig()->get( 'admin/jqadm/dashboard/name', 'Standard' );
68
+		if ($name === null) {
69
+			$name = $context->getConfig()->get('admin/jqadm/dashboard/name', 'Standard');
70 70
 		}
71 71
 
72
-		if( ctype_alnum( $name ) === false )
72
+		if (ctype_alnum($name) === false)
73 73
 		{
74
-			$classname = is_string( $name ) ? '\\Aimeos\\Admin\\JQAdm\\Dashboard\\' . $name : '<not a string>';
75
-			throw new \Aimeos\Admin\JQAdm\Exception( sprintf( 'Invalid characters in class name "%1$s"', $classname ) );
74
+			$classname = is_string($name) ? '\\Aimeos\\Admin\\JQAdm\\Dashboard\\' . $name : '<not a string>';
75
+			throw new \Aimeos\Admin\JQAdm\Exception(sprintf('Invalid characters in class name "%1$s"', $classname));
76 76
 		}
77 77
 
78 78
 		$iface = '\\Aimeos\\Admin\\JQAdm\\Iface';
79 79
 		$classname = '\\Aimeos\\Admin\\JQAdm\\Dashboard\\' . $name;
80 80
 
81
-		$client = self::createClientBase( $context, $classname, $iface, $templatePaths );
81
+		$client = self::createClientBase($context, $classname, $iface, $templatePaths);
82 82
 
83
-		return self::addClientDecorators( $context, $client, $templatePaths, 'dashboard' );
83
+		return self::addClientDecorators($context, $client, $templatePaths, 'dashboard');
84 84
 	}
85 85
 
86 86
 }
Please login to merge, or discard this patch.