Completed
Push — master ( 6b3f15...fe5cb0 )
by Aimeos
09:22
created
lib/mshoplib/src/MShop/Index/Manager/Price/Standard.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -402,7 +402,7 @@  discard block
 block discarded – undo
402 402
 		 * @see mshop/index/manager/price/decorators/global
403 403
 		 */
404 404
 
405
-		return $this->getSubManagerBase( 'index', 'price/' . $manager, $name );
405
+		return $this->getSubManagerBase( 'index', 'price/'.$manager, $name );
406 406
 	}
407 407
 
408 408
 
@@ -733,7 +733,7 @@  discard block
 block discarded – undo
733 733
 
734 734
 				try {
735 735
 					$stmt->execute()->finish();
736
-				} catch( \Aimeos\MW\DB\Exception $e ) { ; } // Ignore duplicates
736
+				} catch( \Aimeos\MW\DB\Exception $e ) {; } // Ignore duplicates
737 737
 			}
738 738
 		}
739 739
 	}
Please login to merge, or discard this patch.
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -726,9 +726,13 @@
 block discarded – undo
726 726
 				$stmt->bind( 13, $siteid, \Aimeos\MW\DB\Statement\Base::PARAM_INT );
727 727
 				$stmt->bind( 14, $date ); //ctime
728 728
 
729
-				try {
729
+				try
730
+				{
730 731
 					$stmt->execute()->finish();
731
-				} catch( \Aimeos\MW\DB\Exception $e ) { ; } // Ignore duplicates
732
+				}
733
+				catch( \Aimeos\MW\DB\Exception $e )
734
+				{
735
+; } // Ignore duplicates
732 736
 			}
733 737
 		}
734 738
 	}
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Index/Manager/Attribute/Standard.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -358,7 +358,7 @@  discard block
 block discarded – undo
358 358
 		 * @see mshop/index/manager/attribute/decorators/global
359 359
 		 */
360 360
 
361
-		return $this->getSubManagerBase( 'index', 'attribute/' . $manager, $name );
361
+		return $this->getSubManagerBase( 'index', 'attribute/'.$manager, $name );
362 362
 	}
363 363
 
364 364
 
@@ -683,7 +683,7 @@  discard block
 block discarded – undo
683 683
 
684 684
 				try {
685 685
 					$stmt->execute()->finish();
686
-				} catch( \Aimeos\MW\DB\Exception $e ) { ; } // Ignore duplicates
686
+				} catch( \Aimeos\MW\DB\Exception $e ) {; } // Ignore duplicates
687 687
 			}
688 688
 		}
689 689
 	}
Please login to merge, or discard this patch.
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -676,9 +676,13 @@
 block discarded – undo
676 676
 				$stmt->bind( 8, $siteid, \Aimeos\MW\DB\Statement\Base::PARAM_INT );
677 677
 				$stmt->bind( 9, $date ); // ctime
678 678
 
679
-				try {
679
+				try
680
+				{
680 681
 					$stmt->execute()->finish();
681
-				} catch( \Aimeos\MW\DB\Exception $e ) { ; } // Ignore duplicates
682
+				}
683
+				catch( \Aimeos\MW\DB\Exception $e )
684
+				{
685
+; } // Ignore duplicates
682 686
 			}
683 687
 		}
684 688
 	}
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Locale/Manager/Language/Standard.php 3 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -454,7 +454,7 @@  discard block
 block discarded – undo
454 454
 		 * @see mshop/locale/manager/language/decorators/global
455 455
 		 */
456 456
 
457
-		return $this->getSubManagerBase( 'locale', 'language/' . $manager, $name );
457
+		return $this->getSubManagerBase( 'locale', 'language/'.$manager, $name );
458 458
 	}
459 459
 
460 460
 
@@ -486,7 +486,7 @@  discard block
 block discarded – undo
486 486
 			$replace = array(
487 487
 				$search->getConditionString( $types, $translations ),
488 488
 				$search->getSortationString( $types, $translations ),
489
-				( $columns ? ', ' . $columns : '' ),
489
+				( $columns ? ', '.$columns : '' ),
490 490
 				$search->getSliceStart(),
491 491
 				$search->getSliceSize(),
492 492
 			);
@@ -606,7 +606,7 @@  discard block
 block discarded – undo
606 606
 	protected function getSearchResults( \Aimeos\MW\DB\Connection\Iface $conn, $sql )
