Completed
Push — master ( c7cb6f...a11e92 )
by Aimeos
10:48
created
lib/mwlib/src/MW/Container/Content/Gzip.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
 		$mode = $this->getOption( 'gzip-mode', 'rb' );
53 53
 		$level = $this->getOption( 'gzip-level', 5 );
54 54
 
55
-		if( ( $this->fh = gzopen( $resource, $mode . $level ) ) === false ) {
55
+		if( ( $this->fh = gzopen( $resource, $mode.$level ) ) === false ) {
56 56
 			throw new \Aimeos\MW\Container\Exception( sprintf( 'Unable to open file "%1$s"', $resource ) );
57 57
 		}
58 58
 
Please login to merge, or discard this patch.
lib/mwlib/tests/MW/Container/Content/GzipTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 
20 20
 	public function testNewFile()
21 21
 	{
22
-		$filename = 'tmp' . DIRECTORY_SEPARATOR . 'tempfile.gz';
22
+		$filename = 'tmp'.DIRECTORY_SEPARATOR.'tempfile.gz';
23 23
 		$file = new \Aimeos\MW\Container\Content\Gzip( $filename, 'temp', ['gzip-mode' => 'wb'] );
24 24
 		$resource = $file->getResource();
25 25
 		$file->close();
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 
32 32
 	public function testExistingFile()
33 33
 	{
34
-		$filename = __DIR__ . DIRECTORY_SEPARATOR . 'testfile.gz';
34
+		$filename = __DIR__.DIRECTORY_SEPARATOR.'testfile.gz';
35 35
 		$file = new \Aimeos\MW\Container\Content\Gzip( $filename, 'test' );
36 36
 
37 37
 		$this->assertEquals( true, file_exists( $file->getResource() ) );
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 			'gzip-level' => 9,
48 48
 		);
49 49
 
50
-		$filename = 'tmp' . DIRECTORY_SEPARATOR . 'tempfile';
50
+		$filename = 'tmp'.DIRECTORY_SEPARATOR.'tempfile';
51 51
 		$file = new \Aimeos\MW\Container\Content\Gzip( $filename, 'temp', $options );
52 52
 		$file->add( 'test text' );
53 53
 		$file->close();
@@ -56,13 +56,13 @@  discard block
 block discarded – undo
56 56
 		unlink( $file->getResource() );
57 57
 
58 58
 		$this->assertStringStartsWith( '1f8b080000000000', bin2hex( $actual ) );
59
-		$this->assertEquals( $filename . '.gz', $file->getResource() );
59
+		$this->assertEquals( $filename.'.gz', $file->getResource() );
60 60
 	}
61 61
 
62 62
 
63 63
 	public function testOverwrite()
64 64
 	{
65
-		$filename = 'tmp' . DIRECTORY_SEPARATOR . 'tempfile.gz';
65
+		$filename = 'tmp'.DIRECTORY_SEPARATOR.'tempfile.gz';
66 66
 		$file = new \Aimeos\MW\Container\Content\Gzip( $filename, 'temp', ['gzip-mode' => 'wb'] );
67 67
 		$file->add( 'test text' );
68 68
 		$file->close();
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 
84 84
 	public function testIterator()
85 85
 	{
86
-		$filename = __DIR__ . DIRECTORY_SEPARATOR . 'testfile.gz';
86
+		$filename = __DIR__.DIRECTORY_SEPARATOR.'testfile.gz';
87 87
 		$file = new \Aimeos\MW\Container\Content\Gzip( $filename, 'test' );
88 88
 
89 89
 		$expected = array( "test data" );
Please login to merge, or discard this patch.
lib/mshoplib/setup/ProductRenameStockWarehouse.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -70,8 +70,7 @@  discard block
 block discarded – undo
70 70
 		) {
71 71
 			$this->execute( $this->stmts['constraint'], 'db-product' );
72 72
 			$this->status( 'done' );
73
-		}
74
-		else
73
+		} else
75 74
 		{
76 75
 			$this->status( 'OK' );
77 76
 		}
@@ -84,8 +83,7 @@  discard block
 block discarded – undo
84 83
 		) {
85 84
 			$this->execute( $this->stmts['constraint2'], 'db-product' );
86 85
 			$this->status( 'done' );
87
-		}
88
-		else
86
+		} else
89 87
 		{
90 88
 			$this->status( 'OK' );
91 89
 		}
