Completed
Push — master ( c7cb6f...a11e92 )
by Aimeos
10:48
created
lib/mshoplib/src/MShop/Index/Manager/Standard.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -620,7 +620,7 @@
 block discarded – undo
620 620
 		$tags = [];
621 621
 
622 622
 		foreach( $productIds as $prodId ) {
623
-			$tags[] = 'product-' . $prodId;
623
+			$tags[] = 'product-'.$prodId;
624 624
 		}
625 625
 
626 626
 		$this->getContext()->getCache()->deleteByTags( $tags );
Please login to merge, or discard this patch.
lib/mshoplib/src/MAdmin/Common/Factory/Base.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 		 * @category Developer
58 58
 		 */
59 59
 		$decorators = $config->get( 'madmin/common/manager/decorators/default', [] );
60
-		$excludes = $config->get( 'madmin/' . $domain . '/manager/decorators/excludes', [] );
60
+		$excludes = $config->get( 'madmin/'.$domain.'/manager/decorators/excludes', [] );
61 61
 
62 62
 		foreach( $decorators as $key => $name )
63 63
 		{
@@ -70,11 +70,11 @@  discard block
 block discarded – undo
70 70
 		$manager = self::addDecorators( $context, $manager, $decorators, $classprefix );
71 71
 
72 72
 		$classprefix = '\\Aimeos\\MShop\\Common\\Manager\\Decorator\\';
73
-		$decorators = $config->get( 'madmin/' . $domain . '/manager/decorators/global', [] );
73
+		$decorators = $config->get( 'madmin/'.$domain.'/manager/decorators/global', [] );
74 74
 		$manager = self::addDecorators( $context, $manager, $decorators, $classprefix );
75 75
 
76
-		$classprefix = '\\Aimeos\\MShop\\' . ucfirst( $domain ) . '\\Manager\\Decorator\\';
77
-		$decorators = $config->get( 'madmin/' . $domain . '/manager/decorators/local', [] );
76
+		$classprefix = '\\Aimeos\\MShop\\'.ucfirst( $domain ).'\\Manager\\Decorator\\';
77
+		$decorators = $config->get( 'madmin/'.$domain.'/manager/decorators/local', [] );
78 78
 		$manager = self::addDecorators( $context, $manager, $decorators, $classprefix );
79 79
 
80 80
 		return $manager;
Please login to merge, or discard this patch.
lib/mshoplib/src/MAdmin/Common/Manager/Base.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 		 * @category Developer
56 56
 		 */
57 57
 		$decorators = $config->get( 'madmin/common/manager/decorators/default', [] );
58
-		$excludes = $config->get( 'madmin/' . $domain . '/manager/' . $managerpath . '/decorators/excludes', [] );
58
+		$excludes = $config->get( 'madmin/'.$domain.'/manager/'.$managerpath.'/decorators/excludes', [] );
59 59
 
60 60
 		foreach( $decorators as $key => $name )
61 61
 		{
@@ -68,12 +68,12 @@  discard block
 block discarded – undo
68 68
 		$manager = $this->addDecorators( $context, $manager, $decorators, $classprefix );
69 69
 
70 70
 		$classprefix = '\\Aimeos\\MShop\\Common\\Manager\\Decorator\\';
71
-		$decorators = $config->get( 'madmin/' . $domain . '/manager/' . $managerpath . '/decorators/global', [] );
71
+		$decorators = $config->get( 'madmin/'.$domain.'/manager/'.$managerpath.'/decorators/global', [] );
72 72
 		$manager = $this->addDecorators( $context, $manager, $decorators, $classprefix );
73 73
 
74 74
 		$subpath = $this->createSubNames( $managerpath );
75
-		$classprefix = 'MShop_' . ucfirst( $domain ) . '_Manager_' . $subpath . '_Decorator_';
76
-		$decorators = $config->get( 'madmin/' . $domain . '/manager/' . $managerpath . '/decorators/local', [] );
75
+		$classprefix = 'MShop_'.ucfirst( $domain ).'_Manager_'.$subpath.'_Decorator_';
76
+		$decorators = $config->get( 'madmin/'.$domain.'/manager/'.$managerpath.'/decorators/local', [] );
77 77
 
78 78
 		return $this->addDecorators( $context, $manager, $decorators, $classprefix );
79 79
 	}
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
 		}
100 100
 
101 101
 		if( $name === null ) {
102
-			$name = $config->get( 'mshop/' . $domain . '/manager/' . $manager . '/name', 'Standard' );
102
+			$name = $config->get( 'mshop/'.$domain.'/manager/'.$manager.'/name', 'Standard' );
103 103
 		}