607 607
 	{
608 608
 		$statement = $conn->create( $sql );
609
-		$this->getContext()->getLogger()->log( __METHOD__ . ': SQL statement: ' . $statement, \Aimeos\MW\Logger\Base::DEBUG );
609
+		$this->getContext()->getLogger()->log( __METHOD__.': SQL statement: '.$statement, \Aimeos\MW\Logger\Base::DEBUG );
610 610
 
611 611
 		$results = $statement->execute();
612 612
 
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -605,7 +605,7 @@  discard block
 block discarded – undo
605 605
 	 * Returns the search results for the given SQL statement.
606 606
 	 *
607 607
 	 * @param \Aimeos\MW\DB\Connection\Iface $conn Database connection
608
-	 * @param $sql SQL statement
608
+	 * @param string $sql SQL statement
609 609
 	 * @return \Aimeos\MW\DB\Result\Iface Search result object
610 610
 	 */
611 611
 	protected function getSearchResults( \Aimeos\MW\DB\Connection\Iface $conn, $sql )
@@ -635,7 +635,7 @@  discard block
 block discarded – undo
635 635
 	 * Returns the total number of items found for the conditions
636 636
 	 *
637 637
 	 * @param \Aimeos\MW\DB\Connection\Iface $conn Database connection
638
-	 * @param array $find List of markers that should be replaced in the SQL statement
638
+	 * @param string[] $find List of markers that should be replaced in the SQL statement
639 639
 	 * @param array $replace List of replacements for the markers in the SQL statement
640 640
 	 * @throws \Aimeos\MShop\Locale\Exception If no total value was found
641 641
 	 * @return integer Total number of found items
Please login to merge, or discard this patch.
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -104,9 +104,12 @@  discard block
 block discarded – undo
104 104
 	 */
105 105
 	public function createItem()
106 106
 	{
107
-		try {
107
+		try
108
+		{
108 109
 			$values = array( 'locale.language.siteid' => $this->getContext()->getLocale()->getSiteId() );
109
-		} catch( \Exception $ex ) {
110
+		}
111
+		catch( \Exception $ex )
112
+		{
110 113
 			$values = array( 'locale.language.siteid' => null );
111 114
 		}
112 115
 
@@ -173,8 +176,7 @@  discard block
 block discarded – undo
173 176
 				 * @see mshop/locale/manager/language/standard/count/ansi
174 177
 				 */
175 178
 				$path = 'mshop/locale/manager/language/standard/insert';
176
-			}
177
-			else
179
+			} else
178 180
 			{
179 181
 				/** mshop/locale/manager/language/standard/update/mysql
180 182
 				 * Updates an existing language record in the database
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Index/Manager/Catalog/Standard.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -366,7 +366,7 @@  discard block
 block discarded – undo
366 366
 		 * @see mshop/index/manager/catalog/decorators/global
367 367
 		 */
368 368
 
369
-		return $this->getSubManagerBase( 'index', 'catalog/' . $manager, $name );
369
+		return $this->getSubManagerBase( 'index', 'catalog/'.$manager, $name );
370 370
 	}
371 371
 
372 372
 
@@ -485,7 +485,7 @@  discard block
 block discarded – undo
485 485
 
486 486
 					try {
487 487
 						$stmt->execute()->finish();
488
-					} catch( \Aimeos\MW\DB\Exception $e ) { ; } // Ignore duplicates
488
+					} catch( \Aimeos\MW\DB\Exception $e ) {; } // Ignore duplicates
489 489
 				}
490 490
 			}
491 491
 
Please login to merge, or discard this patch.
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -483,9 +483,13 @@
 block discarded – undo
483 483
 					$stmt->bind( 7, $siteid, \Aimeos\MW\DB\Statement\Base::PARAM_INT );
484 484
 					$stmt->bind( 8, $date ); //ctime
485 485
 
486
-					try {
486
+					try
487
+					{
487 488
 						$stmt->execute()->finish();
488
-					} catch( \Aimeos\MW\DB\Exception $e ) { ; } // Ignore duplicates
489
+					}
490
+					catch( \Aimeos\MW\DB\Exception $e )
491
+					{
492
+; } // Ignore duplicates
489 493
 				}
490 494
 			}
491 495
 
Please login to merge, or discard this patch.
lib/mshoplib/setup/unittest/CustomerAddTestData.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 		$ds = DIRECTORY_SEPARATOR;
53 53
 		$this->additional->setEditor( 'core:unittest' );
54 54
 
55
-		$this->process( __DIR__ . $ds . 'data' . $ds . 'customer.php' );
55
+		$this->process( __DIR__.$ds.'data'.$ds.'customer.php' );
56 56
 
57 57
 		$this->status( 'done' );
58 58
 
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
 
208 208
 			try {
209 209
 				$customerGroupManager->saveItem( $group, false );
210
-			} catch( \Exception $e ) { ; } // ignore duplicates
210
+			} catch( \Exception $e ) {; } // ignore duplicates
211 211
 		}
212 212
 	}
213 213
 }
