Passed
Push — master ( 1ec81a...848817 )
by Aimeos
17:18 queued 13:33
created
src/Controller/Common/Product/Import/Csv/Processor/Property/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,8 +65,7 @@
 block discarded – undo
65 65
 			{
66 66
 				$item = $propMap[$value][$type];
67 67
 				$items->remove( $item->getId() );
68
-			}
69
-			else
68
+			} else
70 69
 			{
71 70
 				$item = $manager->create()->setType( $type );
72 71
 			}
Please login to merge, or discard this patch.
controller/jobs/src/Controller/Jobs/Subscription/Process/Renew/Standard.php 1 patch
Braces   +11 added lines, -4 removed lines patch added patch discarded remove patch
@@ -124,9 +124,11 @@  discard block
 block discarded – undo
124 124
 					}
125 125
 					catch( \Exception $e )
126 126
 					{
127
-						if( $e->getCode() < 1 ) // not a soft error
127
+						if( $e->getCode() < 1 ) {
128
+							// not a soft error
128 129
 						{
129 130
 							$item->setReason( \Aimeos\MShop\Subscription\Item\Iface::REASON_PAYMENT );
131
+						}
130 132
 
131 133
 							if( $end ) {
132 134
 								$item->setDateEnd( date_create()->format( 'Y-m-d' ) );
@@ -228,9 +230,12 @@  discard block
 block discarded – undo
228 230
 		{
229 231
 			foreach( $codes as $code )
230 232
 			{
231
-				try {
233
+				try
234
+				{
232 235
 					$basket->addCoupon( $code );
233
-				} catch( \Aimeos\MShop\Plugin\Provider\Exception | \Aimeos\MShop\Coupon\Exception $e ) {
236
+				}
237
+				catch( \Aimeos\MShop\Plugin\Provider\Exception | \Aimeos\MShop\Coupon\Exception $e )
238
+				{
234 239
 					$basket->deleteCoupon( $code );
235 240
 				}
236 241
 			}
@@ -349,7 +354,9 @@  discard block
 block discarded – undo
349 354
 			$context->setUserId( $baseItem->getCustomerId() );
350 355
 			$context->setGroupIds( $customerItem->getGroups() );
351 356
 		}
352
-		catch( \Exception $e ) {} // Subscription without account
357
+		catch( \Exception $e )
358
+		{
359
+} // Subscription without account
353 360
 
354 361
 		return $context;
355 362
 	}
Please login to merge, or discard this patch.
controller/jobs/src/Controller/Jobs/Catalog/Import/Csv/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -592,8 +592,7 @@
 block discarded – undo
592 592
 					{
593 593
 						$manager->move( $item->getId(), $item->getParentId(), $parentid );
594 594
 						$item = $manager->save( $item );
595
-					}
596
-					else
595
+					} else
597 596
 					{
598 597
 						$item = $manager->insert( $item, $parentid );
599 598
 					}
Please login to merge, or discard this patch.
controller/jobs/src/Controller/Jobs/Catalog/Import/Xml/Standard.php 1 patch
Braces   +6 added lines, -7 removed lines patch added patch discarded remove patch
@@ -97,8 +97,7 @@  discard block
 block discarded – undo
97 97
 						$files[] = $entry->getPathname();
98 98
 					}
99 99
 				}
100
-			}
101
-			else
100
+			} else
102 101
 			{
103 102
 				$files[] = $location;
104 103
 			}
@@ -240,7 +239,9 @@  discard block
 block discarded – undo
240 239
 
241 240
 				return $currentid;
242 241
 			}
243
-			catch( \Aimeos\MShop\Exception $e ) {} // not found, create new
242
+			catch( \Aimeos\MShop\Exception $e )
243
+			{
244
+} // not found, create new
244 245
 		}
245 246
 
246 247
 		$item = $this->process( $manager->create(), $node );
@@ -278,13 +279,11 @@  discard block
 block discarded – undo
278 279
 
279 280
 				$currentid = $this->importNode( $node, $domains, $parentid, $childMap );
280 281
 				$total++;