@@ -98,8 +96,7 @@  discard block
 block discarded – undo
98 96
 		) {
99 97
 			$this->execute( $this->stmts['typeid'], 'db-product' );
100 98
 			$this->status( 'done' );
101
-		}
102
-		else
99
+		} else
103 100
 		{
104 101
 			$this->status( 'OK' );
105 102
 		}
@@ -111,8 +108,7 @@  discard block
 block discarded – undo
111 108
 		{
112 109
 			$this->execute( $this->stmts['table'], 'db-product' );
113 110
 			$this->status( 'done' );
114
-		}
115
-		else
111
+		} else
116 112
 		{
117 113
 			$this->status( 'OK' );
118 114
 		}
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Plugin/Provider/Decorator/Log.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 		$level = \Aimeos\MW\Logger\Base::DEBUG;
32 32
 		$class = get_class( $this->getProvider() );
33 33
 
34
-		$this->getContext()->getLogger()->log( 'Plugin::register: ' . $class, $level, 'core/plugin' );
34
+		$this->getContext()->getLogger()->log( 'Plugin::register: '.$class, $level, 'core/plugin' );
35 35
 
36 36
 		$this->getProvider()->register( $p );
37 37
 	}
@@ -50,12 +50,12 @@  discard block
 block discarded – undo
50 50
 		$class = get_class( $this->getProvider() );
51 51
 		$payload = ( is_object( $value ) ? get_class( $value ) : ( is_scalar( $value ) ? $value : '' ) );
52 52
 
53
-		$msg = 'Plugin::update:before: ' . $class . ', action: ' . $action . ', value: ' . $payload;
53
+		$msg = 'Plugin::update:before: '.$class.', action: '.$action.', value: '.$payload;
54 54
 		$this->getContext()->getLogger()->log( $msg, $level, 'core/plugin' );
55 55
 
56 56
 		$result = $this->getProvider()->update( $order, $action, $value );
57 57
 
58
-		$msg = 'Plugin::update:after: ' . $class . ', action: ' . $action . ', value: ' . $payload;
58
+		$msg = 'Plugin::update:after: '.$class.', action: '.$action.', value: '.$payload;
59 59
 		$this->getContext()->getLogger()->log( $msg, $level, 'core/plugin' );
60 60
 
61 61
 		return $result;
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Service/Provider/Delivery/Standard.php 3 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -83,11 +83,11 @@  discard block
 block discarded – undo
83 83
 		$logger = $this->getContext()->getLogger();
84 84
 		$xml = $this->buildXML( $order );
85 85
 
86
-		$logger->log( __METHOD__ . ": XML request =\n" . $xml, $level, 'core/service/delivery' );
86
+		$logger->log( __METHOD__.": XML request =\n".$xml, $level, 'core/service/delivery' );
87 87
 
88 88
 		$response = $this->sendRequest( $xml );
89 89
 
90
-		$logger->log( __METHOD__ . ": XML response =\n" . trim( $response ), $level, 'core/service/delivery' );
90
+		$logger->log( __METHOD__.": XML response =\n".trim( $response ), $level, 'core/service/delivery' );
91 91
 
92 92
 		$this->checkResponse( $response, $order->getId() );
93 93
 
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
 				$context->getLogger()->log( $msg, \Aimeos\MW\Logger\Base::NOTICE, 'core/service/delivery' );
168 168
 
169 169
 				curl_setopt( $curl, CURLOPT_HTTPAUTH, CURLAUTH_ANY );
170
-				curl_setopt( $curl, CURLOPT_USERPWD, $config['default.username'] . ':' . $config['default.password'] );
170
+				curl_setopt( $curl, CURLOPT_USERPWD, $config['default.username'].':'.$config['default.password'] );
171 171
 			}
