Completed
Push — master ( 06a6c1...f03436 )
by Aimeos
03:56
created
admin/jqadm/src/Admin/JQAdm/Dashboard/Order/Servicedelivery/Standard.php 2 patches
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -77,14 +77,12 @@
 block discarded – undo
77 77
 			foreach( $this->getSubClients() as $client ) {
78 78
 				$view->orderpaymenttypeBody .= $client->search();
79 79
 			}
80
-		}
81
-		catch( \Aimeos\MShop\Exception $e )
80
+		} catch( \Aimeos\MShop\Exception $e )
82 81
 		{
83 82
 			$error = array( 'order-servicedelivery' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) );
84 83
 			$view->errors = $view->get( 'errors', [] ) + $error;
85 84
 			$this->logException( $e );
86
-		}
87
-		catch( \Exception $e )
85
+		} catch( \Exception $e )
88 86
 		{
89 87
 			$error = array( 'order-servicedelivery' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() );
90 88
 			$view->errors = $view->get( 'errors', [] ) + $error;
Please login to merge, or discard this patch.
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 
11 11
 namespace Aimeos\Admin\JQAdm\Dashboard\Order\Servicedelivery;
12 12
 
13
-sprintf( 'servicedelivery' ); // for translation
13
+sprintf('servicedelivery'); // for translation
14 14
 
15 15
 
16 16
 /**
@@ -49,21 +49,21 @@  discard block
 block discarded – undo
49 49
 		{
50 50
 			$view->orderpaymenttypeBody = '';
51 51
 
52
-			foreach( $this->getSubClients() as $client ) {
52
+			foreach ($this->getSubClients() as $client) {
53 53
 				$view->orderpaymenttypeBody .= $client->search();
54 54
 			}
55 55
 		}
56
-		catch( \Aimeos\MShop\Exception $e )
56
+		catch (\Aimeos\MShop\Exception $e)
57 57
 		{
58
-			$error = array( 'order-servicedelivery' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) );
59
-			$view->errors = $view->get( 'errors', [] ) + $error;
60
-			$this->logException( $e );
58
+			$error = array('order-servicedelivery' => $context->getI18n()->dt('mshop', $e->getMessage()));
59
+			$view->errors = $view->get('errors', []) + $error;
60
+			$this->logException($e);
61 61
 		}
62
-		catch( \Exception $e )
62
+		catch (\Exception $e)
63 63
 		{
64
-			$error = array( 'order-servicedelivery' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() );
65
-			$view->errors = $view->get( 'errors', [] ) + $error;
66
-			$this->logException( $e );
64
+			$error = array('order-servicedelivery' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine());
65
+			$view->errors = $view->get('errors', []) + $error;
66
+			$this->logException($e);
67 67
 		}
68 68
 
69 69
 		/** admin/jqadm/dashboard/order/servicedelivery/template-item
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 		$tplconf = 'admin/jqadm/dashboard/order/servicedelivery/template-item';
89 89
 		$default = 'dashboard/item-order-servicedelivery-standard.php';
90 90
 
91
-		return $view->render( $view->config( $tplconf, $default ) );
91
+		return $view->render($view->config($tplconf, $default));
92 92
 	}
93 93
 
94 94
 
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
 	 * @param string|null $name Name of the sub-client (Default if null)
100 100
 	 * @return \Aimeos\Admin\JQAdm\Iface Sub-client object
101 101
 	 */
102
-	public function getSubClient( $type, $name = null )
102
+	public function getSubClient($type, $name = null)
103 103
 	{
104 104
 		/** admin/jqadm/dashboard/order/servicedelivery/decorators/excludes
105 105
 		 * Excludes decorators added by the "common" option from the dashboard JQAdm client
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
 		 * @see admin/jqadm/dashboard/order/servicedelivery/decorators/excludes
175 175
 		 * @see admin/jqadm/dashboard/order/servicedelivery/decorators/global
176 176
 		 */
177
-		return $this->createSubClient( 'dashboard/order/servicedelivery/' . $type, $name );
177
+		return $this->createSubClient('dashboard/order/servicedelivery/' . $type, $name);
178 178
 	}
179 179
 
180 180
 
@@ -218,6 +218,6 @@  discard block
 block discarded – undo
218 218
 		 * @since 2018.01
219 219
 		 * @category Developer
220 220
 		 */
221
-		return $this->getContext()->getConfig()->get( 'admin/jqadm/dashboard/order/servicedelivery/standard/subparts', [] );
221
+		return $this->getContext()->getConfig()->get('admin/jqadm/dashboard/order/servicedelivery/standard/subparts', []);
222 222
 	}
223 223
 }
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Product/Characteristic/Standard.php 2 patches
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -166,14 +166,12 @@
 block discarded – undo
166 166
 			}
167 167
 
168 168
 			return;
169
-		}
170
-		catch( \Aimeos\MShop\Exception $e )
169
+		} catch( \Aimeos\MShop\Exception $e )
171 170
 		{
172 171
 			$error = array( 'product-item-characteristic' => $this->getContext()->getI18n()->dt( 'mshop', $e->getMessage() ) );
173 172
 			$view->errors = $view->get( 'errors', [] ) + $error;
174 173
 			$this->logException( $e );
175
-		}
176
-		catch( \Exception $e )
174
+		} catch( \Exception $e )
177 175
 		{
178 176
 			$error = array( 'product-item-characteristic' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() );
179 177
 			$view->errors = $view->get( 'errors', [] ) + $error;
Please login to merge, or discard this patch.
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 
11 11
 namespace Aimeos\Admin\JQAdm\Product\Characteristic;
12 12
 
13
-sprintf( 'characteristic' ); // for translation
13
+sprintf('characteristic'); // for translation
14 14
 
15 15
 
16 16
 /**
@@ -46,11 +46,11 @@  discard block
 block discarded – undo
46 46
 
47 47
 		$view->characteristicBody = '';
48 48
 
49
-		foreach( $this->getSubClients() as $client ) {
49
+		foreach ($this->getSubClients() as $client) {
50 50
 			$view->characteristicBody .= $client->copy();
51 51
 		}
52 52
 
53
-		return $this->render( $view );
53
+		return $this->render($view);
54 54
 	}
55 55
 
56 56
 
@@ -65,11 +65,11 @@  discard block
 block discarded – undo
65 65
 
66 66
 		$view->characteristicBody = '';
67 67
 
68
-		foreach( $this->getSubClients() as $client ) {
68
+		foreach ($this->getSubClients() as $client) {
69 69
 			$view->characteristicBody .= $client->create();
70 70
 		}
71 71
 
72
-		return $this->render( $view );
72
+		return $this->render($view);
73 73
 	}
74 74
 
75 75
 
@@ -84,11 +84,11 @@  discard block
 block discarded – undo
84 84
 
85 85
 		$view->characteristicBody = '';
86 86
 
87
-		foreach( $this->getSubClients() as $client ) {
87
+		foreach ($this->getSubClients() as $client) {
88 88
 			$view->characteristicBody .= $client->get();
89 89
 		}
90 90
 
91
-		return $this->render( $view );
91
+		return $this->render($view);
92 92
 	}
93 93
 
94 94
 
@@ -103,23 +103,23 @@  discard block
 block discarded – undo
103 103
 		{
104 104
 			$view->characteristicBody = '';
105 105
 
106
-			foreach( $this->getSubClients() as $client ) {
106
+			foreach ($this->getSubClients() as $client) {
107 107
 				$view->characteristicBody .= $client->save();
108 108
 			}
109 109
 
110 110
 			return;
111 111
 		}
112
-		catch( \Aimeos\MShop\Exception $e )
112
+		catch (\Aimeos\MShop\Exception $e)
113 113
 		{
114
-			$error = array( 'product-item-characteristic' => $this->getContext()->getI18n()->dt( 'mshop', $e->getMessage() ) );
115
-			$view->errors = $view->get( 'errors', [] ) + $error;
116
-			$this->logException( $e );
114
+			$error = array('product-item-characteristic' => $this->getContext()->getI18n()->dt('mshop', $e->getMessage()));
115
+			$view->errors = $view->get('errors', []) + $error;
116
+			$this->logException($e);
117 117
 		}
118
-		catch( \Exception $e )
118
+		catch (\Exception $e)
119 119
 		{
120
-			$error = array( 'product-item-characteristic' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() );
121
-			$view->errors = $view->get( 'errors', [] ) + $error;
122
-			$this->logException( $e );
120
+			$error = array('product-item-characteristic' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine());
121
+			$view->errors = $view->get('errors', []) + $error;
122
+			$this->logException($e);
123 123
 		}
124 124
 
125 125
 		throw new \Aimeos\Admin\JQAdm\Exception();
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
 	 * @param string|null $name Name of the sub-client (Default if null)
134 134
 	 * @return \Aimeos\Admin\JQAdm\Iface Sub-client object
135 135
 	 */
136
-	public function getSubClient( $type, $name = null )
136
+	public function getSubClient($type, $name = null)
137 137
 	{
138 138
 		/** admin/jqadm/product/characteristic/decorators/excludes
139 139
 		 * Excludes decorators added by the "common" option from the product JQAdm client
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
 		 * @see admin/jqadm/product/characteristic/decorators/excludes
209 209
 		 * @see admin/jqadm/product/characteristic/decorators/global
210 210
 		 */
211
-		return $this->createSubClient( 'product/characteristic/' . $type, $name );
211
+		return $this->createSubClient('product/characteristic/' . $type, $name);
212 212
 	}
213 213
 
214 214
 
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
 		 * @since 2016.01
253 253
 		 * @category Developer
254 254
 		 */
255
-		return $this->getContext()->getConfig()->get( 'admin/jqadm/product/characteristic/standard/subparts', [] );
255
+		return $this->getContext()->getConfig()->get('admin/jqadm/product/characteristic/standard/subparts', []);
256 256
 	}
257 257
 
258 258
 
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
 	 * @param \Aimeos\MW\View\Iface $view View object with data assigned
263 263
 	 * @return string HTML output
264 264
 	 */