104 104
 
105 105
 		if( empty( $name ) || ctype_alnum( $name ) === false ) {
@@ -109,8 +109,8 @@  discard block
 block discarded – undo
109 109
 		$domainname = ucfirst( $domain );
110 110
 		$subnames = $this->createSubNames( $manager );
111 111
 
112
-		$classname = '\\Aimeos\\MAdmin\\' . $domainname . '\\Manager\\' . $subnames . '\\' . $name;
113
-		$interface = '\\Aimeos\\MAdmin\\' . $domainname . '\\Manager\\' . $subnames . '\\Iface';
112
+		$classname = '\\Aimeos\\MAdmin\\'.$domainname.'\\Manager\\'.$subnames.'\\'.$name;
113
+		$interface = '\\Aimeos\\MAdmin\\'.$domainname.'\\Manager\\'.$subnames.'\\Iface';
114 114
 
115 115
 		if( class_exists( $classname ) === false ) {
116 116
 			throw new \Aimeos\MAdmin\Exception( sprintf( 'Class "%1$s" not available', $classname ) );
Please login to merge, or discard this patch.
lib/mshoplib/setup/unittest/AttributeListAddTestData.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 . 'attribute-list.php';
54
+		$path = __DIR__.$ds.'data'.$ds.'attribute-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 attribute domain', $path ) );
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 
99 99
 		$refIds = [];
100 100
 		foreach( $mediaManager->searchItems( $search ) as $item ) {
101
-			$refIds['media/' . $item->getUrl()] = $item->getId();
101
+			$refIds['media/'.$item->getUrl()] = $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( $textManager->searchItems( $search ) as $item ) {
133
-			$refIds['text/' . $item->getLabel()] = $item->getId();
133
+			$refIds['text/'.$item->getLabel()] = $item->getId();
134 134
 		}
135 135
 
136 136
 		return $refIds;
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
 
253 253
 		$parentIds = [];
254 254
 		foreach( $manager->searchItems( $search ) as $item ) {
255
-			$parentIds['attribute/' . $item->getType() . '/' . $item->getCode()] = $item->getId();
255
+			$parentIds['attribute/'.$item->getType().'/'.$item->getCode()] = $item->getId();
256 256
 		}
257 257
 
258 258
 		return $parentIds;
@@ -340,7 +340,7 @@  discard block
 block discarded – undo
340 340
 
341 341
 		$parentIds = [];
342 342
 		foreach( $manager->searchItems( $search ) as $item ) {
343
-			$parentIds['price/' . $item->getDomain() . '/' . $item->getType() . '/' . $item->getValue() . '/' . $item->getCosts()] = $item->getId();
343
+			$parentIds['price/'.$item->getDomain().'/'.$item->getType().'/'.$item->getValue().'/'.$item->getCosts()] = $item->getId();
344 344
 		}
345 345
 
346 346
 		return $parentIds;
Please login to merge, or discard this patch.
lib/mshoplib/setup/unittest/ServiceListAddTestData.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 . 'service-list.php';
54
+		$path = __DIR__.$ds.'data'.$ds.'service-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 service domain', $path ) );
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
 
126 126
 		$refIds = [];
127 127
 		foreach( $result as $item ) {
128
-			$refIds['price/' . $item->getDomain() . '/' . $item->getType() . '/' . $item->getValue() . '/' . $item->getCosts()] = $item->getId();
128
+			$refIds['price/'.$item->getDomain().'/'.$item->getType().'/'.$item->getValue().'/'.$item->getCosts()] = $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( $textManager->searchItems( $search ) as $item ) {
161
-			$refIds['text/' . $item->getLabel()] = $item->getId();
161
+			$refIds['text/'.$item->getLabel()] = $item->getId();
162 162
 		}
163 163
 
164 164
 		return $refIds;
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
 
192 192
 		$refIds = [];
193 193
 		foreach( $mediaManager->searchItems( $search ) as $item ) {
194
-			$refIds['media/' . $item->getLabel()] = $item->getId();
194
+			$refIds['media/'.$item->getLabel()] = $item->getId();
195 195
 		}
196 196
 
197 197
 		return $refIds;
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
 
316 316
 		$parentIds = [];
317 317
 		foreach( $manager->searchItems( $search ) as $item ) {
318
-			$parentIds['service/' . $item->getType() . '/' . $item->getCode()] = $item->getId();
318
+			$parentIds['service/'.$item->getType().'/'.$item->getCode()] = $item->getId();
319 319
 		}
320 320
 
321 321
 		return $parentIds;
Please login to merge, or discard this patch.
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/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.