@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | |
9 | 9 | return array( |
10 | 10 | 'table' => array( |
11 | - 'mshop_customer' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
11 | + 'mshop_customer' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
12 | 12 | |
13 | 13 | $table = $schema->createTable( 'mshop_customer' ); |
14 | 14 | |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | $table->addColumn( 'status', 'smallint', [] ); |
43 | 43 | $table->addColumn( 'mtime', 'datetime', [] ); |
44 | 44 | $table->addColumn( 'ctime', 'datetime', [] ); |
45 | - $table->addColumn( 'editor', 'string', array('length' => 255 ) ); |
|
45 | + $table->addColumn( 'editor', 'string', array( 'length' => 255 ) ); |
|
46 | 46 | |
47 | 47 | $table->setPrimaryKey( array( 'id' ), 'pk_mscus_id' ); |
48 | 48 | $table->addUniqueIndex( array( 'siteid', 'code' ), 'unq_mscus_sid_code' ); |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | return $schema; |
57 | 57 | }, |
58 | 58 | |
59 | - 'mshop_customer_address' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
59 | + 'mshop_customer_address' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
60 | 60 | |
61 | 61 | $table = $schema->createTable( 'mshop_customer_address' ); |
62 | 62 | |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | $table->addColumn( 'pos', 'smallint', [] ); |
88 | 88 | $table->addColumn( 'mtime', 'datetime', [] ); |
89 | 89 | $table->addColumn( 'ctime', 'datetime', [] ); |
90 | - $table->addColumn( 'editor', 'string', array('length' => 255 ) ); |
|
90 | + $table->addColumn( 'editor', 'string', array( 'length' => 255 ) ); |
|
91 | 91 | |
92 | 92 | $table->setPrimaryKey( array( 'id' ), 'pk_mscusad_id' ); |
93 | 93 | $table->addIndex( array( 'parentid' ), 'fk_mscusad_pid' ); |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | return $schema; |
105 | 105 | }, |
106 | 106 | |
107 | - 'mshop_customer_list_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
107 | + 'mshop_customer_list_type' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
108 | 108 | |
109 | 109 | $table = $schema->createTable( 'mshop_customer_list_type' ); |
110 | 110 | |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | return $schema; |
128 | 128 | }, |
129 | 129 | |
130 | - 'mshop_customer_list' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
130 | + 'mshop_customer_list' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
131 | 131 | |
132 | 132 | $table = $schema->createTable( 'mshop_customer_list' ); |
133 | 133 | |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | return $schema; |
166 | 166 | }, |
167 | 167 | |
168 | - 'mshop_customer_group' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
168 | + 'mshop_customer_group' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
169 | 169 | |
170 | 170 | $table = $schema->createTable( 'mshop_customer_group' ); |
171 | 171 | |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | return $schema; |
185 | 185 | }, |
186 | 186 | |
187 | - 'mshop_customer_property_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
187 | + 'mshop_customer_property_type' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
188 | 188 | |
189 | 189 | $table = $schema->createTable( 'mshop_customer_property_type' ); |
190 | 190 | |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | return $schema; |
208 | 208 | }, |
209 | 209 | |
210 | - 'mshop_customer_property' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
210 | + 'mshop_customer_property' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
211 | 211 | |
212 | 212 | $table = $schema->createTable( 'mshop_customer_property' ); |
213 | 213 |
@@ -76,8 +76,7 @@ |
||
76 | 76 | $this->release( $conn ); |
77 | 77 | |
78 | 78 | $this->status( 'done' ); |
79 | - } |
|
80 | - else |
|
79 | + } else |
|
81 | 80 | { |
82 | 81 | $this->status( 'OK' ); |
83 | 82 | } |
@@ -200,16 +200,13 @@ |
||
200 | 200 | } |
201 | 201 | |
202 | 202 | return \Aimeos\MW\DB\Statement\Base::PARAM_STR; |
203 | - } |
|
204 | - elseif( strpos( $item, '.' ) !== false ) |
|
203 | + } elseif( strpos( $item, '.' ) !== false ) |
|
205 | 204 | { |
206 | 205 | return \Aimeos\MW\DB\Statement\Base::PARAM_FLOAT; |
207 | - } |
|
208 | - elseif( ctype_digit( $item ) !== false ) |
|
206 | + } elseif( ctype_digit( $item ) !== false ) |
|
209 | 207 | { |
210 | 208 | return \Aimeos\MW\DB\Statement\Base::PARAM_INT; |
211 | - } |
|
212 | - elseif( $item === 'null' ) |
|
209 | + } elseif( $item === 'null' ) |
|
213 | 210 | { |
214 | 211 | return \Aimeos\MW\DB\Statement\Base::PARAM_NULL; |
215 | 212 | } |
@@ -137,8 +137,7 @@ |
||
137 | 137 | foreach( $cond->getExpressions() as $expr ) { |
138 | 138 | $list = array_merge( $list, $this->getProductCodes( $expr ) ); |
139 | 139 | } |
140 | - } |
|
141 | - elseif( $cond instanceof \Aimeos\MW\Criteria\Expression\Compare\Iface ) |
|
140 | + } elseif( $cond instanceof \Aimeos\MW\Criteria\Expression\Compare\Iface ) |
|
142 | 141 | { |
143 | 142 | if( $cond->getName() === 'stock.productcode' && $cond->getOperator() === '==' ) { |
144 | 143 | $list = array_merge( $list, (array) $cond->getValue() ); |
@@ -713,7 +713,7 @@ |
||
713 | 713 | |
714 | 714 | try { |
715 | 715 | $stmt->execute()->finish(); |
716 | - } catch( \Aimeos\MW\DB\Exception $e ) { ; } // Ignore duplicates |
|
716 | + } catch( \Aimeos\MW\DB\Exception $e ) {; } // Ignore duplicates |
|
717 | 717 | } |
718 | 718 | } |
719 | 719 | } |
@@ -670,9 +670,13 @@ |
||
670 | 670 | $stmt->bind( 6, $date ); // mtime |
671 | 671 | $stmt->bind( 7, $siteid, \Aimeos\MW\DB\Statement\Base::PARAM_INT ); |
672 | 672 | |
673 | - try { |
|
673 | + try |
|
674 | + { |
|
674 | 675 | $stmt->execute()->finish(); |
675 | - } catch( \Aimeos\MW\DB\Exception $e ) { ; } // Ignore duplicates |
|
676 | + } |
|
677 | + catch( \Aimeos\MW\DB\Exception $e ) |
|
678 | + { |
|
679 | +; } // Ignore duplicates |
|
676 | 680 | } |
677 | 681 | } |
678 | 682 | } |
@@ -521,7 +521,7 @@ |
||
521 | 521 | |
522 | 522 | try { |
523 | 523 | $stmt->execute()->finish(); |
524 | - } catch( \Aimeos\MW\DB\Exception $e ) { ; } // Ignore duplicates |
|
524 | + } catch( \Aimeos\MW\DB\Exception $e ) {; } // Ignore duplicates |
|
525 | 525 | } |
526 | 526 | } |
527 | 527 |
@@ -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 |
@@ -922,7 +922,7 @@ |
||
922 | 922 | |
923 | 923 | try { |
924 | 924 | $stmt->execute()->finish(); |
925 | - } catch( \Aimeos\MW\DB\Exception $e ) { ; } // Ignore duplicates |
|
925 | + } catch( \Aimeos\MW\DB\Exception $e ) {; } // Ignore duplicates |
|
926 | 926 | } |
927 | 927 | |
928 | 928 |
@@ -745,9 +745,13 @@ |
||
745 | 745 | $stmt->bind( 6, $date ); //mtime |
746 | 746 | $stmt->bind( 7, $siteid, \Aimeos\MW\DB\Statement\Base::PARAM_INT ); |
747 | 747 | |
748 | - try { |
|
748 | + try |
|
749 | + { |
|
749 | 750 | $stmt->execute()->finish(); |
750 | - } catch( \Aimeos\MW\DB\Exception $e ) { ; } // Ignore duplicates |
|
751 | + } |
|
752 | + catch( \Aimeos\MW\DB\Exception $e ) |
|
753 | + { |
|
754 | +; } // Ignore duplicates |
|
751 | 755 | } |
752 | 756 | |
753 | 757 |
@@ -53,7 +53,7 @@ |
||
53 | 53 | */ |
54 | 54 | public function transform( $url ) |
55 | 55 | { |
56 | - if( strncmp( $url, 'http', 4 ) !== 0 && strncmp( $url, 'data:', 5 ) !== 0 && strncmp( $url, '/', 1 ) !== 0 ) { |
|
56 | + if( strncmp( $url, 'http', 4 ) !== 0 && strncmp( $url, 'data:', 5 ) !== 0 && strncmp( $url, '/', 1 ) !== 0 ) { |
|
57 | 57 | $url = $this->baseurl . '/' . $url; |
58 | 58 | } |
59 | 59 |
@@ -93,7 +93,7 @@ |
||
93 | 93 | $rows[] = $row; |
94 | 94 | } |
95 | 95 | |
96 | - $actual[ $entry->getName() ] = count( $rows ); |
|
96 | + $actual[$entry->getName()] = count( $rows ); |
|
97 | 97 | } |
98 | 98 | |
99 | 99 | $this->assertEquals( $expected, $actual ); |