265
-	protected function render( \Aimeos\MW\View\Iface $view )
265
+	protected function render(\Aimeos\MW\View\Iface $view)
266 266
 	{
267 267
 		/** admin/jqadm/product/characteristic/template-item
268 268
 		 * Relative path to the HTML body template of the characteristic subpart for products.
@@ -286,6 +286,6 @@  discard block
 block discarded – undo
286 286
 		$tplconf = 'admin/jqadm/product/characteristic/template-item';
287 287
 		$default = 'product/item-characteristic-standard.php';
288 288
 
289
-		return $view->render( $view->config( $tplconf, $default ) );
289
+		return $view->render($view->config($tplconf, $default));
290 290
 	}
291 291
 }
292 292
\ No newline at end of file
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Product/Option/Standard.php 2 patches
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -155,14 +155,12 @@
 block discarded – undo
155 155
 			}
156 156
 
157 157
 			return;
158
-		}
159
-		catch( \Aimeos\MShop\Exception $e )
158
+		} catch( \Aimeos\MShop\Exception $e )
160 159
 		{
161 160
 			$error = array( 'product-item-option' => $this->getContext()->getI18n()->dt( 'mshop', $e->getMessage() ) );
162 161
 			$view->errors = $view->get( 'errors', [] ) + $error;
163 162
 			$this->logException( $e );
164
-		}
165
-		catch( \Exception $e )
163
+		} catch( \Exception $e )
166 164
 		{
167 165
 			$error = array( 'product-item-option' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() );
168 166
 			$view->errors = $view->get( 'errors', [] ) + $error;
Please login to merge, or discard this patch.
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 
11 11
 namespace Aimeos\Admin\JQAdm\Product\Option;
12 12
 
13
-sprintf( 'option' ); // for translation
13
+sprintf('option'); // for translation
14 14
 
15 15
 
16 16
 /**
@@ -46,11 +46,11 @@  discard block
 block discarded – undo
46 46
 
47 47
 		$view->optionBody = '';
48 48
 
49
-		foreach( $this->getSubClients() as $client ) {
49
+		foreach ($this->getSubClients() as $client) {
50 50
 			$view->optionBody .= $client->copy();
51 51
 		}
52 52
 
53
-		return $this->render( $view );
53
+		return $this->render($view);
54 54
 	}
55 55
 
56 56
 
@@ -65,11 +65,11 @@  discard block
 block discarded – undo
65 65
 
66 66
 		$view->optionBody = '';
67 67
 
68
-		foreach( $this->getSubClients() as $client ) {
68
+		foreach ($this->getSubClients() as $client) {
69 69
 			$view->optionBody .= $client->create();
70 70
 		}
71 71
 
72
-		return $this->render( $view );
72
+		return $this->render($view);
73 73
 	}
74 74
 
75 75
 
@@ -84,11 +84,11 @@  discard block
 block discarded – undo
84 84
 
85 85
 		$view->optionBody = '';
86 86
 
87
-		foreach( $this->getSubClients() as $client ) {
87
+		foreach ($this->getSubClients() as $client) {
88 88
 			$view->optionBody .= $client->get();
89 89
 		}
90 90
 
91
-		return $this->render( $view );
91
+		return $this->render($view);
92 92
 	}
93 93
 
94 94
 
@@ -103,23 +103,23 @@  discard block
 block discarded – undo
103 103
 		{
104 104
 			$view->optionBody = '';
105 105
 
106
-			foreach( $this->getSubClients() as $client ) {
106
+			foreach ($this->getSubClients() as $client) {
107 107
 				$view->optionBody .= $client->save();
108 108
 			}
109 109
 
110 110
 			return;
111 111
 		}
112
-		catch( \Aimeos\MShop\Exception $e )
112
+		catch (\Aimeos\MShop\Exception $e)
113 113
 		{
114
-			$error = array( 'product-item-option' => $this->getContext()->getI18n()->dt( 'mshop', $e->getMessage() ) );
115
-			$view->errors = $view->get( 'errors', [] ) + $error;
116
-			$this->logException( $e );
114
+			$error = array('product-item-option' => $this->getContext()->getI18n()->dt('mshop', $e->getMessage()));
115
+			$view->errors = $view->get('errors', []) + $error;
116
+			$this->logException($e);
117 117
 		}
118
-		catch( \Exception $e )
118
+		catch (\Exception $e)
119 119
 		{
120
-			$error = array( 'product-item-option' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() );
121
-			$view->errors = $view->get( 'errors', [] ) + $error;
122
-			$this->logException( $e );
120
+			$error = array('product-item-option' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine());
121
+			$view->errors = $view->get('errors', []) + $error;
122
+			$this->logException($e);
123 123
 		}
124 124
 
125 125
 		throw new \Aimeos\Admin\JQAdm\Exception();
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
 	 * @param string|null $name Name of the sub-client (Default if null)
134 134
 	 * @return \Aimeos\Admin\JQAdm\Iface Sub-client object
135 135
 	 */
136
-	public function getSubClient( $type, $name = null )
136
+	public function getSubClient($type, $name = null)
137 137
 	{
138 138
 		/** admin/jqadm/product/option/decorators/excludes
139 139
 		 * Excludes decorators added by the "common" option from the product JQAdm client
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
 		 * @see admin/jqadm/product/option/decorators/excludes
209 209
 		 * @see admin/jqadm/product/option/decorators/global
210 210
 		 */
211
-		return $this->createSubClient( 'product/option/' . $type, $name );
211
+		return $this->createSubClient('product/option/' . $type, $name);
212 212
 	}
213 213
 
214 214
 
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
 		 * @since 2017.03
253 253
 		 * @category Developer
254 254
 		 */
255
-		return $this->getContext()->getConfig()->get( 'admin/jqadm/product/option/standard/subparts', [] );
255
+		return $this->getContext()->getConfig()->get('admin/jqadm/product/option/standard/subparts', []);
256 256
 	}
257 257
 
258 258
 
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
 	 * @param \Aimeos\MW\View\Iface $view View object with data assigned
263 263
 	 * @return string HTML output
264 264
 	 */
265
-	protected function render( \Aimeos\MW\View\Iface $view )
265
+	protected function render(\Aimeos\MW\View\Iface $view)
266 266
 	{
267 267
 		/** admin/jqadm/product/option/template-item
268 268
 		 * Relative path to the HTML body template of the option subpart for products.
@@ -286,6 +286,6 @@  discard block
 block discarded – undo
286 286
 		$tplconf = 'admin/jqadm/product/option/template-item';
287 287
 		$default = 'product/item-option-standard.php';
288 288
 
289
-		return $view->render( $view->config( $tplconf, $default ) );
289
+		return $view->render($view->config($tplconf, $default));
290 290
 	}
291 291
 }
292 292
\ No newline at end of file
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Product/Related/Standard.php 2 patches
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -155,14 +155,12 @@
 block discarded – undo
155 155
 			}
156 156
 
157 157
 			return;
158
-		}
159
-		catch( \Aimeos\MShop\Exception $e )
158
+		} catch( \Aimeos\MShop\Exception $e )
160 159
 		{
161 160
 			$error = array( 'product-item-related' => $this->getContext()->getI18n()->dt( 'mshop', $e->getMessage() ) );
162 161
 			$view->errors = $view->get( 'errors', [] ) + $error;
163 162
 			$this->logException( $e );
164
-		}
165
-		catch( \Exception $e )
163
+		} catch( \Exception $e )
166 164
 		{
167 165
 			$error = array( 'product-item-related' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() );
168 166
 			$view->errors = $view->get( 'errors', [] ) + $error;
Please login to merge, or discard this patch.
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 
11 11
 namespace Aimeos\Admin\JQAdm\Product\Related;
12 12
 
13
-sprintf( 'related' ); // for translation
13
+sprintf('related'); // for translation
14 14
 
15 15
 
16 16
 /**
@@ -46,11 +46,11 @@  discard block
 block discarded – undo
46 46
 
47 47
 		$view->relatedBody = '';
48 48
 
49
-		foreach( $this->getSubClients() as $client ) {
49
+		foreach ($this->getSubClients() as $client) {
50 50
 			$view->relatedBody .= $client->copy();
51 51
 		}
52 52
 
53
-		return $this->render( $view );
53
+		return $this->render($view);
54 54
 	}
55 55
 
56 56
 
@@ -65,11 +65,11 @@  discard block
 block discarded – undo
65 65
 
66 66
 		$view->relatedBody = '';
67 67
 
68
-		foreach( $this->getSubClients() as $client ) {
68
+		foreach ($this->getSubClients() as $client) {
69 69
 			$view->relatedBody .= $client->create();
70 70
 		}
71 71
 
72
-		return $this->render( $view );
72
+		return $this->render($view);
73 73
 	}
74 74
 
75 75
 
@@ -84,11 +84,11 @@  discard block
 block discarded – undo
84 84
 
85 85
 		$view->relatedBody = '';
86 86
 
87
-		foreach( $this->getSubClients() as $client ) {
87
+		foreach ($this->getSubClients() as $client) {
88 88
 			$view->relatedBody .= $client->get();
89 89
 		}
90 90
 
91
-		return $this->render( $view );
91
+		return $this->render($view);
92 92
 	}
93 93
 
94 94
 
@@ -103,23 +103,23 @@  discard block
 block discarded – undo
103 103
 		{
104 104
 			$view->relatedBody = '';
105 105
 
106
-			foreach( $this->getSubClients() as $client ) {
106
+			foreach ($this->getSubClients() as $client) {
107 107
 				$view->relatedBody .= $client->save();
108 108
 			}
109 109
 
110 110
 			return;
111 111
 		}
112
-		catch( \Aimeos\MShop\Exception $e )
112
+		catch (\Aimeos\MShop\Exception $e)
113 113
 		{
114
-			$error = array( 'product-item-related' => $this->getContext()->getI18n()->dt( 'mshop', $e->getMessage() ) );
115
-			$view->errors = $view->get( 'errors', [] ) + $error;
116
-			$this->logException( $e );
114
+			$error = array('product-item-related' => $this->getContext()->getI18n()->dt('mshop', $e->getMessage()));
115
+			$view->errors = $view->get('errors', []) + $error;
116
+			$this->logException($e);
117 117
 		}
118
-		catch( \Exception $e )
118
+		catch (\Exception $e)
119 119
 		{
120
-			$error = array( 'product-item-related' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() );
121
-			$view->errors = $view->get( 'errors', [] ) + $error;
122
-			$this->logException( $e );
120
+			$error = array('product-item-related' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine());
121
+			$view->errors = $view->get('errors', []) + $error;
122
+			$this->logException($e);
123 123
 		}
124 124
 
125 125
 		throw new \Aimeos\Admin\JQAdm\Exception();
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
 	 * @param string|null $name Name of the sub-client (Default if null)
134 134
 	 * @return \Aimeos\Admin\JQAdm\Iface Sub-client object
135 135
 	 */
136
-	public function getSubClient( $type, $name = null )
136
+	public function getSubClient($type, $name = null)
137 137
 	{
138 138
 		/** admin/jqadm/product/related/decorators/excludes
139 139
 		 * Excludes decorators added by the "common" option from the product JQAdm client
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
 		 * @see admin/jqadm/product/related/decorators/excludes
209 209
 		 * @see admin/jqadm/product/related/decorators/global
210 210
 		 */
211
-		return $this->createSubClient( 'product/related/' . $type, $name );
211
+		return $this->createSubClient('product/related/' . $type, $name);
212 212
 	}
213 213
 
214 214
 
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
 		 * @since 2016.01
253 253
 		 * @category Developer
254 254
 		 */
255
-		return $this->getContext()->getConfig()->get( 'admin/jqadm/product/related/standard/subparts', [] );
255
+		return $this->getContext()->getConfig()->get('admin/jqadm/product/related/standard/subparts', []);
256 256
 	}
257 257
 
258 258
 
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
 	 * @param \Aimeos\MW\View\Iface $view View object with data assigned
263 263
 	 * @return string HTML output
264 264
 	 */
