@@ -15,7 +15,7 @@ |
||
| 15 | 15 | |
| 16 | 16 | |
| 17 | 17 | set_error_handler( function( $severity, $message, $file, $line ) { |
| 18 | - if( $severity & E_DEPRECATED === 0 ) { |
|
| 18 | + if( $severity & E_DEPRECATED === 0 ) { |
|
| 19 | 19 | throw new ErrorException( $message, 0, $severity, $file, $line ); |
| 20 | 20 | } |
| 21 | 21 | error_log( $message . ' in ' . $file . ' on line ' . $line ); |
@@ -124,8 +124,7 @@ discard block |
||
| 124 | 124 | foreach( $columns as $name ) { |
| 125 | 125 | $names .= '"' . $name . '", '; $values .= '?, '; |
| 126 | 126 | } |
| 127 | - } |
|
| 128 | - else |
|
| 127 | + } else |
|
| 129 | 128 | { |
| 130 | 129 | foreach( $columns as $name ) { |
| 131 | 130 | $names .= '"' . $name . '" = ?, '; |
@@ -284,8 +283,7 @@ discard block |
||
| 284 | 283 | { |
| 285 | 284 | $parts = array_slice( explode( '.', $attrcode ), 0, -1 ) ?: $this->type(); |
| 286 | 285 | $str = 'm' . substr( (string) array_shift( $parts ), 0, 3 ); |
| 287 | - } |
|
| 288 | - else |
|
| 286 | + } else |
|
| 289 | 287 | { |
| 290 | 288 | $parts = $this->type(); |
| 291 | 289 | $str = 'm' . substr( (string) array_shift( $parts ), 0, 3 ); |
@@ -980,8 +978,7 @@ discard block |
||
| 980 | 978 | */ |
| 981 | 979 | $path = $this->getConfigKey( 'insert', 'mshop/common/manager/insert' ); |
| 982 | 980 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
| 983 | - } |
|
| 984 | - else |
|
| 981 | + } else |
|
| 985 | 982 | { |
| 986 | 983 | /** mshop/common/manager/update/mysql |
| 987 | 984 | * Updates an existing record in the database |