Passed
Push — master ( 50e989...69e622 )
by Aimeos
05:21
created
lib/mshoplib/setup/default/schema/index.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 
17 17
 	'table' => array(
18 18
 
19
-		'mshop_index_attribute' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
19
+		'mshop_index_attribute' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
20 20
 
21 21
 			$table = $schema->createTable( 'mshop_index_attribute' );
22 22
 
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 			return $schema;
36 36
 		},
37 37
 
38
-		'mshop_index_catalog' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
38
+		'mshop_index_catalog' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
39 39
 
40 40
 			$table = $schema->createTable( 'mshop_index_catalog' );
41 41
 
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 			return $schema;
53 53
 		},
54 54
 
55
-		'mshop_index_price' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
55
+		'mshop_index_price' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
56 56
 
57 57
 			$table = $schema->createTable( 'mshop_index_price' );
58 58
 
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 			return $schema;
77 77
 		},
78 78
 
79
-		'mshop_index_supplier' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
79
+		'mshop_index_supplier' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
80 80
 
81 81
 			$table = $schema->createTable( 'mshop_index_supplier' );
82 82
 
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 			return $schema;
94 94
 		},
95 95
 
96
-		'mshop_index_text' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
96
+		'mshop_index_text' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
97 97
 
98 98
 			$table = $schema->createTable( 'mshop_index_text' );
99 99
 			$table->addOption( 'engine', 'MyISAM' );
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 			$table->addColumn( 'listtype', 'string', array( 'length' => 32 ) );
105 105
 			$table->addColumn( 'domain', 'string', array( 'length' => 32 ) );
106 106
 			$table->addColumn( 'type', 'string', array( 'length' => 32 ) );
107
-			$table->addColumn( 'langid', 'string', array( 'length' => 5, 'notnull' => false  ) );
107
+			$table->addColumn( 'langid', 'string', array( 'length' => 5, 'notnull' => false ) );
108 108
 			$table->addColumn( 'value', 'text', array( 'length' => 0xffff ) );
109 109
 			$table->addColumn( 'mtime', 'datetime', [] );
110 110
 
Please login to merge, or discard this patch.
lib/mshoplib/setup/IndexRemoveCtimeEditor.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,8 +78,7 @@
 block discarded – undo
78 78
 			{
79 79
 				$this->executeList( $stmtList );
80 80
 				$this->status( 'done' );
81
-			}
82
-			else
81
+			} else
83 82
 			{
84 83
 				$this->status( 'OK' );
85 84
 			}
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Index/Manager/Catalog/Standard.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -472,9 +472,13 @@
 block discarded – undo
472 472
 					$stmt->bind( 5, $date ); //mtime
473 473
 					$stmt->bind( 6, $siteid, \Aimeos\MW\DB\Statement\Base::PARAM_INT );
474 474
 
475
-					try {
475
+					try
476
+					{
476 477
 						$stmt->execute()->finish();
477
-					} catch( \Aimeos\MW\DB\Exception $e ) { ; } // Ignore duplicates
478
+					}
479
+					catch( \Aimeos\MW\DB\Exception $e )
480
+					{
481
+; } // Ignore duplicates
478 482
 				}
479 483
 			}
480 484
 
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Index/Manager/Supplier/Standard.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -471,9 +471,13 @@
 block discarded – undo
471 471
 					$stmt->bind( 5, $date ); //mtime
472 472
 					$stmt->bind( 6, $siteid, \Aimeos\MW\DB\Statement\Base::PARAM_INT );
473 473
 
474
-					try {
474
+					try
475
+					{
475 476
 						$stmt->execute()->finish();
476
-					} catch( \Aimeos\MW\DB\Exception $e ) { ; } // Ignore duplicates
477
+					}
478
+					catch( \Aimeos\MW\DB\Exception $e )
479
+					{
480
+; } // Ignore duplicates
477 481
 				}
478 482
 			}
479 483
 
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Index/Manager/Attribute/Standard.php 1 patch
Braces   +8 added lines, -3 removed lines patch added patch discarded remove patch
@@ -73,7 +73,8 @@  discard block
 block discarded – undo
73 73
 			$siteIds = array_merge( $siteIds, $locale->getSiteSubTree() );
74 74
 		}
75 75
 
76
-		$this->searchConfig['index.attribute:all']['function'] = function( $source, array $params ) {
76
+		$this->searchConfig['index.attribute:all']['function'] = function( $source, array $params )
77
+		{
77 78
 			return [$params[0], count( explode( ',', $params[0] ) )];
78 79
 		};
79 80
 
@@ -673,9 +674,13 @@  discard block
 block discarded – undo
673 674
 				$stmt->bind( 6, $date ); // mtime
674 675
 				$stmt->bind( 7, $siteid, \Aimeos\MW\DB\Statement\Base::PARAM_INT );
675 676
 
676
-				try {
677
+				try
678
+				{
677 679
 					$stmt->execute()->finish();
678
-				} catch( \Aimeos\MW\DB\Exception $e ) { ; } // Ignore duplicates
680
+				}
681
+				catch( \Aimeos\MW\DB\Exception $e )
682
+				{
683
+; } // Ignore duplicates
679 684
 			}
680 685
 		}
681 686
 	}
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Index/Manager/Text/Standard.php 1 patch
Braces   +8 added lines, -3 removed lines patch added patch discarded remove patch
@@ -97,7 +97,8 @@  discard block
 block discarded – undo
97 97
 		}
98 98
 
99 99
 
100
-		$this->searchConfig['index.text:relevance']['function'] = function( $source, array $params ) {
100
+		$this->searchConfig['index.text:relevance']['function'] = function( $source, array $params )
101
+		{
101 102
 
102 103
 			if( isset( $params[1] ) ) {
103 104
 				$params[1] = strtolower( $params[1] );
@@ -785,9 +786,13 @@  discard block
 block discarded – undo
785 786
 		$stmt->bind( 8, $date ); //mtime
786 787
 		$stmt->bind( 9, $siteid, \Aimeos\MW\DB\Statement\Base::PARAM_INT );
787 788
 
788
-		try {
789
+		try
790
+		{
789 791
 			$stmt->execute()->finish();
790
-		} catch( \Aimeos\MW\DB\Exception $e ) { ; } // Ignore duplicates
792
+		}
793
+		catch( \Aimeos\MW\DB\Exception $e )
794
+		{
795
+; } // Ignore duplicates
791 796
 	}
792 797
 
793 798
 
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Index/Manager/Price/Standard.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -680,9 +680,13 @@
 block discarded – undo
680 680
 				$stmt->bind( 11, $date ); //mtime
681 681
 				$stmt->bind( 12, $siteid, \Aimeos\MW\DB\Statement\Base::PARAM_INT );
682 682
 
683
-				try {
683
+				try
684
+				{
684 685
 					$stmt->execute()->finish();
685
-				} catch( \Aimeos\MW\DB\Exception $e ) { ; } // Ignore duplicates
686
+				}
687
+				catch( \Aimeos\MW\DB\Exception $e )
688
+				{
689
+; } // Ignore duplicates
686 690
 			}
687 691
 		}
688 692
 	}
Please login to merge, or discard this patch.