265
-	protected function render( \Aimeos\MW\View\Iface $view )
265
+	protected function render(\Aimeos\MW\View\Iface $view)
266 266
 	{
267 267
 		/** admin/jqadm/product/related/template-item
268 268
 		 * Relative path to the HTML body template of the related subpart for products.
@@ -286,6 +286,6 @@  discard block
 block discarded – undo
286 286
 		$tplconf = 'admin/jqadm/product/related/template-item';
287 287
 		$default = 'product/item-related-standard.php';
288 288
 
289
-		return $view->render( $view->config( $tplconf, $default ) );
289
+		return $view->render($view->config($tplconf, $default));
290 290
 	}
291 291
 }
292 292
\ No newline at end of file
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Product/Special/Standard.php 2 patches
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -144,14 +144,12 @@
 block discarded – undo
144 144
 			}
145 145
 
146 146
 			return;
147
-		}
148
-		catch( \Aimeos\MShop\Exception $e )
147
+		} catch( \Aimeos\MShop\Exception $e )
149 148
 		{
150 149
 			$error = array( 'product-item-special' => $this->getContext()->getI18n()->dt( 'mshop', $e->getMessage() ) );
151 150
 			$view->errors = $view->get( 'errors', [] ) + $error;
152 151
 			$this->logException( $e );
153
-		}
154
-		catch( \Exception $e )
152
+		} catch( \Exception $e )
155 153
 		{
156 154
 			$error = array( 'product-item-special' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() );
157 155
 			$view->errors = $view->get( 'errors', [] ) + $error;
Please login to merge, or discard this patch.
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 
11 11
 namespace Aimeos\Admin\JQAdm\Product\Special;
12 12
 
13
-sprintf( 'special' ); // for translation
13
+sprintf('special'); // for translation
14 14
 
15 15
 
16 16
 /**
@@ -46,11 +46,11 @@  discard block
 block discarded – undo
46 46
 
47 47
 		$view->specialBody = '';
48 48
 
49
-		foreach( $this->getSubClients() as $client ) {
49
+		foreach ($this->getSubClients() as $client) {
50 50
 			$view->specialBody .= $client->copy();
51 51
 		}
52 52
 
53
-		return $this->render( $view );
53
+		return $this->render($view);
54 54
 	}
55 55
 
56 56
 
@@ -65,11 +65,11 @@  discard block
 block discarded – undo
65 65
 
66 66
 		$view->specialBody = '';
67 67
 
68
-		foreach( $this->getSubClients() as $client ) {
68
+		foreach ($this->getSubClients() as $client) {
69 69
 			$view->specialBody .= $client->create();
70 70
 		}
71 71
 
72
-		return $this->render( $view );
72
+		return $this->render($view);
73 73
 	}
74 74
 
75 75
 
@@ -84,11 +84,11 @@  discard block
 block discarded – undo
84 84
 
85 85
 		$view->specialBody = '';
86 86
 
87
-		foreach( $this->getSubClients() as $client ) {
87
+		foreach ($this->getSubClients() as $client) {
88 88
 			$view->specialBody .= $client->get();
89 89
 		}
90 90
 
91
-		return $this->render( $view );
91
+		return $this->render($view);
92 92
 	}
93 93
 
94 94
 
@@ -103,23 +103,23 @@  discard block
 block discarded – undo
103 103
 		{
104 104
 			$view->specialBody = '';
105 105
 
106
-			foreach( $this->getSubClients() as $client ) {
106
+			foreach ($this->getSubClients() as $client) {
107 107
 				$view->specialBody .= $client->save();
108 108
 			}
109 109
 
110 110
 			return;
111 111
 		}
112
-		catch( \Aimeos\MShop\Exception $e )
112
+		catch (\Aimeos\MShop\Exception $e)
113 113
 		{
114
-			$error = array( 'product-item-special' => $this->getContext()->getI18n()->dt( 'mshop', $e->getMessage() ) );
115
-			$view->errors = $view->get( 'errors', [] ) + $error;
116
-			$this->logException( $e );
114
+			$error = array('product-item-special' => $this->getContext()->getI18n()->dt('mshop', $e->getMessage()));
115
+			$view->errors = $view->get('errors', []) + $error;
116
+			$this->logException($e);
117 117
 		}
118
-		catch( \Exception $e )
118
+		catch (\Exception $e)
119 119
 		{
120
-			$error = array( 'product-item-special' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() );
121
-			$view->errors = $view->get( 'errors', [] ) + $error;
122
-			$this->logException( $e );
120
+			$error = array('product-item-special' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine());
121
+			$view->errors = $view->get('errors', []) + $error;
122
+			$this->logException($e);
123 123
 		}
124 124
 
125 125
 		throw new \Aimeos\Admin\JQAdm\Exception();
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
 	 * @param string|null $name Name of the sub-client (Default if null)
134 134
 	 * @return \Aimeos\Admin\JQAdm\Iface Sub-client object
135 135
 	 */
136
-	public function getSubClient( $type, $name = null )
136
+	public function getSubClient($type, $name = null)
137 137
 	{
138 138
 		/** admin/jqadm/product/special/decorators/excludes
139 139
 		 * Excludes decorators added by the "common" option from the product JQAdm client
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
 		 * @see admin/jqadm/product/special/decorators/excludes
209 209
 		 * @see admin/jqadm/product/special/decorators/global
210 210
 		 */
211
-		return $this->createSubClient( 'product/special/' . $type, $name );
211
+		return $this->createSubClient('product/special/' . $type, $name);
212 212
 	}
213 213
 
214 214
 
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
 		 * @since 2016.03
253 253
 		 * @category Developer
254 254
 		 */
255
-		return $this->getContext()->getConfig()->get( 'admin/jqadm/product/special/standard/subparts', [] );
255
+		return $this->getContext()->getConfig()->get('admin/jqadm/product/special/standard/subparts', []);
256 256
 	}
257 257
 
258 258
 
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
 	 * @param \Aimeos\MW\View\Iface $view View object with data assigned
263 263
 	 * @return string HTML output
264 264
 	 */
265
-	protected function render( \Aimeos\MW\View\Iface $view )
265
+	protected function render(\Aimeos\MW\View\Iface $view)
266 266
 	{
267 267
 		/** admin/jqadm/product/special/template-item
268 268
 		 * Relative path to the HTML body template of the special subpart for products.
@@ -286,6 +286,6 @@  discard block
 block discarded – undo
286 286
 		$tplconf = 'admin/jqadm/product/special/template-item';
287 287
 		$default = 'product/item-special-standard.php';
288 288
 
289
-		return $view->render( $view->config( $tplconf, $default ) );
289
+		return $view->render($view->config($tplconf, $default));
290 290
 	}
291 291
 }
292 292
\ No newline at end of file
Please login to merge, or discard this patch.
admin/jqadm/templates/locale/language/list-standard.php 1 patch
Spacing   +80 added lines, -80 removed lines patch added patch discarded remove patch
@@ -8,30 +8,30 @@  discard block
 block discarded – undo
8 8
 $enc = $this->encoder();
9 9
 
10 10
 
11
-$target = $this->config( 'admin/jqadm/url/search/target' );
12
-$controller = $this->config( 'admin/jqadm/url/search/controller', 'Jqadm' );
13
-$action = $this->config( 'admin/jqadm/url/search/action', 'search' );
14
-$config = $this->config( 'admin/jqadm/url/search/config', [] );
11
+$target = $this->config('admin/jqadm/url/search/target');
12
+$controller = $this->config('admin/jqadm/url/search/controller', 'Jqadm');
13
+$action = $this->config('admin/jqadm/url/search/action', 'search');
14
+$config = $this->config('admin/jqadm/url/search/config', []);
15 15
 
16
-$newTarget = $this->config( 'admin/jqadm/url/create/target' );
17
-$newCntl = $this->config( 'admin/jqadm/url/create/controller', 'Jqadm' );
18
-$newAction = $this->config( 'admin/jqadm/url/create/action', 'create' );
19
-$newConfig = $this->config( 'admin/jqadm/url/create/config', [] );
16
+$newTarget = $this->config('admin/jqadm/url/create/target');
17
+$newCntl = $this->config('admin/jqadm/url/create/controller', 'Jqadm');
18
+$newAction = $this->config('admin/jqadm/url/create/action', 'create');
19
+$newConfig = $this->config('admin/jqadm/url/create/config', []);
20 20
 
21
-$getTarget = $this->config( 'admin/jqadm/url/get/target' );
22
-$getCntl = $this->config( 'admin/jqadm/url/get/controller', 'Jqadm' );
23
-$getAction = $this->config( 'admin/jqadm/url/get/action', 'get' );
24
-$getConfig = $this->config( 'admin/jqadm/url/get/config', [] );
21
+$getTarget = $this->config('admin/jqadm/url/get/target');
22
+$getCntl = $this->config('admin/jqadm/url/get/controller', 'Jqadm');
23
+$getAction = $this->config('admin/jqadm/url/get/action', 'get');
24
+$getConfig = $this->config('admin/jqadm/url/get/config', []);
25 25
 
26
-$copyTarget = $this->config( 'admin/jqadm/url/copy/target' );
27
-$copyCntl = $this->config( 'admin/jqadm/url/copy/controller', 'Jqadm' );
28
-$copyAction = $this->config( 'admin/jqadm/url/copy/action', 'copy' );
29
-$copyConfig = $this->config( 'admin/jqadm/url/copy/config', [] );
26
+$copyTarget = $this->config('admin/jqadm/url/copy/target');
27
+$copyCntl = $this->config('admin/jqadm/url/copy/controller', 'Jqadm');
28
+$copyAction = $this->config('admin/jqadm/url/copy/action', 'copy');
29
+$copyConfig = $this->config('admin/jqadm/url/copy/config', []);
30 30
 
31
-$delTarget = $this->config( 'admin/jqadm/url/delete/target' );
32
-$delCntl = $this->config( 'admin/jqadm/url/delete/controller', 'Jqadm' );
33
-$delAction = $this->config( 'admin/jqadm/url/delete/action', 'delete' );
34
-$delConfig = $this->config( 'admin/jqadm/url/delete/config', [] );
31
+$delTarget = $this->config('admin/jqadm/url/delete/target');
32
+$delCntl = $this->config('admin/jqadm/url/delete/controller', 'Jqadm');
33
+$delAction = $this->config('admin/jqadm/url/delete/action', 'delete');
34
+$delConfig = $this->config('admin/jqadm/url/delete/config', []);
35 35
 
36 36
 
37 37
 /** admin/jqadm/locale/language/fields
@@ -49,37 +49,37 @@  discard block
 block discarded – undo
49 49
  * @category Developer
50 50
  */
51 51
 $default = ['locale.language.status', 'locale.language.code', 'locale.language.label'];
52
-$default = $this->config( 'admin/jqadm/locale/language/fields', $default );
53
-$fields = $this->session( 'aimeos/admin/jqadm/locale/language/fields', $default );
52
+$default = $this->config('admin/jqadm/locale/language/fields', $default);
53
+$fields = $this->session('aimeos/admin/jqadm/locale/language/fields', $default);
54 54
 
55
-$searchParams = $params = $this->get( 'pageParams', [] );
55
+$searchParams = $params = $this->get('pageParams', []);
56 56
 $searchParams['page']['start'] = 0;
57 57
 
58 58
 $columnList = [
59
-	'locale.language.id' => $this->translate( 'admin', 'ID' ),
60
-	'locale.language.status' => $this->translate( 'admin', 'Status' ),
61
-	'locale.language.code' => $this->translate( 'admin', 'Code' ),
62
-	'locale.language.label' => $this->translate( 'admin', 'Label' ),
63
-	'locale.language.ctime' => $this->translate( 'admin', 'Created' ),
64
-	'locale.language.mtime' => $this->translate( 'admin', 'Modified' ),
65
-	'locale.language.editor' => $this->translate( 'admin', 'Editor' ),
59
+	'locale.language.id' => $this->translate('admin', 'ID'),
60
+	'locale.language.status' => $this->translate('admin', 'Status'),
61
+	'locale.language.code' => $this->translate('admin', 'Code'),
62
+	'locale.language.label' => $this->translate('admin', 'Label'),
63
+	'locale.language.ctime' => $this->translate('admin', 'Created'),
64
+	'locale.language.mtime' => $this->translate('admin', 'Modified'),
65
+	'locale.language.editor' => $this->translate('admin', 'Editor'),
66 66
 ];
67 67
 
68 68
 
69 69
 ?>
70
-<?php $this->block()->start( 'jqadm_content' ); ?>
70
+<?php $this->block()->start('jqadm_content'); ?>
71 71
 
72 72
 <nav class="main-navbar">
73 73
 
74 74
 	<span class="navbar-brand">
75
-		<?= $enc->html( $this->translate( 'admin', 'Languages' ) ); ?>
75
+		<?= $enc->html($this->translate('admin', 'Languages')); ?>
76 76
 	</span>
77 77
 
78 78
 	<?= $this->partial(
79
-		$this->config( 'admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard.php' ), [
80
-			'filter' => $this->session( 'aimeos/admin/jqadm/locale/language/filter', [] ),
81
-			'filterAttributes' => $this->get( 'filterAttributes', [] ),
82
-			'filterOperators' => $this->get( 'filterOperators', [] ),
79
+		$this->config('admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard.php'), [
80
+			'filter' => $this->session('aimeos/admin/jqadm/locale/language/filter', []),
81
+			'filterAttributes' => $this->get('filterAttributes', []),
82
+			'filterOperators' => $this->get('filterOperators', []),
83 83
 			'params' => $params,
84 84
 		]
85 85
 	); ?>
@@ -87,13 +87,13 @@  discard block
 block discarded – undo
87 87
 
88 88
 
89 89
 <?= $this->partial(
90
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard.php' ),
91
-		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get( 'total' ),
92
-		'page' => $this->session( 'aimeos/admin/jqadm/locale/language/page', [] )]
90
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard.php'),
91
+		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get('total'),
92
+		'page' => $this->session('aimeos/admin/jqadm/locale/language/page', [])]
93 93
 	);
94 94
 ?>
95 95
 
96
-<form class="list list-locale-language" method="POST" action="<?= $enc->attr( $this->url( $target, $controller, $action, $searchParams, [], $config ) ); ?>">
96
+<form class="list list-locale-language" method="POST" action="<?= $enc->attr($this->url($target, $controller, $action, $searchParams, [], $config)); ?>">
97 97
 	<?= $this->csrf()->formfield(); ?>
98 98
 
99 99
 	<table class="list-items table table-hover table-striped">
@@ -101,20 +101,20 @@  discard block
 block discarded – undo