172 172
 
173 173
 			$urlinfo = parse_url( $config['default.url'] );
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
 	 */
231 231
 	protected function checkResponse( $response, $invoiceid )
232 232
 	{
233
-		$responseXSD = __DIR__ . DIRECTORY_SEPARATOR . 'xsd' . DIRECTORY_SEPARATOR . 'order-response_v1.xsd';
233
+		$responseXSD = __DIR__.DIRECTORY_SEPARATOR.'xsd'.DIRECTORY_SEPARATOR.'order-response_v1.xsd';
234 234
 
235 235
 		$dom = new \DOMDocument( '1.0', 'UTF-8' );
236 236
 		$dom->preserveWhiteSpace = false;
@@ -313,7 +313,7 @@  discard block
 block discarded – undo
313 313
 			throw new \Aimeos\MShop\Service\Exception( sprintf( $msg, $e->getMessage() ), 0, $e );
314 314
 		}
315 315
 
316
-		$requestXSD = __DIR__ . DIRECTORY_SEPARATOR . 'xsd' . DIRECTORY_SEPARATOR . 'order-request_v1.xsd';
316
+		$requestXSD = __DIR__.DIRECTORY_SEPARATOR.'xsd'.DIRECTORY_SEPARATOR.'order-request_v1.xsd';
317 317
 
318 318
 		if( $dom->schemaValidate( $requestXSD ) !== true )
319 319
 		{
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -180,8 +180,7 @@  discard block
 block discarded – undo
180 180
 
181 181
 					curl_setopt( $curl, CURLOPT_SSL_VERIFYPEER, false );
182 182
 					curl_setopt( $curl, CURLOPT_SSL_VERIFYHOST, true );
183
-				}
184
-				else
183
+				} else
185 184
 				{
186 185
 					$msg = 'Using strict SSL options';
187 186
 					$context->getLogger()->log( $msg, \Aimeos\MW\Logger\Base::NOTICE, 'core/service/delivery' );
@@ -189,8 +188,7 @@  discard block
 block discarded – undo
189 188
 					curl_setopt( $curl, CURLOPT_SSL_VERIFYPEER, true );
190 189
 					curl_setopt( $curl, CURLOPT_SSL_VERIFYHOST, 2 ); // check CN and match host name
191 190
 				}
192
-			}
193
-			else
191
+			} else
194 192
 			{
195 193
 				$msg = 'Using no SSL encryption';
196 194
 				$context->getLogger()->log( $msg, \Aimeos\MW\Logger\Base::NOTICE, 'core/service/delivery' );
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
 	 * Returns the configuration attribute definitions of the provider to generate a list of available fields and
100 100
 	 * rules for the value of each field in the administration interface.
101 101
 	 *
102
-	 * @return array List of attribute definitions implementing \Aimeos\MW\Common\Critera\Attribute\Iface
102
+	 * @return \Aimeos\MW\Criteria\Attribute\Iface[] List of attribute definitions implementing \Aimeos\MW\Common\Critera\Attribute\Iface
103 103
 	 */
104 104
 	public function getConfigBE()
105 105
 	{
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Order/Item/Base/Base.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -171,8 +171,7 @@  discard block
 block discarded – undo
171 171
 			$quantity = $item->getQuantity();
172 172
 			$item = $this->products[$pos];
173 173
 			$item->setQuantity( $item->getQuantity() + $quantity );
174
-		}
175
-		else if( $position !== null )
174
+		} else if( $position !== null )
176 175
 		{
177 176
 			if( isset( $this->products[$position] ) )
178 177
 			{
@@ -189,13 +188,11 @@  discard block
 block discarded – undo
189 188
 
190 189
 				$products[$position] = $item;
191 190
 				$this->products = $products;
192
-			}
193
-			else
191
+			} else
194 192
 			{
195 193
 				$this->products[$position] = $item;
196 194
 			}
197
-		}
198
-		else
195
+		} else
199 196
 		{
200 197
 			$this->products[] = $item;
201 198
 		}
