Completed
Push — master ( 52c730...9eba1c )
by Aimeos
08:52
created
lib/mshoplib/setup/unittest/ProductListAddTestData.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 		$this->additional->setEditor( 'core:unittest' );
53 53
 
54 54
 		$ds = DIRECTORY_SEPARATOR;
55
-		$path = __DIR__ . $ds . 'data' . $ds . 'product-list.php';
55
+		$path = __DIR__.$ds.'data'.$ds.'product-list.php';
56 56
 
57 57
 		if( ( $testdata = include( $path ) ) == false ) {
58 58
 			throw new \Aimeos\MShop\Exception( sprintf( 'No file "%1$s" found for product domain', $path ) );
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
 
126 126
 		$refIds = [];
127 127
 		foreach( $attributeManager->searchItems( $search ) as $item ) {
128
-			$refIds['attribute/' . $item->getDomain() . '/' . $item->getType() . '/' . $item->getCode()] = $item->getId();
128
+			$refIds['attribute/'.$item->getDomain().'/'.$item->getType().'/'.$item->getCode()] = $item->getId();
129 129
 		}
130 130
 
131 131
 		return $refIds;
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
 
159 159
 		$refIds = [];
160 160
 		foreach( $mediaManager->searchItems( $search ) as $item ) {
161
-			$refIds['media/' . $item->getUrl()] = $item->getId();
161
+			$refIds['media/'.$item->getUrl()] = $item->getId();
162 162
 		}
163 163
 
164 164
 		return $refIds;
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
 
215 215
 		$refIds = [];
216 216
 		foreach( $priceManager->searchItems( $search ) as $item ) {
217
-			$refIds['price/' . $item->getDomain() . '/' . $item->getType() . '/' . $item->getValue() . '/' . $item->getCosts()] = $item->getId();
217
+			$refIds['price/'.$item->getDomain().'/'.$item->getType().'/'.$item->getValue().'/'.$item->getCosts()] = $item->getId();
218 218
 		}
219 219
 
220 220
 		return $refIds;
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
 
247 247
 		$refIds = [];
248 248
 		foreach( $textManager->searchItems( $search ) as $item ) {
249
-			$refIds['text/' . $item->getLabel()] = $item->getId();
249
+			$refIds['text/'.$item->getLabel()] = $item->getId();
250 250
 		}
251 251
 
252 252
 		return $refIds;
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
281 281
 
282 282
 		$refIds = [];
283 283
 		foreach( $tagManager->searchItems( $search ) as $item ) {
284
-			$refIds['tag/' . $item->getLabel()] = $item->getId();
284
+			$refIds['tag/'.$item->getLabel()] = $item->getId();
285 285
 		}
286 286
 
287 287
 		return $refIds;
@@ -396,7 +396,7 @@  discard block
 block discarded – undo
396 396
 		$search->setConditions( $search->compare( '==', 'product.code', array_unique( $parentCodes ) ) );
397 397
 
398 398
 		foreach( $manager->searchItems( $search ) as $item ) {
399
-			$parentIds['product/' . $item->getCode()] = $item->getId();
399
+			$parentIds['product/'.$item->getCode()] = $item->getId();
400 400
 		}
401 401
 
402 402
 		return $parentIds;
@@ -427,7 +427,7 @@  discard block
 block discarded – undo
427 427
 		$search->setConditions( $search->compare( '==', 'product.code', $codes ) );
428 428
 
429 429
 		foreach( $manager->searchItems( $search ) as $item ) {
430
-			$refIds['product/' . $item->getCode()] = $item->getId();
430
+			$refIds['product/'.$item->getCode()] = $item->getId();
431 431
 		}
432 432
 
433 433
 		return $refIds;
Please login to merge, or discard this patch.
lib/mshoplib/setup/unittest/SupplierListAddTestData.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -50,15 +50,15 @@  discard block
 block discarded – undo
50 50
 		$this->additional->setEditor( 'core:unittest' );
51 51
 
52 52
 		$ds = DIRECTORY_SEPARATOR;
53
-		$path = __DIR__ . $ds . 'data' . $ds . 'supplier-list.php';
53
+		$path = __DIR__.$ds.'data'.$ds.'supplier-list.php';
54 54
 
55
-		if( ( $testdata = include( $path ) ) == false ){
55
+		if( ( $testdata = include( $path ) ) == false ) {
56 56
 			throw new \Aimeos\MShop\Exception( sprintf( 'No file "%1$s" found for supplier list domain', $path ) );
57 57
 		}
58 58
 
59 59
 		$refKeys = [];
60 60
 		foreach( $testdata['supplier/lists'] as $dataset ) {
61
-			$refKeys[ $dataset['domain'] ][] = $dataset['refid'];
61
+			$refKeys[$dataset['domain']][] = $dataset['refid'];
62 62
 		}
63 63
 
64 64
 		$refIds = [];
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 		$codes = [];
88 88
 		foreach( $keys as $dataset )
89 89
 		{
90
-			if( ( $pos = strpos( $dataset, '/' ) ) === false || ( $str = substr( $dataset, $pos+1 ) ) === false ) {
90
+			if( ( $pos = strpos( $dataset, '/' ) ) === false || ( $str = substr( $dataset, $pos + 1 ) ) === false ) {
91 91
 				throw new \Aimeos\MW\Setup\Exception( sprintf( 'Some keys for ref products are set wrong "%1$s"', $dataset ) );
92 92
 			}
93 93
 
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
 
100 100
 		$refIds = [];
101 101
 		foreach( $manager->searchItems( $search ) as $item ) {
102
-			$refIds[ 'product/' . $item->getCode() ] = $item->getId();
102
+			$refIds['product/'.$item->getCode()] = $item->getId();
103 103
 		}
104 104
 
105 105
 		return $refIds;
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
 		$labels = [];
120 120
 		foreach( $keys as $dataset )
121 121
 		{
122
-			if( ( $pos = strpos( $dataset, '/' ) ) === false || ( $str = substr( $dataset, $pos+1 ) ) === false ) {
122
+			if( ( $pos = strpos( $dataset, '/' ) ) === false || ( $str = substr( $dataset, $pos + 1 ) ) === false ) {
123 123
 				throw new \Aimeos\MW\Setup\Exception( sprintf( 'Some keys for ref text are set wrong "%1$s"', $dataset ) );
124 124
 			}
125 125
 
@@ -130,8 +130,8 @@  discard block
 block discarded – undo
130 130
 		$search->setConditions( $search->compare( '==', 'text.label', $labels ) );
131 131
 
132 132
 		$refIds = [];
133
-		foreach( $textManager->searchItems( $search ) as $item )	{
134
-			$refIds[ 'text/'.$item->getLabel() ] = $item->getId();
133
+		foreach( $textManager->searchItems( $search ) as $item ) {
134
+			$refIds['text/'.$item->getLabel()] = $item->getId();
135 135
 		}
136 136
 
137 137
 		return $refIds;
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
 		$itemCode = [];
156 156
 		foreach( $testdata['supplier/lists'] as $dataset )
157 157
 		{
158
-			if( ( $pos = strpos( $dataset['parentid'], '/' ) ) === false || ( $str = substr( $dataset['parentid'], $pos+1 ) ) === false ) {
158
+			if( ( $pos = strpos( $dataset['parentid'], '/' ) ) === false || ( $str = substr( $dataset['parentid'], $pos + 1 ) ) === false ) {
159 159
 				throw new \Aimeos\MW\Setup\Exception( sprintf( 'Some keys for parentid are set wrong "%1$s"', $dataset['parentid'] ) );
160 160
 			}
161 161
 
@@ -163,11 +163,11 @@  discard block
 block discarded – undo
163 163
 		}
164 164
 
165 165
 		$search = $supplierManager->createSearch();
166
-		$search->setConditions( $search->compare( '==', 'supplier.code', $itemCode) );
166
+		$search->setConditions( $search->compare( '==', 'supplier.code', $itemCode ) );
167 167
 
168 168
 		$parentIds = [];
169
-		foreach( $supplierManager->searchItems( $search ) as $item )	{
170
-			$parentIds[ 'supplier/'.$item->getCode() ] = $item->getId();
169
+		foreach( $supplierManager->searchItems( $search ) as $item ) {
170
+			$parentIds['supplier/'.$item->getCode()] = $item->getId();
171 171
 		}
172 172
 
173 173
 		$listItemTypeIds = [];
@@ -184,28 +184,28 @@  discard block
 block discarded – undo
184 184
 			$listItemType->setStatus( $dataset['status'] );
185 185
 
186 186
 			$supplierListTypeManager->saveItem( $listItemType );
187
-			$listItemTypeIds[ $key ] = $listItemType->getId();
187
+			$listItemTypeIds[$key] = $listItemType->getId();
188 188
 		}
189 189
 
190 190
 		$listItem = $supplierListManager->createItem();
191 191
 		foreach( $testdata['supplier/lists'] as $dataset )
192 192
 		{
193
-			if( !isset( $parentIds[ $dataset['parentid'] ] ) ) {
193
+			if( !isset( $parentIds[$dataset['parentid']] ) ) {
194 194
 				throw new \Aimeos\MW\Setup\Exception( sprintf( 'No supplier ID found for "%1$s"', $dataset['parentid'] ) );
195 195
 			}
196 196
 
197
-			if( !isset( $refIds[ $dataset['domain'] ][ $dataset['refid'] ] ) ) {
197
+			if( !isset( $refIds[$dataset['domain']][$dataset['refid']] ) ) {
198 198
 				throw new \Aimeos\MW\Setup\Exception( sprintf( 'No "%2$s" ref ID found for "%1$s"', $dataset['refid'], $dataset['domain'] ) );
199 199
 			}
200 200
 
201
-			if( !isset( $listItemTypeIds[ $dataset['typeid'] ] ) ) {
201
+			if( !isset( $listItemTypeIds[$dataset['typeid']] ) ) {
202 202
 				throw new \Aimeos\MW\Setup\Exception( sprintf( 'No supplier list type ID found for "%1$s"', $dataset['typeid'] ) );
203 203
 			}
204 204
 
205 205
 			$listItem->setId( null );
206
-			$listItem->setParentId( $parentIds[ $dataset['parentid'] ] );
207
-			$listItem->setTypeId( $listItemTypeIds[ $dataset['typeid'] ] );
208
-			$listItem->setRefId( $refIds[ $dataset['domain'] ] [ $dataset['refid'] ] );
206
+			$listItem->setParentId( $parentIds[$dataset['parentid']] );
207
+			$listItem->setTypeId( $listItemTypeIds[$dataset['typeid']] );
208
+			$listItem->setRefId( $refIds[$dataset['domain']] [$dataset['refid']] );
209 209
 			$listItem->setDomain( $dataset['domain'] );
210 210
 			$listItem->setDateStart( $dataset['start'] );
211 211
 			$listItem->setDateEnd( $dataset['end'] );
Please login to merge, or discard this patch.
lib/mshoplib/setup/unittest/MediaListAddTestData.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 		$this->additional->setEditor( 'core:unittest' );
52 52
 
53 53
 		$ds = DIRECTORY_SEPARATOR;
54
-		$path = __DIR__ . $ds . 'data' . $ds . 'media-list.php';
54
+		$path = __DIR__.$ds.'data'.$ds.'media-list.php';
55 55
 
56 56
 		if( ( $testdata = include( $path ) ) == false ) {
57 57
 			throw new \Aimeos\MShop\Exception( sprintf( 'No file "%1$s" found for media list domain', $path ) );
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 
121 121
 		$refIds = [];
122 122
 		foreach( $attributeManager->searchItems( $search ) as $item ) {
123
-			$refIds['attribute/' . $item->getDomain() . '/' . $item->getType() . '/' . $item->getCode()] = $item->getId();
123
+			$refIds['attribute/'.$item->getDomain().'/'.$item->getType().'/'.$item->getCode()] = $item->getId();
124 124
 		}
125 125
 
126 126
 		return $refIds;
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
 
153 153
 		$refIds = [];
154 154
 		foreach( $textManager->searchItems( $search ) as $item ) {
155
-			$refIds['text/' . $item->getLabel()] = $item->getId();
155
+			$refIds['text/'.$item->getLabel()] = $item->getId();
156 156
 		}
157 157
 
158 158
 		return $refIds;
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
 
190 190
 		$parentIds = [];
191 191
 		foreach( $result as $item ) {
192
-			$parentIds['media/' . $item->getUrl()] = $item->getId();
192
+			$parentIds['media/'.$item->getUrl()] = $item->getId();
193 193
 		}
194 194
 
195 195
 		$medListTypes = [];
Please login to merge, or discard this patch.
lib/mshoplib/setup/unittest/CatalogListAddTestData.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 		$this->additional->setEditor( 'core:unittest' );
52 52
 
53 53
 		$ds = DIRECTORY_SEPARATOR;
54
-		$path = __DIR__ . $ds . 'data' . $ds . 'catalog-list.php';
54
+		$path = __DIR__.$ds.'data'.$ds.'catalog-list.php';
55 55
 
56 56
 		if( ( $testdata = include( $path ) ) == false ) {
57 57
 			throw new \Aimeos\MShop\Exception( sprintf( 'No file "%1$s" found for catalog list domain', $path ) );
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 
99 99
 		$refIds = [];
100 100
 		foreach( $textManager->searchItems( $search ) as $item ) {
101
-			$refIds['text/' . $item->getLabel()] = $item->getId();
101
+			$refIds['text/'.$item->getLabel()] = $item->getId();
102 102
 		}
103 103
 
104 104
 		return $refIds;
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
 
131 131
 		$refIds = [];
132 132
 		foreach( $mediaManager->searchItems( $search ) as $item ) {
133
-			$refIds['media/' . $item->getUrl()] = $item->getId();
133
+			$refIds['media/'.$item->getUrl()] = $item->getId();
134 134
 		}
135 135
 
136 136
 		return $refIds;
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
 
163 163
 		$refIds = [];
164 164
 		foreach( $productManager->searchItems( $search ) as $item ) {
165
-			$refIds['product/' . $item->getCode()] = $item->getId();
165
+			$refIds['product/'.$item->getCode()] = $item->getId();
166 166
 		}
167 167
 
168 168
 		return $refIds;
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
 
198 198
 		$parentIds = [];
199 199
 		foreach( $catalogManager->searchItems( $search ) as $item ) {
200
-			$parentIds['catalog/' . $item->getCode()] = $item->getId();
200
+			$parentIds['catalog/'.$item->getCode()] = $item->getId();
201 201
 		}
202 202
 
203 203
 		$listItemTypeIds = [];
Please login to merge, or discard this patch.
lib/mshoplib/setup/unittest/TextListAddTestData.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 		$this->additional->setEditor( 'core:unittest' );
52 52
 
53 53
 		$ds = DIRECTORY_SEPARATOR;
54
-		$path = __DIR__ . $ds . 'data' . $ds . 'text-list.php';
54
+		$path = __DIR__.$ds.'data'.$ds.'text-list.php';
55 55
 
56 56
 		if( ( $testdata = include( $path ) ) == false ) {
57 57
 			throw new \Aimeos\MShop\Exception( sprintf( 'No file "%1$s" found for text list domain', $path ) );
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 
99 99
 		$refIds = [];
100 100
 		foreach( $result as $item ) {
101
-			$refIds['media/' . $item->getUrl()] = $item->getId();
101
+			$refIds['media/'.$item->getUrl()] = $item->getId();
102 102
 		}
103 103
 
104 104
 		return $refIds;
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
 
134 134
 		$parentIds = [];
135 135
 		foreach( $textManager->searchItems( $search ) as $item ) {
136
-			$parentIds['text/' . $item->getLabel()] = $item->getId();
136
+			$parentIds['text/'.$item->getLabel()] = $item->getId();
137 137
 		}
138 138
 
139 139
 		$tListTypeIds = [];
Please login to merge, or discard this patch.
lib/mshoplib/setup/unittest/PriceListAddTestData.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 		$this->additional->setEditor( 'core:unittest' );
52 52
 
53 53
 		$ds = DIRECTORY_SEPARATOR;
54
-		$path = __DIR__ . $ds . 'data' . $ds . 'price-list.php';
54
+		$path = __DIR__.$ds.'data'.$ds.'price-list.php';
55 55
 
56 56
 		if( ( $testdata = include( $path ) ) == false ) {
57 57
 			throw new \Aimeos\MShop\Exception( sprintf( 'No file "%1$s" found for price domain', $path ) );
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 
98 98
 		$refIds = [];
99 99
 		foreach( $customerManager->searchItems( $search ) as $item ) {
100
-			$refIds['customer/' . $item->getCode()] = $item->getId();
100
+			$refIds['customer/'.$item->getCode()] = $item->getId();
101 101
 		}
102 102
 
103 103
 		return $refIds;
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
 
194 194
 		$parentIds = [];
195 195
 		foreach( $manager->searchItems( $search ) as $item ) {
196
-			$parentIds['price/' . $item->getDomain() . '/' . $item->getType() . '/' . $item->getValue() . '/' . $item->getCosts()] = $item->getId();
196
+			$parentIds['price/'.$item->getDomain().'/'.$item->getType().'/'.$item->getValue().'/'.$item->getCosts()] = $item->getId();
197 197
 		}
198 198
 
199 199
 		return $parentIds;
Please login to merge, or discard this patch.
lib/mshoplib/setup/unittest/CustomerListAddTestData.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 		$this->additional->setEditor( 'core:unittest' );
52 52
 
53 53
 		$ds = DIRECTORY_SEPARATOR;
54
-		$path = __DIR__ . $ds . 'data' . $ds . 'customer-list.php';
54
+		$path = __DIR__.$ds.'data'.$ds.'customer-list.php';
55 55
 
56 56
 		if( ( $testdata = include( $path ) ) == false ) {
57 57
 			throw new \Aimeos\MShop\Exception( sprintf( 'No file "%1$s" found for customer list domain', $path ) );
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 
99 99
 		$refIds = [];
100 100
 		foreach( $groupManager->searchItems( $search ) as $item ) {
101
-			$refIds['customer/group/' . $item->getCode()] = $item->getId();
101
+			$refIds['customer/group/'.$item->getCode()] = $item->getId();
102 102
 		}
103 103
 
104 104
 		return $refIds;
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
 
131 131
 		$refIds = [];
132 132
 		foreach( $manager->searchItems( $search ) as $item ) {
133
-			$refIds['product/' . $item->getCode()] = $item->getId();
133
+			$refIds['product/'.$item->getCode()] = $item->getId();
134 134
 		}
135 135
 
136 136
 		return $refIds;
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
 
163 163
 		$refIds = [];
164 164
 		foreach( $textManager->searchItems( $search ) as $item ) {
165
-			$refIds['text/' . $item->getLabel()] = $item->getId();
165
+			$refIds['text/'.$item->getLabel()] = $item->getId();
166 166
 		}
167 167
 
168 168
 		return $refIds;
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
 
199 199
 		$parentIds = [];
200 200
 		foreach( $customerManager->searchItems( $search ) as $item ) {
201
-			$parentIds['customer/' . $item->getCode()] = $item->getId();
201
+			$parentIds['customer/'.$item->getCode()] = $item->getId();
202 202
 		}
203 203
 
204 204
 		$listItemTypeIds = [];
Please login to merge, or discard this patch.
lib/mshoplib/tests/MShop/Product/Item/Property/StandardTest.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 
68 68
 	public function testSetLanguageId()
69 69
 	{
70
-		$return = $this->object->setLanguageId('fr');
70
+		$return = $this->object->setLanguageId( 'fr' );
71 71
 
72 72
 		$this->assertInstanceOf( '\Aimeos\MShop\Product\Item\Property\Iface', $return );
73 73
 		$this->assertEquals( 'fr', $this->object->getLanguageId() );
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 
96 96
 	public function testSetTypeId()
97 97
 	{
98
-		$return = $this->object->setTypeId(33);
98
+		$return = $this->object->setTypeId( 33 );
99 99
 
100 100
 		$this->assertInstanceOf( '\Aimeos\MShop\Product\Item\Property\Iface', $return );
101 101
 		$this->assertEquals( 33, $this->object->getTypeId() );
@@ -161,14 +161,14 @@  discard block
 block discarded – undo
161 161
 			'product.property.value' => 'value',
162 162
 		);
163 163
 
164
-		$unknown = $item->fromArray($list);
164
+		$unknown = $item->fromArray( $list );
165 165
 
166
-		$this->assertEquals([], $unknown);
166
+		$this->assertEquals( [], $unknown );
167 167
 
168
-		$this->assertEquals($list['product.property.parentid'], $item->getParentId());
169
-		$this->assertEquals($list['product.property.typeid'], $item->getTypeId());
170
-		$this->assertEquals($list['product.property.languageid'], $item->getLanguageId());
171
-		$this->assertEquals($list['product.property.value'], $item->getValue());
168
+		$this->assertEquals( $list['product.property.parentid'], $item->getParentId() );
169
+		$this->assertEquals( $list['product.property.typeid'], $item->getTypeId() );
170
+		$this->assertEquals( $list['product.property.languageid'], $item->getLanguageId() );
171
+		$this->assertEquals( $list['product.property.value'], $item->getValue() );
172 172
 		$this->assertNull( $item->getSiteId() );
173 173
 		$this->assertNull( $item->getTypeName() );
174 174
 		$this->assertNull( $item->getType() );
Please login to merge, or discard this patch.
lib/mshoplib/tests/MShop/Plugin/Provider/ExceptionTest.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,7 +27,8 @@  discard block
 block discarded – undo
27 27
 
28 28
 	public function test()
29 29
 	{
30
-		try {
30
+		try
31
+		{
31 32
 			throw new \Aimeos\MShop\Plugin\Provider\Exception( 'msg', 13, null, $this->codes );
32 33
 		}
33 34
 		catch( \Aimeos\MShop\Plugin\Provider\Exception $mppe )
@@ -38,11 +39,12 @@  discard block
 block discarded – undo
38 39
 
39 40
 		}
40 41
 
41
-		try {
42
+		try
43
+		{
42 44
 			throw new \Aimeos\MShop\Plugin\Provider\Exception( 'msg2', 11 );
43 45
 		}
44
-		catch( \Aimeos\MShop\Plugin\Provider\Exception $e )
45
-		{
46
+		catch( \Aimeos\MShop\Plugin\Provider\Exception $e )
47
+		{
46 48
 			$this->assertEquals( [], $e->getErrorCodes() );
47 49
 		}
48 50
 	}
Please login to merge, or discard this patch.