101 101
 			<tr>
102 102
 
103 103
 				<?= $this->partial(
104
-						$this->config( 'admin/jqadm/partial/listhead', 'common/partials/listhead-standard.php' ),
105
-						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session( 'aimeos/admin/jqadm/locale/language/sort' )]
104
+						$this->config('admin/jqadm/partial/listhead', 'common/partials/listhead-standard.php'),
105
+						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session('aimeos/admin/jqadm/locale/language/sort')]
106 106
 					);
107 107
 				?>
108 108
 
109 109
 				<th class="actions">
110 110
 					<a class="btn fa act-add" tabindex="1"
111
-						href="<?= $enc->attr( $this->url( $newTarget, $newCntl, $newAction, $params, [], $newConfig ) ); ?>"
112
-						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
113
-						aria-label="<?= $enc->attr( $this->translate( 'admin', 'Add' ) ); ?>">
111
+						href="<?= $enc->attr($this->url($newTarget, $newCntl, $newAction, $params, [], $newConfig)); ?>"
112
+						title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
113
+						aria-label="<?= $enc->attr($this->translate('admin', 'Add')); ?>">
114 114
 					</a>
115 115
 
116 116
 					<?= $this->partial(
117
-							$this->config( 'admin/jqadm/partial/columns', 'common/partials/columns-standard.php' ),
117
+							$this->config('admin/jqadm/partial/columns', 'common/partials/columns-standard.php'),
118 118
 							['fields' => $fields, 'data' => $columnList]
119 119
 						);
120 120
 					?>
@@ -124,15 +124,15 @@  discard block
 block discarded – undo
124 124
 		<tbody>
125 125
 
126 126
 			<?= $this->partial(
127
-				$this->config( 'admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard.php' ), [
128
-					'fields' => $fields, 'filter' => $this->session( 'aimeos/admin/jqadm/locale/language/filter', [] ),
127
+				$this->config('admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard.php'), [
128
+					'fields' => $fields, 'filter' => $this->session('aimeos/admin/jqadm/locale/language/filter', []),
129 129
 					'data' => [
130 130
 						'locale.language.id' => ['op' => '=='],
131 131
 						'locale.language.status' => ['op' => '==', 'type' => 'select', 'val' => [
132
-							'1' => $this->translate( 'mshop/code', 'status:1' ),
133
-							'0' => $this->translate( 'mshop/code', 'status:0' ),
134
-							'-1' => $this->translate( 'mshop/code', 'status:-1' ),
135
-							'-2' => $this->translate( 'mshop/code', 'status:-2' ),
132
+							'1' => $this->translate('mshop/code', 'status:1'),
133
+							'0' => $this->translate('mshop/code', 'status:0'),
134
+							'-1' => $this->translate('mshop/code', 'status:-1'),
135
+							'-2' => $this->translate('mshop/code', 'status:-2'),
136 136
 						]],
137 137
 						'locale.language.code' => ['op' => '=='],
138 138
 						'locale.language.label' => [],
@@ -143,58 +143,58 @@  discard block
 block discarded – undo
143 143
 				] );
144 144
 			?>
145 145
 
146
-			<?php foreach( $this->get( 'items', [] ) as $id => $item ) : ?>
147
-				<?php $url = $enc->attr( $this->url( $getTarget, $getCntl, $getAction, ['id' => strtoupper( $id )] + $params, [], $getConfig ) ); ?>
146
+			<?php foreach ($this->get('items', []) as $id => $item) : ?>
147
+				<?php $url = $enc->attr($this->url($getTarget, $getCntl, $getAction, ['id' => strtoupper($id)] + $params, [], $getConfig)); ?>
148 148
 				<tr>
149
-					<?php if( in_array( 'locale.language.id', $fields ) ) : ?>
150
-						<td class="locale-language-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getId() ); ?></a></td>
149
+					<?php if (in_array('locale.language.id', $fields)) : ?>
150
+						<td class="locale-language-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getId()); ?></a></td>
151 151
 					<?php endif; ?>
152
-					<?php if( in_array( 'locale.language.status', $fields ) ) : ?>
153
-						<td class="locale-language-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr( $item->getStatus() ); ?>"></div></a></td>
152
+					<?php if (in_array('locale.language.status', $fields)) : ?>
153
+						<td class="locale-language-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr($item->getStatus()); ?>"></div></a></td>
154 154
 					<?php endif; ?>
155
-					<?php if( in_array( 'locale.language.code', $fields ) ) : ?>
156
-						<td class="locale-language-code"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getCode() ); ?></a></td>
155
+					<?php if (in_array('locale.language.code', $fields)) : ?>
156
+						<td class="locale-language-code"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getCode()); ?></a></td>
157 157
 					<?php endif; ?>
158
-					<?php if( in_array( 'locale.language.label', $fields ) ) : ?>
159
-						<td class="locale-language-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getLabel() ); ?></a></td>
158
+					<?php if (in_array('locale.language.label', $fields)) : ?>
159
+						<td class="locale-language-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getLabel()); ?></a></td>
160 160
 					<?php endif; ?>
161
-					<?php if( in_array( 'locale.language.ctime', $fields ) ) : ?>
162
-						<td class="locale-language-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeCreated() ); ?></a></td>
161
+					<?php if (in_array('locale.language.ctime', $fields)) : ?>
162
+						<td class="locale-language-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeCreated()); ?></a></td>
163 163
 					<?php endif; ?>
164
-					<?php if( in_array( 'locale.language.mtime', $fields ) ) : ?>
165
-						<td class="locale-language-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeModified() ); ?></a></td>
164
+					<?php if (in_array('locale.language.mtime', $fields)) : ?>
165
+						<td class="locale-language-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeModified()); ?></a></td>
166 166
 					<?php endif; ?>
167
-					<?php if( in_array( 'locale.language.editor', $fields ) ) : ?>
168
-						<td class="locale-language-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getEditor() ); ?></a></td>
167
+					<?php if (in_array('locale.language.editor', $fields)) : ?>
168
+						<td class="locale-language-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getEditor()); ?></a></td>
169 169
 					<?php endif; ?>
170 170
 
171 171
 					<td class="actions">
172 172
 						<a class="btn act-copy fa" tabindex="1"
173
-							href="<?= $enc->attr( $this->url( $copyTarget, $copyCntl, $copyAction, ['id' => strtoupper( $id )] + $params, [], $copyConfig ) ); ?>"
174
-							title="<?= $enc->attr( $this->translate( 'admin', 'Copy this entry') ); ?>"
175
-							aria-label="<?= $enc->attr( $this->translate( 'admin', 'Copy' ) ); ?>"></a>
173
+							href="<?= $enc->attr($this->url($copyTarget, $copyCntl, $copyAction, ['id' => strtoupper($id)] + $params, [], $copyConfig)); ?>"
174
+							title="<?= $enc->attr($this->translate('admin', 'Copy this entry')); ?>"
175
+							aria-label="<?= $enc->attr($this->translate('admin', 'Copy')); ?>"></a>
176 176
 						<a class="btn act-delete fa" tabindex="1"
177
-							href="<?= $enc->attr( $this->url( $delTarget, $delCntl, $delAction, ['id' => strtoupper( $id )] + $params, [], $delConfig ) ); ?>"
178
-							title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
179
-							aria-label="<?= $enc->attr( $this->translate( 'admin', 'Delete' ) ); ?>"></a>
177
+							href="<?= $enc->attr($this->url($delTarget, $delCntl, $delAction, ['id' => strtoupper($id)] + $params, [], $delConfig)); ?>"
178
+							title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>"
179
+							aria-label="<?= $enc->attr($this->translate('admin', 'Delete')); ?>"></a>
180 180
 					</td>
181 181
 				</tr>
182 182
 			<?php endforeach; ?>
183 183
 		</tbody>
184 184
 	</table>
185 185
 
186
-	<?php if( $this->get( 'items', [] ) === [] ) : ?>
187
-		<div class="noitems"><?= $enc->html( sprintf( $this->translate( 'admin', 'No items found' ) ) ); ?></div>
186
+	<?php if ($this->get('items', []) === []) : ?>
187
+		<div class="noitems"><?= $enc->html(sprintf($this->translate('admin', 'No items found'))); ?></div>
188 188
 	<?php endif; ?>
189 189
 </form>
190 190
 
191 191
 <?= $this->partial(
192
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard.php' ),
193
-		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get( 'total' ),
194
-		'page' => $this->session( 'aimeos/admin/jqadm/locale/language/page', [] )]
192
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard.php'),
193
+		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get('total'),
194
+		'page' => $this->session('aimeos/admin/jqadm/locale/language/page', [])]
195 195
 	);
196 196
 ?>
197 197
 
198 198
 <?php $this->block()->stop(); ?>
199 199
 
200
-<?= $this->render( $this->config( 'admin/jqadm/template/page', 'common/page-standard.php' ) ); ?>
200
+<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard.php')); ?>
Please login to merge, or discard this patch.
admin/jqadm/templates/locale/currency/list-standard.php 1 patch
Spacing   +80 added lines, -80 removed lines patch added patch discarded remove patch
@@ -8,30 +8,30 @@  discard block
 block discarded – undo
8 8
 $enc = $this->encoder();
9 9
 
10 10
 
11
-$target = $this->config( 'admin/jqadm/url/search/target' );
12
-$controller = $this->config( 'admin/jqadm/url/search/controller', 'Jqadm' );
13
-$action = $this->config( 'admin/jqadm/url/search/action', 'search' );
14
-$config = $this->config( 'admin/jqadm/url/search/config', [] );
11
+$target = $this->config('admin/jqadm/url/search/target');
12
+$controller = $this->config('admin/jqadm/url/search/controller', 'Jqadm');
13
+$action = $this->config('admin/jqadm/url/search/action', 'search');
14
+$config = $this->config('admin/jqadm/url/search/config', []);
15 15
 
16
-$newTarget = $this->config( 'admin/jqadm/url/create/target' );
17
-$newCntl = $this->config( 'admin/jqadm/url/create/controller', 'Jqadm' );
18
-$newAction = $this->config( 'admin/jqadm/url/create/action', 'create' );
19
-$newConfig = $this->config( 'admin/jqadm/url/create/config', [] );
16
+$newTarget = $this->config('admin/jqadm/url/create/target');
17
+$newCntl = $this->config('admin/jqadm/url/create/controller', 'Jqadm');
18
+$newAction = $this->config('admin/jqadm/url/create/action', 'create');
19
+$newConfig = $this->config('admin/jqadm/url/create/config', []);
20 20
 
21
-$getTarget = $this->config( 'admin/jqadm/url/get/target' );
22
-$getCntl = $this->config( 'admin/jqadm/url/get/controller', 'Jqadm' );
23
-$getAction = $this->config( 'admin/jqadm/url/get/action', 'get' );
24
-$getConfig = $this->config( 'admin/jqadm/url/get/config', [] );
21
+$getTarget = $this->config('admin/jqadm/url/get/target');
22
+$getCntl = $this->config('admin/jqadm/url/get/controller', 'Jqadm');
23
+$getAction = $this->config('admin/jqadm/url/get/action', 'get');
24
+$getConfig = $this->config('admin/jqadm/url/get/config', []);
25 25
 
26
-$copyTarget = $this->config( 'admin/jqadm/url/copy/target' );
27
-$copyCntl = $this->config( 'admin/jqadm/url/copy/controller', 'Jqadm' );
28
-$copyAction = $this->config( 'admin/jqadm/url/copy/action', 'copy' );
29
-$copyConfig = $this->config( 'admin/jqadm/url/copy/config', [] );
26
+$copyTarget = $this->config('admin/jqadm/url/copy/target');
27
+$copyCntl = $this->config('admin/jqadm/url/copy/controller', 'Jqadm');
28
+$copyAction = $this->config('admin/jqadm/url/copy/action', 'copy');
29
+$copyConfig = $this->config('admin/jqadm/url/copy/config', []);
30 30
 
