Passed
Push — master ( 720a53...939fd4 )
by Aimeos
04:33
created
setup/MShopAddDataAbstract.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
 
88 88
 			try {
89 89
 				$refItem = $refManager->find( $refItem->getCode(), [], $item->getResourceType(), $refItem->getType() );
90
-			} catch( \Exception $e ) { ; } // if not found, use the new item
90
+			} catch( \Exception $e ) {; } // if not found, use the new item
91 91
 
92 92
 			$refItem = $this->addRefItems( $refItem, $data );
93 93
 			$item->addListItem( 'attribute', $listItem, $refItem );
Please login to merge, or discard this patch.
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -85,9 +85,13 @@
 block discarded – undo
85 85
 			$listItem = $manager->createListItem()->setPosition( $idx )->fromArray( $data );
86 86
 			$refItem = $refManager->create()->fromArray( $data );
87 87
 
88
-			try {
88
+			try
89
+			{
89 90
 				$refItem = $refManager->find( $refItem->getCode(), [], $item->getResourceType(), $refItem->getType() );
90
-			} catch( \Exception $e ) { ; } // if not found, use the new item
91
+			}
92
+			catch( \Exception $e )
93
+			{
94
+; } // if not found, use the new item
91 95
 
92 96
 			$refItem = $this->addRefItems( $refItem, $data );
93 97
 			$item->addListItem( 'attribute', $listItem, $refItem );
Please login to merge, or discard this patch.
src/MShop/Catalog/Manager/Standard.php 1 patch
Braces   +13 added lines, -10 removed lines patch added patch discarded remove patch
@@ -843,9 +843,12 @@  discard block
 block discarded – undo
843 843
 
844 844
 		foreach( $sitePath as $siteId )
