@@ -238,8 +238,7 @@ |
||
| 238 | 238 | * @see mshop/product/manager/standard/count/ansi |
| 239 | 239 | */ |
| 240 | 240 | $path = 'mshop/product/manager/standard/insert'; |
| 241 | - } |
|
| 242 | - else |
|
| 241 | + } else |
|
| 243 | 242 | { |
| 244 | 243 | /** mshop/product/manager/standard/update/mysql |
| 245 | 244 | * Updates an existing product record in the database |
@@ -139,9 +139,12 @@ discard block |
||
| 139 | 139 | */ |
| 140 | 140 | public function createItem() |
| 141 | 141 | { |
| 142 | - try { |
|
| 142 | + try |
|
| 143 | + { |
|
| 143 | 144 | return $this->createItemBase( array( 'locale.siteid' => $this->getContext()->getLocale()->getSiteId() ) ); |
| 144 | - } catch( \Exception $e ) { |
|
| 145 | + } |
|
| 146 | + catch( \Exception $e ) |
|
| 147 | + { |
|
| 145 | 148 | return $this->createItemBase(); |
| 146 | 149 | } |
| 147 | 150 | } |
@@ -313,8 +316,7 @@ discard block |
||
| 313 | 316 | * @see mshop/locale/manager/standard/count/ansi |
| 314 | 317 | */ |
| 315 | 318 | $path = 'mshop/locale/manager/standard/insert'; |
| 316 | - } |
|
| 317 | - else |
|
| 319 | + } else |
|
| 318 | 320 | { |
| 319 | 321 | /** mshop/locale/manager/standard/update/mysql |
| 320 | 322 | * Updates an existing locale record in the database |
@@ -694,7 +694,7 @@ discard block |
||
| 694 | 694 | $stmt = $conn->create( $sql ); |
| 695 | 695 | $level = \Aimeos\MW\Logger\Base::DEBUG; |
| 696 | 696 | |
| 697 | - $this->getContext()->getLogger()->log( __METHOD__ . ': SQL statement: ' . $stmt, $level, 'core/sql' ); |
|
| 697 | + $this->getContext()->getLogger()->log( __METHOD__.': SQL statement: '.$stmt, $level, 'core/sql' ); |
|
| 698 | 698 | |
| 699 | 699 | return $stmt->execute(); |
| 700 | 700 | } |
@@ -729,7 +729,7 @@ discard block |
||
| 729 | 729 | $replace = array( |
| 730 | 730 | $search->getConditionString( $types, $translations ), |
| 731 | 731 | $search->getSortationString( $types, $translations ), |
| 732 | - ( $columns ? ', ' . $columns : '' ), |
|
| 732 | + ( $columns ? ', '.$columns : '' ), |
|
| 733 | 733 | $search->getSliceStart(), |
| 734 | 734 | $search->getSliceSize(), |
| 735 | 735 | ); |
@@ -71,8 +71,7 @@ |
||
| 71 | 71 | $this->setCode( $key ); |
| 72 | 72 | $this->values['locale.currency.id'] = $this->values['locale.currency.code']; |
| 73 | 73 | $this->modified = false; |
| 74 | - } |
|
| 75 | - else |
|
| 74 | + } else |
|
| 76 | 75 | { |
| 77 | 76 | $this->values['locale.currency.id'] = null; |
| 78 | 77 | $this->modified = true; |
@@ -72,8 +72,7 @@ |
||
| 72 | 72 | $this->setCode( $key ); |
| 73 | 73 | $this->values['locale.language.id'] = $this->values['locale.language.code']; |
| 74 | 74 | $this->modified = false; |
| 75 | - } |
|
| 76 | - else |
|
| 75 | + } else |
|
| 77 | 76 | { |
| 78 | 77 | $this->values['locale.language.id'] = null; |
| 79 | 78 | $this->modified = true; |
@@ -115,7 +115,7 @@ |
||
| 115 | 115 | |
| 116 | 116 | if( (string) $key !== $this->getCode() ) |
| 117 | 117 | { |
| 118 | - $code = strtolower( $matches[1] ) . ( isset( $matches[4] ) ? $matches[3] . $matches[4] : '' ); |
|
| 118 | + $code = strtolower( $matches[1] ).( isset( $matches[4] ) ? $matches[3].$matches[4] : '' ); |
|
| 119 | 119 | $this->values['locale.language.code'] = $code; |
| 120 | 120 | $this->modified = true; |
| 121 | 121 | } |
@@ -172,8 +172,7 @@ |
||
| 172 | 172 | { |
| 173 | 173 | $this->executeList( $stmtList ); |
| 174 | 174 | $this->status( 'migrated' ); |
| 175 | - } |
|
| 176 | - else |
|
| 175 | + } else |
|
| 177 | 176 | { |
| 178 | 177 | $this->status( 'OK' ); |
| 179 | 178 | } |
@@ -67,8 +67,7 @@ |
||
| 67 | 67 | { |
| 68 | 68 | $this->execute( $stmt ); |
| 69 | 69 | $this->status( 'renamed' ); |
| 70 | - } |
|
| 71 | - else |
|
| 70 | + } else |
|
| 72 | 71 | { |
| 73 | 72 | $this->status( 'OK' ); |
| 74 | 73 | } |
@@ -65,8 +65,7 @@ |
||
| 65 | 65 | { |
| 66 | 66 | $this->executeList( $stmts ); |
| 67 | 67 | $this->status( 'added' ); |
| 68 | - } |
|
| 69 | - else |
|
| 68 | + } else |
|
| 70 | 69 | { |
| 71 | 70 | $this->status( 'OK' ); |
| 72 | 71 | } |
@@ -76,8 +76,7 @@ |
||
| 76 | 76 | { |
| 77 | 77 | $this->executeList( $stmtList ); |
| 78 | 78 | $this->status( 'renamed' ); |
| 79 | - } |
|
| 80 | - else |
|
| 79 | + } else |
|
| 81 | 80 | { |
| 82 | 81 | $this->status( 'OK' ); |
| 83 | 82 | } |
@@ -81,8 +81,7 @@ |
||
| 81 | 81 | } else { |
| 82 | 82 | $this->status( 'OK' ); |
| 83 | 83 | } |
| 84 | - } |
|
| 85 | - else |
|
| 84 | + } else |
|
| 86 | 85 | { |
| 87 | 86 | $this->status( 'OK' ); |
| 88 | 87 | } |