281
-			}
282
-			elseif( $xml->nodeType === \XMLReader::ELEMENT && $xml->name === 'catalog' )
282
+			} elseif( $xml->nodeType === \XMLReader::ELEMENT && $xml->name === 'catalog' )
283 283
 			{
284 284
 				$this->importTree( $xml, $domains, $currentid, $childMap );
285 285
 				$childMap = [];
286
-			}
287
-			elseif( $xml->nodeType === \XMLReader::END_ELEMENT && $xml->name === 'catalog' )
286
+			} elseif( $xml->nodeType === \XMLReader::END_ELEMENT && $xml->name === 'catalog' )
288 287
 			{
289 288
 				\Aimeos\MShop::create( $this->context(), 'catalog' )->delete( $map );
290 289
 				break;
Please login to merge, or discard this patch.
src/Controller/Common/Product/Import/Csv/Processor/Catalog/Standard.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
 			foreach( $manager->search( $search ) as $item ) {
82 82
 				$this->listTypes[$item->getCode()] = $item->getCode();
83 83
 			}
84
-		}
85
-		else
84
+		} else
86 85
 		{
87 86
 			$this->listTypes = array_flip( $this->listTypes );
88 87
 		}
Please login to merge, or discard this patch.
controller/jobs/src/Controller/Jobs/Media/Scale/Standard.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -118,9 +118,12 @@
 block discarded – undo
118 118
 
119 119
 		foreach( $items as $item )
120 120
 		{
121
-			try {
121
+			try
122
+			{
122 123
 				$manager->save( $cntl->scale( $item, $force ) );
123
-			} catch( \Exception $e ) {
124
+			}
125
+			catch( \Exception $e )
126
+			{
124 127
 				$msg = sprintf( 'Scaling media item "%1$s" failed: %2$s', $item->getId(), $e->getMessage() );
125 128
 				$logger->error( $msg, 'media/scale' );
126 129
 			}
Please login to merge, or discard this patch.
src/Controller/Common/Supplier/Import/Csv/Processor/Media/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -162,8 +162,7 @@
 block discarded – undo
162 162
 					$listItem = $listMap[$url][$type][$listtype];
163 163
 					$refItem = $listItem->getRefItem();
164 164
 					unset( $listItems[$listItem->getId()] );
165
-				}
166
-				else
165
+				} else
167 166
 				{
168 167
 					$listItem = $manager->createListItem()->setType( $listtype );
169 168
 					$refItem = $refManager->create()->setType( $type );
Please login to merge, or discard this patch.
src/Controller/Common/Supplier/Import/Csv/Processor/Text/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -139,8 +139,7 @@
 block discarded – undo
139 139
 				$listItem = $listMap[$content][$type][$listtype];
140 140
 				$refItem = $listItem->getRefItem();
141 141
 				unset( $listItems[$listItem->getId()] );
142
-			}
143
-			else
142
+			} else
144 143
 			{
145 144
 				$listItem = $manager->createListItem()->setType( $listtype );
146 145
 				$refItem = $refManager->create()->setType( $type );
Please login to merge, or discard this patch.
src/Controller/Common/Product/Import/Csv/Processor/Media/Standard.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -84,8 +84,7 @@  discard block
 block discarded – undo
84 84
 			foreach( $manager->search( $search ) as $item ) {
85 85
 				$this->listTypes[$item->getCode()] = $item->getCode();
86 86
 			}
87
-		}
88
-		else
87
+		} else
89 88
 		{
90 89
 			$this->listTypes = array_flip( $this->listTypes );
91 90
 		}
@@ -153,8 +152,7 @@  discard block
 block discarded – undo
153 152
 					$listItem = $listMap[$url][$type][$langId][$listtype];
154 153
 					$refItem = $listItem->getRefItem();
155 154
 					unset( $listItems[$listItem->getId()] );
156
-				}
157
-				else
155
+				} else
158 156
 				{
159 157
 					$listItem = $manager->createListItem()->setType( $listtype );
160 158
 					$refItem = $refManager->create()->setType( $type );
Please login to merge, or discard this patch.