@@ -225,8 +222,7 @@  discard block
 block discarded – undo
225 222
 		{
226 223
 			$this->products[$pos] = $item;
227 224
 			$this->setModified();
228
-		}
229
-		else
225
+		} else
230 226
 		{
231 227
 			$this->products[$pos] = $item;
232 228
 		}
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Plugin/Provider/Order/Coupon.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -81,8 +81,7 @@
 block discarded – undo
81 81
 			{
82 82
 				$couponProvider = $couponManager->getProvider( $couponItem, $code );
83 83
 				$couponProvider->updateCoupon( $order );
84
-			}
85
-			else
84
+			} else
86 85
 			{
87 86
 				$notAvailable[$code] = 'coupon.gone';
88 87
 			}
Please login to merge, or discard this patch.
lib/mshoplib/setup/MShopAddAttributeData.php 2 patches
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->msg( sprintf( 'Adding default attribute data for site "%1$s"', $site ), 0 );
52 52
 
53 53
 		$ds = DIRECTORY_SEPARATOR;
54
-		$path = __DIR__ . $ds . 'default' . $ds . 'data' . $ds . 'attribute.php';
54
+		$path = __DIR__.$ds.'default'.$ds.'data'.$ds.'attribute.php';
55 55
 
56 56
 		if( ( $data = include( $path ) ) == false ) {
57 57
 			throw new \Aimeos\MShop\Exception( sprintf( 'No file "%1$s" found for default codes', $path ) );
@@ -72,9 +72,9 @@  discard block
 block discarded – undo
72 72
 				$manager->saveItem( $item );
73 73
 				$num++;
74 74
 			}
75
-			catch( \Exception $e ) { ; } // if attribute was already available
75
+			catch( \Exception $e ) {; } // if attribute was already available
76 76
 		}
77 77
 
78
-		$this->status( $num > 0 ? $num . '/' . $total : 'OK' );
78
+		$this->status( $num > 0 ? $num.'/'.$total : 'OK' );
79 79
 	}
80 80
 }
81 81
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,9 @@
 block discarded – undo
72 72
 				$manager->saveItem( $item );
73 73
 				$num++;
74 74
 			}
75
-			catch( \Exception $e ) { ; } // if attribute was already available
75
+			catch( \Exception $e )
76
+			{
77
+; } // if attribute was already available
76 78
 		}
77 79
 
78 80
 		$this->status( $num > 0 ? $num . '/' . $total : 'OK' );
Please login to merge, or discard this patch.
lib/mshoplib/setup/MShopAddDataAbstract.php 2 patches
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 	{
80 80
 		$context = $this->getContext();
81 81
 		$attrManager = \Aimeos\MShop\Factory::createManager( $context, 'attribute' );
82
-		$listManager = \Aimeos\MShop\Factory::createManager( $context, $domain . '/lists' );
82
+		$listManager = \Aimeos\MShop\Factory::createManager( $context, $domain.'/lists' );
83 83
 
84 84
 
85 85
 		$item = $attrManager->createItem();
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 			}
111 111
 
112 112
 			$listItem->setId( null );
113
-			$listItem->setTypeId( $this->getTypeId( $domain . '/lists/type', 'attribute', $entry['list-type'] ) );
113
+			$listItem->setTypeId( $this->getTypeId( $domain.'/lists/type', 'attribute', $entry['list-type'] ) );
114 114
 			$listItem->setDateStart( $entry['list-start'] );
115 115
 			$listItem->setDateEnd( $entry['list-end'] );