31
-$delTarget = $this->config( 'admin/jqadm/url/delete/target' );
32
-$delCntl = $this->config( 'admin/jqadm/url/delete/controller', 'Jqadm' );
33
-$delAction = $this->config( 'admin/jqadm/url/delete/action', 'delete' );
34
-$delConfig = $this->config( 'admin/jqadm/url/delete/config', [] );
31
+$delTarget = $this->config('admin/jqadm/url/delete/target');
32
+$delCntl = $this->config('admin/jqadm/url/delete/controller', 'Jqadm');
33
+$delAction = $this->config('admin/jqadm/url/delete/action', 'delete');
34
+$delConfig = $this->config('admin/jqadm/url/delete/config', []);
35 35
 
36 36
 
37 37
 /** admin/jqadm/locale/currency/fields
@@ -49,37 +49,37 @@  discard block
 block discarded – undo
49 49
  * @category Developer
50 50
  */
51 51
 $default = ['locale.currency.status', 'locale.currency.code', 'locale.currency.label'];
52
-$default = $this->config( 'admin/jqadm/locale/currency/fields', $default );
53
-$fields = $this->session( 'aimeos/admin/jqadm/locale/currency/fields', $default );
52
+$default = $this->config('admin/jqadm/locale/currency/fields', $default);
53
+$fields = $this->session('aimeos/admin/jqadm/locale/currency/fields', $default);
54 54
 
55
-$searchParams = $params = $this->get( 'pageParams', [] );
55
+$searchParams = $params = $this->get('pageParams', []);
56 56
 $searchParams['page']['start'] = 0;
57 57
 
58 58
 $columnList = [
59
-	'locale.currency.id' => $this->translate( 'admin', 'ID' ),
60
-	'locale.currency.status' => $this->translate( 'admin', 'Status' ),
61
-	'locale.currency.code' => $this->translate( 'admin', 'Code' ),
62
-	'locale.currency.label' => $this->translate( 'admin', 'Label' ),
63
-	'locale.currency.ctime' => $this->translate( 'admin', 'Created' ),
64
-	'locale.currency.mtime' => $this->translate( 'admin', 'Modified' ),
65
-	'locale.currency.editor' => $this->translate( 'admin', 'Editor' ),
59
+	'locale.currency.id' => $this->translate('admin', 'ID'),
60
+	'locale.currency.status' => $this->translate('admin', 'Status'),
61
+	'locale.currency.code' => $this->translate('admin', 'Code'),
62
+	'locale.currency.label' => $this->translate('admin', 'Label'),
63
+	'locale.currency.ctime' => $this->translate('admin', 'Created'),
64
+	'locale.currency.mtime' => $this->translate('admin', 'Modified'),
65
+	'locale.currency.editor' => $this->translate('admin', 'Editor'),
66 66
 ];
67 67
 
68 68
 
69 69
 ?>
70
-<?php $this->block()->start( 'jqadm_content' ); ?>
70
+<?php $this->block()->start('jqadm_content'); ?>
71 71
 
72 72
 <nav class="main-navbar">
73 73
 
74 74
 	<span class="navbar-brand">
75
-		<?= $enc->html( $this->translate( 'admin', 'Currencies' ) ); ?>
75
+		<?= $enc->html($this->translate('admin', 'Currencies')); ?>
76 76
 	</span>
77 77
 
78 78
 	<?= $this->partial(
79
-		$this->config( 'admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard.php' ), [
80
-			'filter' => $this->session( 'aimeos/admin/jqadm/locale/currency/filter', [] ),
81
-			'filterAttributes' => $this->get( 'filterAttributes', [] ),
82
-			'filterOperators' => $this->get( 'filterOperators', [] ),
79
+		$this->config('admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard.php'), [
80
+			'filter' => $this->session('aimeos/admin/jqadm/locale/currency/filter', []),
81
+			'filterAttributes' => $this->get('filterAttributes', []),
82
+			'filterOperators' => $this->get('filterOperators', []),
83 83
 			'params' => $params,
84 84
 		]
85 85
 	); ?>
@@ -87,13 +87,13 @@  discard block
 block discarded – undo
87 87
 
88 88
 
89 89
 <?= $this->partial(
90
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard.php' ),
91
-		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get( 'total' ),
92
-		'page' => $this->session( 'aimeos/admin/jqadm/locale/currency/page', [] )]
90
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard.php'),
91
+		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get('total'),
92
+		'page' => $this->session('aimeos/admin/jqadm/locale/currency/page', [])]
93 93
 	);
94 94
 ?>
95 95
 
96
-<form class="list list-locale-currency" method="POST" action="<?= $enc->attr( $this->url( $target, $controller, $action, $searchParams, [], $config ) ); ?>">
96
+<form class="list list-locale-currency" method="POST" action="<?= $enc->attr($this->url($target, $controller, $action, $searchParams, [], $config)); ?>">
97 97
 	<?= $this->csrf()->formfield(); ?>
98 98
 
99 99
 	<table class="list-items table table-hover table-striped">
@@ -101,20 +101,20 @@  discard block
 block discarded – undo
101 101
 			<tr>
102 102
 
103 103
 				<?= $this->partial(
104
-						$this->config( 'admin/jqadm/partial/listhead', 'common/partials/listhead-standard.php' ),
105
-						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session( 'aimeos/admin/jqadm/locale/currency/sort' )]
104
+						$this->config('admin/jqadm/partial/listhead', 'common/partials/listhead-standard.php'),
105
+						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session('aimeos/admin/jqadm/locale/currency/sort')]
106 106
 					);
107 107
 				?>
108 108
 
109 109
 				<th class="actions">
110 110
 					<a class="btn fa act-add" tabindex="1"
111
-						href="<?= $enc->attr( $this->url( $newTarget, $newCntl, $newAction, $params, [], $newConfig ) ); ?>"
112
-						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
113
-						aria-label="<?= $enc->attr( $this->translate( 'admin', 'Add' ) ); ?>">
111
+						href="<?= $enc->attr($this->url($newTarget, $newCntl, $newAction, $params, [], $newConfig)); ?>"
112
+						title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
113
+						aria-label="<?= $enc->attr($this->translate('admin', 'Add')); ?>">
114 114
 					</a>
115 115
 
116 116
 					<?= $this->partial(
117
-							$this->config( 'admin/jqadm/partial/columns', 'common/partials/columns-standard.php' ),
117
+							$this->config('admin/jqadm/partial/columns', 'common/partials/columns-standard.php'),
118 118
 							['fields' => $fields, 'data' => $columnList]
119 119
 						);
120 120
 					?>
@@ -124,15 +124,15 @@  discard block
 block discarded – undo
124 124
 		<tbody>
125 125
 
126 126
 			<?= $this->partial(
127
-				$this->config( 'admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard.php' ), [
128
-					'fields' => $fields, 'filter' => $this->session( 'aimeos/admin/jqadm/locale/currency/filter', [] ),
127
+				$this->config('admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard.php'), [
128
+					'fields' => $fields, 'filter' => $this->session('aimeos/admin/jqadm/locale/currency/filter', []),
129 129
 					'data' => [
130 130
 						'locale.currency.id' => ['op' => '=='],
131 131
 						'locale.currency.status' => ['op' => '==', 'type' => 'select', 'val' => [
132
-							'1' => $this->translate( 'mshop/code', 'status:1' ),
133
-							'0' => $this->translate( 'mshop/code', 'status:0' ),
134
-							'-1' => $this->translate( 'mshop/code', 'status:-1' ),
135
-							'-2' => $this->translate( 'mshop/code', 'status:-2' ),
132
+							'1' => $this->translate('mshop/code', 'status:1'),
133
+							'0' => $this->translate('mshop/code', 'status:0'),
134
+							'-1' => $this->translate('mshop/code', 'status:-1'),
135
+							'-2' => $this->translate('mshop/code', 'status:-2'),
136 136
 						]],
137 137
 						'locale.currency.code' => ['op' => '=='],
138 138
 						'locale.currency.label' => [],
@@ -143,58 +143,58 @@  discard block
 block discarded – undo
143 143
 				] );
144 144
 			?>
145 145
 
146
-			<?php foreach( $this->get( 'items', [] ) as $id => $item ) : ?>
147
-				<?php $url = $enc->attr( $this->url( $getTarget, $getCntl, $getAction, ['id' => strtoupper( $id )] + $params, [], $getConfig ) ); ?>
146
+			<?php foreach ($this->get('items', []) as $id => $item) : ?>
147
+				<?php $url = $enc->attr($this->url($getTarget, $getCntl, $getAction, ['id' => strtoupper($id)] + $params, [], $getConfig)); ?>
148 148
 				<tr>
149
-					<?php if( in_array( 'locale.currency.id', $fields ) ) : ?>
150
-						<td class="locale-currency-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getId() ); ?></a></td>
149
+					<?php if (in_array('locale.currency.id', $fields)) : ?>
150
+						<td class="locale-currency-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getId()); ?></a></td>
151 151
 					<?php endif; ?>
152
-					<?php if( in_array( 'locale.currency.status', $fields ) ) : ?>
153
-						<td class="locale-currency-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr( $item->getStatus() ); ?>"></div></a></td>
152
+					<?php if (in_array('locale.currency.status', $fields)) : ?>
153
+						<td class="locale-currency-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr($item->getStatus()); ?>"></div></a></td>
154 154
 					<?php endif; ?>
155
-					<?php if( in_array( 'locale.currency.code', $fields ) ) : ?>
156
-						<td class="locale-currency-code"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getCode() ); ?></a></td>
155
+					<?php if (in_array('locale.currency.code', $fields)) : ?>
156
+						<td class="locale-currency-code"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getCode()); ?></a></td>
157 157
 					<?php endif; ?>
158
-					<?php if( in_array( 'locale.currency.label', $fields ) ) : ?>
159
-						<td class="locale-currency-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getLabel() ); ?></a></td>
158
+					<?php if (in_array('locale.currency.label', $fields)) : ?>
159
+						<td class="locale-currency-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getLabel()); ?></a></td>
160 160
 					<?php endif; ?>
161
-					<?php if( in_array( 'locale.currency.ctime', $fields ) ) : ?>
162
-						<td class="locale-currency-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeCreated() ); ?></a></td>
161
+					<?php if (in_array('locale.currency.ctime', $fields)) : ?>
162
+						<td class="locale-currency-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeCreated()); ?></a></td>
163 163
 					<?php endif; ?>
164
-					<?php if( in_array( 'locale.currency.mtime', $fields ) ) : ?>
165
-						<td class="locale-currency-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeModified() ); ?></a></td>
164
+					<?php if (in_array('locale.currency.mtime', $fields)) : ?>
165
+						<td class="locale-currency-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeModified()); ?></a></td>
166 166
 					<?php endif; ?>
167
-					<?php if( in_array( 'locale.currency.editor', $fields ) ) : ?>
168
-						<td class="locale-currency-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getEditor() ); ?></a></td>
167
+					<?php if (in_array('locale.currency.editor', $fields)) : ?>
168
+						<td class="locale-currency-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getEditor()); ?></a></td>
169 169
 					<?php endif; ?>
170 170
 
171 171
 					<td class="actions">
172 172
 						<a class="btn act-copy fa" tabindex="1"
173
-							href="<?= $enc->attr( $this->url( $copyTarget, $copyCntl, $copyAction, ['id' => strtoupper( $id )] + $params, [], $copyConfig ) ); ?>"
174
-							title="<?= $enc->attr( $this->translate( 'admin', 'Copy this entry') ); ?>"
175
-							aria-label="<?= $enc->attr( $this->translate( 'admin', 'Copy' ) ); ?>"></a>
173
+							href="<?= $enc->attr($this->url($copyTarget, $copyCntl, $copyAction, ['id' => strtoupper($id)] + $params, [], $copyConfig)); ?>"
174
+							title="<?= $enc->attr($this->translate('admin', 'Copy this entry')); ?>"
175
+							aria-label="<?= $enc->attr($this->translate('admin', 'Copy')); ?>"></a>
176 176
 						<a class="btn act-delete fa" tabindex="1"
177
-							href="<?= $enc->attr( $this->url( $delTarget, $delCntl, $delAction, ['id' => strtoupper( $id )] + $params, [], $delConfig ) ); ?>"
178
-							title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
179
-							aria-label="<?= $enc->attr( $this->translate( 'admin', 'Delete' ) ); ?>"></a>
177
+							href="<?= $enc->attr($this->url($delTarget, $delCntl, $delAction, ['id' => strtoupper($id)] + $params, [], $delConfig)); ?>"
178
+							title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>"
179
+							aria-label="<?= $enc->attr($this->translate('admin', 'Delete')); ?>"></a>
180 180
 					</td>
