@@ -16,7 +16,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
@@ -78,8 +78,7 @@ |
||
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 | } |
@@ -472,9 +472,13 @@ |
||
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 |
@@ -471,9 +471,13 @@ |
||
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 |
@@ -73,7 +73,8 @@ discard block |
||
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 |
||
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 | } |
@@ -97,7 +97,8 @@ discard block |
||
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 |
||
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 |
@@ -680,9 +680,13 @@ |
||
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 | } |