@@ -12,11 +12,11 @@ discard block |
||
| 12 | 12 | 'cms.lists.type' => 'default', 'cms.lists.position' => 0, |
| 13 | 13 | 'text.languageid' => 'en', 'text.type' => 'name', 'text.domain' => 'cms', |
| 14 | 14 | 'text.label' => 'Contact page', 'text.content' => 'Contact page' |
| 15 | - ],[ |
|
| 15 | + ], [ |
|
| 16 | 16 | 'cms.lists.type' => 'default', 'cms.lists.position' => 1, |
| 17 | 17 | 'text.languageid' => 'en', 'text.type' => 'meta-keywords', 'text.domain' => 'cms', |
| 18 | 18 | 'text.label' => 'contact', 'text.content' => 'contact, about us' |
| 19 | - ],[ |
|
| 19 | + ], [ |
|
| 20 | 20 | 'cms.lists.type' => 'default', 'cms.lists.position' => 1, |
| 21 | 21 | 'text.languageid' => 'en', 'text.type' => 'content', 'text.domain' => 'cms', |
| 22 | 22 | 'text.label' => 'Hello', 'text.content' => '<h1>Hello!</h1>' |
@@ -29,11 +29,11 @@ discard block |
||
| 29 | 29 | 'cms.lists.type' => 'default', 'cms.lists.position' => 0, |
| 30 | 30 | 'text.languageid' => 'de', 'text.type' => 'name', 'text.domain' => 'cms', |
| 31 | 31 | 'text.label' => 'Kontaktseite', 'text.content' => 'Kontaktseite' |
| 32 | - ],[ |
|
| 32 | + ], [ |
|
| 33 | 33 | 'cms.lists.type' => 'default', 'cms.lists.position' => 1, |
| 34 | 34 | 'text.languageid' => 'de', 'text.type' => 'meta-keywords', 'text.domain' => 'cms', |
| 35 | 35 | 'text.label' => 'kontakt', 'text.content' => 'kontakt, über uns' |
| 36 | - ],[ |
|
| 36 | + ], [ |
|
| 37 | 37 | 'cms.lists.type' => 'default', 'cms.lists.position' => 1, |
| 38 | 38 | 'text.languageid' => 'de', 'text.type' => 'content', 'text.domain' => 'cms', |
| 39 | 39 | 'text.label' => 'Hallo', 'text.content' => '<h1>Hallo!</h1>' |
@@ -280,7 +280,7 @@ |
||
| 280 | 280 | $media[] = [ |
| 281 | 281 | 'name' => $mediaItem->getLabel(), |
| 282 | 282 | 'src' => $view->content( $mediaItem->getPreview( true ) ), |
| 283 | - 'srcset' => join( ', ', $srcset), |
|
| 283 | + 'srcset' => join( ', ', $srcset ), |
|
| 284 | 284 | 'type' => 'imageset' // @todo: remove after GrapesJs update |
| 285 | 285 | ]; |
| 286 | 286 | } |
@@ -278,8 +278,7 @@ |
||
| 278 | 278 | { |
| 279 | 279 | $propItem = $propItems[$entry['media.property.id']]; |
| 280 | 280 | unset( $propItems[$entry['media.property.id']] ); |
| 281 | - } |
|
| 282 | - else |
|
| 281 | + } else |
|
| 283 | 282 | { |
| 284 | 283 | $propItem = $propManager->create(); |
| 285 | 284 | } |
@@ -37,8 +37,7 @@ discard block |
||
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | |
| 40 | -$entryFcn = function( \Aimeos\MShop\Cms\Item\Iface $item ) use ( $fields, $target, $cntl, $action, $config ) |
|
| 41 | -{ |
|
| 40 | +$entryFcn = function( \Aimeos\MShop\Cms\Item\Iface $item ) use ( $fields, $target, $cntl, $action, $config ) { |
|
| 42 | 41 | $id = $item->getId(); |
| 43 | 42 | $type = $item->getResourceType(); |
| 44 | 43 | $params = array( 'resource' => $type, 'id' => $id ); |
@@ -126,8 +125,7 @@ discard block |
||
| 126 | 125 | foreach( $items as $item ) { |
| 127 | 126 | $data[] = $entryFcn( $item ); |
| 128 | 127 | } |
| 129 | - } |
|
| 130 | - else |
|
| 128 | + } else |
|
| 131 | 129 | { |
| 132 | 130 | $data = $entryFcn( $items ); |
| 133 | 131 | } |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | |
| 9 | 9 | return [ |
| 10 | 10 | 'table' => [ |
| 11 | - 'mshop_cms' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
| 11 | + 'mshop_cms' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
| 12 | 12 | |
| 13 | 13 | $table = $schema->createTable( 'mshop_cms' ); |
| 14 | 14 | $table->addOption( 'engine', 'InnoDB' ); |
@@ -228,8 +228,7 @@ |
||
| 228 | 228 | */ |
| 229 | 229 | $path = 'mshop/cms/manager/insert'; |
| 230 | 230 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
| 231 | - } |
|
| 232 | - else |
|
| 231 | + } else |
|
| 233 | 232 | { |
| 234 | 233 | /** mshop/cms/manager/update/mysql |
| 235 | 234 | * Updates an existing cms record in the database |
@@ -57,11 +57,14 @@ |
||
| 57 | 57 | |
| 58 | 58 | <meta name="twitter:card" content="summary_large_image" /> |
| 59 | 59 | |
| 60 | - <?php else : ?> |
|
| 60 | + <?php else { |
|
| 61 | + : ?> |
|
| 61 | 62 | |
| 62 | 63 | <title><?= $enc->html( $this->get( 'contextSiteLabel', 'Aimeos' ) ) ?></title> |
| 63 | 64 | |
| 64 | - <?php endif; ?> |
|
| 65 | + <?php endif; |
|
| 66 | +} |
|
| 67 | +?> |
|
| 65 | 68 | |
| 66 | 69 | <meta name="application-name" content="Aimeos" /> |
| 67 | 70 | |
@@ -171,8 +171,7 @@ discard block |
||
| 171 | 171 | } |
| 172 | 172 | |
| 173 | 173 | $html = $view->render( $view->config( $tplconf, $default ) ); |
| 174 | - } |
|
| 175 | - else |
|
| 174 | + } else |
|
| 176 | 175 | { |
| 177 | 176 | $html = $this->modifyBody( $html, $uid ); |
| 178 | 177 | } |
@@ -242,8 +241,7 @@ discard block |
||
| 242 | 241 | { |
| 243 | 242 | $view->pageErrorList = array_merge( $view->get( 'pageErrorList', [] ), [$e->getMessage()] ); |
| 244 | 243 | } |
| 245 | - } |
|
| 246 | - else |
|
| 244 | + } else |
|
| 247 | 245 | { |
| 248 | 246 | $html = $this->modifyHeader( $html, $uid ); |
| 249 | 247 | } |
@@ -208,8 +208,7 @@ |
||
| 208 | 208 | ->send(); |
| 209 | 209 | |
| 210 | 210 | $error = [$i18n->dt( 'client', 'Message sent successfully' )]; |
| 211 | - } |
|
| 212 | - else |
|
| 211 | + } else |
|
| 213 | 212 | { |
| 214 | 213 | $error = [$i18n->dt( 'client', 'No recipient configured' )]; |
| 215 | 214 | } |