181 181
 				</tr>
182 182
 			<?php endforeach; ?>
183 183
 		</tbody>
184 184
 	</table>
185 185
 
186
-	<?php if( $this->get( 'items', [] ) === [] ) : ?>
187
-		<div class="noitems"><?= $enc->html( sprintf( $this->translate( 'admin', 'No items found' ) ) ); ?></div>
186
+	<?php if ($this->get('items', []) === []) : ?>
187
+		<div class="noitems"><?= $enc->html(sprintf($this->translate('admin', 'No items found'))); ?></div>
188 188
 	<?php endif; ?>
189 189
 </form>
190 190
 
191 191
 <?= $this->partial(
192
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard.php' ),
193
-		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get( 'total' ),
194
-		'page' => $this->session( 'aimeos/admin/jqadm/locale/currency/page', [] )]
192
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard.php'),
193
+		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get('total'),
194
+		'page' => $this->session('aimeos/admin/jqadm/locale/currency/page', [])]
195 195
 	);
196 196
 ?>
197 197
 
198 198
 <?php $this->block()->stop(); ?>
199 199
 
200
-<?= $this->render( $this->config( 'admin/jqadm/template/page', 'common/page-standard.php' ) ); ?>
200
+<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard.php')); ?>
Please login to merge, or discard this patch.
admin/jqadm/templates/locale/site/list-standard.php 1 patch
Spacing   +87 added lines, -87 removed lines patch added patch discarded remove patch
@@ -8,30 +8,30 @@  discard block
 block discarded – undo
8 8
 $enc = $this->encoder();
9 9
 
10 10
 
11
-$target = $this->config( 'admin/jqadm/url/search/target' );
12
-$controller = $this->config( 'admin/jqadm/url/search/controller', 'Jqadm' );
13
-$action = $this->config( 'admin/jqadm/url/search/action', 'search' );
14
-$config = $this->config( 'admin/jqadm/url/search/config', [] );
11
+$target = $this->config('admin/jqadm/url/search/target');
12
+$controller = $this->config('admin/jqadm/url/search/controller', 'Jqadm');
13
+$action = $this->config('admin/jqadm/url/search/action', 'search');
14
+$config = $this->config('admin/jqadm/url/search/config', []);
15 15
 
16
-$newTarget = $this->config( 'admin/jqadm/url/create/target' );
17
-$newCntl = $this->config( 'admin/jqadm/url/create/controller', 'Jqadm' );
18
-$newAction = $this->config( 'admin/jqadm/url/create/action', 'create' );
19
-$newConfig = $this->config( 'admin/jqadm/url/create/config', [] );
16
+$newTarget = $this->config('admin/jqadm/url/create/target');
17
+$newCntl = $this->config('admin/jqadm/url/create/controller', 'Jqadm');
18
+$newAction = $this->config('admin/jqadm/url/create/action', 'create');
19
+$newConfig = $this->config('admin/jqadm/url/create/config', []);
20 20
 
21
-$getTarget = $this->config( 'admin/jqadm/url/get/target' );
22
-$getCntl = $this->config( 'admin/jqadm/url/get/controller', 'Jqadm' );
23
-$getAction = $this->config( 'admin/jqadm/url/get/action', 'get' );
24
-$getConfig = $this->config( 'admin/jqadm/url/get/config', [] );
21
+$getTarget = $this->config('admin/jqadm/url/get/target');
22
+$getCntl = $this->config('admin/jqadm/url/get/controller', 'Jqadm');
23
+$getAction = $this->config('admin/jqadm/url/get/action', 'get');
24
+$getConfig = $this->config('admin/jqadm/url/get/config', []);
25 25
 
26
-$copyTarget = $this->config( 'admin/jqadm/url/copy/target' );
27
-$copyCntl = $this->config( 'admin/jqadm/url/copy/controller', 'Jqadm' );
28
-$copyAction = $this->config( 'admin/jqadm/url/copy/action', 'copy' );
29
-$copyConfig = $this->config( 'admin/jqadm/url/copy/config', [] );
26
+$copyTarget = $this->config('admin/jqadm/url/copy/target');
27
+$copyCntl = $this->config('admin/jqadm/url/copy/controller', 'Jqadm');
28
+$copyAction = $this->config('admin/jqadm/url/copy/action', 'copy');
29
+$copyConfig = $this->config('admin/jqadm/url/copy/config', []);
30 30
 
31
-$delTarget = $this->config( 'admin/jqadm/url/delete/target' );
32
-$delCntl = $this->config( 'admin/jqadm/url/delete/controller', 'Jqadm' );
33
-$delAction = $this->config( 'admin/jqadm/url/delete/action', 'delete' );
34
-$delConfig = $this->config( 'admin/jqadm/url/delete/config', [] );
31
+$delTarget = $this->config('admin/jqadm/url/delete/target');
32
+$delCntl = $this->config('admin/jqadm/url/delete/controller', 'Jqadm');
33
+$delAction = $this->config('admin/jqadm/url/delete/action', 'delete');
34
+$delConfig = $this->config('admin/jqadm/url/delete/config', []);
35 35
 
36 36
 
37 37
 /** admin/jqadm/locale/site/fields
@@ -49,38 +49,38 @@  discard block
 block discarded – undo
49 49
  * @category Developer
50 50
  */
51 51
 $default = ['locale.site.status', 'locale.site.code', 'locale.site.label', 'locale.site.config'];
52
-$default = $this->config( 'admin/jqadm/locale/site/fields', $default );
53
-$fields = $this->session( 'aimeos/admin/jqadm/locale/site/fields', $default );
52
+$default = $this->config('admin/jqadm/locale/site/fields', $default);
53
+$fields = $this->session('aimeos/admin/jqadm/locale/site/fields', $default);
54 54
 
55
-$searchParams = $params = $this->get( 'pageParams', [] );
55
+$searchParams = $params = $this->get('pageParams', []);
56 56
 $searchParams['page']['start'] = 0;
57 57
 
58 58
 $columnList = [
59
-	'locale.site.id' => $this->translate( 'admin', 'ID' ),
60
-	'locale.site.status' => $this->translate( 'admin', 'Status' ),
61
-	'locale.site.code' => $this->translate( 'admin', 'Code' ),
62
-	'locale.site.label' => $this->translate( 'admin', 'Label' ),
63
-	'locale.site.config' => $this->translate( 'admin', 'Config' ),
64
-	'locale.site.ctime' => $this->translate( 'admin', 'Created' ),
65
-	'locale.site.mtime' => $this->translate( 'admin', 'Modified' ),
66
-	'locale.site.editor' => $this->translate( 'admin', 'Editor' ),
59
+	'locale.site.id' => $this->translate('admin', 'ID'),
60
+	'locale.site.status' => $this->translate('admin', 'Status'),
61
+	'locale.site.code' => $this->translate('admin', 'Code'),
62
+	'locale.site.label' => $this->translate('admin', 'Label'),
63
+	'locale.site.config' => $this->translate('admin', 'Config'),
64
+	'locale.site.ctime' => $this->translate('admin', 'Created'),
65
+	'locale.site.mtime' => $this->translate('admin', 'Modified'),
66
+	'locale.site.editor' => $this->translate('admin', 'Editor'),
67 67
 ];
68 68
 
69 69
 
70 70
 ?>
71
-<?php $this->block()->start( 'jqadm_content' ); ?>
71
+<?php $this->block()->start('jqadm_content'); ?>
72 72
 
73 73
 <nav class="main-navbar">
74 74
 
75 75
 	<span class="navbar-brand">
76
-		<?= $enc->html( $this->translate( 'admin', 'Sites' ) ); ?>
76
+		<?= $enc->html($this->translate('admin', 'Sites')); ?>
77 77
 	</span>
78 78
 
79 79
 	<?= $this->partial(
80
-		$this->config( 'admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard.php' ), [
81
-			'filter' => $this->session( 'aimeos/admin/jqadm/locale/site/filter', [] ),
82
-			'filterAttributes' => $this->get( 'filterAttributes', [] ),
83
-			'filterOperators' => $this->get( 'filterOperators', [] ),
80
+		$this->config('admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard.php'), [
81
+			'filter' => $this->session('aimeos/admin/jqadm/locale/site/filter', []),
82
+			'filterAttributes' => $this->get('filterAttributes', []),
83
+			'filterOperators' => $this->get('filterOperators', []),
84 84
 			'params' => $params,
85 85
 		]
86 86
 	); ?>
@@ -88,13 +88,13 @@  discard block
 block discarded – undo
88 88
 
89 89
 
90 90
 <?= $this->partial(
91
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard.php' ),
92
-		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get( 'total' ),
93
-		'page' => $this->session( 'aimeos/admin/jqadm/locale/site/page', [] )]
91
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard.php'),
92
+		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get('total'),
93
+		'page' => $this->session('aimeos/admin/jqadm/locale/site/page', [])]
94 94
 	);
95 95
 ?>
96 96
 
97
-<form class="list list-locale-site" method="POST" action="<?= $enc->attr( $this->url( $target, $controller, $action, $searchParams, [], $config ) ); ?>">
97
+<form class="list list-locale-site" method="POST" action="<?= $enc->attr($this->url($target, $controller, $action, $searchParams, [], $config)); ?>">
98 98
 	<?= $this->csrf()->formfield(); ?>
99 99
 
100 100
 	<table class="list-items table table-hover table-striped">
@@ -102,22 +102,22 @@  discard block
 block discarded – undo
102 102
 			<tr>
103 103
 
104 104
 				<?= $this->partial(
105
-						$this->config( 'admin/jqadm/partial/listhead', 'common/partials/listhead-standard.php' ),
106
-						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session( 'aimeos/admin/jqadm/locale/site/sort' )]
105
+						$this->config('admin/jqadm/partial/listhead', 'common/partials/listhead-standard.php'),
106
+						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session('aimeos/admin/jqadm/locale/site/sort')]
107 107
 					);
108 108
 				?>
109 109
 
110 110
 				<th class="actions">
111
-					<?php if( $this->access( 'super' ) ) : ?>
111
+					<?php if ($this->access('super')) : ?>
112 112
 						<a class="btn fa act-add" tabindex="1"
113
-							href="<?= $enc->attr( $this->url( $newTarget, $newCntl, $newAction, $params, [], $newConfig ) ); ?>"
114
-							title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
115
-							aria-label="<?= $enc->attr( $this->translate( 'admin', 'Add' ) ); ?>">
113
+							href="<?= $enc->attr($this->url($newTarget, $newCntl, $newAction, $params, [], $newConfig)); ?>"
114
+							title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
115
+							aria-label="<?= $enc->attr($this->translate('admin', 'Add')); ?>">
116 116
 						</a>
117 117
 					<?php endif; ?>
118 118
 
119 119
 					<?= $this->partial(
120
-							$this->config( 'admin/jqadm/partial/columns', 'common/partials/columns-standard.php' ),
120
+							$this->config('admin/jqadm/partial/columns', 'common/partials/columns-standard.php'),
121 121
 							['fields' => $fields, 'data' => $columnList]
122 122
 						);
123 123
 					?>
@@ -127,15 +127,15 @@  discard block
 block discarded – undo
127 127
 		<tbody>
128 128
 
