Completed
Push — master ( 06a6c1...f03436 )
by Aimeos
03:56
created
admin/jqadm/src/Admin/JQAdm/Catalog/Image/Standard.php 2 patches
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -145,14 +145,12 @@
 block discarded – undo
145 145
 			}
146 146
 
147 147
 			return;
148
-		}
149
-		catch( \Aimeos\MShop\Exception $e )
148
+		} catch( \Aimeos\MShop\Exception $e )
150 149
 		{
151 150
 			$error = array( 'catalog-item-image' => $this->getContext()->getI18n()->dt( 'mshop', $e->getMessage() ) );
152 151
 			$view->errors = $view->get( 'errors', [] ) + $error;
153 152
 			$this->logException( $e );
154
-		}
155
-		catch( \Exception $e )
153
+		} catch( \Exception $e )
156 154
 		{
157 155
 			$error = array( 'catalog-item-image' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() );
158 156
 			$view->errors = $view->get( 'errors', [] ) + $error;
Please login to merge, or discard this patch.
Spacing   +77 added lines, -77 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\Catalog\Image;
12 12
 
13
-sprintf( 'image' ); // for translation
13
+sprintf('image'); // for translation
14 14
 
15 15
 
16 16
 /**
@@ -42,16 +42,16 @@  discard block
 block discarded – undo
42 42
 	 */
43 43
 	public function copy()
44 44
 	{
45
-		$view = $this->addViewData( $this->getView() );
45
+		$view = $this->addViewData($this->getView());
46 46
 
47
-		$view->imageData = $this->toArray( $view->item, true );
47
+		$view->imageData = $this->toArray($view->item, true);
48 48
 		$view->imageBody = '';
49 49
 
50
-		foreach( $this->getSubClients() as $client ) {
50
+		foreach ($this->getSubClients() as $client) {
51 51
 			$view->imageBody .= $client->copy();
52 52
 		}
53 53
 
54
-		return $this->render( $view );
54
+		return $this->render($view);
55 55
 	}
56 56
 
57 57
 
@@ -62,13 +62,13 @@  discard block
 block discarded – undo
62 62
 	 */
63 63
 	public function create()
64 64
 	{
65
-		$view = $this->addViewData( $this->getView() );
65
+		$view = $this->addViewData($this->getView());
66 66
 		$siteid = $this->getContext()->getLocale()->getSiteId();
67 67
 
68
-		$itemData = $this->toArray( $view->item );
69
-		$data = array_replace_recursive( $itemData, $view->param( 'image', [] ) );
68
+		$itemData = $this->toArray($view->item);
69
+		$data = array_replace_recursive($itemData, $view->param('image', []));
70 70
 
71
-		foreach( $data as $idx => $entry )
71
+		foreach ($data as $idx => $entry)
72 72
 		{
73 73
 			$data[$idx]['media.siteid'] = $siteid;
74 74
 			$data[$idx]['media.url'] = $itemData[$idx]['media.url'];
@@ -79,11 +79,11 @@  discard block
 block discarded – undo
79 79
 		$view->imageData = $data;
80 80
 		$view->imageBody = '';
81 81
 
82
-		foreach( $this->getSubClients() as $client ) {
82
+		foreach ($this->getSubClients() as $client) {
83 83
 			$view->imageBody .= $client->create();
84 84
 		}
85 85
 
86
-		return $this->render( $view );
86
+		return $this->render($view);
87 87
 	}
88 88
 
89 89
 
@@ -95,15 +95,15 @@  discard block
 block discarded – undo
95 95
 		parent::delete();
96 96
 
97 97
 		$item = $this->getView()->item;
98
-		$cntl = \Aimeos\Controller\Common\Media\Factory::createController( $this->getContext() );
98
+		$cntl = \Aimeos\Controller\Common\Media\Factory::createController($this->getContext());
99 99
 
100
-		foreach( $item->getListItems( 'media', null, null, false ) as $listItem )
100
+		foreach ($item->getListItems('media', null, null, false) as $listItem)
101 101
 		{
102
-			if( ( $refItem = $listItem->getRefItem() ) !== null ) {
103
-				$cntl->delete( $refItem );
102
+			if (($refItem = $listItem->getRefItem()) !== null) {
103
+				$cntl->delete($refItem);
104 104
 			}
105 105
 
106
-			$item->deleteListItem( 'media', $listItem, $refItem );
106
+			$item->deleteListItem('media', $listItem, $refItem);
107 107
 		}
108 108
 	}
109 109
 
@@ -115,16 +115,16 @@  discard block
 block discarded – undo
115 115
 	 */
116 116
 	public function get()
117 117
 	{
118
-		$view = $this->addViewData( $this->getView() );
118
+		$view = $this->addViewData($this->getView());
119 119
 
120
-		$view->imageData = $this->toArray( $view->item );
120
+		$view->imageData = $this->toArray($view->item);
121 121
 		$view->imageBody = '';
122 122
 
123
-		foreach( $this->getSubClients() as $client ) {
123
+		foreach ($this->getSubClients() as $client) {
124 124
 			$view->imageBody .= $client->get();
125 125
 		}
126 126
 
127
-		return $this->render( $view );
127
+		return $this->render($view);
128 128
 	}
129 129
 
130 130
 
@@ -137,26 +137,26 @@  discard block
 block discarded – undo
137 137
 
138 138
 		try
139 139
 		{
140
-			$view->item = $this->fromArray( $view->item, $view->param( 'image', [] ) );
140
+			$view->item = $this->fromArray($view->item, $view->param('image', []));
141 141
 			$view->imageBody = '';
142 142
 
143
-			foreach( $this->getSubClients() as $client ) {
143
+			foreach ($this->getSubClients() as $client) {
144 144
 				$view->imageBody .= $client->save();
145 145
 			}
146 146
 
147 147
 			return;
148 148
 		}
149
-		catch( \Aimeos\MShop\Exception $e )
149
+		catch (\Aimeos\MShop\Exception $e)
150 150
 		{
151
-			$error = array( 'catalog-item-image' => $this->getContext()->getI18n()->dt( 'mshop', $e->getMessage() ) );
152
-			$view->errors = $view->get( 'errors', [] ) + $error;
153
-			$this->logException( $e );
151
+			$error = array('catalog-item-image' => $this->getContext()->getI18n()->dt('mshop', $e->getMessage()));
152
+			$view->errors = $view->get('errors', []) + $error;
153
+			$this->logException($e);
154 154
 		}
155
-		catch( \Exception $e )
155
+		catch (\Exception $e)
156 156
 		{
157
-			$error = array( 'catalog-item-image' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() );
158
-			$view->errors = $view->get( 'errors', [] ) + $error;
159
-			$this->logException( $e );
157
+			$error = array('catalog-item-image' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine());
158
+			$view->errors = $view->get('errors', []) + $error;
159
+			$this->logException($e);
160 160
 		}
161 161
 
162 162
 		throw new \Aimeos\Admin\JQAdm\Exception();
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
 	 * @param string|null $name Name of the sub-client (Default if null)
171 171
 	 * @return \Aimeos\Admin\JQAdm\Iface Sub-client object
172 172
 	 */
173
-	public function getSubClient( $type, $name = null )
173
+	public function getSubClient($type, $name = null)
174 174
 	{
175 175
 		/** admin/jqadm/catalog/image/decorators/excludes
176 176
 		 * Excludes decorators added by the "common" option from the catalog JQAdm client
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
 		 * @see admin/jqadm/catalog/image/decorators/excludes
246 246
 		 * @see admin/jqadm/catalog/image/decorators/global
247 247
 		 */
248
-		return $this->createSubClient( 'catalog/image/' . $type, $name );
248
+		return $this->createSubClient('catalog/image/' . $type, $name);
249 249
 	}
250 250
 
251 251
 
@@ -255,23 +255,23 @@  discard block
 block discarded – undo
255 255
 	 * @param \Aimeos\MW\View\Iface $view View object
256 256
 	 * @return \Aimeos\MW\View\Iface View object with assigned parameters
257 257
 	 */
258
-	protected function addViewData( \Aimeos\MW\View\Iface $view )
258
+	protected function addViewData(\Aimeos\MW\View\Iface $view)
259 259
 	{
260 260
 		$context = $this->getContext();
261 261
 
262
-		$typeManager = \Aimeos\MShop\Factory::createManager( $this->getContext(), 'media/type' );
263
-		$listTypeManager = \Aimeos\MShop\Factory::createManager( $this->getContext(), 'catalog/lists/type' );
262
+		$typeManager = \Aimeos\MShop\Factory::createManager($this->getContext(), 'media/type');
263
+		$listTypeManager = \Aimeos\MShop\Factory::createManager($this->getContext(), 'catalog/lists/type');
264 264
 
265
-		$search = $typeManager->createSearch()->setSlice( 0, 0x7fffffff );
266
-		$search->setConditions( $search->compare( '==', 'media.type.domain', 'catalog' ) );
267
-		$search->setSortations( array( $search->sort( '+', 'media.type.label' ) ) );
265
+		$search = $typeManager->createSearch()->setSlice(0, 0x7fffffff);
266
+		$search->setConditions($search->compare('==', 'media.type.domain', 'catalog'));
267
+		$search->setSortations(array($search->sort('+', 'media.type.label')));
268 268
 
269
-		$listSearch = $listTypeManager->createSearch( true )->setSlice( 0, 0x7fffffff );
270
-		$listSearch->setConditions( $listSearch->compare( '==', 'catalog.lists.type.domain', 'media' ) );
271
-		$listSearch->setSortations( array( $listSearch->sort( '+', 'catalog.lists.type.label' ) ) );
269
+		$listSearch = $listTypeManager->createSearch(true)->setSlice(0, 0x7fffffff);
270
+		$listSearch->setConditions($listSearch->compare('==', 'catalog.lists.type.domain', 'media'));
271
+		$listSearch->setSortations(array($listSearch->sort('+', 'catalog.lists.type.label')));
272 272
 
273
-		$view->imageListTypes = $this->sortType( $listTypeManager->searchItems( $listSearch ) );
274
-		$view->imageTypes = $typeManager->searchItems( $search );
273
+		$view->imageListTypes = $this->sortType($listTypeManager->searchItems($listSearch));
274
+		$view->imageTypes = $typeManager->searchItems($search);
275 275
 
276 276
 		return $view;
277 277
 	}
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
 		 * @since 2017.07
318 318
 		 * @category Developer
319 319
 		 */
320
-		return $this->getContext()->getConfig()->get( 'admin/jqadm/catalog/image/standard/subparts', [] );
320
+		return $this->getContext()->getConfig()->get('admin/jqadm/catalog/image/standard/subparts', []);
321 321
 	}
322 322
 
323 323
 
@@ -327,59 +327,59 @@  discard block
 block discarded – undo
327 327
 	 * @param \Aimeos\MShop\Catalog\Item\Iface $item Catalog item object without referenced domain items
328 328
 	 * @param string[] $data Data array
329 329
 	 */
330
-	protected function fromArray( \Aimeos\MShop\Catalog\Item\Iface $item, array $data )
330
+	protected function fromArray(\Aimeos\MShop\Catalog\Item\Iface $item, array $data)
331 331
 	{
332 332
 		$context = $this->getContext();
333 333
 
334
-		$mediaManager = \Aimeos\MShop\Factory::createManager( $context, 'media' );
335
-		$listManager = \Aimeos\MShop\Factory::createManager( $context, 'catalog/lists' );
336
-		$cntl = \Aimeos\Controller\Common\Media\Factory::createController( $context );
334
+		$mediaManager = \Aimeos\MShop\Factory::createManager($context, 'media');
335
+		$listManager = \Aimeos\MShop\Factory::createManager($context, 'catalog/lists');
336
+		$cntl = \Aimeos\Controller\Common\Media\Factory::createController($context);
337 337
 
338
-		$listItems = $item->getListItems( 'media', null, null, false );
338
+		$listItems = $item->getListItems('media', null, null, false);
339 339
 		$files = (array) $this->getView()->request()->getUploadedFiles();
340 340
 
341
-		foreach( $data as $idx => $entry )
341
+		foreach ($data as $idx => $entry)
342 342
 		{
343
-			if( ( $listItem = $item->getListItem( 'media', $entry['catalog.lists.type'], $entry['media.id'] ) ) === null ) {
343
+			if (($listItem = $item->getListItem('media', $entry['catalog.lists.type'], $entry['media.id'])) === null) {
344 344
 				$listItem = $listManager->createItem();
345 345
 			}
346 346
 
347
-			if( ( $refItem = $listItem->getRefItem() ) === null ) {
347
+			if (($refItem = $listItem->getRefItem()) === null) {
348 348
 				$refItem = $mediaManager->createItem();
349 349
 			}
350 350
 
351
-			$refItem->fromArray( $entry );
351
+			$refItem->fromArray($entry);
352 352
 
353
-			if( ( $file = $this->getValue( $files, 'image/' . $idx . '/file' ) ) !== null && $file->getError() !== UPLOAD_ERR_NO_FILE ) {
354
-				$cntl->add( $refItem, $file );
353
+			if (($file = $this->getValue($files, 'image/' . $idx . '/file')) !== null && $file->getError() !== UPLOAD_ERR_NO_FILE) {
354
+				$cntl->add($refItem, $file);
355 355
 			}
356 356
 
357 357
 			$conf = [];
358 358
 
359
-			foreach( (array) $this->getValue( $entry, 'config/key' ) as $num => $key )
359
+			foreach ((array) $this->getValue($entry, 'config/key') as $num => $key)
360 360
 			{
361
-				if( trim( $key ) !== '' && ( $val = $this->getValue( $entry, 'config/val/' . $num ) ) !== null ) {
362
-					$conf[$key] = trim( $val );
361
+				if (trim($key) !== '' && ($val = $this->getValue($entry, 'config/val/' . $num)) !== null) {
362
+					$conf[$key] = trim($val);
363 363
 				}
364 364
 			}
365 365
 
366
-			$listItem->fromArray( $entry );
367
-			$listItem->setPosition( $idx );
368
-			$listItem->setConfig( $conf );
366
+			$listItem->fromArray($entry);
367
+			$listItem->setPosition($idx);
368
+			$listItem->setConfig($conf);
369 369
 
370
-			$item->addListItem( 'media', $listItem, $refItem );
370
+			$item->addListItem('media', $listItem, $refItem);
371 371
 
372
-			unset( $listItems[$listItem->getId()] );
372
+			unset($listItems[$listItem->getId()]);
373 373
 		}
374 374
 
375 375
 
376
-		foreach( $listItems as $listItem )
376
+		foreach ($listItems as $listItem)
377 377
 		{
378
-			if( ( $refItem = $listItem->getRefItem() ) !== null ) {
379
-				$cntl->delete( $refItem );
378
+			if (($refItem = $listItem->getRefItem()) !== null) {
379
+				$cntl->delete($refItem);
380 380
 			}
381 381
 
382
-			$item->deleteListItem( 'media', $listItem, $refItem );
382
+			$item->deleteListItem('media', $listItem, $refItem);
383 383
 		}
384 384
 
385 385
 		return $item;
@@ -393,20 +393,20 @@  discard block
 block discarded – undo
393 393
 	 * @param boolean $copy True if items should be copied, false if not
394 394
 	 * @return string[] Multi-dimensional associative list of item data
395 395
 	 */
396
-	protected function toArray( \Aimeos\MShop\Catalog\Item\Iface $item, $copy = false )
396
+	protected function toArray(\Aimeos\MShop\Catalog\Item\Iface $item, $copy = false)
397 397
 	{
398 398
 		$data = [];
399 399
 		$siteId = $this->getContext()->getLocale()->getSiteId();
400 400
 
401
-		foreach( $item->getListItems( 'media', null, null, false ) as $listItem )
401
+		foreach ($item->getListItems('media', null, null, false) as $listItem)
402 402
 		{
403
-			if( ( $refItem = $listItem->getRefItem() ) === null ) {
403
+			if (($refItem = $listItem->getRefItem()) === null) {
404 404
 				continue;
405 405
 			}
406 406
 
407
-			$list = $listItem->toArray( true ) + $refItem->toArray( true );
407
+			$list = $listItem->toArray(true) + $refItem->toArray(true);
408 408
 
409
-			if( $copy === true )
409
+			if ($copy === true)
410 410
 			{
411 411
 				$list['catalog.lists.siteid'] = $siteId;
412 412
 				$list['catalog.lists.id'] = '';
@@ -414,10 +414,10 @@  discard block
 block discarded – undo
414 414
 				$list['media.id'] = null;
415 415
 			}
416 416
 
417
-			$list['catalog.lists.datestart'] = str_replace( ' ', 'T', $list['catalog.lists.datestart'] );
418
-			$list['catalog.lists.dateend'] = str_replace( ' ', 'T', $list['catalog.lists.dateend'] );
417
+			$list['catalog.lists.datestart'] = str_replace(' ', 'T', $list['catalog.lists.datestart']);
418
+			$list['catalog.lists.dateend'] = str_replace(' ', 'T', $list['catalog.lists.dateend']);
419 419
 
420
-			foreach( $list['catalog.lists.config'] as $key => $val )
420
+			foreach ($list['catalog.lists.config'] as $key => $val)
421 421
 			{
422 422
 				$list['config']['key'][] = $key;
423 423
 				$list['config']['val'][] = $val;
@@ -436,7 +436,7 @@  discard block
 block discarded – undo
436 436
 	 * @param \Aimeos\MW\View\Iface $view View object with data assigned
437 437
 	 * @return string HTML output
438 438
 	 */
439
-	protected function render( \Aimeos\MW\View\Iface $view )
439
+	protected function render(\Aimeos\MW\View\Iface $view)
440 440
 	{
441 441
 		/** admin/jqadm/catalog/image/template-item
442 442
 		 * Relative path to the HTML body template of the image subpart for catalogs.
@@ -460,6 +460,6 @@  discard block
 block discarded – undo
460 460
 		$tplconf = 'admin/jqadm/catalog/image/template-item';
461 461
 		$default = 'catalog/item-image-standard.php';
462 462
 
463
-		return $view->render( $view->config( $tplconf, $default ) );
463
+		return $view->render($view->config($tplconf, $default));
464 464
 	}
465 465
 }
466 466
\ No newline at end of file
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Attribute/Image/Property/Standard.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -291,8 +291,7 @@
 block discarded – undo
291 291
 				{
292 292
 					$propItem = $propItems[$entry['media.property.id']];
293 293
 					unset( $propItems[$entry['media.property.id']] );
294
-				}
295
-				else
294
+				} else
296 295
 				{
297 296
 					$propItem = $propManager->createItem();
298 297
 				}
Please login to merge, or discard this patch.
Spacing   +42 added lines, -42 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\Attribute\Image\Property;
12 12
 
13
-sprintf( 'property' ); // for translation
13
+sprintf('property'); // for translation
14 14
 
15 15
 
16 16
 /**
@@ -42,16 +42,16 @@  discard block
 block discarded – undo
42 42
 	 */
43 43
 	public function copy()
44 44
 	{
45
-		$view = $this->addViewData( $this->getView() );
45
+		$view = $this->addViewData($this->getView());
46 46
 
47
-		$view->imageData = $this->toArray( $view->item, $view->get( 'imageData', [] ), true );
47
+		$view->imageData = $this->toArray($view->item, $view->get('imageData', []), true);
48 48
 		$view->propertyBody = '';
49 49
 
50
-		foreach( $this->getSubClients() as $client ) {
50
+		foreach ($this->getSubClients() as $client) {
51 51
 			$view->propertyBody .= $client->copy();
52 52
 		}
53 53
 
54
-		return $this->render( $view );
54
+		return $this->render($view);
55 55
 	}
56 56
 
57 57
 
@@ -62,13 +62,13 @@  discard block
 block discarded – undo
62 62
 	 */
63 63
 	public function create()
64 64
 	{
65
-		$view = $this->addViewData( $this->getView() );
65
+		$view = $this->addViewData($this->getView());
66 66
 		$siteid = $this->getContext()->getLocale()->getSiteId();
67
-		$data = $view->get( 'imageData', [] );
67
+		$data = $view->get('imageData', []);
68 68
 
69
-		foreach( $data as $index => $entry )
69
+		foreach ($data as $index => $entry)
70 70
 		{
71
-			foreach( $view->value( $entry, 'property', [] ) as $idx => $y ) {
71
+			foreach ($view->value($entry, 'property', []) as $idx => $y) {
72 72
 				$data[$index]['property'][$idx]['attribute.lists.siteid'] = $siteid;
73 73
 			}
74 74
 		}
@@ -76,11 +76,11 @@  discard block
 block discarded – undo
76 76
 		$view->propertyData = $data;
77 77
 		$view->propertyBody = '';
78 78
 
79
-		foreach( $this->getSubClients() as $client ) {
79
+		foreach ($this->getSubClients() as $client) {
80 80
 			$view->propertyBody .= $client->create();
81 81
 		}
82 82
 
83
-		return $this->render( $view );
83
+		return $this->render($view);
84 84
 	}
85 85
 
86 86
 
@@ -91,16 +91,16 @@  discard block
 block discarded – undo
91 91
 	 */
92 92
 	public function get()
93 93
 	{
94
-		$view = $this->addViewData( $this->getView() );
94
+		$view = $this->addViewData($this->getView());
95 95
 
96
-		$view->imageData = $this->toArray( $view->item, $view->get( 'imageData', [] ) );
96
+		$view->imageData = $this->toArray($view->item, $view->get('imageData', []));
97 97
 		$view->propertyBody = '';
98 98
 
99
-		foreach( $this->getSubClients() as $client ) {
99
+		foreach ($this->getSubClients() as $client) {
100 100
 			$view->propertyBody .= $client->get();
101 101
 		}
102 102
 
103
-		return $this->render( $view );
103
+		return $this->render($view);
104 104
 	}
105 105
 
106 106
 
@@ -111,10 +111,10 @@  discard block
 block discarded – undo
111 111
 	{
112 112
 		$view = $this->getView();
113 113
 
114
-		$view->item = $this->fromArray( $view->item, $view->param( 'image', [] ) );
114
+		$view->item = $this->fromArray($view->item, $view->param('image', []));
115 115
 		$view->propertyBody = '';
116 116
 
117
-		foreach( $this->getSubClients() as $client ) {
117
+		foreach ($this->getSubClients() as $client) {
118 118
 			$view->propertyBody .= $client->save();
119 119
 		}
120 120
 	}
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
 	 * @param string|null $name Name of the sub-client (Default if null)
128 128
 	 * @return \Aimeos\Admin\JQAdm\Iface Sub-client object
129 129
 	 */
130
-	public function getSubClient( $type, $name = null )
130
+	public function getSubClient($type, $name = null)
131 131
 	{
132 132
 		/** admin/jqadm/attribute/image/property/decorators/excludes
133 133
 		 * Excludes decorators added by the "common" option from the attribute JQAdm client
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
 		 * @see admin/jqadm/attribute/image/property/decorators/excludes
203 203
 		 * @see admin/jqadm/attribute/image/property/decorators/global
204 204
 		 */
205
-		return $this->createSubClient( 'attribute/image/property/' . $type, $name );
205
+		return $this->createSubClient('attribute/image/property/' . $type, $name);
206 206
 	}
207 207
 
208 208
 
@@ -212,15 +212,15 @@  discard block
 block discarded – undo
212 212
 	 * @param \Aimeos\MW\View\Iface $view View object
213 213
 	 * @return \Aimeos\MW\View\Iface View object with assigned parameters
214 214
 	 */
215
-	protected function addViewData( \Aimeos\MW\View\Iface $view )
215
+	protected function addViewData(\Aimeos\MW\View\Iface $view)
216 216
 	{
217
-		$manager = \Aimeos\MShop\Factory::createManager( $this->getContext(), 'media/property/type' );
217
+		$manager = \Aimeos\MShop\Factory::createManager($this->getContext(), 'media/property/type');
218 218
 
219 219
 		$search = $manager->createSearch();
220
-		$search->setConditions( $search->compare( '==', 'media.property.type.domain', 'attribute' ) );
221
-		$search->setSlice( 0, 0x7fffffff );
220
+		$search->setConditions($search->compare('==', 'media.property.type.domain', 'attribute'));
221
+		$search->setSlice(0, 0x7fffffff);
222 222
 
223
-		$view->propertyTypes = $manager->searchItems( $search );
223
+		$view->propertyTypes = $manager->searchItems($search);
224 224
 
225 225
 		return $view;
226 226
 	}
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
 		 * @since 2018.01
267 267
 		 * @category Developer
268 268
 		 */
269
-		return $this->getContext()->getConfig()->get( 'admin/jqadm/attribute/image/property/standard/subparts', [] );
269
+		return $this->getContext()->getConfig()->get('admin/jqadm/attribute/image/property/standard/subparts', []);
270 270
 	}
271 271
 
272 272
 
@@ -276,32 +276,32 @@  discard block
 block discarded – undo
276 276
 	 * @param \Aimeos\MShop\Attribute\Item\Iface $item Attribute item object without referenced domain items
277 277
 	 * @param string[] $data Data array
278 278
 	 */
279
-	protected function fromArray( \Aimeos\MShop\Attribute\Item\Iface $item, array $data )
279
+	protected function fromArray(\Aimeos\MShop\Attribute\Item\Iface $item, array $data)
280 280
 	{
281
-		$propManager = \Aimeos\MShop\Factory::createManager( $this->getContext(), 'media/property' );
281
+		$propManager = \Aimeos\MShop\Factory::createManager($this->getContext(), 'media/property');
282 282
 		$index = 0;
283 283
 
284
-		foreach( $item->getRefItems( 'media', null, null, false ) as $refItem )
284
+		foreach ($item->getRefItems('media', null, null, false) as $refItem)
285 285
 		{
286
-			$propItems = $refItem->getPropertyItems( null, false );
286
+			$propItems = $refItem->getPropertyItems(null, false);
287 287
 
288
-			foreach( (array) $this->getValue( $data, $index . '/property', [] ) as $entry )
288
+			foreach ((array) $this->getValue($data, $index . '/property', []) as $entry)
289 289
 			{
290
-				if( isset( $propItems[$entry['media.property.id']] ) )
290
+				if (isset($propItems[$entry['media.property.id']]))
291 291
 				{
292 292
 					$propItem = $propItems[$entry['media.property.id']];
293
-					unset( $propItems[$entry['media.property.id']] );
293
+					unset($propItems[$entry['media.property.id']]);
294 294
 				}
295 295
 				else
296 296
 				{
297 297
 					$propItem = $propManager->createItem();
298 298
 				}
299 299
 
300
-				$propItem->fromArray( $entry );
301
-				$refItem->addPropertyItem( $propItem );
300
+				$propItem->fromArray($entry);
301
+				$refItem->addPropertyItem($propItem);
302 302
 			}
303 303
 
304
-			$refItem->deletePropertyItems( $propItems );
304
+			$refItem->deletePropertyItems($propItems);
305 305
 			$index++;
306 306
 		}
307 307
 
@@ -317,18 +317,18 @@  discard block
 block discarded – undo
317 317
 	 * @param boolean $copy True if items should be copied, false if not
318 318
 	 * @return string[] Multi-dimensional associative list of item data
319 319
 	 */
320
-	protected function toArray( \Aimeos\MShop\Attribute\Item\Iface $item, array $data, $copy = false )
320
+	protected function toArray(\Aimeos\MShop\Attribute\Item\Iface $item, array $data, $copy = false)
321 321
 	{
322 322
 		$idx = 0;
323 323
 		$siteId = $this->getContext()->getLocale()->getSiteId();
324 324
 
325
-		foreach( $item->getRefItems( 'media', null, null, false ) as $mediaItem )
325
+		foreach ($item->getRefItems('media', null, null, false) as $mediaItem)
326 326
 		{
327
-			foreach( $mediaItem->getPropertyItems( null, false )  as $propItem )
327
+			foreach ($mediaItem->getPropertyItems(null, false)  as $propItem)
328 328
 			{
329
-				$list = $propItem->toArray( true );
329
+				$list = $propItem->toArray(true);
330 330
 
331
-				if( $copy === true )
331
+				if ($copy === true)
332 332
 				{
333 333
 					$list['media.property.siteid'] = $siteId;
334 334
 					$list['media.property.id'] = '';
@@ -350,7 +350,7 @@  discard block
 block discarded – undo
350 350
 	 * @param \Aimeos\MW\View\Iface $view View object with data assigned
351 351
 	 * @return string HTML output
352 352
 	 */
353
-	protected function render( \Aimeos\MW\View\Iface $view )
353
+	protected function render(\Aimeos\MW\View\Iface $view)
354 354
 	{
355 355
 		/** admin/jqadm/attribute/image/property/template-item
356 356
 		 * Relative path to the HTML body template of the image subpart for attributes.
@@ -374,6 +374,6 @@  discard block
 block discarded – undo
374 374
 		$tplconf = 'admin/jqadm/attribute/image/property/template-item';
375 375
 		$default = 'attribute/item-image-property-standard.php';
376 376
 
377
-		return $view->render( $view->config( $tplconf, $default ) );
377
+		return $view->render($view->config($tplconf, $default));
378 378
 	}
379 379
 }
380 380
\ No newline at end of file
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Supplier/Image/Property/Standard.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -291,8 +291,7 @@
 block discarded – undo
291 291
 				{
292 292
 					$propItem = $propItems[$entry['media.property.id']];
293 293
 					unset( $propItems[$entry['media.property.id']] );
294
-				}
295
-				else
294
+				} else
296 295
 				{
297 296
 					$propItem = $propManager->createItem();
298 297
 				}
Please login to merge, or discard this patch.
Spacing   +42 added lines, -42 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\Supplier\Image\Property;
12 12
 
13
-sprintf( 'property' ); // for translation
13
+sprintf('property'); // for translation
14 14
 
15 15
 
16 16
 /**
@@ -42,16 +42,16 @@  discard block
 block discarded – undo
42 42
 	 */
43 43
 	public function copy()
44 44
 	{
45
-		$view = $this->addViewData( $this->getView() );
45
+		$view = $this->addViewData($this->getView());
46 46
 
47
-		$view->imageData = $this->toArray( $view->item, $view->get( 'imageData', [] ), true );
47
+		$view->imageData = $this->toArray($view->item, $view->get('imageData', []), true);
48 48
 		$view->propertyBody = '';
49 49
 
50
-		foreach( $this->getSubClients() as $client ) {
50
+		foreach ($this->getSubClients() as $client) {
51 51
 			$view->propertyBody .= $client->copy();
52 52
 		}
53 53
 
54
-		return $this->render( $view );
54
+		return $this->render($view);
55 55
 	}
56 56
 
57 57
 
@@ -62,13 +62,13 @@  discard block
 block discarded – undo
62 62
 	 */
63 63
 	public function create()
64 64
 	{
65
-		$view = $this->addViewData( $this->getView() );
65
+		$view = $this->addViewData($this->getView());
66 66
 		$siteid = $this->getContext()->getLocale()->getSiteId();
67
-		$data = $view->get( 'imageData', [] );
67
+		$data = $view->get('imageData', []);
68 68
 
69
-		foreach( $data as $index => $entry )
69
+		foreach ($data as $index => $entry)
70 70
 		{
71
-			foreach( $view->value( $entry, 'property', [] ) as $idx => $y ) {
71
+			foreach ($view->value($entry, 'property', []) as $idx => $y) {
72 72
 				$data[$index]['property'][$idx]['supplier.lists.siteid'] = $siteid;
73 73
 			}
74 74
 		}
@@ -76,11 +76,11 @@  discard block
 block discarded – undo
76 76
 		$view->propertyData = $data;
77 77
 		$view->propertyBody = '';
78 78
 
79
-		foreach( $this->getSubClients() as $client ) {
79
+		foreach ($this->getSubClients() as $client) {
80 80
 			$view->propertyBody .= $client->create();
81 81
 		}
82 82
 
83
-		return $this->render( $view );
83
+		return $this->render($view);
84 84
 	}
85 85
 
86 86
 
@@ -91,16 +91,16 @@  discard block
 block discarded – undo
91 91
 	 */
92 92
 	public function get()
93 93
 	{
94
-		$view = $this->addViewData( $this->getView() );
94
+		$view = $this->addViewData($this->getView());
95 95
 
96
-		$view->imageData = $this->toArray( $view->item, $view->get( 'imageData', [] ) );
96
+		$view->imageData = $this->toArray($view->item, $view->get('imageData', []));
97 97
 		$view->propertyBody = '';
98 98
 
99
-		foreach( $this->getSubClients() as $client ) {
99
+		foreach ($this->getSubClients() as $client) {
100 100
 			$view->propertyBody .= $client->get();
101 101
 		}
102 102
 
103
-		return $this->render( $view );
103
+		return $this->render($view);
104 104
 	}
105 105
 
106 106
 
@@ -111,10 +111,10 @@  discard block
 block discarded – undo
111 111
 	{
112 112
 		$view = $this->getView();
113 113
 
114
-		$view->item = $this->fromArray( $view->item, $view->param( 'image', [] ) );
114
+		$view->item = $this->fromArray($view->item, $view->param('image', []));
115 115
 		$view->propertyBody = '';
116 116
 
117
-		foreach( $this->getSubClients() as $client ) {
117
+		foreach ($this->getSubClients() as $client) {
118 118
 			$view->propertyBody .= $client->save();
119 119
 		}
120 120
 	}
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
 	 * @param string|null $name Name of the sub-client (Default if null)
128 128
 	 * @return \Aimeos\Admin\JQAdm\Iface Sub-client object
129 129
 	 */
130
-	public function getSubClient( $type, $name = null )
130
+	public function getSubClient($type, $name = null)
131 131
 	{
132 132
 		/** admin/jqadm/supplier/image/property/decorators/excludes
133 133
 		 * Excludes decorators added by the "common" option from the supplier JQAdm client
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
 		 * @see admin/jqadm/supplier/image/property/decorators/excludes
203 203
 		 * @see admin/jqadm/supplier/image/property/decorators/global
204 204
 		 */
205
-		return $this->createSubClient( 'supplier/image/property/' . $type, $name );
205
+		return $this->createSubClient('supplier/image/property/' . $type, $name);
206 206
 	}
207 207
 
208 208
 
@@ -212,15 +212,15 @@  discard block
 block discarded – undo
212 212
 	 * @param \Aimeos\MW\View\Iface $view View object
213 213
 	 * @return \Aimeos\MW\View\Iface View object with assigned parameters
214 214
 	 */
215
-	protected function addViewData( \Aimeos\MW\View\Iface $view )
215
+	protected function addViewData(\Aimeos\MW\View\Iface $view)
216 216
 	{
217
-		$manager = \Aimeos\MShop\Factory::createManager( $this->getContext(), 'media/property/type' );
217
+		$manager = \Aimeos\MShop\Factory::createManager($this->getContext(), 'media/property/type');
218 218
 
219 219
 		$search = $manager->createSearch();
220
-		$search->setConditions( $search->compare( '==', 'media.property.type.domain', 'supplier' ) );
221
-		$search->setSlice( 0, 0x7fffffff );
220
+		$search->setConditions($search->compare('==', 'media.property.type.domain', 'supplier'));
221
+		$search->setSlice(0, 0x7fffffff);
222 222
 
223
-		$view->propertyTypes = $manager->searchItems( $search );
223
+		$view->propertyTypes = $manager->searchItems($search);
224 224
 
225 225
 		return $view;
226 226
 	}
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
 		 * @since 2018.01
267 267
 		 * @category Developer
268 268
 		 */
269
-		return $this->getContext()->getConfig()->get( 'admin/jqadm/supplier/image/property/standard/subparts', [] );
269
+		return $this->getContext()->getConfig()->get('admin/jqadm/supplier/image/property/standard/subparts', []);
270 270
 	}
271 271
 
272 272
 
@@ -276,32 +276,32 @@  discard block
 block discarded – undo
276 276
 	 * @param \Aimeos\MShop\Supplier\Item\Iface $item Supplier item object without referenced domain items
277 277
 	 * @param string[] $data Data array
278 278
 	 */
279
-	protected function fromArray( \Aimeos\MShop\Supplier\Item\Iface $item, array $data )
279
+	protected function fromArray(\Aimeos\MShop\Supplier\Item\Iface $item, array $data)
280 280
 	{
281
-		$propManager = \Aimeos\MShop\Factory::createManager( $this->getContext(), 'media/property' );
281
+		$propManager = \Aimeos\MShop\Factory::createManager($this->getContext(), 'media/property');
282 282
 		$index = 0;
283 283
 
284
-		foreach( $item->getRefItems( 'media', null, null, false ) as $refItem )
284
+		foreach ($item->getRefItems('media', null, null, false) as $refItem)
285 285
 		{
286
-			$propItems = $refItem->getPropertyItems( null, false );
286
+			$propItems = $refItem->getPropertyItems(null, false);
287 287
 
288
-			foreach( (array) $this->getValue( $data, $index . '/property', [] ) as $entry )
288
+			foreach ((array) $this->getValue($data, $index . '/property', []) as $entry)
289 289
 			{
290
-				if( isset( $propItems[$entry['media.property.id']] ) )
290
+				if (isset($propItems[$entry['media.property.id']]))
291 291
 				{
292 292
 					$propItem = $propItems[$entry['media.property.id']];
293
-					unset( $propItems[$entry['media.property.id']] );
293
+					unset($propItems[$entry['media.property.id']]);
294 294
 				}
295 295
 				else
296 296
 				{
297 297
 					$propItem = $propManager->createItem();
298 298
 				}
299 299
 
300
-				$propItem->fromArray( $entry );
301
-				$refItem->addPropertyItem( $propItem );
300
+				$propItem->fromArray($entry);
301
+				$refItem->addPropertyItem($propItem);
302 302
 			}
303 303
 
304
-			$refItem->deletePropertyItems( $propItems );
304
+			$refItem->deletePropertyItems($propItems);
305 305
 			$index++;
306 306
 		}
307 307
 
@@ -317,18 +317,18 @@  discard block
 block discarded – undo
317 317
 	 * @param boolean $copy True if items should be copied, false if not
318 318
 	 * @return string[] Multi-dimensional associative list of item data
319 319
 	 */
320
-	protected function toArray( \Aimeos\MShop\Supplier\Item\Iface $item, array $data, $copy = false )
320
+	protected function toArray(\Aimeos\MShop\Supplier\Item\Iface $item, array $data, $copy = false)
321 321
 	{
322 322
 		$idx = 0;
323 323
 		$siteId = $this->getContext()->getLocale()->getSiteId();
324 324
 
325
-		foreach( $item->getRefItems( 'media', null, null, false ) as $mediaItem )
325
+		foreach ($item->getRefItems('media', null, null, false) as $mediaItem)
326 326
 		{
327
-			foreach( $mediaItem->getPropertyItems( null, false )  as $propItem )
327
+			foreach ($mediaItem->getPropertyItems(null, false)  as $propItem)
328 328
 			{
329
-				$list = $propItem->toArray( true );
329
+				$list = $propItem->toArray(true);
330 330
 
331
-				if( $copy === true )
331
+				if ($copy === true)
332 332
 				{
333 333
 					$list['media.property.siteid'] = $siteId;
334 334
 					$list['media.property.id'] = '';
@@ -350,7 +350,7 @@  discard block
 block discarded – undo
350 350
 	 * @param \Aimeos\MW\View\Iface $view View object with data assigned
351 351
 	 * @return string HTML output
352 352
 	 */
353
-	protected function render( \Aimeos\MW\View\Iface $view )
353
+	protected function render(\Aimeos\MW\View\Iface $view)
354 354
 	{
355 355
 		/** admin/jqadm/supplier/image/property/template-item
356 356
 		 * Relative path to the HTML body template of the image subpart for suppliers.
@@ -374,6 +374,6 @@  discard block
 block discarded – undo
374 374
 		$tplconf = 'admin/jqadm/supplier/image/property/template-item';
375 375
 		$default = 'supplier/item-image-property-standard.php';
376 376
 
377
-		return $view->render( $view->config( $tplconf, $default ) );
377
+		return $view->render($view->config($tplconf, $default));
378 378
 	}
379 379
 }
380 380
\ No newline at end of file
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Catalog/Image/Property/Standard.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -291,8 +291,7 @@
 block discarded – undo
291 291
 				{
292 292
 					$propItem = $propItems[$entry['media.property.id']];
293 293
 					unset( $propItems[$entry['media.property.id']] );
294
-				}
295
-				else
294
+				} else
296 295
 				{
297 296
 					$propItem = $propManager->createItem();
298 297
 				}
Please login to merge, or discard this patch.
Spacing   +42 added lines, -42 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\Catalog\Image\Property;
12 12
 
13
-sprintf( 'property' ); // for translation
13
+sprintf('property'); // for translation
14 14
 
15 15
 
16 16
 /**
@@ -42,16 +42,16 @@  discard block
 block discarded – undo
42 42
 	 */
43 43
 	public function copy()
44 44
 	{
45
-		$view = $this->addViewData( $this->getView() );
45
+		$view = $this->addViewData($this->getView());
46 46
 
47
-		$view->imageData = $this->toArray( $view->item, $view->get( 'imageData', [] ), true );
47
+		$view->imageData = $this->toArray($view->item, $view->get('imageData', []), true);
48 48
 		$view->propertyBody = '';
49 49
 
50
-		foreach( $this->getSubClients() as $client ) {
50
+		foreach ($this->getSubClients() as $client) {
51 51
 			$view->propertyBody .= $client->copy();
52 52
 		}
53 53
 
54
-		return $this->render( $view );
54
+		return $this->render($view);
55 55
 	}
56 56
 
57 57
 
@@ -62,13 +62,13 @@  discard block
 block discarded – undo
62 62
 	 */
63 63
 	public function create()
64 64
 	{
65
-		$view = $this->addViewData( $this->getView() );
65
+		$view = $this->addViewData($this->getView());
66 66
 		$siteid = $this->getContext()->getLocale()->getSiteId();
67
-		$data = $view->get( 'imageData', [] );
67
+		$data = $view->get('imageData', []);
68 68
 
69
-		foreach( $data as $index => $entry )
69
+		foreach ($data as $index => $entry)
70 70
 		{
71
-			foreach( $view->value( $entry, 'property', [] ) as $idx => $y ) {
71
+			foreach ($view->value($entry, 'property', []) as $idx => $y) {
72 72
 				$data[$index]['property'][$idx]['catalog.lists.siteid'] = $siteid;
73 73
 			}
74 74
 		}
@@ -76,11 +76,11 @@  discard block
 block discarded – undo
76 76
 		$view->propertyData = $data;
77 77
 		$view->propertyBody = '';
78 78
 
79
-		foreach( $this->getSubClients() as $client ) {
79
+		foreach ($this->getSubClients() as $client) {
80 80
 			$view->propertyBody .= $client->create();
81 81
 		}
82 82
 
83
-		return $this->render( $view );
83
+		return $this->render($view);
84 84
 	}
85 85
 
86 86
 
@@ -91,16 +91,16 @@  discard block
 block discarded – undo
91 91
 	 */
92 92
 	public function get()
93 93
 	{
94
-		$view = $this->addViewData( $this->getView() );
94
+		$view = $this->addViewData($this->getView());
95 95
 
96
-		$view->imageData = $this->toArray( $view->item, $view->get( 'imageData', [] ) );
96
+		$view->imageData = $this->toArray($view->item, $view->get('imageData', []));
97 97
 		$view->propertyBody = '';
98 98
 
99
-		foreach( $this->getSubClients() as $client ) {
99
+		foreach ($this->getSubClients() as $client) {
100 100
 			$view->propertyBody .= $client->get();
101 101
 		}
102 102
 
103
-		return $this->render( $view );
103
+		return $this->render($view);
104 104
 	}
105 105
 
106 106
 
@@ -111,10 +111,10 @@  discard block
 block discarded – undo
111 111
 	{
112 112
 		$view = $this->getView();
113 113
 
114
-		$view->item = $this->fromArray( $view->item, $view->param( 'image', [] ) );
114
+		$view->item = $this->fromArray($view->item, $view->param('image', []));
115 115
 		$view->propertyBody = '';
116 116
 
117
-		foreach( $this->getSubClients() as $client ) {
117
+		foreach ($this->getSubClients() as $client) {
118 118
 			$view->propertyBody .= $client->save();
119 119
 		}
120 120
 	}
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
 	 * @param string|null $name Name of the sub-client (Default if null)
128 128
 	 * @return \Aimeos\Admin\JQAdm\Iface Sub-client object
129 129
 	 */
130
-	public function getSubClient( $type, $name = null )
130
+	public function getSubClient($type, $name = null)
131 131
 	{
132 132
 		/** admin/jqadm/catalog/image/property/decorators/excludes
133 133
 		 * Excludes decorators added by the "common" option from the catalog JQAdm client
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
 		 * @see admin/jqadm/catalog/image/property/decorators/excludes
203 203
 		 * @see admin/jqadm/catalog/image/property/decorators/global
204 204
 		 */
205
-		return $this->createSubClient( 'catalog/image/property/' . $type, $name );
205
+		return $this->createSubClient('catalog/image/property/' . $type, $name);
206 206
 	}
207 207
 
208 208
 
@@ -212,15 +212,15 @@  discard block
 block discarded – undo
212 212
 	 * @param \Aimeos\MW\View\Iface $view View object
213 213
 	 * @return \Aimeos\MW\View\Iface View object with assigned parameters
214 214
 	 */
215
-	protected function addViewData( \Aimeos\MW\View\Iface $view )
215
+	protected function addViewData(\Aimeos\MW\View\Iface $view)
216 216
 	{
217
-		$manager = \Aimeos\MShop\Factory::createManager( $this->getContext(), 'media/property/type' );
217
+		$manager = \Aimeos\MShop\Factory::createManager($this->getContext(), 'media/property/type');
218 218
 
219 219
 		$search = $manager->createSearch();
220
-		$search->setConditions( $search->compare( '==', 'media.property.type.domain', 'catalog' ) );
221
-		$search->setSlice( 0, 0x7fffffff );
220
+		$search->setConditions($search->compare('==', 'media.property.type.domain', 'catalog'));
221
+		$search->setSlice(0, 0x7fffffff);
222 222
 
223
-		$view->propertyTypes = $manager->searchItems( $search );
223
+		$view->propertyTypes = $manager->searchItems($search);
224 224
 
225 225
 		return $view;
226 226
 	}
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
 		 * @since 2018.01
267 267
 		 * @category Developer
268 268
 		 */
269
-		return $this->getContext()->getConfig()->get( 'admin/jqadm/catalog/image/property/standard/subparts', [] );
269
+		return $this->getContext()->getConfig()->get('admin/jqadm/catalog/image/property/standard/subparts', []);
270 270
 	}
271 271
 
272 272
 
@@ -276,32 +276,32 @@  discard block
 block discarded – undo
276 276
 	 * @param \Aimeos\MShop\Catalog\Item\Iface $item Catalog item object without referenced domain items
277 277
 	 * @param string[] $data Data array
278 278
 	 */
279
-	protected function fromArray( \Aimeos\MShop\Catalog\Item\Iface $item, array $data )
279
+	protected function fromArray(\Aimeos\MShop\Catalog\Item\Iface $item, array $data)
280 280
 	{
281
-		$propManager = \Aimeos\MShop\Factory::createManager( $this->getContext(), 'media/property' );
281
+		$propManager = \Aimeos\MShop\Factory::createManager($this->getContext(), 'media/property');
282 282
 		$index = 0;
283 283
 
284
-		foreach( $item->getRefItems( 'media', null, null, false ) as $refItem )
284
+		foreach ($item->getRefItems('media', null, null, false) as $refItem)
285 285
 		{
286
-			$propItems = $refItem->getPropertyItems( null, false );
286
+			$propItems = $refItem->getPropertyItems(null, false);
287 287
 
288
-			foreach( (array) $this->getValue( $data, $index . '/property', [] ) as $entry )
288
+			foreach ((array) $this->getValue($data, $index . '/property', []) as $entry)
289 289
 			{
290
-				if( isset( $propItems[$entry['media.property.id']] ) )
290
+				if (isset($propItems[$entry['media.property.id']]))
291 291
 				{
292 292
 					$propItem = $propItems[$entry['media.property.id']];
293
-					unset( $propItems[$entry['media.property.id']] );
293
+					unset($propItems[$entry['media.property.id']]);
294 294
 				}
295 295
 				else
296 296
 				{
297 297
 					$propItem = $propManager->createItem();
298 298
 				}
299 299
 
300
-				$propItem->fromArray( $entry );
301
-				$refItem->addPropertyItem( $propItem );
300
+				$propItem->fromArray($entry);
301
+				$refItem->addPropertyItem($propItem);
302 302
 			}
303 303
 
304
-			$refItem->deletePropertyItems( $propItems );
304
+			$refItem->deletePropertyItems($propItems);
305 305
 			$index++;
306 306
 		}
307 307
 
@@ -317,18 +317,18 @@  discard block
 block discarded – undo
317 317
 	 * @param boolean $copy True if items should be copied, false if not
318 318
 	 * @return string[] Multi-dimensional associative list of item data
319 319
 	 */
320
-	protected function toArray( \Aimeos\MShop\Catalog\Item\Iface $item, array $data, $copy = false )
320
+	protected function toArray(\Aimeos\MShop\Catalog\Item\Iface $item, array $data, $copy = false)
321 321
 	{
322 322
 		$idx = 0;
323 323
 		$siteId = $this->getContext()->getLocale()->getSiteId();
324 324
 
325
-		foreach( $item->getRefItems( 'media', null, null, false ) as $mediaItem )
325
+		foreach ($item->getRefItems('media', null, null, false) as $mediaItem)
326 326
 		{
327
-			foreach( $mediaItem->getPropertyItems( null, false )  as $propItem )
327
+			foreach ($mediaItem->getPropertyItems(null, false)  as $propItem)
328 328
 			{
329
-				$list = $propItem->toArray( true );
329
+				$list = $propItem->toArray(true);
330 330
 
331
-				if( $copy === true )
331
+				if ($copy === true)
332 332
 				{
333 333
 					$list['media.property.siteid'] = $siteId;
334 334
 					$list['media.property.id'] = '';
@@ -350,7 +350,7 @@  discard block
 block discarded – undo
350 350
 	 * @param \Aimeos\MW\View\Iface $view View object with data assigned
351 351
 	 * @return string HTML output
352 352
 	 */
353
-	protected function render( \Aimeos\MW\View\Iface $view )
353
+	protected function render(\Aimeos\MW\View\Iface $view)
354 354
 	{
355 355
 		/** admin/jqadm/catalog/image/property/template-item
356 356
 		 * Relative path to the HTML body template of the image subpart for catalogs.
@@ -374,6 +374,6 @@  discard block
 block discarded – undo
374 374
 		$tplconf = 'admin/jqadm/catalog/image/property/template-item';
375 375
 		$default = 'catalog/item-image-property-standard.php';
376 376
 
377
-		return $view->render( $view->config( $tplconf, $default ) );
377
+		return $view->render($view->config($tplconf, $default));
378 378
 	}
379 379
 }
380 380
\ No newline at end of file
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Attribute/Property/Standard.php 2 patches
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -121,14 +121,12 @@  discard block
 block discarded – undo
121 121
 			}
122 122
 
123 123
 			return;
124
-		}
125
-		catch( \Aimeos\MShop\Exception $e )
124
+		} catch( \Aimeos\MShop\Exception $e )
126 125
 		{
127 126
 			$error = array( 'attribute-item-property' => $this->getContext()->getI18n()->dt( 'mshop', $e->getMessage() ) );
128 127
 			$view->errors = $view->get( 'errors', [] ) + $error;
129 128
 			$this->logException( $e );
130
-		}
131
-		catch( \Exception $e )
129
+		} catch( \Exception $e )
132 130
 		{
133 131
 			$error = array( 'attribute-item-property' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() );
134 132
 			$view->errors = $view->get( 'errors', [] ) + $error;
@@ -320,8 +318,7 @@  discard block
 block discarded – undo
320 318
 			{
321 319
 				$propItem = $propItems[$entry['attribute.property.id']];
322 320
 				unset( $propItems[$entry['attribute.property.id']] );
323
-			}
324
-			else
321
+			} else
325 322
 			{
326 323
 				$propItem = $manager->createItem();
327 324
 			}
Please login to merge, or discard this patch.
Spacing   +41 added lines, -41 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\Attribute\Property;
12 12
 
13
-sprintf( 'property' ); // for translation
13
+sprintf('property'); // for translation
14 14
 
15 15
 
16 16
 /**
@@ -44,15 +44,15 @@  discard block
 block discarded – undo
44 44
 	{
45 45
 		$view = $this->getView();
46 46
 
47
-		$view->propertyData = $this->toArray( $view->item, true );
47
+		$view->propertyData = $this->toArray($view->item, true);
48 48
 		$view->propertyTypes = $this->getPropertyTypes();
49 49
 		$view->propertyBody = '';
50 50
 
51
-		foreach( $this->getSubClients() as $client ) {
51
+		foreach ($this->getSubClients() as $client) {
52 52
 			$view->propertyBody .= $client->copy();
53 53
 		}
54 54
 
55
-		return $this->render( $view );
55
+		return $this->render($view);
56 56
 	}
57 57
 
58 58
 
@@ -65,9 +65,9 @@  discard block
 block discarded – undo
65 65
 	{
66 66
 		$view = $this->getView();
67 67
 		$siteid = $this->getContext()->getLocale()->getSiteId();
68
-		$data = $view->param( 'property', [] );
68
+		$data = $view->param('property', []);
69 69
 
70
-		foreach( $data as $idx => $entry ) {
70
+		foreach ($data as $idx => $entry) {
71 71
 			$data[$idx]['attribute.lists.siteid'] = $siteid;
72 72
 		}
73 73
 
@@ -75,11 +75,11 @@  discard block
 block discarded – undo
75 75
 		$view->propertyData = $data;
76 76
 		$view->propertyBody = '';
77 77
 
78
-		foreach( $this->getSubClients() as $client ) {
78
+		foreach ($this->getSubClients() as $client) {
79 79
 			$view->propertyBody .= $client->create();
80 80
 		}
81 81
 
82
-		return $this->render( $view );
82
+		return $this->render($view);
83 83
 	}
84 84
 
85 85
 
@@ -92,15 +92,15 @@  discard block
 block discarded – undo
92 92
 	{
93 93
 		$view = $this->getView();
94 94
 
95
-		$view->propertyData = $this->toArray( $view->item );
95
+		$view->propertyData = $this->toArray($view->item);
96 96
 		$view->propertyTypes = $this->getPropertyTypes();
97 97
 		$view->propertyBody = '';
98 98
 
99
-		foreach( $this->getSubClients() as $client ) {
99
+		foreach ($this->getSubClients() as $client) {
100 100
 			$view->propertyBody .= $client->get();
101 101
 		}
102 102
 
103
-		return $this->render( $view );
103
+		return $this->render($view);
104 104
 	}
105 105
 
106 106
 
@@ -113,26 +113,26 @@  discard block
 block discarded – undo
113 113
 
114 114
 		try
115 115
 		{
116
-			$this->fromArray( $view->item, $view->param( 'property', [] ) );
116
+			$this->fromArray($view->item, $view->param('property', []));
117 117
 			$view->propertyBody = '';
118 118
 
119
-			foreach( $this->getSubClients() as $client ) {
119
+			foreach ($this->getSubClients() as $client) {
120 120
 				$view->propertyBody .= $client->save();
121 121
 			}
122 122
 
123 123
 			return;
124 124
 		}
125
-		catch( \Aimeos\MShop\Exception $e )
125
+		catch (\Aimeos\MShop\Exception $e)
126 126
 		{
127
-			$error = array( 'attribute-item-property' => $this->getContext()->getI18n()->dt( 'mshop', $e->getMessage() ) );
128
-			$view->errors = $view->get( 'errors', [] ) + $error;
129
-			$this->logException( $e );
127
+			$error = array('attribute-item-property' => $this->getContext()->getI18n()->dt('mshop', $e->getMessage()));
128
+			$view->errors = $view->get('errors', []) + $error;
129
+			$this->logException($e);
130 130
 		}
131
-		catch( \Exception $e )
131
+		catch (\Exception $e)
132 132
 		{
133
-			$error = array( 'attribute-item-property' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() );
134
-			$view->errors = $view->get( 'errors', [] ) + $error;
135
-			$this->logException( $e );
133
+			$error = array('attribute-item-property' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine());
134
+			$view->errors = $view->get('errors', []) + $error;
135
+			$this->logException($e);
136 136
 		}
137 137
 
138 138
 		throw new \Aimeos\Admin\JQAdm\Exception();
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 	 * @param string|null $name Name of the sub-client (Default if null)
147 147
 	 * @return \Aimeos\Admin\JQAdm\Iface Sub-client object
148 148
 	 */
149
-	public function getSubClient( $type, $name = null )
149
+	public function getSubClient($type, $name = null)
150 150
 	{
151 151
 		/** admin/jqadm/attribute/property/decorators/excludes
152 152
 		 * Excludes decorators added by the "common" option from the attribute JQAdm client
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
 		 * @see admin/jqadm/attribute/property/decorators/excludes
222 222
 		 * @see admin/jqadm/attribute/property/decorators/global
223 223
 		 */
224
-		return $this->createSubClient( 'attribute/property/' . $type, $name );
224
+		return $this->createSubClient('attribute/property/' . $type, $name);
225 225
 	}
226 226
 
227 227
 
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
 		 * @since 2018.01
266 266
 		 * @category Developer
267 267
 		 */
268
-		return $this->getContext()->getConfig()->get( 'admin/jqadm/attribute/property/standard/subparts', [] );
268
+		return $this->getContext()->getConfig()->get('admin/jqadm/attribute/property/standard/subparts', []);
269 269
 	}
270 270
 
271 271
 
@@ -276,8 +276,8 @@  discard block
 block discarded – undo
276 276
 	 */
277 277
 	protected function getPropertyTypes()
278 278
 	{
279
-		$manager = \Aimeos\MShop\Factory::createManager( $this->getContext(), 'attribute/property/type' );
280
-		return $manager->searchItems( $manager->createSearch()->setSlice( 0, 0x7fffffff ) );
279
+		$manager = \Aimeos\MShop\Factory::createManager($this->getContext(), 'attribute/property/type');
280
+		return $manager->searchItems($manager->createSearch()->setSlice(0, 0x7fffffff));
281 281
 	}
282 282
 
283 283
 
@@ -287,29 +287,29 @@  discard block
 block discarded – undo
287 287
 	 * @param \Aimeos\MShop\Attribute\Item\Iface $item Attribute item object without referenced domain items
288 288
 	 * @param string[] $data Data array
289 289
 	 */
290
-	protected function fromArray( \Aimeos\MShop\Attribute\Item\Iface $item, array $data )
290
+	protected function fromArray(\Aimeos\MShop\Attribute\Item\Iface $item, array $data)
291 291
 	{
292
-		$manager = \Aimeos\MShop\Factory::createManager( $this->getContext(), 'attribute/property' );
292
+		$manager = \Aimeos\MShop\Factory::createManager($this->getContext(), 'attribute/property');
293 293
 
294
-		$propItems = $item->getPropertyItems( null, false );
294
+		$propItems = $item->getPropertyItems(null, false);
295 295
 
296
-		foreach( $data as $entry )
296
+		foreach ($data as $entry)
297 297
 		{
298
-			if( isset( $propItems[$entry['attribute.property.id']] ) )
298
+			if (isset($propItems[$entry['attribute.property.id']]))
299 299
 			{
300 300
 				$propItem = $propItems[$entry['attribute.property.id']];
301
-				unset( $propItems[$entry['attribute.property.id']] );
301
+				unset($propItems[$entry['attribute.property.id']]);
302 302
 			}
303 303
 			else
304 304
 			{
305 305
 				$propItem = $manager->createItem();
306 306
 			}
307 307
 
308
-			$propItem->fromArray( $entry );
309
-			$item->addPropertyItem( $propItem );
308
+			$propItem->fromArray($entry);
309
+			$item->addPropertyItem($propItem);
310 310
 		}
311 311
 
312
-		$item->deletePropertyItems( $propItems );
312
+		$item->deletePropertyItems($propItems);
313 313
 	}
314 314
 
315 315
 
@@ -320,16 +320,16 @@  discard block
 block discarded – undo
320 320
 	 * @param boolean $copy True if items should be copied, false if not
321 321
 	 * @return string[] Multi-dimensional associative list of item data
322 322
 	 */
323
-	protected function toArray( \Aimeos\MShop\Attribute\Item\Iface $item, $copy = false )
323
+	protected function toArray(\Aimeos\MShop\Attribute\Item\Iface $item, $copy = false)
324 324
 	{
325 325
 		$siteId = $this->getContext()->getLocale()->getSiteId();
326 326
 		$data = [];
327 327
 
328
-		foreach( $item->getPropertyItems( null, false ) as $item )
328
+		foreach ($item->getPropertyItems(null, false) as $item)
329 329
 		{
330
-			$list = $item->toArray( true );
330
+			$list = $item->toArray(true);
331 331
 
332
-			if( $copy === true )
332
+			if ($copy === true)
333 333
 			{
334 334
 				$list['attribute.property.siteid'] = $siteId;
335 335
 				$list['attribute.property.id'] = '';
@@ -348,7 +348,7 @@  discard block
 block discarded – undo
348 348
 	 * @param \Aimeos\MW\View\Iface $view View object with data assigned
349 349
 	 * @return string HTML output
350 350
 	 */
351
-	protected function render( \Aimeos\MW\View\Iface $view )
351
+	protected function render(\Aimeos\MW\View\Iface $view)
352 352
 	{
353 353
 		/** admin/jqadm/attribute/property/template-item
354 354
 		 * Relative path to the HTML body template of the property subpart for attributes.
@@ -372,6 +372,6 @@  discard block
 block discarded – undo
372 372
 		$tplconf = 'admin/jqadm/attribute/property/template-item';
373 373
 		$default = 'attribute/item-property-standard.php';
374 374
 
375
-		return $view->render( $view->config( $tplconf, $default ) );
375
+		return $view->render($view->config($tplconf, $default));
376 376
 	}
377 377
 }
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Customer/Property/Standard.php 2 patches
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -121,14 +121,12 @@  discard block
 block discarded – undo
121 121
 			}
122 122
 
123 123
 			return;
124
-		}
125
-		catch( \Aimeos\MShop\Exception $e )
124
+		} catch( \Aimeos\MShop\Exception $e )
126 125
 		{
127 126
 			$error = array( 'customer-item-property' => $this->getContext()->getI18n()->dt( 'mshop', $e->getMessage() ) );
128 127
 			$view->errors = $view->get( 'errors', [] ) + $error;
129 128
 			$this->logException( $e );
130
-		}
131
-		catch( \Exception $e )
129
+		} catch( \Exception $e )
132 130
 		{
133 131
 			$error = array( 'customer-item-property' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() );
134 132
 			$view->errors = $view->get( 'errors', [] ) + $error;
@@ -299,8 +297,7 @@  discard block
 block discarded – undo
299 297
 			{
300 298
 				$propItem = $propItems[$entry['customer.property.id']];
301 299
 				unset( $propItems[$entry['customer.property.id']] );
302
-			}
303
-			else
300
+			} else
304 301
 			{
305 302
 				$propItem = $manager->createItem();
306 303
 			}
Please login to merge, or discard this patch.
Spacing   +41 added lines, -41 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\Customer\Property;
12 12
 
13
-sprintf( 'property' ); // for translation
13
+sprintf('property'); // for translation
14 14
 
15 15
 
16 16
 /**
@@ -44,15 +44,15 @@  discard block
 block discarded – undo
44 44
 	{
45 45
 		$view = $this->getView();
46 46
 
47
-		$view->propertyData = $this->toArray( $view->item, true );
47
+		$view->propertyData = $this->toArray($view->item, true);
48 48
 		$view->propertyTypes = $this->getPropertyTypes();
49 49
 		$view->propertyBody = '';
50 50
 
51
-		foreach( $this->getSubClients() as $client ) {
51
+		foreach ($this->getSubClients() as $client) {
52 52
 			$view->propertyBody .= $client->copy();
53 53
 		}
54 54
 
55
-		return $this->render( $view );
55
+		return $this->render($view);
56 56
 	}
57 57
 
58 58
 
@@ -65,9 +65,9 @@  discard block
 block discarded – undo
65 65
 	{
66 66
 		$view = $this->getView();
67 67
 		$siteid = $this->getContext()->getLocale()->getSiteId();
68
-		$data = $view->param( 'property', [] );
68
+		$data = $view->param('property', []);
69 69
 
70
-		foreach( $data as $idx => $entry ) {
70
+		foreach ($data as $idx => $entry) {
71 71
 			$data[$idx]['customer.lists.siteid'] = $siteid;
72 72
 		}
73 73
 
@@ -75,11 +75,11 @@  discard block
 block discarded – undo
75 75
 		$view->propertyData = $data;
76 76
 		$view->propertyBody = '';
77 77
 
78
-		foreach( $this->getSubClients() as $client ) {
78
+		foreach ($this->getSubClients() as $client) {
79 79
 			$view->propertyBody .= $client->create();
80 80
 		}
81 81
 
82
-		return $this->render( $view );
82
+		return $this->render($view);
83 83
 	}
84 84
 
85 85
 
@@ -92,15 +92,15 @@  discard block
 block discarded – undo
92 92
 	{
93 93
 		$view = $this->getView();
94 94
 
95
-		$view->propertyData = $this->toArray( $view->item );
95
+		$view->propertyData = $this->toArray($view->item);
96 96
 		$view->propertyTypes = $this->getPropertyTypes();
97 97
 		$view->propertyBody = '';
98 98
 
99
-		foreach( $this->getSubClients() as $client ) {
99
+		foreach ($this->getSubClients() as $client) {
100 100
 			$view->propertyBody .= $client->get();
101 101
 		}
102 102
 
103
-		return $this->render( $view );
103
+		return $this->render($view);
104 104
 	}
105 105
 
106 106
 
@@ -113,26 +113,26 @@  discard block
 block discarded – undo
113 113
 
114 114
 		try
115 115
 		{
116
-			$this->fromArray( $view->item, $view->param( 'property', [] ) );
116
+			$this->fromArray($view->item, $view->param('property', []));
117 117
 			$view->propertyBody = '';
118 118
 
119
-			foreach( $this->getSubClients() as $client ) {
119
+			foreach ($this->getSubClients() as $client) {
120 120
 				$view->propertyBody .= $client->save();
121 121
 			}
122 122
 
123 123
 			return;
124 124
 		}
125
-		catch( \Aimeos\MShop\Exception $e )
125
+		catch (\Aimeos\MShop\Exception $e)
126 126
 		{
127
-			$error = array( 'customer-item-property' => $this->getContext()->getI18n()->dt( 'mshop', $e->getMessage() ) );
128
-			$view->errors = $view->get( 'errors', [] ) + $error;
129
-			$this->logException( $e );
127
+			$error = array('customer-item-property' => $this->getContext()->getI18n()->dt('mshop', $e->getMessage()));
128
+			$view->errors = $view->get('errors', []) + $error;
129
+			$this->logException($e);
130 130
 		}
131
-		catch( \Exception $e )
131
+		catch (\Exception $e)
132 132
 		{
133
-			$error = array( 'customer-item-property' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() );
134
-			$view->errors = $view->get( 'errors', [] ) + $error;
135
-			$this->logException( $e );
133
+			$error = array('customer-item-property' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine());
134
+			$view->errors = $view->get('errors', []) + $error;
135
+			$this->logException($e);
136 136
 		}
137 137
 
138 138
 		throw new \Aimeos\Admin\JQAdm\Exception();
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 	 * @param string|null $name Name of the sub-client (Default if null)
147 147
 	 * @return \Aimeos\Admin\JQAdm\Iface Sub-client object
148 148
 	 */
149
-	public function getSubClient( $type, $name = null )
149
+	public function getSubClient($type, $name = null)
150 150
 	{
151 151
 		/** admin/jqadm/customer/property/decorators/excludes
152 152
 		 * Excludes decorators added by the "common" option from the customer JQAdm client
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
 		 * @see admin/jqadm/customer/property/decorators/excludes
222 222
 		 * @see admin/jqadm/customer/property/decorators/global
223 223
 		 */
224
-		return $this->createSubClient( 'customer/property/' . $type, $name );
224
+		return $this->createSubClient('customer/property/' . $type, $name);
225 225
 	}
226 226
 
227 227
 
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
 		 * @since 2018.07
266 266
 		 * @category Developer
267 267
 		 */
268
-		return $this->getContext()->getConfig()->get( 'admin/jqadm/customer/property/standard/subparts', [] );
268
+		return $this->getContext()->getConfig()->get('admin/jqadm/customer/property/standard/subparts', []);
269 269
 	}
270 270
 
271 271
 
@@ -276,8 +276,8 @@  discard block
 block discarded – undo
276 276
 	 */
277 277
 	protected function getPropertyTypes()
278 278
 	{
279
-		$manager = \Aimeos\MShop\Factory::createManager( $this->getContext(), 'customer/property/type' );
280
-		return $manager->searchItems( $manager->createSearch()->setSlice( 0, 0x7fffffff ) );
279
+		$manager = \Aimeos\MShop\Factory::createManager($this->getContext(), 'customer/property/type');
280
+		return $manager->searchItems($manager->createSearch()->setSlice(0, 0x7fffffff));
281 281
 	}
282 282
 
283 283
 
@@ -287,29 +287,29 @@  discard block
 block discarded – undo
287 287
 	 * @param \Aimeos\MShop\Customer\Item\Iface $item Customer item object without referenced domain items
288 288
 	 * @param string[] $data Data array
289 289
 	 */
290
-	protected function fromArray( \Aimeos\MShop\Customer\Item\Iface $item, array $data )
290
+	protected function fromArray(\Aimeos\MShop\Customer\Item\Iface $item, array $data)
291 291
 	{
292
-		$manager = \Aimeos\MShop\Factory::createManager( $this->getContext(), 'customer/property' );
292
+		$manager = \Aimeos\MShop\Factory::createManager($this->getContext(), 'customer/property');
293 293
 
294
-		$propItems = $item->getPropertyItems( null, false );
294
+		$propItems = $item->getPropertyItems(null, false);
295 295
 
296
-		foreach( $data as $entry )
296
+		foreach ($data as $entry)
297 297
 		{
298
-			if( isset( $propItems[$entry['customer.property.id']] ) )
298
+			if (isset($propItems[$entry['customer.property.id']]))
299 299
 			{
300 300
 				$propItem = $propItems[$entry['customer.property.id']];
301
-				unset( $propItems[$entry['customer.property.id']] );
301
+				unset($propItems[$entry['customer.property.id']]);
302 302
 			}
303 303
 			else
304 304
 			{
305 305
 				$propItem = $manager->createItem();
306 306
 			}
307 307
 
308
-			$propItem->fromArray( $entry );
309
-			$item->addPropertyItem( $propItem );
308
+			$propItem->fromArray($entry);
309
+			$item->addPropertyItem($propItem);
310 310
 		}
311 311
 
312
-		$item->deletePropertyItems( $propItems );
312
+		$item->deletePropertyItems($propItems);
313 313
 	}
314 314
 
315 315
 
@@ -320,16 +320,16 @@  discard block
 block discarded – undo
320 320
 	 * @param boolean $copy True if items should be copied, false if not
321 321
 	 * @return string[] Multi-dimensional associative list of item data
322 322
 	 */
323
-	protected function toArray( \Aimeos\MShop\Customer\Item\Iface $item, $copy = false )
323
+	protected function toArray(\Aimeos\MShop\Customer\Item\Iface $item, $copy = false)
324 324
 	{
325 325
 		$siteId = $this->getContext()->getLocale()->getSiteId();
326 326
 		$data = [];
327 327
 
328
-		foreach( $item->getPropertyItems( null, false ) as $item )
328
+		foreach ($item->getPropertyItems(null, false) as $item)
329 329
 		{
330
-			$list = $item->toArray( true );
330
+			$list = $item->toArray(true);
331 331
 
332
-			if( $copy === true )
332
+			if ($copy === true)
333 333
 			{
334 334
 				$list['customer.property.siteid'] = $siteId;
335 335
 				$list['customer.property.id'] = '';
@@ -348,7 +348,7 @@  discard block
 block discarded – undo
348 348
 	 * @param \Aimeos\MW\View\Iface $view View object with data assigned
349 349
 	 * @return string HTML output
350 350
 	 */
351
-	protected function render( \Aimeos\MW\View\Iface $view )
351
+	protected function render(\Aimeos\MW\View\Iface $view)
352 352
 	{
353 353
 		/** admin/jqadm/customer/property/template-item
354 354
 		 * Relative path to the HTML body template of the property subpart for customers.
@@ -372,6 +372,6 @@  discard block
 block discarded – undo
372 372
 		$tplconf = 'admin/jqadm/customer/property/template-item';
373 373
 		$default = 'customer/item-property-standard.php';
374 374
 
375
-		return $view->render( $view->config( $tplconf, $default ) );
375
+		return $view->render($view->config($tplconf, $default));
376 376
 	}
377 377
 }
Please login to merge, or discard this patch.
admin/jqadm/templates/customer/item-property-standard.php 1 patch
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -18,21 +18,21 @@  discard block
 block discarded – undo
18 18
 <div id="property" class="item-property tab-pane fade" role="tabpanel" aria-labelledby="property">
19 19
 
20 20
 	<table class="property-list table table-default"
21
-		data-items="<?= $enc->attr( json_encode( $this->get( 'propertyData', [] ) ) ); ?>"
22
-		data-keys="<?= $enc->attr( json_encode( $keys ) ) ?>"
21
+		data-items="<?= $enc->attr(json_encode($this->get('propertyData', []))); ?>"
22
+		data-keys="<?= $enc->attr(json_encode($keys)) ?>"
23 23
 		data-siteid="<?= $this->site()->siteid() ?>" >
24 24
 
25 25
 		<thead>
26 26
 			<tr>
27 27
 				<th colspan="3">
28
-					<span class="help"><?= $enc->html( $this->translate( 'admin', 'Properties' ) ); ?></span>
28
+					<span class="help"><?= $enc->html($this->translate('admin', 'Properties')); ?></span>
29 29
 					<div class="form-text text-muted help-text">
30
-						<?= $enc->html( $this->translate( 'admin', 'Customer properties that are not shared with other customers' ) ); ?>
30
+						<?= $enc->html($this->translate('admin', 'Customer properties that are not shared with other customers')); ?>
31 31
 					</div>
32 32
 				</th>
33 33
 				<th class="actions">
34
-					<div class="btn act-add fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
35
-						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
34
+					<div class="btn act-add fa" tabindex="<?= $this->get('tabindex'); ?>"
35
+						title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
36 36
 						v-on:click="addItem('customer.property.')">
37 37
 					</div>
38 38
 				</th>
@@ -44,16 +44,16 @@  discard block
 block discarded – undo
44 44
 			<tr v-for="(entry, idx) in items" v-bind:key="idx" v-bind:class="checkSite('customer.property.siteid', idx) ? 'readonly' : ''">
45 45
 				<td class="property-type">
46 46
 					<input class="item-id" type="hidden" v-bind:value="entry['customer.property.id']"
47
-						v-bind:name="'<?= $enc->attr( $this->formparam( array( 'property', 'idx', 'customer.property.id' ) ) ); ?>'.replace('idx', idx)" />
47
+						v-bind:name="'<?= $enc->attr($this->formparam(array('property', 'idx', 'customer.property.id'))); ?>'.replace('idx', idx)" />
48 48
 
49
-					<select class="form-control custom-select item-typeid" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
50
-						v-bind:name="'<?= $enc->attr( $this->formparam( array( 'property', 'idx', 'customer.property.typeid' ) ) ); ?>'.replace('idx', idx)"
49
+					<select class="form-control custom-select item-typeid" required="required" tabindex="<?= $this->get('tabindex'); ?>"
50
+						v-bind:name="'<?= $enc->attr($this->formparam(array('property', 'idx', 'customer.property.typeid'))); ?>'.replace('idx', idx)"
51 51
 						v-bind:readonly="checkSite('customer.property.siteid', idx)"
52 52
 						v-model="items[idx]['customer.property.typeid']" >
53 53
 
54
-						<?php foreach( $this->get( 'propertyTypes', [] ) as $id => $item ) : ?>
55
-							<option value="<?= $enc->attr( $id ); ?>" v-bind:selected="entry['customer.property.typeid'] == '<?= $enc->attr( $id ) ?>'" >
56
-								<?= $enc->html( $item->getLabel() ); ?>
54
+						<?php foreach ($this->get('propertyTypes', []) as $id => $item) : ?>
55
+							<option value="<?= $enc->attr($id); ?>" v-bind:selected="entry['customer.property.typeid'] == '<?= $enc->attr($id) ?>'" >
56
+								<?= $enc->html($item->getLabel()); ?>
57 57
 							</option>
58 58
 						<?php endforeach; ?>
59 59
 
@@ -61,34 +61,34 @@  discard block
 block discarded – undo
61 61
 				</td>
62 62
 
63 63
 				<td class="property-language">
64
-					<select class="form-control custom-select item-languageid" tabindex="<?= $this->get( 'tabindex' ); ?>"
65
-						v-bind:name="'<?= $enc->attr( $this->formparam( array( 'property', 'idx', 'customer.property.languageid' ) ) ); ?>'.replace('idx', idx)"
64
+					<select class="form-control custom-select item-languageid" tabindex="<?= $this->get('tabindex'); ?>"
65
+						v-bind:name="'<?= $enc->attr($this->formparam(array('property', 'idx', 'customer.property.languageid'))); ?>'.replace('idx', idx)"
66 66
 						v-bind:readonly="checkSite('customer.property.siteid', idx)"
67 67
 						v-model="items[idx]['customer.property.languageid']" >
68 68
 
69 69
 						<option v-bind:value="null">
70
-							<?= $enc->html( $this->translate( 'admin', 'All' ) ); ?>
70
+							<?= $enc->html($this->translate('admin', 'All')); ?>
71 71
 						</option>
72 72
 
73
-						<?php foreach( $this->get( 'pageLangItems', [] ) as $langId => $langItem ) : ?>
74
-							<option value="<?= $enc->attr( $langId ); ?>" v-bind:selected="entry['customer.property.languageid'] == '<?= $enc->attr( $langId ) ?>'" >
75
-								<?= $enc->html( $langItem->getLabel() ); ?>
73
+						<?php foreach ($this->get('pageLangItems', []) as $langId => $langItem) : ?>
74
+							<option value="<?= $enc->attr($langId); ?>" v-bind:selected="entry['customer.property.languageid'] == '<?= $enc->attr($langId) ?>'" >
75
+								<?= $enc->html($langItem->getLabel()); ?>
76 76
 							</option>
77 77
 						<?php endforeach; ?>
78 78
 					</select>
79 79
 				</td>
80 80
 
81 81
 				<td class="property-value">
82
-					<input class="form-control item-value" type="text" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
83
-						v-bind:name="'<?= $enc->attr( $this->formparam( array( 'property', 'idx', 'customer.property.value' ) ) ); ?>'.replace('idx', idx)"
84
-						placeholder="<?= $enc->attr( $this->translate( 'admin', 'Property value (required)' ) ); ?>"
82
+					<input class="form-control item-value" type="text" required="required" tabindex="<?= $this->get('tabindex'); ?>"
83
+						v-bind:name="'<?= $enc->attr($this->formparam(array('property', 'idx', 'customer.property.value'))); ?>'.replace('idx', idx)"
84
+						placeholder="<?= $enc->attr($this->translate('admin', 'Property value (required)')); ?>"
85 85
 						v-bind:readonly="checkSite('customer.property.siteid', idx)"
86 86
 						v-model="items[idx]['customer.property.value']" >
87 87
 				</td>
88 88
 
89 89
 				<td class="actions">
90
-					<div v-if="!checkSite('customer.property.siteid', idx)" class="btn act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
91
-						title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
90
+					<div v-if="!checkSite('customer.property.siteid', idx)" class="btn act-delete fa" tabindex="<?= $this->get('tabindex'); ?>"
91
+						title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>"
92 92
 						v-on:click.stop="removeItem(idx)">
93 93
 					</div>
94 94
 				</td>
@@ -97,5 +97,5 @@  discard block
 block discarded – undo
97 97
 		</tbody>
98 98
 	</table>
99 99
 
100
-	<?= $this->get( 'propertyBody' ); ?>
100
+	<?= $this->get('propertyBody'); ?>
101 101
 </div>
Please login to merge, or discard this patch.
admin/jqadm/templates/attribute/item-property-standard.php 1 patch
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -18,21 +18,21 @@  discard block
 block discarded – undo
18 18
 <div id="property" class="item-property tab-pane fade" role="tabpanel" aria-labelledby="property">
19 19
 
20 20
 	<table class="property-list table table-default"
21
-		data-items="<?= $enc->attr( json_encode( $this->get( 'propertyData', [] ) ) ); ?>"
22
-		data-keys="<?= $enc->attr( json_encode( $keys ) ) ?>"
21
+		data-items="<?= $enc->attr(json_encode($this->get('propertyData', []))); ?>"
22
+		data-keys="<?= $enc->attr(json_encode($keys)) ?>"
23 23
 		data-siteid="<?= $this->site()->siteid() ?>" >
24 24
 
25 25
 		<thead>
26 26
 			<tr>
27 27
 				<th colspan="3">
28
-					<span class="help"><?= $enc->html( $this->translate( 'admin', 'Properties' ) ); ?></span>
28
+					<span class="help"><?= $enc->html($this->translate('admin', 'Properties')); ?></span>
29 29
 					<div class="form-text text-muted help-text">
30
-						<?= $enc->html( $this->translate( 'admin', 'Attribute properties that are not shared with other attributes' ) ); ?>
30
+						<?= $enc->html($this->translate('admin', 'Attribute properties that are not shared with other attributes')); ?>
31 31
 					</div>
32 32
 				</th>
33 33
 				<th class="actions">
34
-					<div class="btn act-add fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
35
-						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
34
+					<div class="btn act-add fa" tabindex="<?= $this->get('tabindex'); ?>"
35
+						title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
36 36
 						v-on:click="addItem('attribute.property.')">
37 37
 					</div>
38 38
 				</th>
@@ -44,16 +44,16 @@  discard block
 block discarded – undo
44 44
 			<tr v-for="(entry, idx) in items" v-bind:key="idx" v-bind:class="checkSite('attribute.property.siteid', idx) ? 'readonly' : ''">
45 45
 				<td class="property-type">
46 46
 					<input class="item-id" type="hidden" v-bind:value="entry['attribute.property.id']"
47
-						v-bind:name="'<?= $enc->attr( $this->formparam( array( 'property', 'idx', 'attribute.property.id' ) ) ); ?>'.replace('idx', idx)" />
47
+						v-bind:name="'<?= $enc->attr($this->formparam(array('property', 'idx', 'attribute.property.id'))); ?>'.replace('idx', idx)" />
48 48
 
49
-					<select class="form-control custom-select item-typeid" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
50
-						v-bind:name="'<?= $enc->attr( $this->formparam( array( 'property', 'idx', 'attribute.property.typeid' ) ) ); ?>'.replace('idx', idx)"
49
+					<select class="form-control custom-select item-typeid" required="required" tabindex="<?= $this->get('tabindex'); ?>"
50
+						v-bind:name="'<?= $enc->attr($this->formparam(array('property', 'idx', 'attribute.property.typeid'))); ?>'.replace('idx', idx)"
51 51
 						v-bind:readonly="checkSite('attribute.property.siteid', idx)"
52 52
 						v-model="items[idx]['attribute.property.typeid']" >
53 53
 
54
-						<?php foreach( $this->get( 'propertyTypes', [] ) as $id => $item ) : ?>
55
-							<option value="<?= $enc->attr( $id ); ?>" v-bind:selected="entry['attribute.property.typeid'] == '<?= $enc->attr( $id ) ?>'" >
56
-								<?= $enc->html( $item->getLabel() ); ?>
54
+						<?php foreach ($this->get('propertyTypes', []) as $id => $item) : ?>
55
+							<option value="<?= $enc->attr($id); ?>" v-bind:selected="entry['attribute.property.typeid'] == '<?= $enc->attr($id) ?>'" >
56
+								<?= $enc->html($item->getLabel()); ?>
57 57
 							</option>
58 58
 						<?php endforeach; ?>
59 59
 
@@ -61,34 +61,34 @@  discard block
 block discarded – undo
61 61
 				</td>
62 62
 
63 63
 				<td class="property-language">
64
-					<select class="form-control custom-select item-languageid" tabindex="<?= $this->get( 'tabindex' ); ?>"
65
-						v-bind:name="'<?= $enc->attr( $this->formparam( array( 'property', 'idx', 'attribute.property.languageid' ) ) ); ?>'.replace('idx', idx)"
64
+					<select class="form-control custom-select item-languageid" tabindex="<?= $this->get('tabindex'); ?>"
65
+						v-bind:name="'<?= $enc->attr($this->formparam(array('property', 'idx', 'attribute.property.languageid'))); ?>'.replace('idx', idx)"
66 66
 						v-bind:readonly="checkSite('attribute.property.siteid', idx)"
67 67
 						v-model="items[idx]['attribute.property.languageid']" >
68 68
 
69 69
 						<option v-bind:value="null">
70
-							<?= $enc->html( $this->translate( 'admin', 'All' ) ); ?>
70
+							<?= $enc->html($this->translate('admin', 'All')); ?>
71 71
 						</option>
72 72
 
73
-						<?php foreach( $this->get( 'pageLangItems', [] ) as $langId => $langItem ) : ?>
74
-							<option value="<?= $enc->attr( $langId ); ?>" v-bind:selected="entry['attribute.property.languageid'] == '<?= $enc->attr( $langId ) ?>'" >
75
-								<?= $enc->html( $langItem->getLabel() ); ?>
73
+						<?php foreach ($this->get('pageLangItems', []) as $langId => $langItem) : ?>
74
+							<option value="<?= $enc->attr($langId); ?>" v-bind:selected="entry['attribute.property.languageid'] == '<?= $enc->attr($langId) ?>'" >
75
+								<?= $enc->html($langItem->getLabel()); ?>
76 76
 							</option>
77 77
 						<?php endforeach; ?>
78 78
 					</select>
79 79
 				</td>
80 80
 
81 81
 				<td class="property-value">
82
-					<input class="form-control item-value" type="text" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
83
-						v-bind:name="'<?= $enc->attr( $this->formparam( array( 'property', 'idx', 'attribute.property.value' ) ) ); ?>'.replace('idx', idx)"
84
-						placeholder="<?= $enc->attr( $this->translate( 'admin', 'Property value (required)' ) ); ?>"
82
+					<input class="form-control item-value" type="text" required="required" tabindex="<?= $this->get('tabindex'); ?>"
83
+						v-bind:name="'<?= $enc->attr($this->formparam(array('property', 'idx', 'attribute.property.value'))); ?>'.replace('idx', idx)"
84
+						placeholder="<?= $enc->attr($this->translate('admin', 'Property value (required)')); ?>"
85 85
 						v-bind:readonly="checkSite('attribute.property.siteid', idx)"
86 86
 						v-model="items[idx]['attribute.property.value']" >
87 87
 				</td>
88 88
 
89 89
 				<td class="actions">
90
-					<div v-if="!checkSite('attribute.property.siteid', idx)" class="btn act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
91
-						title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
90
+					<div v-if="!checkSite('attribute.property.siteid', idx)" class="btn act-delete fa" tabindex="<?= $this->get('tabindex'); ?>"
91
+						title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>"
92 92
 						v-on:click.stop="removeItem(idx)">
93 93
 					</div>
94 94
 				</td>
@@ -97,5 +97,5 @@  discard block
 block discarded – undo
97 97
 		</tbody>
98 98
 	</table>
99 99
 
100
-	<?= $this->get( 'propertyBody' ); ?>
100
+	<?= $this->get('propertyBody'); ?>
101 101
 </div>
Please login to merge, or discard this patch.
admin/jqadm/templates/product/item-characteristic-property-standard.php 1 patch
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -18,21 +18,21 @@  discard block
 block discarded – undo
18 18
 <div class="col-xl-12 content-block item-characteristic-property">
19 19
 
20 20
 	<table class="property-list table table-default"
21
-		data-items="<?= $enc->attr( json_encode( $this->get( 'propertyData', [] ) ) ); ?>"
22
-		data-keys="<?= $enc->attr( json_encode( $keys ) ) ?>"
21
+		data-items="<?= $enc->attr(json_encode($this->get('propertyData', []))); ?>"
22
+		data-keys="<?= $enc->attr(json_encode($keys)) ?>"
23 23
 		data-siteid="<?= $this->site()->siteid() ?>" >
24 24
 
25 25
 		<thead>
26 26
 			<tr>
27 27
 				<th colspan="3">
28
-					<span class="help"><?= $enc->html( $this->translate( 'admin', 'Properties' ) ); ?></span>
28
+					<span class="help"><?= $enc->html($this->translate('admin', 'Properties')); ?></span>
29 29
 					<div class="form-text text-muted help-text">
30
-						<?= $enc->html( $this->translate( 'admin', 'Product characteristics that are not shared with other products' ) ); ?>
30
+						<?= $enc->html($this->translate('admin', 'Product characteristics that are not shared with other products')); ?>
31 31
 					</div>
32 32
 				</th>
33 33
 				<th class="actions">
34
-					<div class="btn act-add fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
35
-						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
34
+					<div class="btn act-add fa" tabindex="<?= $this->get('tabindex'); ?>"
35
+						title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
36 36
 						v-on:click="addItem('product.property.')">
37 37
 					</div>
38 38
 				</th>
@@ -44,16 +44,16 @@  discard block
 block discarded – undo
44 44
 			<tr v-for="(entry, idx) in items" v-bind:key="idx" v-bind:class="checkSite('product.property.siteid', idx) ? 'readonly' : ''">
45 45
 				<td class="property-type">
46 46
 					<input class="item-id" type="hidden" v-bind:value="entry['product.property.id']"
47
-						v-bind:name="'<?= $enc->attr( $this->formparam( array( 'characteristic', 'property', 'idx', 'product.property.id' ) ) ); ?>'.replace('idx', idx)" />
47
+						v-bind:name="'<?= $enc->attr($this->formparam(array('characteristic', 'property', 'idx', 'product.property.id'))); ?>'.replace('idx', idx)" />
48 48
 
49
-					<select class="form-control custom-select item-typeid" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
50
-						v-bind:name="'<?= $enc->attr( $this->formparam( array( 'characteristic', 'property', 'idx', 'product.property.typeid' ) ) ); ?>'.replace('idx', idx)"
49
+					<select class="form-control custom-select item-typeid" required="required" tabindex="<?= $this->get('tabindex'); ?>"
50
+						v-bind:name="'<?= $enc->attr($this->formparam(array('characteristic', 'property', 'idx', 'product.property.typeid'))); ?>'.replace('idx', idx)"
51 51
 						v-bind:readonly="checkSite('product.property.siteid', idx)"
52 52
 						v-model="items[idx]['product.property.typeid']" >
53 53
 
54
-						<?php foreach( $this->get( 'propertyTypes', [] ) as $id => $item ) : ?>
55
-							<option value="<?= $enc->attr( $id ); ?>" v-bind:selected="entry['product.property.typeid'] == '<?= $enc->attr( $id ) ?>'" >
56
-								<?= $enc->html( $item->getLabel() ); ?>
54
+						<?php foreach ($this->get('propertyTypes', []) as $id => $item) : ?>
55
+							<option value="<?= $enc->attr($id); ?>" v-bind:selected="entry['product.property.typeid'] == '<?= $enc->attr($id) ?>'" >
56
+								<?= $enc->html($item->getLabel()); ?>
57 57
 							</option>
58 58
 						<?php endforeach; ?>
59 59
 
@@ -61,34 +61,34 @@  discard block
 block discarded – undo
61 61
 				</td>
62 62
 
63 63
 				<td class="property-language">
64
-					<select class="form-control custom-select item-languageid" tabindex="<?= $this->get( 'tabindex' ); ?>"
65
-						v-bind:name="'<?= $enc->attr( $this->formparam( array( 'characteristic', 'property', 'idx', 'product.property.languageid' ) ) ); ?>'.replace('idx', idx)"
64
+					<select class="form-control custom-select item-languageid" tabindex="<?= $this->get('tabindex'); ?>"
65
+						v-bind:name="'<?= $enc->attr($this->formparam(array('characteristic', 'property', 'idx', 'product.property.languageid'))); ?>'.replace('idx', idx)"
66 66
 						v-bind:readonly="checkSite('product.property.siteid', idx)"
67 67
 						v-model="items[idx]['product.property.languageid']" >
68 68
 
69 69
 						<option v-bind:value="null">
70
-							<?= $enc->html( $this->translate( 'admin', 'All' ) ); ?>
70
+							<?= $enc->html($this->translate('admin', 'All')); ?>
71 71
 						</option>
72 72
 
73
-						<?php foreach( $this->get( 'pageLangItems', [] ) as $langId => $langItem ) : ?>
74
-							<option value="<?= $enc->attr( $langId ); ?>" v-bind:selected="entry['product.property.languageid'] == '<?= $enc->attr( $langId ) ?>'" >
75
-								<?= $enc->html( $langItem->getLabel() ); ?>
73
+						<?php foreach ($this->get('pageLangItems', []) as $langId => $langItem) : ?>
74
+							<option value="<?= $enc->attr($langId); ?>" v-bind:selected="entry['product.property.languageid'] == '<?= $enc->attr($langId) ?>'" >
75
+								<?= $enc->html($langItem->getLabel()); ?>
76 76
 							</option>
77 77
 						<?php endforeach; ?>
78 78
 					</select>
79 79
 				</td>
80 80
 
81 81
 				<td class="property-value">
82
-					<input class="form-control item-value" type="text" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
83
-						v-bind:name="'<?= $enc->attr( $this->formparam( array( 'characteristic', 'property', 'idx', 'product.property.value' ) ) ); ?>'.replace('idx', idx)"
84
-						placeholder="<?= $enc->attr( $this->translate( 'admin', 'Property value (required)' ) ); ?>"
82
+					<input class="form-control item-value" type="text" required="required" tabindex="<?= $this->get('tabindex'); ?>"
83
+						v-bind:name="'<?= $enc->attr($this->formparam(array('characteristic', 'property', 'idx', 'product.property.value'))); ?>'.replace('idx', idx)"
84
+						placeholder="<?= $enc->attr($this->translate('admin', 'Property value (required)')); ?>"
85 85
 						v-bind:readonly="checkSite('product.property.siteid', idx)"
86 86
 						v-model="items[idx]['product.property.value']" >
87 87
 				</td>
88 88
 
89 89
 				<td class="actions">
90
-					<div v-if="!checkSite('product.property.siteid', idx)" class="btn act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
91
-						title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
90
+					<div v-if="!checkSite('product.property.siteid', idx)" class="btn act-delete fa" tabindex="<?= $this->get('tabindex'); ?>"
91
+						title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>"
92 92
 						v-on:click.stop="removeItem(idx)">
93 93
 					</div>
94 94
 				</td>
@@ -97,6 +97,6 @@  discard block
 block discarded – undo
97 97
 		</tbody>
98 98
 	</table>
99 99
 
100
-	<?= $this->get( 'propertyBody' ); ?>
100
+	<?= $this->get('propertyBody'); ?>
101 101
 
102 102
 </div>
Please login to merge, or discard this patch.