214 214
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -205,9 +205,13 @@
 block discarded – undo
205 205
 			$group->setCode( $dataset['code'] );
206 206
 			$group->setLabel( $dataset['label'] );
207 207
 
208
-			try {
208
+			try
209
+			{
209 210
 				$customerGroupManager->saveItem( $group, false );
210
-			} catch( \Exception $e ) { ; } // ignore duplicates
211
+			}
212
+			catch( \Exception $e )
213
+			{
214
+; } // ignore duplicates
211 215
 		}
212 216
 	}
213 217
 }
214 218
\ No newline at end of file
Please login to merge, or discard this patch.
lib/mshoplib/setup/TablesCreatePlatform.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -46,13 +46,13 @@
 block discarded – undo
46 46
 
47 47
 		$ds = DIRECTORY_SEPARATOR;
48 48
 
49
-		$this->setupPlatform( 'db-index', 'mysql', realpath( __DIR__ ) . $ds . 'default' . $ds . 'schema' . $ds . 'index-mysql.sql' );
50
-		$this->setupPlatform( 'db-order', 'mysql', realpath( __DIR__ ) . $ds . 'default' . $ds . 'schema' . $ds . 'order-mysql.sql' );
51
-		$this->setupPlatform( 'db-text', 'mysql', realpath( __DIR__ ) . $ds . 'default' . $ds . 'schema' . $ds . 'text-mysql.sql' );
49
+		$this->setupPlatform( 'db-index', 'mysql', realpath( __DIR__ ).$ds.'default'.$ds.'schema'.$ds.'index-mysql.sql' );
50
+		$this->setupPlatform( 'db-order', 'mysql', realpath( __DIR__ ).$ds.'default'.$ds.'schema'.$ds.'order-mysql.sql' );
51
+		$this->setupPlatform( 'db-text', 'mysql', realpath( __DIR__ ).$ds.'default'.$ds.'schema'.$ds.'text-mysql.sql' );
52 52
 
53
-		$this->setupPlatform( 'db-index', 'pgsql', realpath( __DIR__ ) . $ds . 'default' . $ds . 'schema' . $ds . 'index-pgsql.sql' );
54
-		$this->setupPlatform( 'db-order', 'pgsql', realpath( __DIR__ ) . $ds . 'default' . $ds . 'schema' . $ds . 'order-pgsql.sql' );
55
-		$this->setupPlatform( 'db-text', 'pgsql', realpath( __DIR__ ) . $ds . 'default' . $ds . 'schema' . $ds . 'text-pgsql.sql' );
53
+		$this->setupPlatform( 'db-index', 'pgsql', realpath( __DIR__ ).$ds.'default'.$ds.'schema'.$ds.'index-pgsql.sql' );
54
+		$this->setupPlatform( 'db-order', 'pgsql', realpath( __DIR__ ).$ds.'default'.$ds.'schema'.$ds.'order-pgsql.sql' );
55
+		$this->setupPlatform( 'db-text', 'pgsql', realpath( __DIR__ ).$ds.'default'.$ds.'schema'.$ds.'text-pgsql.sql' );
56 56
 	}
57 57
 
58 58
 
Please login to merge, or discard this patch.
lib/mshoplib/setup/MShopAddTypeData.php 2 patches
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -100,10 +100,14 @@
 block discarded – undo
100 100
 				$type->setLabel( $dataset['label'] );
101 101
 				$type->setStatus( $dataset['status'] );
102 102
 
103
-				try {
103
+				try
104
+				{
104 105
 					$domainManager->saveItem( $type );
105 106
 					$num++;
106
-				} catch( \Exception $e ) { ; } // if type was already available
107
+				}
108
+				catch( \Exception $e )
109
+				{
110
+; } // if type was already available
107 111
 			}
108 112
 
109 113
 			$this->status( $num > 0 ? $num . '/' . $total : 'OK' );
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 
67 67
 
68 68
 		$ds = DIRECTORY_SEPARATOR;
69
-		$filename = __DIR__ . $ds . 'default' . $ds . 'data' . $ds . 'type.php';
69
+		$filename = __DIR__.$ds.'default'.$ds.'data'.$ds.'type.php';
70 70
 
71 71
 		if( ( $testdata = include( $filename ) ) == false ) {
72 72
 			throw new \Aimeos\MShop\Exception( sprintf( 'No type file found in "%1$s"', $filename ) );
@@ -103,10 +103,10 @@  discard block
 block discarded – undo
103 103
 				try {
104 104
 					$domainManager->saveItem( $type );
105 105
 					$num++;
106
-				} catch( \Exception $e ) { ; } // if type was already available
106
+				} catch( \Exception $e ) {; } // if type was already available
107 107
 			}
108 108
 