129 129
 			<?= $this->partial(
130
-				$this->config( 'admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard.php' ), [
131
-					'fields' => $fields, 'filter' => $this->session( 'aimeos/admin/jqadm/locale/site/filter', [] ),
130
+				$this->config('admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard.php'), [
131
+					'fields' => $fields, 'filter' => $this->session('aimeos/admin/jqadm/locale/site/filter', []),
132 132
 					'data' => [
133 133
 						'locale.site.id' => ['op' => '=='],
134 134
 						'locale.site.status' => ['op' => '==', 'type' => 'select', 'val' => [
135
-							'1' => $this->translate( 'mshop/code', 'status:1' ),
136
-							'0' => $this->translate( 'mshop/code', 'status:0' ),
137
-							'-1' => $this->translate( 'mshop/code', 'status:-1' ),
138
-							'-2' => $this->translate( 'mshop/code', 'status:-2' ),
135
+							'1' => $this->translate('mshop/code', 'status:1'),
136
+							'0' => $this->translate('mshop/code', 'status:0'),
137
+							'-1' => $this->translate('mshop/code', 'status:-1'),
138
+							'-2' => $this->translate('mshop/code', 'status:-2'),
139 139
 						]],
140 140
 						'locale.site.code' => [],
141 141
 						'locale.site.label' => [],
@@ -147,52 +147,52 @@  discard block
 block discarded – undo
147 147
 				] );
148 148
 			?>
149 149
 
150
-			<?php foreach( $this->get( 'items', [] ) as $id => $item ) : ?>
151
-				<?php $url = $enc->attr( $this->url( $getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig ) ); ?>
150
+			<?php foreach ($this->get('items', []) as $id => $item) : ?>
151
+				<?php $url = $enc->attr($this->url($getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig)); ?>
152 152
 				<tr>
153
-					<?php if( in_array( 'locale.site.id', $fields ) ) : ?>
154
-						<td class="locale-site-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getId() ); ?></a></td>
153
+					<?php if (in_array('locale.site.id', $fields)) : ?>
154
+						<td class="locale-site-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getId()); ?></a></td>
155 155
 					<?php endif; ?>
156
-					<?php if( in_array( 'locale.site.status', $fields ) ) : ?>
157
-						<td class="locale-site-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr( $item->getStatus() ); ?>"></div></a></td>
156
+					<?php if (in_array('locale.site.status', $fields)) : ?>
157
+						<td class="locale-site-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr($item->getStatus()); ?>"></div></a></td>
158 158
 					<?php endif; ?>
159
-					<?php if( in_array( 'locale.site.code', $fields ) ) : ?>
160
-						<td class="locale-site-code"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getCode() ); ?></a></td>
159
+					<?php if (in_array('locale.site.code', $fields)) : ?>
160
+						<td class="locale-site-code"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getCode()); ?></a></td>
161 161
 					<?php endif; ?>
162
-					<?php if( in_array( 'locale.site.label', $fields ) ) : ?>
163
-						<td class="locale-site-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getLabel() ); ?></a></td>
162
+					<?php if (in_array('locale.site.label', $fields)) : ?>
163
+						<td class="locale-site-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getLabel()); ?></a></td>
164 164
 					<?php endif; ?>
165
-					<?php if( in_array( 'locale.site.config', $fields ) ) : ?>
165
+					<?php if (in_array('locale.site.config', $fields)) : ?>
166 166
 						<td class="locale.site-config config-item">
167 167
 							<a class="items-field" href="<?= $url; ?>">
168
-								<?php foreach( $item->getConfig() as $key => $value ) : ?>
169
-									<span class="config-key"><?= $enc->html( $key ); ?></span>
170
-									<span class="config-value"><?= $enc->html( !is_scalar( $value ) ? json_encode( $value ) : $value ); ?></span>
168
+								<?php foreach ($item->getConfig() as $key => $value) : ?>
169
+									<span class="config-key"><?= $enc->html($key); ?></span>
170
+									<span class="config-value"><?= $enc->html(!is_scalar($value) ? json_encode($value) : $value); ?></span>
171 171
 									<br/>
172 172
 								<?php endforeach; ?>
173 173
 							</a>
174 174
 						</td>
175 175
 					<?php endif; ?>
176
-					<?php if( in_array( 'locale.site.ctime', $fields ) ) : ?>
177
-						<td class="locale-site-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeCreated() ); ?></a></td>
176
+					<?php if (in_array('locale.site.ctime', $fields)) : ?>
177
+						<td class="locale-site-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeCreated()); ?></a></td>
178 178
 					<?php endif; ?>
179
-					<?php if( in_array( 'locale.site.mtime', $fields ) ) : ?>
180
-						<td class="locale-site-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeModified() ); ?></a></td>
179
+					<?php if (in_array('locale.site.mtime', $fields)) : ?>
180
+						<td class="locale-site-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeModified()); ?></a></td>
181 181
 					<?php endif; ?>
182
-					<?php if( in_array( 'locale.site.editor', $fields ) ) : ?>
183
-						<td class="locale-site-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getEditor() ); ?></a></td>
182
+					<?php if (in_array('locale.site.editor', $fields)) : ?>
183
+						<td class="locale-site-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getEditor()); ?></a></td>
184 184
 					<?php endif; ?>
185 185
 
186 186
 					<td class="actions">
187
-						<?php if( $this->access( 'super' ) ) : ?>
187
+						<?php if ($this->access('super')) : ?>
188 188
 							<a class="btn act-copy fa" tabindex="1"
189
-								href="<?= $enc->attr( $this->url( $copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig ) ); ?>"
190
-								title="<?= $enc->attr( $this->translate( 'admin', 'Copy this entry') ); ?>"
191
-								aria-label="<?= $enc->attr( $this->translate( 'admin', 'Copy' ) ); ?>"></a>
189
+								href="<?= $enc->attr($this->url($copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig)); ?>"
190
+								title="<?= $enc->attr($this->translate('admin', 'Copy this entry')); ?>"
191
+								aria-label="<?= $enc->attr($this->translate('admin', 'Copy')); ?>"></a>
192 192
 							<a class="btn act-delete fa" tabindex="1"
193
-								href="<?= $enc->attr( $this->url( $delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig ) ); ?>"
194
-								title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
195
-								aria-label="<?= $enc->attr( $this->translate( 'admin', 'Delete' ) ); ?>"></a>
193
+								href="<?= $enc->attr($this->url($delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig)); ?>"
194
+								title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>"
195
+								aria-label="<?= $enc->attr($this->translate('admin', 'Delete')); ?>"></a>
196 196
 						<?php endif; ?>
197 197
 					</td>
198 198
 				</tr>
@@ -200,18 +200,18 @@  discard block
 block discarded – undo
200 200
 		</tbody>
201 201
 	</table>
202 202
 
203
-	<?php if( $this->get( 'items', [] ) === [] ) : ?>
204
-		<div class="noitems"><?= $enc->html( sprintf( $this->translate( 'admin', 'No items found' ) ) ); ?></div>
203
+	<?php if ($this->get('items', []) === []) : ?>
204
+		<div class="noitems"><?= $enc->html(sprintf($this->translate('admin', 'No items found'))); ?></div>
205 205
 	<?php endif; ?>
206 206
 </form>
207 207
 
208 208
 <?= $this->partial(
209
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard.php' ),
210
-		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get( 'total' ),
211
-		'page' => $this->session( 'aimeos/admin/jqadm/locale/site/page', [] )]
209
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard.php'),
210
+		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get('total'),
211
+		'page' => $this->session('aimeos/admin/jqadm/locale/site/page', [])]
212 212
 	);
213 213
 ?>
214 214
 
215 215
 <?php $this->block()->stop(); ?>
216 216
 
217
-<?= $this->render( $this->config( 'admin/jqadm/template/page', 'common/page-standard.php' ) ); ?>
217
+<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard.php')); ?>
Please login to merge, or discard this patch.
admin/jqadm/templates/locale/list-standard.php 1 patch
Spacing   +86 added lines, -86 removed lines patch added patch discarded remove patch
@@ -8,30 +8,30 @@  discard block
 block discarded – undo
8 8
 $enc = $this->encoder();
9 9
 
10 10
 
11
-$target = $this->config( 'admin/jqadm/url/search/target' );
12
-$controller = $this->config( 'admin/jqadm/url/search/controller', 'Jqadm' );
13
-$action = $this->config( 'admin/jqadm/url/search/action', 'search' );
14
-$config = $this->config( 'admin/jqadm/url/search/config', [] );
11
+$target = $this->config('admin/jqadm/url/search/target');
12
+$controller = $this->config('admin/jqadm/url/search/controller', 'Jqadm');
13
+$action = $this->config('admin/jqadm/url/search/action', 'search');
14
+$config = $this->config('admin/jqadm/url/search/config', []);
15 15
 
16
-$newTarget = $this->config( 'admin/jqadm/url/create/target' );
17
-$newCntl = $this->config( 'admin/jqadm/url/create/controller', 'Jqadm' );
18
-$newAction = $this->config( 'admin/jqadm/url/create/action', 'create' );
19
-$newConfig = $this->config( 'admin/jqadm/url/create/config', [] );
16
+$newTarget = $this->config('admin/jqadm/url/create/target');
17
+$newCntl = $this->config('admin/jqadm/url/create/controller', 'Jqadm');
18
+$newAction = $this->config('admin/jqadm/url/create/action', 'create');
19
+$newConfig = $this->config('admin/jqadm/url/create/config', []);
20 20
 
21
-$getTarget = $this->config( 'admin/jqadm/url/get/target' );
22
-$getCntl = $this->config( 'admin/jqadm/url/get/controller', 'Jqadm' );
23
-$getAction = $this->config( 'admin/jqadm/url/get/action', 'get' );
24
-$getConfig = $this->config( 'admin/jqadm/url/get/config', [] );
21
+$getTarget = $this->config('admin/jqadm/url/get/target');
22
+$getCntl = $this->config('admin/jqadm/url/get/controller', 'Jqadm');
23
+$getAction = $this->config('admin/jqadm/url/get/action', 'get');
24
+$getConfig = $this->config('admin/jqadm/url/get/config', []);
25 25
 
26
-$copyTarget = $this->config( 'admin/jqadm/url/copy/target' );
27
-$copyCntl = $this->config( 'admin/jqadm/url/copy/controller', 'Jqadm' );
28
-$copyAction = $this->config( 'admin/jqadm/url/copy/action', 'copy' );
29
-$copyConfig = $this->config( 'admin/jqadm/url/copy/config', [] );
26
+$copyTarget = $this->config('admin/jqadm/url/copy/target');
27
+$copyCntl = $this->config('admin/jqadm/url/copy/controller', 'Jqadm');
28
+$copyAction = $this->config('admin/jqadm/url/copy/action', 'copy');
29
+$copyConfig = $this->config('admin/jqadm/url/copy/config', []);
30 30
 
31
-$delTarget = $this->config( 'admin/jqadm/url/delete/target' );
32
-$delCntl = $this->config( 'admin/jqadm/url/delete/controller', 'Jqadm' );
33
-$delAction = $this->config( 'admin/jqadm/url/delete/action', 'delete' );
34
-$delConfig = $this->config( 'admin/jqadm/url/delete/config', [] );
31
+$delTarget = $this->config('admin/jqadm/url/delete/target');
32
+$delCntl = $this->config('admin/jqadm/url/delete/controller', 'Jqadm');
33
+$delAction = $this->config('admin/jqadm/url/delete/action', 'delete');
34
+$delConfig = $this->config('admin/jqadm/url/delete/config', []);
35 35
 
36 36
 
37 37
 /** admin/jqadm/locale/fields
@@ -49,39 +49,39 @@  discard block
 block discarded – undo
49 49
  * @category Developer
50 50
  */
51 51
 $default = ['locale.status', 'locale.languageid', 'locale.currencyid', 'locale.position'];
52
-$default = $this->config( 'admin/jqadm/locale/fields', $default );
53
-$fields = $this->session( 'aimeos/admin/jqadm/locale/fields', $default );
52
+$default = $this->config('admin/jqadm/locale/fields', $default);
53
+$fields = $this->session('aimeos/admin/jqadm/locale/fields', $default);
54 54
 
55
-$searchParams = $params = $this->get( 'pageParams', [] );
55
+$searchParams = $params = $this->get('pageParams', []);
56 56
 $searchParams['page']['start'] = 0;
57 57
 
58 58
 $columnList = [
59
-	'locale.id' => $this->translate( 'admin', 'ID' ),
60
-	'locale.status' => $this->translate( 'admin', 'Status' ),
61
-	'locale.languageid' => $this->translate( 'admin', 'Language' ),
62
-	'locale.currencyid' => $this->translate( 'admin', 'Currency' ),
63
-	'locale.position' => $this->translate( 'admin', 'Position' ),
64
-	'locale.ctime' => $this->translate( 'admin', 'Created' ),
65
-	'locale.mtime' => $this->translate( 'admin', 'Modified' ),
66
-	'locale.editor' => $this->translate( 'admin', 'Editor' ),
59
+	'locale.id' => $this->translate('admin', 'ID'),
60
+	'locale.status' => $this->translate('admin', 'Status'),
61
+	'locale.languageid' => $this->translate('admin', 'Language'),
62
+	'locale.currencyid' => $this->translate('admin', 'Currency'),
63
+	'locale.position' => $this->translate('admin', 'Position'),
64
+	'locale.ctime' => $this->translate('admin', 'Created'),
65
+	'locale.mtime' => $this->translate('admin', 'Modified'),
66
+	'locale.editor' => $this->translate('admin', 'Editor'),
67 67
 ];
