@@ -172,7 +172,9 @@ |
||
| 172 | 172 | $feconfig['supplier.code']['default'] = [$value => $address] + $feconfig['supplier.code']['default']; |
| 173 | 173 | } |
| 174 | 174 | } |
| 175 | - catch( \Aimeos\MShop\Service\Exception $e ) {} // If service isn't available |
|
| 175 | + catch( \Aimeos\MShop\Service\Exception $e ) |
|
| 176 | + { |
|
| 177 | +} // If service isn't available |
|
| 176 | 178 | |
| 177 | 179 | return array_merge( $this->getProvider()->getConfigFE( $basket ), $this->getConfigItems( $feconfig ) ); |
| 178 | 180 | } |
@@ -83,8 +83,7 @@ discard block |
||
| 83 | 83 | $this->release( $conn, $dbdomain ); |
| 84 | 84 | |
| 85 | 85 | $this->status( 'done' ); |
| 86 | - } |
|
| 87 | - else |
|
| 86 | + } else |
|
| 88 | 87 | { |
| 89 | 88 | $this->status( 'OK' ); |
| 90 | 89 | } |
@@ -129,8 +128,7 @@ discard block |
||
| 129 | 128 | $this->release( $conn, $dbdomain ); |
| 130 | 129 | |
| 131 | 130 | $this->status( 'done' ); |
| 132 | - } |
|
| 133 | - else |
|
| 131 | + } else |
|
| 134 | 132 | { |
| 135 | 133 | $this->status( 'OK' ); |
| 136 | 134 | } |
@@ -725,7 +725,9 @@ |
||
| 725 | 725 | $lastPos++; |
| 726 | 726 | } |
| 727 | 727 | } |
| 728 | - catch( \Exception $e ) { ; } // If no delivery service is available |
|
| 728 | + catch( \Exception $e ) |
|
| 729 | + { |
|
| 730 | +; } // If no delivery service is available |
|
| 729 | 731 | } |
| 730 | 732 | |
| 731 | 733 | |
@@ -720,7 +720,7 @@ |
||
| 720 | 720 | $lastPos++; |
| 721 | 721 | } |
| 722 | 722 | } |
| 723 | - catch( \Exception $e ) { ; } // If no delivery service is available |
|
| 723 | + catch( \Exception $e ) {; } // If no delivery service is available |
|
| 724 | 724 | } |
| 725 | 725 | |
| 726 | 726 | |
@@ -129,7 +129,9 @@ |
||
| 129 | 129 | $feconfig['delivery.type']['default'] = $values; |
| 130 | 130 | } |
| 131 | 131 | } |
| 132 | - catch( \Aimeos\MShop\Service\Exception $e ) {} // If service isn't available |
|
| 132 | + catch( \Aimeos\MShop\Service\Exception $e ) |
|
| 133 | + { |
|
| 134 | +} // If service isn't available |
|
| 133 | 135 | |
| 134 | 136 | return array_merge( $this->getProvider()->getConfigFE( $basket ), $this->getConfigItems( $feconfig ) ); |
| 135 | 137 | } |
@@ -155,8 +155,7 @@ |
||
| 155 | 155 | $files[] = $entry->getPathname(); |
| 156 | 156 | } |
| 157 | 157 | } |
| 158 | - } |
|
| 159 | - else |
|
| 158 | + } else |
|
| 160 | 159 | { |
| 161 | 160 | $files[] = $location; |
| 162 | 161 | } |
@@ -75,7 +75,9 @@ discard block |
||
| 75 | 75 | } |
| 76 | 76 | } |
| 77 | 77 | } |
| 78 | - catch( \Exception $e ) {; } // no translation found |
|
| 78 | + catch( \Exception $e ) |
|
| 79 | + { |
|
| 80 | +; } // no translation found |
|
| 79 | 81 | |
| 80 | 82 | return (string) $string; |
| 81 | 83 | } |
@@ -104,7 +106,9 @@ discard block |
||
| 104 | 106 | } |
| 105 | 107 | } |
| 106 | 108 | } |
| 107 | - catch( \Exception $e ) {; } // no translation found |
|
| 109 | + catch( \Exception $e ) |
|
| 110 | + { |
|
| 111 | +; } // no translation found |
|
| 108 | 112 | |
| 109 | 113 | if( $index > 0 ) { |
| 110 | 114 | return (string) $plural; |
@@ -49,8 +49,7 @@ |
||
| 49 | 49 | ) { |
| 50 | 50 | $this->execute( 'DELETE FROM "mshop_index_price"' ); |
| 51 | 51 | $this->status( 'done' ); |
| 52 | - } |
|
| 53 | - else |
|
| 52 | + } else |
|
| 54 | 53 | { |
| 55 | 54 | $this->status( 'OK' ); |
| 56 | 55 | } |
@@ -49,8 +49,7 @@ |
||
| 49 | 49 | ) { |
| 50 | 50 | $this->execute( 'DELETE FROM "mshop_index_text"' ); |
| 51 | 51 | $this->status( 'done' ); |
| 52 | - } |
|
| 53 | - else |
|
| 52 | + } else |
|
| 54 | 53 | { |
| 55 | 54 | $this->status( 'OK' ); |
| 56 | 55 | } |
@@ -108,9 +108,12 @@ |
||
| 108 | 108 | */ |
| 109 | 109 | public function scan( string $path = null ) : iterable |
| 110 | 110 | { |
| 111 | - try { |
|
| 111 | + try |
|
| 112 | + { |
|
| 112 | 113 | return new \DirectoryIterator( $this->resolve( $path ) ); |
| 113 | - } catch( \Exception $e ) { |
|
| 114 | + } |
|
| 115 | + catch( \Exception $e ) |
|
| 116 | + { |
|
| 114 | 117 | throw new Exception( $e->getMessage(), 0, $e ); |
| 115 | 118 | } |
| 116 | 119 | } |