116 116
 			$listItem->setConfig( $entry['list-config'] );
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
 	{
152 152
 		$context = $this->getContext();
153 153
 		$mediaManager = \Aimeos\MShop\Factory::createManager( $context, 'media' );
154
-		$listManager = \Aimeos\MShop\Factory::createManager( $context, $domain . '/lists' );
154
+		$listManager = \Aimeos\MShop\Factory::createManager( $context, $domain.'/lists' );
155 155
 
156 156
 
157 157
 		$item = $mediaManager->createItem();
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
 			$mediaManager->saveItem( $item );
177 177
 
178 178
 			$listItem->setId( null );
179
-			$listItem->setTypeId( $this->getTypeId( $domain . '/lists/type', 'media', $entry['list-type'] ) );
179
+			$listItem->setTypeId( $this->getTypeId( $domain.'/lists/type', 'media', $entry['list-type'] ) );
180 180
 			$listItem->setDateStart( $entry['list-start'] );
181 181
 			$listItem->setDateEnd( $entry['list-end'] );
182 182
 			$listItem->setConfig( $entry['list-config'] );
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
 	{
218 218
 		$context = $this->getContext();
219 219
 		$mediaManager = \Aimeos\MShop\Factory::createManager( $context, 'price' );
220
-		$listManager = \Aimeos\MShop\Factory::createManager( $context, $domain . '/lists' );
220
+		$listManager = \Aimeos\MShop\Factory::createManager( $context, $domain.'/lists' );
221 221
 
222 222
 
223 223
 		$item = $mediaManager->createItem();
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
 			$mediaManager->saveItem( $item );
245 245
 
246 246
 			$listItem->setId( null );
247
-			$listItem->setTypeId( $this->getTypeId( $domain . '/lists/type', 'price', $entry['list-type'] ) );
247
+			$listItem->setTypeId( $this->getTypeId( $domain.'/lists/type', 'price', $entry['list-type'] ) );
248 248
 			$listItem->setDateStart( $entry['list-start'] );
249 249
 			$listItem->setDateEnd( $entry['list-end'] );
250 250
 			$listItem->setConfig( $entry['list-config'] );
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
 	{
286 286
 		$context = $this->getContext();
287 287
 		$textManager = \Aimeos\MShop\Factory::createManager( $context, 'text' );
288
-		$listManager = \Aimeos\MShop\Factory::createManager( $context, $domain . '/lists' );
288
+		$listManager = \Aimeos\MShop\Factory::createManager( $context, $domain.'/lists' );
289 289
 
290 290
 
291 291
 		$item = $textManager->createItem();
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
 			$textManager->saveItem( $item );
309 309
 
310 310
 			$listItem->setId( null );
311
-			$listItem->setTypeId( $this->getTypeId( $domain . '/lists/type', 'text', $entry['list-type'] ) );
311
+			$listItem->setTypeId( $this->getTypeId( $domain.'/lists/type', 'text', $entry['list-type'] ) );
312 312
 			$listItem->setDateStart( $entry['list-start'] );
313 313
 			$listItem->setDateEnd( $entry['list-end'] );
314 314
 			$listItem->setConfig( $entry['list-config'] );
@@ -349,7 +349,7 @@  discard block
 block discarded – undo
349 349
 	{
350 350
 		$context = $this->getContext();
351 351
 		$productManager = \Aimeos\MShop\Factory::createManager( $context, 'product' );
352
-		$listManager = \Aimeos\MShop\Factory::createManager( $context, $domain . '/lists' );
352
+		$listManager = \Aimeos\MShop\Factory::createManager( $context, $domain.'/lists' );
353 353
 
354 354
 
355 355
 		$listItem = $listManager->createItem();
@@ -379,7 +379,7 @@  discard block
 block discarded – undo
379 379
 			}
380 380
 
381 381
 			$listItem->setId( null );
382
-			$listItem->setTypeId( $this->getTypeId( $domain . '/lists/type', 'product', $entry['list-type'] ) );
382
+			$listItem->setTypeId( $this->getTypeId( $domain.'/lists/type', 'product', $entry['list-type'] ) );
383 383
 			$listItem->setDateStart( $entry['list-start'] );
384 384
 			$listItem->setDateEnd( $entry['list-end'] );
385 385
 			$listItem->setConfig( $entry['list-config'] );
@@ -475,8 +475,8 @@  discard block
 block discarded – undo
475 475
 
476 476
 		$search = $manager->createSearch();
477 477
 		$expr = array(
478
-			$search->compare( '==', $key . '.domain', $domain ),
479
-			$search->compare( '==', $key . '.code', $type ),
478
+			$search->compare( '==', $key.'.domain', $domain ),
479
+			$search->compare( '==', $key.'.code', $type ),
480 480
 		);
481 481
 		$search->setConditions( $search->combine( '&&', $expr ) );
482 482
 
@@ -509,8 +509,8 @@  discard block
 block discarded – undo
509 509
 
510 510
 		$search = $manager->createSearch();
511 511
 		$expr = array(
512
-			$search->compare( '==', $refdomain . '.domain', $domain ),
513
-			$search->compare( '=~', $refdomain . '.label', 'Demo' ),
512
+			$search->compare( '==', $refdomain.'.domain', $domain ),
513
+			$search->compare( '=~', $refdomain.'.label', 'Demo' ),
514 514
 		);
515 515
 		$search->setConditions( $search->combine( '&&', $expr ) );
516 516
 
@@ -520,9 +520,9 @@  discard block
 block discarded – undo
520 520
 
521 521
 		$search = $listManager->createSearch();
522 522
 		$expr = array(
523
-			$search->compare( '==', $key . '.parentid', $parentid ),
524
-			$search->compare( '==', $key . '.domain', $refdomain ),
525
-			$search->compare( '==', $key . '.refid', $ids ),
523
+			$search->compare( '==', $key.'.parentid', $parentid ),
524
+			$search->compare( '==', $key.'.domain', $refdomain ),
525
+			$search->compare( '==', $key.'.refid', $ids ),
526 526
 		);
527 527
 		$search->setConditions( $search->combine( '&&', $expr ) );
528 528
 
@@ -550,8 +550,8 @@  discard block
 block discarded – undo
550 550
 
551 551
 		$search = $listManager->createSearch();
552 552
 		$expr = array(
553
-			$search->compare( '==', $key . '.parentid', $parentid ),
554
-			$search->compare( '==', $key . '.domain', $refdomain ),
553
+			$search->compare( '==', $key.'.parentid', $parentid ),
554
+			$search->compare( '==', $key.'.domain', $refdomain ),
555 555
 		);
556 556
 		$search->setConditions( $search->combine( '&&', $expr ) );
557 557
 
@@ -568,7 +568,7 @@  discard block
 block discarded – undo
568 568
 
569 569
 
570 570
 			$search = $manager->createSearch();
571
-			$search->setConditions( $search->compare( '==', $refdomain . '.id', $refIds ) );
571
+			$search->setConditions( $search->compare( '==', $refdomain.'.id', $refIds ) );
572 572
 			$ids = array_keys( $manager->searchItems( $search ) );
573 573
 
574 574
 			foreach( array_diff( $refIds, $ids ) as $refId ) {
@@ -586,14 +586,14 @@  discard block
 block discarded – undo
586 586
 
587 587
 
588 588
 		$search = $manager->createSearch();
589
-		$search->setConditions( $search->compare( '=~', $refdomain . '.label', 'Demo' ) );
589
+		$search->setConditions( $search->compare( '=~', $refdomain.'.label', 'Demo' ) );
590 590
 		$ids = array_keys( $manager->searchItems( $search ) );
591 591
 
592 592
 		$search = $listManager->createSearch();
593 593
 		$expr = array(
594
-			$search->compare( '==', $key . '.parentid', $parentid ),
595
-			$search->compare( '==', $key . '.refid', $ids ),
596
-			$search->compare( '==', $key . '.domain', $refdomain ),
594
+			$search->compare( '==', $key.'.parentid', $parentid ),
595
+			$search->compare( '==', $key.'.refid', $ids ),
596
+			$search->compare( '==', $key.'.domain', $refdomain ),
597 597
 		);
598 598
 		$search->setConditions( $search->combine( '&&', $expr ) );
599 599
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,8 +103,7 @@
 block discarded – undo
103 103
 
104 104
 				$attrManager->saveItem( $item );
105 105
 				$id = $item->getId();
106
-			}
107
-			else
106
+			} else
108 107
 			{
109 108
 				$id = $attrItem->getId();
110 109
 			}
Please login to merge, or discard this patch.