68 68
 
69 69
 
70 70
 ?>
71
-<?php $this->block()->start( 'jqadm_content' ); ?>
71
+<?php $this->block()->start('jqadm_content'); ?>
72 72
 
73 73
 <nav class="main-navbar">
74 74
 
75 75
 	<span class="navbar-brand">
76
-		<?= $enc->html( $this->translate( 'admin', 'Locale' ) ); ?>
77
-		<span class="navbar-secondary">(<?= $enc->html( $this->site()->label() ); ?>)</span>
76
+		<?= $enc->html($this->translate('admin', 'Locale')); ?>
77
+		<span class="navbar-secondary">(<?= $enc->html($this->site()->label()); ?>)</span>
78 78
 	</span>
79 79
 
80 80
 	<?= $this->partial(
81
-		$this->config( 'admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard.php' ), [
82
-			'filter' => $this->session( 'aimeos/admin/jqadm/locale/filter', [] ),
83
-			'filterAttributes' => $this->get( 'filterAttributes', [] ),
84
-			'filterOperators' => $this->get( 'filterOperators', [] ),
81
+		$this->config('admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard.php'), [
82
+			'filter' => $this->session('aimeos/admin/jqadm/locale/filter', []),
83
+			'filterAttributes' => $this->get('filterAttributes', []),
84
+			'filterOperators' => $this->get('filterOperators', []),
85 85
 			'params' => $params,
86 86
 		]
87 87
 	); ?>
@@ -89,13 +89,13 @@  discard block
 block discarded – undo
89 89
 
90 90
 
91 91
 <?= $this->partial(
92
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard.php' ),
93
-		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get( 'total' ),
94
-		'page' => $this->session( 'aimeos/admin/jqadm/locale/page', [] )]
92
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard.php'),
93
+		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get('total'),
94
+		'page' => $this->session('aimeos/admin/jqadm/locale/page', [])]
95 95
 	);
96 96
 ?>
97 97
 
98
-<form class="list list-locale" method="POST" action="<?= $enc->attr( $this->url( $target, $controller, $action, $searchParams, [], $config ) ); ?>">
98
+<form class="list list-locale" method="POST" action="<?= $enc->attr($this->url($target, $controller, $action, $searchParams, [], $config)); ?>">
99 99
 	<?= $this->csrf()->formfield(); ?>
100 100
 
101 101
 	<table class="list-items table table-hover table-striped">
@@ -103,20 +103,20 @@  discard block
 block discarded – undo
103 103
 			<tr>
104 104
 
105 105
 				<?= $this->partial(
106
-						$this->config( 'admin/jqadm/partial/listhead', 'common/partials/listhead-standard.php' ),
107
-						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session( 'aimeos/admin/jqadm/locale/sort' )]
106
+						$this->config('admin/jqadm/partial/listhead', 'common/partials/listhead-standard.php'),
107
+						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session('aimeos/admin/jqadm/locale/sort')]
108 108
 					);
109 109
 				?>
110 110
 
111 111
 				<th class="actions">
112 112
 					<a class="btn fa act-add" tabindex="1"
113
-						href="<?= $enc->attr( $this->url( $newTarget, $newCntl, $newAction, $params, [], $newConfig ) ); ?>"
114
-						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
115
-						aria-label="<?= $enc->attr( $this->translate( 'admin', 'Add' ) ); ?>">
113
+						href="<?= $enc->attr($this->url($newTarget, $newCntl, $newAction, $params, [], $newConfig)); ?>"
114
+						title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
115
+						aria-label="<?= $enc->attr($this->translate('admin', 'Add')); ?>">
116 116
 					</a>
117 117
 
118 118
 					<?= $this->partial(
119
-							$this->config( 'admin/jqadm/partial/columns', 'common/partials/columns-standard.php' ),
119
+							$this->config('admin/jqadm/partial/columns', 'common/partials/columns-standard.php'),
120 120
 							['fields' => $fields, 'data' => $columnList]
121 121
 						);
122 122
 					?>
@@ -126,15 +126,15 @@  discard block
 block discarded – undo
126 126
 		<tbody>
127 127
 
128 128
 			<?= $this->partial(
129
-				$this->config( 'admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard.php' ), [
130
-					'fields' => $fields, 'filter' => $this->session( 'aimeos/admin/jqadm/locale/filter', [] ),
129
+				$this->config('admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard.php'), [
130
+					'fields' => $fields, 'filter' => $this->session('aimeos/admin/jqadm/locale/filter', []),
131 131
 					'data' => [
132 132
 						'locale.id' => ['op' => '=='],
133 133
 						'locale.status' => ['op' => '==', 'type' => 'select', 'val' => [
134
-							'1' => $this->translate( 'mshop/code', 'status:1' ),
135
-							'0' => $this->translate( 'mshop/code', 'status:0' ),
136
-							'-1' => $this->translate( 'mshop/code', 'status:-1' ),
137
-							'-2' => $this->translate( 'mshop/code', 'status:-2' ),
134
+							'1' => $this->translate('mshop/code', 'status:1'),
135
+							'0' => $this->translate('mshop/code', 'status:0'),
136
+							'-1' => $this->translate('mshop/code', 'status:-1'),
137
+							'-2' => $this->translate('mshop/code', 'status:-2'),
138 138
 						]],
139 139
 						'locale.languageid' => [],
140 140
 						'locale.currencyid' => [],
@@ -146,44 +146,44 @@  discard block
 block discarded – undo
146 146
 				] );
147 147
 			?>
148 148
 
149
-			<?php foreach( $this->get( 'items', [] ) as $id => $item ) : ?>
150
-				<?php $url = $enc->attr( $this->url( $getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig ) ); ?>
151
-				<tr class="<?= $this->site()->readonly( $item->getSiteId() ); ?>">
152
-					<?php if( in_array( 'locale.id', $fields ) ) : ?>
153
-						<td class="locale-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getId() ); ?></a></td>
149
+			<?php foreach ($this->get('items', []) as $id => $item) : ?>
150
+				<?php $url = $enc->attr($this->url($getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig)); ?>
151
+				<tr class="<?= $this->site()->readonly($item->getSiteId()); ?>">
152
+					<?php if (in_array('locale.id', $fields)) : ?>
153
+						<td class="locale-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getId()); ?></a></td>
154 154
 					<?php endif; ?>
155
-					<?php if( in_array( 'locale.status', $fields ) ) : ?>
156
-						<td class="locale-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr( $item->getStatus() ); ?>"></div></a></td>
155
+					<?php if (in_array('locale.status', $fields)) : ?>
156
+						<td class="locale-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr($item->getStatus()); ?>"></div></a></td>
157 157
 					<?php endif; ?>
158
-					<?php if( in_array( 'locale.languageid', $fields ) ) : ?>
159
-						<td class="locale-languageid"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getLanguageId() ); ?></a></td>
158
+					<?php if (in_array('locale.languageid', $fields)) : ?>
159
+						<td class="locale-languageid"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getLanguageId()); ?></a></td>
160 160
 					<?php endif; ?>
161
-					<?php if( in_array( 'locale.currencyid', $fields ) ) : ?>
162
-						<td class="locale-currencyid"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getCurrencyId() ); ?></a></td>
161
+					<?php if (in_array('locale.currencyid', $fields)) : ?>
162
+						<td class="locale-currencyid"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getCurrencyId()); ?></a></td>
163 163
 					<?php endif; ?>
164
-					<?php if( in_array( 'locale.position', $fields ) ) : ?>
165
-						<td class="locale-position"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html( $item->getPosition() ); ?></a></td>
164
+					<?php if (in_array('locale.position', $fields)) : ?>
165
+						<td class="locale-position"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html($item->getPosition()); ?></a></td>
166 166
 					<?php endif; ?>
167
-					<?php if( in_array( 'locale.ctime', $fields ) ) : ?>
168
-						<td class="locale-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeCreated() ); ?></a></td>
167
+					<?php if (in_array('locale.ctime', $fields)) : ?>
168
+						<td class="locale-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeCreated()); ?></a></td>
169 169
 					<?php endif; ?>
170
-					<?php if( in_array( 'locale.mtime', $fields ) ) : ?>
171
-						<td class="locale-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeModified() ); ?></a></td>
170
+					<?php if (in_array('locale.mtime', $fields)) : ?>
171
+						<td class="locale-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeModified()); ?></a></td>
172 172
 					<?php endif; ?>
173
-					<?php if( in_array( 'locale.editor', $fields ) ) : ?>
174
-						<td class="locale-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getEditor() ); ?></a></td>
173
+					<?php if (in_array('locale.editor', $fields)) : ?>
174
+						<td class="locale-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getEditor()); ?></a></td>
175 175
 					<?php endif; ?>
176 176
 
177 177
 					<td class="actions">
178 178
 						<a class="btn act-copy fa" tabindex="1"
179
-							href="<?= $enc->attr( $this->url( $copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig ) ); ?>"
180
-							title="<?= $enc->attr( $this->translate( 'admin', 'Copy this entry') ); ?>"
181
-							aria-label="<?= $enc->attr( $this->translate( 'admin', 'Copy' ) ); ?>"></a>
182
-						<?php if( !$this->site()->readonly( $item->getSiteId() ) ) : ?>
179
+							href="<?= $enc->attr($this->url($copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig)); ?>"
180
+							title="<?= $enc->attr($this->translate('admin', 'Copy this entry')); ?>"
181
+							aria-label="<?= $enc->attr($this->translate('admin', 'Copy')); ?>"></a>
182
+						<?php if (!$this->site()->readonly($item->getSiteId())) : ?>
183 183
 							<a class="btn act-delete fa" tabindex="1"
184
-								href="<?= $enc->attr( $this->url( $delTarget, $delCntl, $delAction, ['resource' => 'locale', 'id' => $id] + $params, [], $delConfig ) ); ?>"
185
-								title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
186
-								aria-label="<?= $enc->attr( $this->translate( 'admin', 'Delete' ) ); ?>"></a>
184
+								href="<?= $enc->attr($this->url($delTarget, $delCntl, $delAction, ['resource' => 'locale', 'id' => $id] + $params, [], $delConfig)); ?>"
185
+								title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>"
186
+								aria-label="<?= $enc->attr($this->translate('admin', 'Delete')); ?>"></a>
187 187
 						<?php endif; ?>
188 188
 					</td>
189 189
 				</tr>
@@ -191,18 +191,18 @@  discard block
 block discarded – undo
191 191
 		</tbody>
192 192
 	</table>
193 193
 
194
-	<?php if( $this->get( 'items', [] ) === [] ) : ?>
195
-		<div class="noitems"><?= $enc->html( sprintf( $this->translate( 'admin', 'No items found' ) ) ); ?></div>
194
+	<?php if ($this->get('items', []) === []) : ?>
195
+		<div class="noitems"><?= $enc->html(sprintf($this->translate('admin', 'No items found'))); ?></div>
196 196
 	<?php endif; ?>
197 197
 </form>
198 198
 
199 199
 <?= $this->partial(
200
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard.php' ),
201
-		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get( 'total' ),
202
-		'page' => $this->session( 'aimeos/admin/jqadm/locale/page', [] )]
200
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard.php'),
201
+		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get('total'),
202
+		'page' => $this->session('aimeos/admin/jqadm/locale/page', [])]
203 203
 	);
204 204
 ?>
205 205
 
206 206
 <?php $this->block()->stop(); ?>
207 207
 
208
-<?= $this->render( $this->config( 'admin/jqadm/template/page', 'common/page-standard.php' ) ); ?>
208
+<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard.php')); ?>
Please login to merge, or discard this patch.