845 845
 		{
846
-			try {
846
+			try
847
+			{
847 848
 				$path = $this->createTreeManager( $siteId )->getPath( $id );
848
-			} catch( \Exception $e ) {
849
+			}
850
+			catch( \Exception $e )
851
+			{
849 852
 				continue;
850 853
 			}
851 854
 
@@ -889,9 +892,12 @@  discard block
 block discarded – undo
889 892
 
890 893
 		foreach( $sitePath as $siteId )
891 894
 		{
892
-			try {
895
+			try
896
+			{
893 897
 				$node = $this->createTreeManager( $siteId )->getNode( $id, $level, $criteria );
894
-			} catch( \Aimeos\MW\Tree\Exception $e ) {
898
+			}
899
+			catch( \Aimeos\MW\Tree\Exception $e )
900
+			{
895 901
 				continue;
896 902
 			}
897 903
 
@@ -973,8 +979,7 @@  discard block
 block discarded – undo
973 979
 				if( $child->getParentId() !== $item->getId() ) {
974 980
 					$this->move( $child->getId(), $item->getParentId(), $child->getParentId() );
975 981
 				}
976
-			}
977
-			else
982
+			} else
978 983
 			{
979 984
 				$this->insert( $child, $item->getId() );
980 985
 			}
@@ -1118,8 +1123,7 @@  discard block
 block discarded – undo
1118 1123
 			 * @see mshop/catalog/manager/insert-usage/ansi
1119 1124
 			 */
1120 1125
 			$path = 'mshop/catalog/manager/update-usage';
1121
-		}
1122
-		else
1126
+		} else
1123 1127
 		{
1124 1128
 			/** mshop/catalog/manager/insert-usage/mysql
1125 1129
 			 * Updates the config, editor, ctime and mtime value of an inserted record
@@ -1183,8 +1187,7 @@  discard block
 block discarded – undo
1183 1187
 		{
1184 1188
 			$stmt->bind( $idx++, $siteid );
1185 1189
 			$stmt->bind( $idx++, $id, \Aimeos\Base\DB\Statement\Base::PARAM_INT );
1186
-		}
1187
-		else
1190
+		} else
1188 1191
 		{
1189 1192
 			$stmt->bind( $idx++, $context->datetime() ); // ctime
1190 1193
 			$stmt->bind( $idx++, $siteid );
Please login to merge, or discard this patch.
src/MW/Jsb2/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -95,8 +95,7 @@
 block discarded – undo
95 95
 				if( !in_array( $package->name, $filter ) ) {
96 96
 					$packageContainer[$package->file][] = $package;
97 97
 				}
98
-			}
99
-			else
98
+			} else
100 99
 			{
101 100
 				$packageContainer[$package->file] = [$package];
102 101
 			}
Please login to merge, or discard this patch.
src/MShop/Group/Manager/Standard.php 1 patch
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -237,27 +237,27 @@  discard block
 block discarded – undo
237 237
 	 */
238 238
 
239 239
 	 /** mshop/group/manager/submanagers
240
-	 * List of manager names that can be instantiated by the group manager
241
-	 *
242
-	 * Managers provide a generic interface to the underlying storage.
243
-	 * Each manager has or can have sub-managers caring about particular
244
-	 * aspects. Each of these sub-managers can be instantiated by its
245
-	 * parent manager using the getSubManager() method.
246
-	 *
247
-	 * The search keys from sub-managers can be normally used in the
248
-	 * manager as well. It allows you to search for items of the manager
249
-	 * using the search keys of the sub-managers to further limit the
250
-	 * retrieved list of items.
251
-	 *
252
-	 * @param array List of sub-manager names
253
-	 * @since 2024.04
254
-	 */
240
+	  * List of manager names that can be instantiated by the group manager
241
+	  *
242
+	  * Managers provide a generic interface to the underlying storage.
243
+	  * Each manager has or can have sub-managers caring about particular
244
+	  * aspects. Each of these sub-managers can be instantiated by its
245
+	  * parent manager using the getSubManager() method.
246
+	  *
247
+	  * The search keys from sub-managers can be normally used in the
248
+	  * manager as well. It allows you to search for items of the manager
249
+	  * using the search keys of the sub-managers to further limit the
250
+	  * retrieved list of items.
251
+	  *
252
+	  * @param array List of sub-manager names
253
+	  * @since 2024.04
254
+	  */
255 255
 
256 256
 	 /** mshop/group/manager/insert/mysql
257
-	 * Inserts a new group record into the database table
258
-	 *
259
-	 * @see mshop/group/manager/insert/ansi
260
-	 */
257
+	  * Inserts a new group record into the database table
258
+	  *
259
+	  * @see mshop/group/manager/insert/ansi
260
+	  */
261 261
 
262 262
 	/** mshop/group/manager/insert/ansi
263 263
 	 * Inserts a new group record into the database table
@@ -289,10 +289,10 @@  discard block
 block discarded – undo
289 289
 	 */
290 290
 
291 291
 	 /** mshop/group/manager/update/mysql
292
-	 * Updates an existing group record in the database
293
-	 *
294
-	 * @see mshop/group/manager/update/ansi
295
-	 */
292
+	  * Updates an existing group record in the database
293
+	  *
294
+	  * @see mshop/group/manager/update/ansi
295
+	  */
296 296
 
297 297
 	/** mshop/group/manager/update/ansi
298 298
 	 * Updates an existing group record in the database
Please login to merge, or discard this patch.
src/MShop/Review/Manager/Standard.php 1 patch
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -339,27 +339,27 @@  discard block
 block discarded – undo
339 339
 	 */
340 340
 
341 341
 	 /** mshop/review/manager/submanagers
342
-	 * List of manager names that can be instantiated by the review manager
343
-	 *
344
-	 * Managers provide a generic interface to the underlying storage.
345
-	 * Each manager has or can have sub-managers caring about particular
346
-	 * aspects. Each of these sub-managers can be instantiated by its
347
-	 * parent manager using the getSubManager() method.
348
-	 *
349
-	 * The search keys from sub-managers can be normally used in the
350
-	 * manager as well. It allows you to search for items of the manager
351
-	 * using the search keys of the sub-managers to further limit the
352
-	 * retrieved list of items.
353
-	 *
354
-	 * @param array List of sub-manager names
355
-	 * @since 2020.10
356
-	 */
342
+	  * List of manager names that can be instantiated by the review manager
343
+	  *
344
+	  * Managers provide a generic interface to the underlying storage.
345
+	  * Each manager has or can have sub-managers caring about particular
346
+	  * aspects. Each of these sub-managers can be instantiated by its
347
+	  * parent manager using the getSubManager() method.
348
+	  *
349
+	  * The search keys from sub-managers can be normally used in the
350
+	  * manager as well. It allows you to search for items of the manager
351
+	  * using the search keys of the sub-managers to further limit the
352
+	  * retrieved list of items.
353
+	  *
354
+	  * @param array List of sub-manager names
355
+	  * @since 2020.10
356
+	  */
357 357
 
358 358
 	 /** mshop/review/manager/insert/mysql
359
-	 * Inserts a new review record into the database table
360
-	 *
361
-	 * @see mshop/review/manager/insert/ansi
362
-	 */
359
+	  * Inserts a new review record into the database table
360
+	  *
361
+	  * @see mshop/review/manager/insert/ansi
362
+	  */
363 363
 
364 364
 	/** mshop/review/manager/insert/ansi
365 365
 	 * Inserts a new review record into the database table
@@ -391,10 +391,10 @@  discard block
 block discarded – undo
391 391
 	 */
392 392
 
393 393
 	 /** mshop/review/manager/update/mysql
394
-	 * Updates an existing review record in the database
395
-	 *
396
-	 * @see mshop/review/manager/update/ansi
397
-	 */
394
+	  * Updates an existing review record in the database
395
+	  *
396
+	  * @see mshop/review/manager/update/ansi
397
+	  */
398 398
 
399 399
 	/** mshop/review/manager/update/ansi
400 400
 	 * Updates an existing review record in the database
Please login to merge, or discard this patch.
src/MShop/Common/Manager/Decorator/Depth.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
 			 *
52 52
 			 * @param int Number of levels
53 53
 			 * @since 2019.04
54
-				 */
54
+			 */
55 55
 			$max = $this->context()->config()->get( 'mshop/common/manager/maxdepth', 2 );
56 56
 
57 57
 			if( $this->level++ < $max ) {
Please login to merge, or discard this patch.