109
-			$this->status( $num > 0 ? $num . '/' . $total : 'OK' );
109
+			$this->status( $num > 0 ? $num.'/'.$total : 'OK' );
110 110
 		}
111 111
 
112 112
 		$this->additional->setEditor( $editor );
@@ -147,8 +147,8 @@  discard block
 block discarded – undo
147 147
 			if( !isset( $this->domainManagers[$domainname] ) )
148 148
 			{
149 149
 				$iface = '\\Aimeos\\MShop\\Common\\Manager\\Iface';
150
-				$factory = '\\Aimeos\\MShop\\' . ucwords( $domainname ) . '\\Manager\\Factory';
151
-				$manager = call_user_func_array( $factory . '::createManager', array( $this->additional ) );
150
+				$factory = '\\Aimeos\\MShop\\'.ucwords( $domainname ).'\\Manager\\Factory';
151
+				$manager = call_user_func_array( $factory.'::createManager', array( $this->additional ) );
152 152
 
153 153
 				if( !( $manager instanceof $iface ) ) {
154 154
 					throw new \RuntimeException( sprintf( 'No factory "%1$s" found', $factory ) );
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
 
161 161
 			foreach( $parts as $part )
162 162
 			{
163
-				$tmpname = $domainname . '/' . $part;
163
+				$tmpname = $domainname.'/'.$part;
164 164
 
165 165
 				if( !isset( $this->domainManagers[$tmpname] ) ) {
166 166
 					$this->domainManagers[$tmpname] = $this->domainManagers[$domainname]->getSubManager( $part );
Please login to merge, or discard this patch.
lib/mwlib/tests/MW/View/Helper/Access/StandardTest.php 1 patch
Braces   +12 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,7 +14,9 @@  discard block
 block discarded – undo
14 14
 	public function testTransformSingleOK()
15 15
 	{
16 16
 		$view = new \Aimeos\MW\View\Standard();
17
-		$fcn = function() { return array( 'editor' ); };
17
+		$fcn = function()
18
+		{
19
+return array( 'editor' ); };
18 20
 
19 21
 		$object = new \Aimeos\MW\View\Helper\Access\Standard( $view, $fcn );
20 22
 		$this->assertTrue( $object->transform( 'editor' ) );
@@ -24,7 +26,9 @@  discard block
 block discarded – undo
24 26
 	public function testTransformSingleFailure()
25 27
 	{
26 28
 		$view = new \Aimeos\MW\View\Standard();
27
-		$fcn = function() { return array( 'editor' ); };
29
+		$fcn = function()
30
+		{
31
+return array( 'editor' ); };
28 32
 
29 33
 		$object = new \Aimeos\MW\View\Helper\Access\Standard( $view, $fcn );
30 34
 		$this->assertFalse( $object->transform( 'admin' ) );
@@ -34,7 +38,9 @@  discard block
 block discarded – undo
34 38
 	public function testTransformMultipleOK()
35 39
 	{
36 40
 		$view = new \Aimeos\MW\View\Standard();
37
-		$fcn = function() { return array( 'admin', 'editor' ); };
41
+		$fcn = function()
42
+		{
43
+return array( 'admin', 'editor' ); };
38 44
 
39 45
 		$object = new \Aimeos\MW\View\Helper\Access\Standard( $view, $fcn );
40 46
 		$this->assertTrue( $object->transform( array( 'editor' ) ) );
@@ -44,7 +50,9 @@  discard block
 block discarded – undo
44 50
 	public function testTransformMultipleFailure()
45 51
 	{
46 52
 		$view = new \Aimeos\MW\View\Standard();
47
-		$fcn = function() { return array( 'admin', 'editor' ); };
53
+		$fcn = function()
54
+		{
55
+return array( 'admin', 'editor' ); };
48 56
 
49 57
 		$object = new \Aimeos\MW\View\Helper\Access\Standard( $view, $fcn );
50 58
 		$this->assertFalse( $object->transform( array( 'test', 'example' ) ) );
Please login to merge, or discard this patch.
lib/mshoplib/setup/OrderAddTimes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@
 block discarded – undo
161 161
 
162 162
 				$stmt->bind( 1, $date );
163 163
 				$stmt->bind( 2, substr( $date, 0, 7 ) );
164
-				$stmt->bind( 3, date_create_from_format( 'Y-m-d', $date )->format( 'Y-W' )  );
164
+				$stmt->bind( 3, date_create_from_format( 'Y-m-d', $date )->format( 'Y-W' ) );
165 165
 				$stmt->bind( 4, substr( $time, 0, 2 ) );
166 166
 				$stmt->bind( 5, $id, \Aimeos\MW\DB\Statement\Base::PARAM_INT );
167 167
 
Please login to merge, or discard this patch.