@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | <list> |
24 | 24 | <text> |
25 | 25 | <?php foreach( $item->getListItems( 'text' ) as $listItem ) : ?> |
26 | - <?php if ($refItem = $listItem->getRefItem()) { ?> |
|
26 | + <?php if( $refItem = $listItem->getRefItem() ) { ?> |
|
27 | 27 | |
28 | 28 | <textitem id="<?php echo $enc->attr( $refItem->getId() ); ?>" siteid="<?php echo $enc->attr( $refItem->getSiteId() ); ?>" ctime="<?php echo $enc->attr( $refItem->getTimeCreated() ); ?>" mtime="<?php echo $enc->attr( $refItem->getTimeModified() ); ?>" editor="<?php echo $enc->attr( $refItem->getEditor() ); ?>" list.id="<?php echo $enc->attr( $listItem->getId() ); ?>" list.siteid="<?php echo $enc->attr( $listItem->getSiteId() ); ?>" list.parentid="<?php echo $enc->attr( $listItem->getParentId() ); ?>" list.type="<?php echo $enc->attr( $listItem->getType() ); ?>" list.domain="<?php echo $enc->attr( $listItem->getDomain() ); ?>" list.config="<?php echo $enc->attr( json_encode( $listItem->getConfig() ) ); ?>" list.start="<?php echo $enc->attr( $listItem->getDateStart() ); ?>" list.end="<?php echo $enc->attr( $listItem->getDateEnd() ); ?>" list.position="<?php echo $enc->attr( $listItem->getPosition() ); ?>" list.status="<?php echo $enc->attr( $listItem->getStatus() ); ?>" list.ctime="<?php echo $enc->attr( $listItem->getTimeCreated() ); ?>" list.mtime="<?php echo $enc->attr( $listItem->getTimeModified() ); ?>" list.editor="<?php echo $enc->attr( $listItem->getEditor() ); ?>"> |
29 | 29 | <type><![CDATA[<?php echo $refItem->getType(); ?>]]></type> |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | </text> |
39 | 39 | <media> |
40 | 40 | <?php foreach( $item->getListItems( 'media' ) as $listItem ) : ?> |
41 | - <?php if ($refItem = $listItem->getRefItem()) { ?> |
|
41 | + <?php if( $refItem = $listItem->getRefItem() ) { ?> |
|
42 | 42 | |
43 | 43 | <mediaitem id="<?php echo $enc->attr( $refItem->getId() ); ?>" siteid="<?php echo $enc->attr( $refItem->getSiteId() ); ?>" ctime="<?php echo $enc->attr( $refItem->getTimeCreated() ); ?>" mtime="<?php echo $enc->attr( $refItem->getTimeModified() ); ?>" editor="<?php echo $enc->attr( $refItem->getEditor() ); ?>" list.id="<?php echo $enc->attr( $listItem->getId() ); ?>" list.siteid="<?php echo $enc->attr( $listItem->getSiteId() ); ?>" list.parentid="<?php echo $enc->attr( $listItem->getParentId() ); ?>" list.type="<?php echo $enc->attr( $listItem->getType() ); ?>" list.config="<?php echo $enc->attr( json_encode( $listItem->getConfig() ) ); ?>" list.start="<?php echo $enc->attr( $listItem->getDateStart() ); ?>" list.end="<?php echo $enc->attr( $listItem->getDateEnd() ); ?>" list.position="<?php echo $enc->attr( $listItem->getPosition() ); ?>" list.status="<?php echo $enc->attr( $listItem->getStatus() ); ?>" list.ctime="<?php echo $enc->attr( $listItem->getTimeCreated() ); ?>" list.mtime="<?php echo $enc->attr( $listItem->getTimeModified() ); ?>" list.editor="<?php echo $enc->attr( $listItem->getEditor() ); ?>"> |
44 | 44 | <type><![CDATA[<?php echo $refItem->getType(); ?>]]></type> |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | </media> |
56 | 56 | <price> |
57 | 57 | <?php foreach( $item->getListItems( 'price' ) as $listItem ) : ?> |
58 | - <?php if ($refItem = $listItem->getRefItem()) { ?> |
|
58 | + <?php if( $refItem = $listItem->getRefItem() ) { ?> |
|
59 | 59 | |
60 | 60 | <priceitem id="<?php echo $enc->attr( $refItem->getId() ); ?>" siteid="<?php echo $enc->attr( $refItem->getSiteId() ); ?>" ctime="<?php echo $enc->attr( $refItem->getTimeCreated() ); ?>" mtime="<?php echo $enc->attr( $refItem->getTimeModified() ); ?>" editor="<?php echo $enc->attr( $refItem->getEditor() ); ?>" list.id="<?php echo $enc->attr( $listItem->getId() ); ?>" list.siteid="<?php echo $enc->attr( $listItem->getSiteId() ); ?>" list.parentid="<?php echo $enc->attr( $listItem->getParentId() ); ?>" list.type="<?php echo $enc->attr( $listItem->getType() ); ?>" list.config="<?php echo $enc->attr( json_encode( $listItem->getConfig() ) ); ?>" list.start="<?php echo $enc->attr( $listItem->getDateStart() ); ?>" list.end="<?php echo $enc->attr( $listItem->getDateEnd() ); ?>" list.position="<?php echo $enc->attr( $listItem->getPosition() ); ?>" list.status="<?php echo $enc->attr( $listItem->getStatus() ); ?>" list.ctime="<?php echo $enc->attr( $listItem->getTimeCreated() ); ?>" list.mtime="<?php echo $enc->attr( $listItem->getTimeModified() ); ?>" list.editor="<?php echo $enc->attr( $listItem->getEditor() ); ?>"> |
61 | 61 | <type><![CDATA[<?php echo $refItem->getType(); ?>]]></type> |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | </price> |
75 | 75 | <attribute> |
76 | 76 | <?php foreach( $item->getListItems( 'attribute' ) as $listItem ) : ?> |
77 | - <?php if ($refItem = $listItem->getRefItem()) { ?> |
|
77 | + <?php if( $refItem = $listItem->getRefItem() ) { ?> |
|
78 | 78 | |
79 | 79 | <attributeitem id="<?php echo $enc->attr( $refItem->getId() ); ?>" siteid="<?php echo $enc->attr( $refItem->getSiteId() ); ?>" ctime="<?php echo $enc->attr( $refItem->getTimeCreated() ); ?>" mtime="<?php echo $enc->attr( $refItem->getTimeModified() ); ?>" editor="<?php echo $enc->attr( $refItem->getEditor() ); ?>" list.id="<?php echo $enc->attr( $listItem->getId() ); ?>" list.siteid="<?php echo $enc->attr( $listItem->getSiteId() ); ?>" list.parentid="<?php echo $enc->attr( $listItem->getParentId() ); ?>" list.type="<?php echo $enc->attr( $listItem->getType() ); ?>" list.config="<?php echo $enc->attr( json_encode( $listItem->getConfig() ) ); ?>" list.start="<?php echo $enc->attr( $listItem->getDateStart() ); ?>" list.end="<?php echo $enc->attr( $listItem->getDateEnd() ); ?>" list.position="<?php echo $enc->attr( $listItem->getPosition() ); ?>" list.status="<?php echo $enc->attr( $listItem->getStatus() ); ?>" list.ctime="<?php echo $enc->attr( $listItem->getTimeCreated() ); ?>" list.mtime="<?php echo $enc->attr( $listItem->getTimeModified() ); ?>" list.editor="<?php echo $enc->attr( $listItem->getEditor() ); ?>"> |
80 | 80 | <type><![CDATA[<?php echo $refItem->getType(); ?>]]></type> |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | </attribute> |
90 | 90 | <product> |
91 | 91 | <?php foreach( $item->getListItems( 'product' ) as $listItem ) : ?> |
92 | - <?php if ($refItem = $listItem->getRefItem()) { ?> |
|
92 | + <?php if( $refItem = $listItem->getRefItem() ) { ?> |
|
93 | 93 | |
94 | 94 | <productitem id="<?php echo $enc->attr( $refItem->getId() ); ?>" siteid="<?php echo $enc->attr( $refItem->getSiteId() ); ?>" ctime="<?php echo $enc->attr( $refItem->getTimeCreated() ); ?>" mtime="<?php echo $enc->attr( $refItem->getTimeModified() ); ?>" editor="<?php echo $enc->attr( $refItem->getEditor() ); ?>" list.id="<?php echo $enc->attr( $listItem->getId() ); ?>" list.siteid="<?php echo $enc->attr( $listItem->getSiteId() ); ?>" list.parentid="<?php echo $enc->attr( $listItem->getParentId() ); ?>" list.type="<?php echo $enc->attr( $listItem->getType() ); ?>" list.config="<?php echo $enc->attr( json_encode( $listItem->getConfig() ) ); ?>" list.start="<?php echo $enc->attr( $listItem->getDateStart() ); ?>" list.end="<?php echo $enc->attr( $listItem->getDateEnd() ); ?>" list.position="<?php echo $enc->attr( $listItem->getPosition() ); ?>" list.status="<?php echo $enc->attr( $listItem->getStatus() ); ?>" list.ctime="<?php echo $enc->attr( $listItem->getTimeCreated() ); ?>" list.mtime="<?php echo $enc->attr( $listItem->getTimeModified() ); ?>" list.editor="<?php echo $enc->attr( $listItem->getEditor() ); ?>"> |
95 | 95 | <type><![CDATA[<?php echo $item->getType(); ?>]]></type> |
@@ -17,7 +17,7 @@ |
||
17 | 17 | $aimeos = \TestHelperJobs::getAimeos(); |
18 | 18 | |
19 | 19 | $obj = \Aimeos\Controller\Jobs\Coupon\Import\Csv\Code\Factory::create( $context, $aimeos ); |
20 | - $this->assertInstanceOf( '\\Aimeos\\Controller\\Jobs\\Iface', $obj); |
|
20 | + $this->assertInstanceOf( '\\Aimeos\\Controller\\Jobs\\Iface', $obj ); |
|
21 | 21 | } |
22 | 22 | |
23 | 23 |
@@ -17,7 +17,7 @@ |
||
17 | 17 | $aimeos = \TestHelperJobs::getAimeos(); |
18 | 18 | |
19 | 19 | $obj = \Aimeos\Controller\Jobs\Catalog\Import\Csv\Factory::create( $context, $aimeos ); |
20 | - $this->assertInstanceOf( '\\Aimeos\\Controller\\Jobs\\Iface', $obj); |
|
20 | + $this->assertInstanceOf( '\\Aimeos\\Controller\\Jobs\\Iface', $obj ); |
|
21 | 21 | } |
22 | 22 | |
23 | 23 |
@@ -103,8 +103,8 @@ discard block |
||
103 | 103 | $address2 = fgetcsv( $fp ); |
104 | 104 | $service1 = fgetcsv( $fp ); |
105 | 105 | $service2 = fgetcsv( $fp ); |
106 | - $coupon1 = fgetcsv($fp); |
|
107 | - $coupon2 = fgetcsv($fp); |
|
106 | + $coupon1 = fgetcsv( $fp ); |
|
107 | + $coupon2 = fgetcsv( $fp ); |
|
108 | 108 | $product1 = fgetcsv( $fp ); |
109 | 109 | $product2 = fgetcsv( $fp ); |
110 | 110 | $product3 = fgetcsv( $fp ); |
@@ -118,8 +118,8 @@ discard block |
||
118 | 118 | $this->assertEquals( 'address', $address2[0] ); |
119 | 119 | $this->assertEquals( 'service', $service1[0] ); |
120 | 120 | $this->assertEquals( 'service', $service2[0] ); |
121 | - $this->assertEquals( 'coupon', $coupon1[0]); |
|
122 | - $this->assertEquals( 'coupon', $coupon2[0]); |
|
121 | + $this->assertEquals( 'coupon', $coupon1[0] ); |
|
122 | + $this->assertEquals( 'coupon', $coupon2[0] ); |
|
123 | 123 | $this->assertEquals( 'product', $product1[0] ); |
124 | 124 | $this->assertEquals( 'product', $product2[0] ); |
125 | 125 | $this->assertEquals( 'product', $product3[0] ); |
@@ -17,7 +17,7 @@ |
||
17 | 17 | $aimeos = \TestHelperJobs::getAimeos(); |
18 | 18 | |
19 | 19 | $obj = \Aimeos\Controller\Jobs\Product\Export\Sitemap\Factory::create( $context, $aimeos ); |
20 | - $this->assertInstanceOf( '\\Aimeos\\Controller\\Jobs\\Iface', $obj); |
|
20 | + $this->assertInstanceOf( '\\Aimeos\\Controller\\Jobs\\Iface', $obj ); |
|
21 | 21 | } |
22 | 22 | |
23 | 23 |
@@ -17,7 +17,7 @@ |
||
17 | 17 | $aimeos = \TestHelperJobs::getAimeos(); |
18 | 18 | |
19 | 19 | $obj = \Aimeos\Controller\Jobs\Product\Export\Factory::create( $context, $aimeos ); |
20 | - $this->assertInstanceOf( '\\Aimeos\\Controller\\Jobs\\Iface', $obj); |
|
20 | + $this->assertInstanceOf( '\\Aimeos\\Controller\\Jobs\\Iface', $obj ); |
|
21 | 21 | } |
22 | 22 | |
23 | 23 |
@@ -17,7 +17,7 @@ |
||
17 | 17 | $aimeos = \TestHelperJobs::getAimeos(); |
18 | 18 | |
19 | 19 | $obj = \Aimeos\Controller\Jobs\Product\Import\Csv\Factory::create( $context, $aimeos ); |
20 | - $this->assertInstanceOf( '\\Aimeos\\Controller\\Jobs\\Iface', $obj); |
|
20 | + $this->assertInstanceOf( '\\Aimeos\\Controller\\Jobs\\Iface', $obj ); |
|
21 | 21 | } |
22 | 22 | |
23 | 23 |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | |
15 | 15 | protected function setUp() |
16 | 16 | { |
17 | - $this->context = \TestHelperJobs::getContext('unitperf'); |
|
17 | + $this->context = \TestHelperJobs::getContext( 'unitperf' ); |
|
18 | 18 | |
19 | 19 | $config = $this->context->getConfig(); |
20 | 20 | $config->set( 'controller/jobs/product/import/csv/location', 'tmp/product-import.zip' ); |
@@ -76,11 +76,11 @@ discard block |
||
76 | 76 | protected function addAttribute( array $data, $cnt ) |
77 | 77 | { |
78 | 78 | $data[] = 'length'; // type |
79 | - $data[] = 'import-' . ($cnt % 30); // code |
|
79 | + $data[] = 'import-' . ( $cnt % 30 ); // code |
|
80 | 80 | $data[] = 'width'; // type |
81 | - $data[] = 'import-' . ($cnt % 30); // code |
|
81 | + $data[] = 'import-' . ( $cnt % 30 ); // code |
|
82 | 82 | $data[] = 'size'; // type |
83 | - $data[] = 'import-' . ($cnt % 5); // code |
|
83 | + $data[] = 'import-' . ( $cnt % 5 ); // code |
|
84 | 84 | |
85 | 85 | return $data; |
86 | 86 | } |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | |
119 | 119 | protected function addProductRef( array $data, $cnt ) |
120 | 120 | { |
121 | - $data[] = 'import-' . ($cnt % 100); // code |
|
121 | + $data[] = 'import-' . ( $cnt % 100 ); // code |
|
122 | 122 | $data[] = 'suggestion'; // type |
123 | 123 | |
124 | 124 | return $data; |
@@ -64,13 +64,13 @@ |
||
64 | 64 | * @since 2017.10 |
65 | 65 | * @category Developer |
66 | 66 | */ |
67 | - if ( $name === null ) { |
|
68 | - $name = $context->getConfig()->get('controller/jobs/coupon/import/csv/code/name', 'Standard'); |
|
67 | + if( $name === null ) { |
|
68 | + $name = $context->getConfig()->get( 'controller/jobs/coupon/import/csv/code/name', 'Standard' ); |
|
69 | 69 | } |
70 | 70 | |
71 | - if ( ctype_alnum($name) === false ) |
|
71 | + if( ctype_alnum( $name ) === false ) |
|
72 | 72 | { |
73 | - $classname = is_string($name) ? '\\Aimeos\\Controller\\Jobs\\Coupon\\Import\\Csv\\Code\\' . $name : '<not a string>'; |
|
73 | + $classname = is_string( $name ) ? '\\Aimeos\\Controller\\Jobs\\Coupon\\Import\\Csv\\Code\\' . $name : '<not a string>'; |
|
74 | 74 | throw new \Aimeos\Controller\Jobs\Exception( sprintf( 'Invalid characters in class name "%1$s"', $classname ) ); |
75 | 75 | } |
76 | 76 |