@@ -701,7 +701,7 @@ |
||
| 701 | 701 | |
| 702 | 702 | try { |
| 703 | 703 | $stmt->execute()->finish(); |
| 704 | - } catch( \Aimeos\Base\DB\Exception $e ) { ; } // Ignore duplicates |
|
| 704 | + } catch( \Aimeos\Base\DB\Exception $e ) {; } // Ignore duplicates |
|
| 705 | 705 | } |
| 706 | 706 | } |
| 707 | 707 | } |
@@ -699,9 +699,13 @@ |
||
| 699 | 699 | $stmt->bind( 7, $date ); // mtime |
| 700 | 700 | $stmt->bind( 8, $siteid ); |
| 701 | 701 | |
| 702 | - try { |
|
| 702 | + try |
|
| 703 | + { |
|
| 703 | 704 | $stmt->execute()->finish(); |
| 704 | - } catch( \Aimeos\Base\DB\Exception $e ) { ; } // Ignore duplicates |
|
| 705 | + } |
|
| 706 | + catch( \Aimeos\Base\DB\Exception $e ) |
|
| 707 | + { |
|
| 708 | +; } // Ignore duplicates |
|
| 705 | 709 | } |
| 706 | 710 | } |
| 707 | 711 | } |
@@ -504,7 +504,7 @@ |
||
| 504 | 504 | |
| 505 | 505 | try { |
| 506 | 506 | $stmt->execute()->finish(); |
| 507 | - } catch( \Aimeos\Base\DB\Exception $e ) { ; } // Ignore duplicates |
|
| 507 | + } catch( \Aimeos\Base\DB\Exception $e ) {; } // Ignore duplicates |
|
| 508 | 508 | } |
| 509 | 509 | } |
| 510 | 510 | } |
@@ -502,9 +502,13 @@ |
||
| 502 | 502 | $stmt->bind( 7, $date ); //mtime |
| 503 | 503 | $stmt->bind( 8, $siteid ); |
| 504 | 504 | |
| 505 | - try { |
|
| 505 | + try |
|
| 506 | + { |
|
| 506 | 507 | $stmt->execute()->finish(); |
| 507 | - } catch( \Aimeos\Base\DB\Exception $e ) { ; } // Ignore duplicates |
|
| 508 | + } |
|
| 509 | + catch( \Aimeos\Base\DB\Exception $e ) |
|
| 510 | + { |
|
| 511 | +; } // Ignore duplicates |
|
| 508 | 512 | } |
| 509 | 513 | } |
| 510 | 514 | } |
@@ -472,7 +472,7 @@ |
||
| 472 | 472 | |
| 473 | 473 | try { |
| 474 | 474 | $stmt->execute()->finish(); |
| 475 | - } catch( \Aimeos\Base\DB\Exception $e ) { ; } // Ignore duplicates |
|
| 475 | + } catch( \Aimeos\Base\DB\Exception $e ) {; } // Ignore duplicates |
|
| 476 | 476 | } |
| 477 | 477 | } |
| 478 | 478 | |
@@ -470,9 +470,13 @@ |
||
| 470 | 470 | $stmt->bind( 5, $date ); //mtime |
| 471 | 471 | $stmt->bind( 6, $siteid ); |
| 472 | 472 | |
| 473 | - try { |
|
| 473 | + try |
|
| 474 | + { |
|
| 474 | 475 | $stmt->execute()->finish(); |
| 475 | - } catch( \Aimeos\Base\DB\Exception $e ) { ; } // Ignore duplicates |
|
| 476 | + } |
|
| 477 | + catch( \Aimeos\Base\DB\Exception $e ) |
|
| 478 | + { |
|
| 479 | +; } // Ignore duplicates |
|
| 476 | 480 | } |
| 477 | 481 | } |
| 478 | 482 | |
@@ -830,7 +830,7 @@ |
||
| 830 | 830 | |
| 831 | 831 | try { |
| 832 | 832 | $stmt->execute()->finish(); |
| 833 | - } catch( \Aimeos\Base\DB\Exception $e ) { ; } // Ignore duplicates |
|
| 833 | + } catch( \Aimeos\Base\DB\Exception $e ) {; } // Ignore duplicates |
|
| 834 | 834 | } |
| 835 | 835 | |
| 836 | 836 | |
@@ -828,9 +828,13 @@ |
||
| 828 | 828 | $stmt->bind( 6, $date ); //mtime |
| 829 | 829 | $stmt->bind( 7, $siteid ); |
| 830 | 830 | |
| 831 | - try { |
|
| 831 | + try |
|
| 832 | + { |
|
| 832 | 833 | $stmt->execute()->finish(); |
| 833 | - } catch( \Aimeos\Base\DB\Exception $e ) { ; } // Ignore duplicates |
|
| 834 | + } |
|
| 835 | + catch( \Aimeos\Base\DB\Exception $e ) |
|
| 836 | + { |
|
| 837 | +; } // Ignore duplicates |
|
| 834 | 838 | } |
| 835 | 839 | |
| 836 | 840 | |
@@ -706,7 +706,7 @@ |
||
| 706 | 706 | |
| 707 | 707 | try { |
| 708 | 708 | $stmt->execute()->finish(); |
| 709 | - } catch( \Aimeos\Base\DB\Exception $e ) { ; } // Ignore duplicates |
|
| 709 | + } catch( \Aimeos\Base\DB\Exception $e ) {; } // Ignore duplicates |
|
| 710 | 710 | } |
| 711 | 711 | } |
| 712 | 712 | } |
@@ -704,9 +704,13 @@ |
||
| 704 | 704 | $stmt->bind( 4, $date ); // mtime |
| 705 | 705 | $stmt->bind( 5, $siteid ); |
| 706 | 706 | |
| 707 | - try { |
|
| 707 | + try |
|
| 708 | + { |
|
| 708 | 709 | $stmt->execute()->finish(); |
| 709 | - } catch( \Aimeos\Base\DB\Exception $e ) { ; } // Ignore duplicates |
|
| 710 | + } |
|
| 711 | + catch( \Aimeos\Base\DB\Exception $e ) |
|
| 712 | + { |
|
| 713 | +; } // Ignore duplicates |
|
| 710 | 714 | } |
| 711 | 715 | } |
| 712 | 716 | } |
@@ -140,8 +140,7 @@ |
||
| 140 | 140 | foreach( $cond->getExpressions() as $expr ) { |
| 141 | 141 | $list = array_merge( $list, $this->getProductIds( $expr ) ); |
| 142 | 142 | } |
| 143 | - } |
|
| 144 | - elseif( $cond instanceof \Aimeos\Base\Criteria\Expression\Compare\Iface ) |
|
| 143 | + } elseif( $cond instanceof \Aimeos\Base\Criteria\Expression\Compare\Iface ) |
|
| 145 | 144 | { |
| 146 | 145 | if( $cond->getName() === 'stock.productid' && $cond->getOperator() === '==' ) { |
| 147 | 146 | $list = array_merge( $list, (array) $cond->getValue() ); |
@@ -50,8 +50,7 @@ discard block |
||
| 50 | 50 | { |
| 51 | 51 | $this->image->setImageAlphaChannel( \Imagick::ALPHACHANNEL_ACTIVATE ); |
| 52 | 52 | $this->image->setImageBackgroundColor( $options['image']['background'] ?? 'transparent' ); |
| 53 | - } |
|
| 54 | - else |
|
| 53 | + } else |
|
| 55 | 54 | { |
| 56 | 55 | $this->image->setImageBackgroundColor( $options['image']['background'] ?? '#ffffff' ); |
| 57 | 56 | } |
@@ -174,8 +173,7 @@ discard block |
||
| 174 | 173 | $newMedia->image->cropThumbnailImage( (int) $width, (int) $height ); |
| 175 | 174 | // see https://www.php.net/manual/en/imagick.cropthumbnailimage.php#106710 |
| 176 | 175 | $newMedia->image->setImagePage( 0, 0, 0, 0 ); |
| 177 | - } |
|
| 178 | - elseif( $fit === 1 && $width && $height ) |
|
| 176 | + } elseif( $fit === 1 && $width && $height ) |
|
| 179 | 177 | { |
| 180 | 178 | $this->resize( $newMedia, $width, $height ); |
| 181 | 179 | |
@@ -183,8 +181,7 @@ discard block |
||
| 183 | 181 | $h = ( $height - $newMedia->image->getImageHeight() ) / 2; |
| 184 | 182 | |
| 185 | 183 | $newMedia->image->extentImage( $width, $height, (int) -$w, (int) -$h ); |
| 186 | - } |
|
| 187 | - else |
|
| 184 | + } else |
|
| 188 | 185 | { |
| 189 | 186 | $this->resize( $newMedia, $width, $height ); |
| 190 | 187 | } |
@@ -287,8 +284,7 @@ discard block |
||
| 287 | 284 | $wmimage = clone self::$wmimg; |
| 288 | 285 | $wmimage->resizeImage( $ww, $wh, \Imagick::FILTER_CUBIC, 0.8 ); |
| 289 | 286 | self::$wmimages[$ww . 'x' . $wh] = $wmimage; |
| 290 | - } |
|
| 291 | - else |
|
| 287 | + } else |
|
| 292 | 288 | { |
| 293 | 289 | $wmimage = self::$wmimages[$ww . 'x' . $wh]; |
| 294 | 290 | } |
@@ -153,8 +153,8 @@ |
||
| 153 | 153 | { |
| 154 | 154 | $map = []; |
| 155 | 155 | |
| 156 | - $conn = $this->context()->db( 'db-locale' ); |
|
| 157 | - $tconn = $this->context()->db( 'db-locale', true ); |
|
| 156 | + $conn = $this->context()->db( 'db-locale' ); |
|
| 157 | + $tconn = $this->context()->db( 'db-locale', true ); |
|
| 158 | 158 | |
| 159 | 159 | $type = \Aimeos\Base\DB\Statement\Base::PARAM_INT; |
| 160 | 160 | $roots = $conn->create( 'SELECT id, nleft, nright FROM mshop_locale_site WHERE level = 0' )->execute(); |
@@ -39,9 +39,12 @@ |
||
| 39 | 39 | { |
| 40 | 40 | $db->for( 'mysql', 'CREATE FULLTEXT INDEX `idx_msindte_content` ON `mshop_index_text` (`content`)' ); |
| 41 | 41 | |
| 42 | - try { |
|
| 42 | + try |
|
| 43 | + { |
|
| 43 | 44 | $db->for( 'postgresql', 'CREATE INDEX "idx_msindte_content" ON "mshop_index_text" USING GIN (to_tsvector(\'english\', "content"))' ); |
| 44 | - } catch( \Exception $e ) { |
|
| 45 | + } |
|
| 46 | + catch( \Exception $e ) |
|
| 47 | + { |
|
| 45 | 48 | // Doctrine DBAL bug: https://github.com/doctrine/dbal/issues/5351 |
| 46 | 49 | } |
| 47 | 50 | } |