@@ -206,7 +206,9 @@ |
||
206 | 206 | |
207 | 207 | $listTypeManager->saveItem( $listItemType ); |
208 | 208 | } |
209 | - catch( \Exception $e ) {} // Duplicate entry |
|
209 | + catch( \Exception $e ) |
|
210 | + { |
|
211 | +} // Duplicate entry |
|
210 | 212 | } |
211 | 213 | } |
212 | 214 | } |
@@ -173,9 +173,13 @@ |
||
173 | 173 | |
174 | 174 | foreach( $testdata[$domain] as $entry ) |
175 | 175 | { |
176 | - try { |
|
176 | + try |
|
177 | + { |
|
177 | 178 | $manager->saveItem( $manager->createItem()->fromArray( $entry ), false ); |
178 | - } catch( \Exception $e ) {} // Duplicate entry |
|
179 | + } |
|
180 | + catch( \Exception $e ) |
|
181 | + { |
|
182 | +} // Duplicate entry |
|
179 | 183 | } |
180 | 184 | } |
181 | 185 | } |
@@ -200,13 +200,13 @@ |
||
200 | 200 | $expr[] = $search->compare( '>=', 'price.ctime', '1970-01-01 00:00:00' ); |
201 | 201 | $expr[] = $search->compare( '==', 'price.editor', $this->editor ); |
202 | 202 | |
203 | - $param = ['customer','test', '0']; |
|
203 | + $param = ['customer', 'test', '0']; |
|
204 | 204 | $expr[] = $search->compare( '==', $search->createFunction( 'price:has', $param ), null ); |
205 | 205 | |
206 | - $param = ['customer','test', $listItem->getRefId()]; |
|
206 | + $param = ['customer', 'test', $listItem->getRefId()]; |
|
207 | 207 | $expr[] = $search->compare( '!=', $search->createFunction( 'price:has', $param ), null ); |
208 | 208 | |
209 | - $param = ['customer','test']; |
|
209 | + $param = ['customer', 'test']; |
|
210 | 210 | $expr[] = $search->compare( '!=', $search->createFunction( 'price:has', $param ), null ); |
211 | 211 | |
212 | 212 | $param = ['customer']; |
@@ -37,7 +37,7 @@ |
||
37 | 37 | |
38 | 38 | $search = $manager->createSearch()->setSlice( 0, 0x7fffffff ); |
39 | 39 | $search->setConditions( $search->compare( '==', $domain . '.address.parentid', $parentIds ) ); |
40 | - $search->setSortations( [$search->sort( '+', $domain . '.address.position')] ); |
|
40 | + $search->setSortations( [$search->sort( '+', $domain . '.address.position' )] ); |
|
41 | 41 | |
42 | 42 | foreach( $manager->searchItems( $search ) as $id => $addrItem ) { |
43 | 43 | $list[$addrItem->getParentId()][$id] = $addrItem; |
@@ -24,7 +24,7 @@ |
||
24 | 24 | ->getSubmanager( 'base' )->createItem()->off(); |
25 | 25 | |
26 | 26 | $provider = new \Aimeos\MShop\Coupon\Provider\Example( $context, $item, 'abcd' ); |
27 | - $this->object = new \Aimeos\MShop\Coupon\Provider\Decorator\Example( $provider, $context, $item, 'abcd'); |
|
27 | + $this->object = new \Aimeos\MShop\Coupon\Provider\Decorator\Example( $provider, $context, $item, 'abcd' ); |
|
28 | 28 | $this->object->setObject( $this->object ); |
29 | 29 | } |
30 | 30 |
@@ -672,7 +672,7 @@ |
||
672 | 672 | |
673 | 673 | try { |
674 | 674 | $stmt->execute()->finish(); |
675 | - } catch( \Aimeos\MW\DB\Exception $e ) { ; } // Ignore duplicates |
|
675 | + } catch( \Aimeos\MW\DB\Exception $e ) {; } // Ignore duplicates |
|
676 | 676 | } |
677 | 677 | } |
678 | 678 | } |
@@ -670,9 +670,13 @@ |
||
670 | 670 | $stmt->bind( 4, $date ); // mtime |
671 | 671 | $stmt->bind( 5, $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 | } |
@@ -103,7 +103,7 @@ |
||
103 | 103 | { |
104 | 104 | $minute = date( 'i' ); |
105 | 105 | $feconfig = $this->feConfig; |
106 | - $feconfig['time.hourminute']['default'] = date( 'H:i', time() + ($minute + 15 - ($minute % 15)) * 60 ); |
|
106 | + $feconfig['time.hourminute']['default'] = date( 'H:i', time() + ( $minute + 15 - ( $minute % 15 ) ) * 60 ); |
|
107 | 107 | |
108 | 108 | try |
109 | 109 | { |
@@ -114,7 +114,9 @@ |
||
114 | 114 | $feconfig['time.hourminute']['default'] = $value; |
115 | 115 | } |
116 | 116 | } |
117 | - catch( \Aimeos\MShop\Service\Exception $e ) {} // If service isn't available |
|
117 | + catch( \Aimeos\MShop\Service\Exception $e ) |
|
118 | + { |
|
119 | +} // If service isn't available |
|
118 | 120 | |
119 | 121 | return array_merge( $this->getProvider()->getConfigFE( $basket ), $this->getConfigItems( $feconfig ) ); |
120 | 122 | } |
@@ -198,14 +198,14 @@ |
||
198 | 198 | */ |
199 | 199 | protected function checkMySqlCompatibility( \Aimeos\MW\Setup\DBSchema\Iface $schema, $rname ) |
200 | 200 | { |
201 | - if ( !$schema instanceof \Aimeos\MW\Setup\DBSchema\Mysql ) { |
|
201 | + if( !$schema instanceof \Aimeos\MW\Setup\DBSchema\Mysql ) { |
|
202 | 202 | return true; |
203 | 203 | } |
204 | 204 | |
205 | 205 | // MariaDB gets identified as a MySql 5.5.5 by doctrine so ask the server directly |
206 | 206 | $version = $this->getValue( 'SELECT version() AS "version"', 'version', $rname ); |
207 | 207 | |
208 | - if ( strpos( $version, 'MariaDB' ) !== false ) { |
|
208 | + if( strpos( $version, 'MariaDB' ) !== false ) { |
|
209 | 209 | return version_compare( $version, '10.2.7', '>=' ); |
210 | 210 | } |
211 | 211 |
@@ -158,8 +158,7 @@ |
||
158 | 158 | |
159 | 159 | $this->execute( sprintf( 'ALTER TABLE "%1$s" CONVERT TO CHARACTER SET \'utf8mb4\' COLLATE \'utf8mb4_bin\'', $table ), $rname ); |
160 | 160 | $this->status( 'done' ); |
161 | - } |
|
162 | - else |
|
161 | + } else |
|
163 | 162 | { |
164 | 163 | $this->status( 'OK' ); |
165 | 164 | } |
@@ -96,7 +96,7 @@ |
||
96 | 96 | $this->object->addHelper( 'translate', $this->translate ); |
97 | 97 | |
98 | 98 | $ds = DIRECTORY_SEPARATOR; |
99 | - $filenames = array( 'notexisting', __DIR__ . $ds . '_testfiles'. $ds . 'template1' ); |
|
99 | + $filenames = array( 'notexisting', __DIR__ . $ds . '_testfiles' . $ds . 'template1' ); |
|
100 | 100 | |
101 | 101 | $output = $this->object->assign( array( 'quantity' => 1 ) )->render( $filenames ); |
102 | 102 | $this->assertEquals( "Number of files: 1 File", $output ); |