@@ -19,9 +19,9 @@ |
||
| 19 | 19 | */ |
| 20 | 20 | public function migrate() |
| 21 | 21 | { |
| 22 | - $this->msg( 'Creating CMS tables', 0, '' ); |
|
| 22 | + $this->msg('Creating CMS tables', 0, ''); |
|
| 23 | 23 | |
| 24 | 24 | $ds = DIRECTORY_SEPARATOR; |
| 25 | - $this->setupSchema( ['db-cms' => 'default' . $ds . 'schema' . $ds . 'cms.php'] ); |
|
| 25 | + $this->setupSchema(['db-cms' => 'default' . $ds . 'schema' . $ds . 'cms.php']); |
|
| 26 | 26 | } |
| 27 | 27 | } |
@@ -30,20 +30,20 @@ |
||
| 30 | 30 | */ |
| 31 | 31 | public function migrate() |
| 32 | 32 | { |
| 33 | - \Aimeos\MW\Common\Base::checkClass( \Aimeos\MShop\Context\Item\Iface::class, $this->additional ); |
|
| 33 | + \Aimeos\MW\Common\Base::checkClass(\Aimeos\MShop\Context\Item\Iface::class, $this->additional); |
|
| 34 | 34 | |
| 35 | - $this->additional->setEditor( 'ai-cms-grapejs:lib/custom' ); |
|
| 35 | + $this->additional->setEditor('ai-cms-grapejs:lib/custom'); |
|
| 36 | 36 | $sitecode = $this->additional->getLocale()->getSiteItem()->getCode(); |
| 37 | - $this->msg( sprintf( 'Adding CMS type data for site "%1$s"', $sitecode ), 0, '' ); |
|
| 37 | + $this->msg(sprintf('Adding CMS type data for site "%1$s"', $sitecode), 0, ''); |
|
| 38 | 38 | |
| 39 | 39 | |
| 40 | 40 | $ds = DIRECTORY_SEPARATOR; |
| 41 | 41 | $filename = __DIR__ . $ds . 'default' . $ds . 'data' . $ds . 'type.php'; |
| 42 | 42 | |
| 43 | - if( ( $testdata = include( $filename ) ) == false ) { |
|
| 44 | - throw new \Aimeos\MShop\Exception( sprintf( 'No type file found in "%1$s"', $filename ) ); |
|
| 43 | + if (($testdata = include($filename)) == false) { |
|
| 44 | + throw new \Aimeos\MShop\Exception(sprintf('No type file found in "%1$s"', $filename)); |
|
| 45 | 45 | } |
| 46 | 46 | |
| 47 | - $this->processFile( $testdata ); |
|
| 47 | + $this->processFile($testdata); |
|
| 48 | 48 | } |
| 49 | 49 | } |
@@ -4,17 +4,17 @@ |
||
| 4 | 4 | * Set error reporting to maximum |
| 5 | 5 | */ |
| 6 | 6 | error_reporting( -1 ); |
| 7 | -ini_set( 'display_errors', true ); |
|
| 7 | +ini_set('display_errors', true); |
|
| 8 | 8 | |
| 9 | -date_default_timezone_set( 'UTC' ); |
|
| 9 | +date_default_timezone_set('UTC'); |
|
| 10 | 10 | |
| 11 | 11 | /* |
| 12 | 12 | * Set locale settings to reasonable defaults |
| 13 | 13 | */ |
| 14 | -setlocale( LC_ALL, 'en_US.UTF-8' ); |
|
| 15 | -setlocale( LC_CTYPE, 'en_US.UTF-8' ); |
|
| 16 | -setlocale( LC_NUMERIC, 'POSIX' ); |
|
| 17 | -setlocale( LC_TIME, 'POSIX' ); |
|
| 14 | +setlocale(LC_ALL, 'en_US.UTF-8'); |
|
| 15 | +setlocale(LC_CTYPE, 'en_US.UTF-8'); |
|
| 16 | +setlocale(LC_NUMERIC, 'POSIX'); |
|
| 17 | +setlocale(LC_TIME, 'POSIX'); |
|
| 18 | 18 | |
| 19 | 19 | |
| 20 | 20 | require_once 'TestHelperJapi.php'; |
@@ -13,16 +13,16 @@ discard block |
||
| 13 | 13 | |
| 14 | 14 | $includepaths = $aimeos->getIncludePaths(); |
| 15 | 15 | $includepaths[] = get_include_path(); |
| 16 | - set_include_path( implode( PATH_SEPARATOR, $includepaths ) ); |
|
| 16 | + set_include_path(implode(PATH_SEPARATOR, $includepaths)); |
|
| 17 | 17 | } |
| 18 | 18 | |
| 19 | 19 | |
| 20 | 20 | private static function getAimeos() |
| 21 | 21 | { |
| 22 | - if( !isset( self::$aimeos ) ) |
|
| 22 | + if (!isset(self::$aimeos)) |
|
| 23 | 23 | { |
| 24 | 24 | require_once 'Bootstrap.php'; |
| 25 | - spl_autoload_register( 'Aimeos\\Bootstrap::autoload' ); |
|
| 25 | + spl_autoload_register('Aimeos\\Bootstrap::autoload'); |
|
| 26 | 26 | |
| 27 | 27 | self::$aimeos = new \Aimeos\Bootstrap(); |
| 28 | 28 | } |
@@ -31,10 +31,10 @@ discard block |
||
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | |
| 34 | - public static function getContext( $site = 'unittest' ) |
|
| 34 | + public static function getContext($site = 'unittest') |
|
| 35 | 35 | { |
| 36 | - if( !isset( self::$context[$site] ) ) { |
|
| 37 | - self::$context[$site] = self::createContext( $site ); |
|
| 36 | + if (!isset(self::$context[$site])) { |
|
| 37 | + self::$context[$site] = self::createContext($site); |
|
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | return clone self::$context[$site]; |
@@ -43,23 +43,23 @@ discard block |
||
| 43 | 43 | |
| 44 | 44 | public static function getView() |
| 45 | 45 | { |
| 46 | - $view = new \Aimeos\MW\View\Standard( self::getHtmlTemplatePaths() ); |
|
| 46 | + $view = new \Aimeos\MW\View\Standard(self::getHtmlTemplatePaths()); |
|
| 47 | 47 | |
| 48 | - $trans = new \Aimeos\MW\Translation\None( 'en' ); |
|
| 49 | - $helper = new \Aimeos\MW\View\Helper\Translate\Standard( $view, $trans ); |
|
| 50 | - $view->addHelper( 'translate', $helper ); |
|
| 48 | + $trans = new \Aimeos\MW\Translation\None('en'); |
|
| 49 | + $helper = new \Aimeos\MW\View\Helper\Translate\Standard($view, $trans); |
|
| 50 | + $view->addHelper('translate', $helper); |
|
| 51 | 51 | |
| 52 | - $helper = new \Aimeos\MW\View\Helper\Url\Standard( $view, 'baseurl' ); |
|
| 53 | - $view->addHelper( 'url', $helper ); |
|
| 52 | + $helper = new \Aimeos\MW\View\Helper\Url\Standard($view, 'baseurl'); |
|
| 53 | + $view->addHelper('url', $helper); |
|
| 54 | 54 | |
| 55 | - $helper = new \Aimeos\MW\View\Helper\Number\Standard( $view, '.', '' ); |
|
| 56 | - $view->addHelper( 'number', $helper ); |
|
| 55 | + $helper = new \Aimeos\MW\View\Helper\Number\Standard($view, '.', ''); |
|
| 56 | + $view->addHelper('number', $helper); |
|
| 57 | 57 | |
| 58 | - $helper = new \Aimeos\MW\View\Helper\Date\Standard( $view, 'Y-m-d' ); |
|
| 59 | - $view->addHelper( 'date', $helper ); |
|
| 58 | + $helper = new \Aimeos\MW\View\Helper\Date\Standard($view, 'Y-m-d'); |
|
| 59 | + $view->addHelper('date', $helper); |
|
| 60 | 60 | |
| 61 | - $helper = new \Aimeos\MW\View\Helper\Config\Standard( $view, self::getContext()->getConfig() ); |
|
| 62 | - $view->addHelper( 'config', $helper ); |
|
| 61 | + $helper = new \Aimeos\MW\View\Helper\Config\Standard($view, self::getContext()->getConfig()); |
|
| 62 | + $view->addHelper('config', $helper); |
|
| 63 | 63 | |
| 64 | 64 | return $view; |
| 65 | 65 | } |
@@ -67,11 +67,11 @@ discard block |
||
| 67 | 67 | |
| 68 | 68 | public static function getHtmlTemplatePaths() |
| 69 | 69 | { |
| 70 | - return self::getAimeos()->getCustomPaths( 'client/html/templates' ); |
|
| 70 | + return self::getAimeos()->getCustomPaths('client/html/templates'); |
|
| 71 | 71 | } |
| 72 | 72 | |
| 73 | 73 | |
| 74 | - private static function createContext( $site ) |
|
| 74 | + private static function createContext($site) |
|
| 75 | 75 | { |
| 76 | 76 | $ctx = new \Aimeos\MShop\Context\Item\Standard(); |
| 77 | 77 | $aimeos = self::getAimeos(); |
@@ -80,36 +80,36 @@ discard block |
||
| 80 | 80 | $paths = $aimeos->getConfigPaths(); |
| 81 | 81 | $paths[] = __DIR__ . DIRECTORY_SEPARATOR . 'config'; |
| 82 | 82 | |
| 83 | - $conf = new \Aimeos\MW\Config\PHPArray( array(), $paths ); |
|
| 84 | - $ctx->setConfig( $conf ); |
|
| 83 | + $conf = new \Aimeos\MW\Config\PHPArray(array(), $paths); |
|
| 84 | + $ctx->setConfig($conf); |
|
| 85 | 85 | |
| 86 | 86 | |
| 87 | - $dbm = new \Aimeos\MW\DB\Manager\DBAL( $conf ); |
|
| 88 | - $ctx->setDatabaseManager( $dbm ); |
|
| 87 | + $dbm = new \Aimeos\MW\DB\Manager\DBAL($conf); |
|
| 88 | + $ctx->setDatabaseManager($dbm); |
|
| 89 | 89 | |
| 90 | 90 | |
| 91 | - $logger = new \Aimeos\MW\Logger\File( $site . '.log', \Aimeos\MW\Logger\Base::DEBUG ); |
|
| 92 | - $ctx->setLogger( $logger ); |
|
| 91 | + $logger = new \Aimeos\MW\Logger\File($site . '.log', \Aimeos\MW\Logger\Base::DEBUG); |
|
| 92 | + $ctx->setLogger($logger); |
|
| 93 | 93 | |
| 94 | 94 | |
| 95 | 95 | $cache = new \Aimeos\MW\Cache\None(); |
| 96 | - $ctx->setCache( $cache ); |
|
| 96 | + $ctx->setCache($cache); |
|
| 97 | 97 | |
| 98 | 98 | |
| 99 | - $i18n = new \Aimeos\MW\Translation\None( 'en' ); |
|
| 100 | - $ctx->setI18n( array( 'en' => $i18n ) ); |
|
| 99 | + $i18n = new \Aimeos\MW\Translation\None('en'); |
|
| 100 | + $ctx->setI18n(array('en' => $i18n)); |
|
| 101 | 101 | |
| 102 | 102 | |
| 103 | 103 | $session = new \Aimeos\MW\Session\None(); |
| 104 | - $ctx->setSession( $session ); |
|
| 104 | + $ctx->setSession($session); |
|
| 105 | 105 | |
| 106 | 106 | |
| 107 | - $localeManager = \Aimeos\MShop\Locale\Manager\Factory::create( $ctx ); |
|
| 108 | - $locale = $localeManager->bootstrap( $site, '', '', false ); |
|
| 109 | - $ctx->setLocale( $locale ); |
|
| 107 | + $localeManager = \Aimeos\MShop\Locale\Manager\Factory::create($ctx); |
|
| 108 | + $locale = $localeManager->bootstrap($site, '', '', false); |
|
| 109 | + $ctx->setLocale($locale); |
|
| 110 | 110 | |
| 111 | 111 | |
| 112 | - $ctx->setEditor( 'ai-cms-grapesjs:client/html' ); |
|
| 112 | + $ctx->setEditor('ai-cms-grapesjs:client/html'); |
|
| 113 | 113 | |
| 114 | 114 | return $ctx; |
| 115 | 115 | } |
@@ -4,17 +4,17 @@ |
||
| 4 | 4 | * Set error reporting to maximum |
| 5 | 5 | */ |
| 6 | 6 | error_reporting( -1 ); |
| 7 | -ini_set( 'display_errors', true ); |
|
| 7 | +ini_set('display_errors', true); |
|
| 8 | 8 | |
| 9 | -date_default_timezone_set( 'UTC' ); |
|
| 9 | +date_default_timezone_set('UTC'); |
|
| 10 | 10 | |
| 11 | 11 | /* |
| 12 | 12 | * Set locale settings to reasonable defaults |
| 13 | 13 | */ |
| 14 | -setlocale( LC_ALL, 'en_US.UTF-8' ); |
|
| 15 | -setlocale( LC_CTYPE, 'en_US.UTF-8' ); |
|
| 16 | -setlocale( LC_NUMERIC, 'POSIX' ); |
|
| 17 | -setlocale( LC_TIME, 'POSIX' ); |
|
| 14 | +setlocale(LC_ALL, 'en_US.UTF-8'); |
|
| 15 | +setlocale(LC_CTYPE, 'en_US.UTF-8'); |
|
| 16 | +setlocale(LC_NUMERIC, 'POSIX'); |
|
| 17 | +setlocale(LC_TIME, 'POSIX'); |
|
| 18 | 18 | |
| 19 | 19 | |
| 20 | 20 | require_once 'TestHelperHtml.php'; |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | <div id="content" class="item-content tab-pane fade" role="tablist" aria-labelledby="content"> |
| 26 | 26 | |
| 27 | 27 | <div id="item-content-group" |
| 28 | - data-items="<?= $enc->attr( $this->get( 'contentData', [] ) ); ?>" |
|
| 28 | + data-items="<?= $enc->attr($this->get('contentData', [])); ?>" |
|
| 29 | 29 | data-siteid="<?= $this->site()->siteid() ?>" |
| 30 | 30 | data-domain="cms" > |
| 31 | 31 | |
@@ -37,24 +37,24 @@ discard block |
||
| 37 | 37 | v-bind:data-target="'#item-text-group-data-' + idx" data-bs-toggle="collapse" role="tab" class="card-header header" |
| 38 | 38 | v-bind:aria-controls="'item-text-group-data-' + idx" aria-expanded="false" v-on:click="toggle('_show', idx)"> |
| 39 | 39 | <div class="card-tools-left"> |
| 40 | - <div class="btn btn-card-header act-show fa" tabindex="<?= $this->get( 'tabindex' ); ?>" |
|
| 41 | - title="<?= $enc->attr( $this->translate( 'admin', 'Show/hide this entry' ) ); ?>"> |
|
| 40 | + <div class="btn btn-card-header act-show fa" tabindex="<?= $this->get('tabindex'); ?>" |
|
| 41 | + title="<?= $enc->attr($this->translate('admin', 'Show/hide this entry')); ?>"> |
|
| 42 | 42 | </div> |
| 43 | 43 | </div> |
| 44 | 44 | <span class="item-label header-label" v-bind:class="{disabled: !active(idx)}">{{ label(idx) }}</span> |
| 45 | 45 | |
| 46 | 46 | <div class="card-tools-right"> |
| 47 | - <div class="btn btn-card-header act-copy fa" tabindex="<?= $this->get( 'tabindex' ); ?>" |
|
| 48 | - title="<?= $enc->attr( $this->translate( 'admin', 'Duplicate entry (Ctrl+D)' ) ); ?>" |
|
| 47 | + <div class="btn btn-card-header act-copy fa" tabindex="<?= $this->get('tabindex'); ?>" |
|
| 48 | + title="<?= $enc->attr($this->translate('admin', 'Duplicate entry (Ctrl+D)')); ?>" |
|
| 49 | 49 | v-on:click.stop="duplicate(idx)"> |
| 50 | 50 | </div> |
| 51 | 51 | <div v-if="item['cms.lists.siteid'] == siteid && !item['_nosort']" |
| 52 | - class="btn btn-card-header act-move fa" tabindex="<?= $this->get( 'tabindex' ); ?>" |
|
| 53 | - title="<?= $enc->attr( $this->translate( 'admin', 'Move this entry up/down' ) ); ?>"> |
|
| 52 | + class="btn btn-card-header act-move fa" tabindex="<?= $this->get('tabindex'); ?>" |
|
| 53 | + title="<?= $enc->attr($this->translate('admin', 'Move this entry up/down')); ?>"> |
|
| 54 | 54 | </div> |
| 55 | 55 | <div v-if="item['cms.lists.siteid'] == siteid" |
| 56 | - class="btn btn-card-header act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>" |
|
| 57 | - title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry' ) ); ?>" |
|
| 56 | + class="btn btn-card-header act-delete fa" tabindex="<?= $this->get('tabindex'); ?>" |
|
| 57 | + title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>" |
|
| 58 | 58 | v-on:click.stop="remove(idx)"> |
| 59 | 59 | </div> |
| 60 | 60 | </div> |
@@ -64,29 +64,29 @@ discard block |
||
| 64 | 64 | v-bind:aria-labelledby="'item-text-group-item-' + idx" role="tabpanel" class="card-block collapse row"> |
| 65 | 65 | |
| 66 | 66 | <input type="hidden" v-model="item['text.id']" |
| 67 | - v-bind:name="'<?= $enc->attr( $this->formparam( array( 'content', '_idx_', 'text.id' ) ) ); ?>'.replace('_idx_', idx)" /> |
|
| 67 | + v-bind:name="'<?= $enc->attr($this->formparam(array('content', '_idx_', 'text.id'))); ?>'.replace('_idx_', idx)" /> |
|
| 68 | 68 | |
| 69 | 69 | <div class="col-xl-6"> |
| 70 | 70 | |
| 71 | 71 | <div class="form-group row mandatory"> |
| 72 | - <label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Status' ) ); ?></label> |
|
| 72 | + <label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Status')); ?></label> |
|
| 73 | 73 | <div class="col-sm-8"> |
| 74 | - <select class="form-control form-select item-status" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>" |
|
| 75 | - v-bind:name="'<?= $enc->attr( $this->formparam( array( 'content', '_idx_', 'text.status' ) ) ); ?>'.replace('_idx_', idx)" |
|
| 74 | + <select class="form-control form-select item-status" required="required" tabindex="<?= $this->get('tabindex'); ?>" |
|
| 75 | + v-bind:name="'<?= $enc->attr($this->formparam(array('content', '_idx_', 'text.status'))); ?>'.replace('_idx_', idx)" |
|
| 76 | 76 | v-bind:readonly="item['text.siteid'] != siteid" |
| 77 | 77 | v-model="item['text.status']" > |
| 78 | - <option value=""><?= $enc->html( $this->translate( 'admin', 'Please select' ) ); ?></option> |
|
| 78 | + <option value=""><?= $enc->html($this->translate('admin', 'Please select')); ?></option> |
|
| 79 | 79 | <option value="1" v-bind:selected="item['text.status'] == 1" > |
| 80 | - <?= $enc->html( $this->translate( 'mshop/code', 'status:1' ) ); ?> |
|
| 80 | + <?= $enc->html($this->translate('mshop/code', 'status:1')); ?> |
|
| 81 | 81 | </option> |
| 82 | 82 | <option value="0" v-bind:selected="item['text.status'] == 0" > |
| 83 | - <?= $enc->html( $this->translate( 'mshop/code', 'status:0' ) ); ?> |
|
| 83 | + <?= $enc->html($this->translate('mshop/code', 'status:0')); ?> |
|
| 84 | 84 | </option> |
| 85 | 85 | <option value="-1" v-bind:selected="item['text.status'] == -1" > |
| 86 | - <?= $enc->html( $this->translate( 'mshop/code', 'status:-1' ) ); ?> |
|
| 86 | + <?= $enc->html($this->translate('mshop/code', 'status:-1')); ?> |
|
| 87 | 87 | </option> |
| 88 | 88 | <option value="-2" v-bind:selected="item['text.status'] == -2" > |
| 89 | - <?= $enc->html( $this->translate( 'mshop/code', 'status:-2' ) ); ?> |
|
| 89 | + <?= $enc->html($this->translate('mshop/code', 'status:-2')); ?> |
|
| 90 | 90 | </option> |
| 91 | 91 | </select> |
| 92 | 92 | </div> |
@@ -95,35 +95,35 @@ discard block |
||
| 95 | 95 | </div> |
| 96 | 96 | <div class="col-xl-6"> |
| 97 | 97 | |
| 98 | - <?php if( !( $languages = $this->get( 'pageLangItems', map() ) )->count() !== 1 ) : ?> |
|
| 98 | + <?php if (!($languages = $this->get('pageLangItems', map()))->count() !== 1) : ?> |
|
| 99 | 99 | <div class="form-group row mandatory"> |
| 100 | - <label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Language' ) ); ?></label> |
|
| 100 | + <label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Language')); ?></label> |
|
| 101 | 101 | <div class="col-sm-8"> |
| 102 | - <select is="select-component" required class="form-control form-select item-languageid" tabindex="<?= $enc->attr( $this->get( 'tabindex' ) ); ?>" |
|
| 103 | - v-bind:items="JSON.parse('<?= $enc->attr( $languages->col( 'locale.language.label', 'locale.language.id' )->toArray() ) ?>')" |
|
| 104 | - v-bind:name="'<?= $enc->attr( $this->formparam( ['content', '_idx_', 'text.languageid'] ) ); ?>'.replace('_idx_', idx)" |
|
| 105 | - v-bind:text="'<?= $enc->html( $this->translate( 'admin', 'Please select' ) ); ?>'" |
|
| 106 | - v-bind:all="'<?= $enc->html( $this->translate( 'admin', 'All' ) ); ?>'" |
|
| 102 | + <select is="select-component" required class="form-control form-select item-languageid" tabindex="<?= $enc->attr($this->get('tabindex')); ?>" |
|
| 103 | + v-bind:items="JSON.parse('<?= $enc->attr($languages->col('locale.language.label', 'locale.language.id')->toArray()) ?>')" |
|
| 104 | + v-bind:name="'<?= $enc->attr($this->formparam(['content', '_idx_', 'text.languageid'])); ?>'.replace('_idx_', idx)" |
|
| 105 | + v-bind:text="'<?= $enc->html($this->translate('admin', 'Please select')); ?>'" |
|
| 106 | + v-bind:all="'<?= $enc->html($this->translate('admin', 'All')); ?>'" |
|
| 107 | 107 | v-bind:readonly="item['text.siteid'] != siteid" |
| 108 | 108 | v-model="item['text.languageid']" > |
| 109 | 109 | </select> |
| 110 | 110 | </div> |
| 111 | 111 | <div class="col-sm-12 form-text text-muted help-text"> |
| 112 | - <?= $enc->html( $this->translate( 'admin', 'Language of the entered text' ) ); ?> |
|
| 112 | + <?= $enc->html($this->translate('admin', 'Language of the entered text')); ?> |
|
| 113 | 113 | </div> |
| 114 | 114 | </div> |
| 115 | 115 | <?php else : ?> |
| 116 | 116 | <input class="text-langid" type="hidden" |
| 117 | - v-bind:name="'<?= $enc->attr( $this->formparam( array( 'content', '_idx_', 'text.languageid' ) ) ); ?>'.replace('_idx_', idx)" |
|
| 118 | - value="<?= $enc->attr( $languages->getCode()->first() ) ?>" /> |
|
| 117 | + v-bind:name="'<?= $enc->attr($this->formparam(array('content', '_idx_', 'text.languageid'))); ?>'.replace('_idx_', idx)" |
|
| 118 | + value="<?= $enc->attr($languages->getCode()->first()) ?>" /> |
|
| 119 | 119 | <?php endif; ?> |
| 120 | 120 | |
| 121 | 121 | </div> |
| 122 | 122 | |
| 123 | 123 | <div class="col-xl-12"> |
| 124 | 124 | <grapesjs v-bind:setup="Aimeos.CMSContent.GrapesJS" |
| 125 | - v-bind:tabindex="<?= $this->get( 'tabindex' ); ?>" |
|
| 126 | - v-bind:name="'<?= $enc->attr( $this->formparam( array( 'content', '_idx_', 'text.content' ) ) ); ?>'.replace('_idx_', idx)" |
|
| 125 | + v-bind:tabindex="<?= $this->get('tabindex'); ?>" |
|
| 126 | + v-bind:name="'<?= $enc->attr($this->formparam(array('content', '_idx_', 'text.content'))); ?>'.replace('_idx_', idx)" |
|
| 127 | 127 | v-bind:readonly="item['text.siteid'] != siteid" |
| 128 | 128 | v-bind:value="item['text.content']" |
| 129 | 129 | v-model="item['text.content']" |
@@ -132,85 +132,85 @@ discard block |
||
| 132 | 132 | |
| 133 | 133 | <div v-on:click="toggle('_ext', idx)" class="col-xl-12 advanced" v-bind:class="{'collapsed': !item['_ext']}"> |
| 134 | 134 | <div class="card-tools-left"> |
| 135 | - <div class="btn act-show fa" tabindex="<?= $this->get( 'tabindex' ); ?>" |
|
| 136 | - title="<?= $enc->attr( $this->translate( 'admin', 'Show/hide advanced data' ) ); ?>"> |
|
| 135 | + <div class="btn act-show fa" tabindex="<?= $this->get('tabindex'); ?>" |
|
| 136 | + title="<?= $enc->attr($this->translate('admin', 'Show/hide advanced data')); ?>"> |
|
| 137 | 137 | </div> |
| 138 | 138 | </div> |
| 139 | - <span class="header-label"><?= $enc->html( $this->translate( 'admin', 'Advanced' ) ); ?></span> |
|
| 139 | + <span class="header-label"><?= $enc->html($this->translate('admin', 'Advanced')); ?></span> |
|
| 140 | 140 | </div> |
| 141 | 141 | |
| 142 | 142 | <div v-show="item['_ext']" class="col-xl-6 secondary"> |
| 143 | 143 | |
| 144 | - <?php if( !( $listTypes = $this->get( 'textListTypes', map() ) )->count() !== 1 ) : ?> |
|
| 144 | + <?php if (!($listTypes = $this->get('textListTypes', map()))->count() !== 1) : ?> |
|
| 145 | 145 | <div class="form-group row mandatory"> |
| 146 | - <label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'List type' ) ); ?></label> |
|
| 146 | + <label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'List type')); ?></label> |
|
| 147 | 147 | <div class="col-sm-8"> |
| 148 | - <select is="select-component" required class="form-control form-select listitem-type" tabindex="<?= $enc->attr( $this->get( 'tabindex' ) ); ?>" |
|
| 149 | - v-bind:items="JSON.parse('<?= $enc->attr( $listTypes->col( 'cms.lists.type.label', 'cms.lists.type.code' )->toArray() ) ?>')" |
|
| 150 | - v-bind:name="'<?= $enc->attr( $this->formparam( ['content', '_idx_', 'cms.lists.type'] ) ); ?>'.replace('_idx_', idx)" |
|
| 151 | - v-bind:text="'<?= $enc->html( $this->translate( 'admin', 'Please select' ) ); ?>'" |
|
| 148 | + <select is="select-component" required class="form-control form-select listitem-type" tabindex="<?= $enc->attr($this->get('tabindex')); ?>" |
|
| 149 | + v-bind:items="JSON.parse('<?= $enc->attr($listTypes->col('cms.lists.type.label', 'cms.lists.type.code')->toArray()) ?>')" |
|
| 150 | + v-bind:name="'<?= $enc->attr($this->formparam(['content', '_idx_', 'cms.lists.type'])); ?>'.replace('_idx_', idx)" |
|
| 151 | + v-bind:text="'<?= $enc->html($this->translate('admin', 'Please select')); ?>'" |
|
| 152 | 152 | v-bind:readonly="item['cms.lists.siteid'] != siteid" |
| 153 | 153 | v-model="item['cms.lists.type']" > |
| 154 | 154 | </select> |
| 155 | 155 | </div> |
| 156 | 156 | <div class="col-sm-12 form-text text-muted help-text"> |
| 157 | - <?= $enc->html( $this->translate( 'admin', 'Second level type for grouping items' ) ); ?> |
|
| 157 | + <?= $enc->html($this->translate('admin', 'Second level type for grouping items')); ?> |
|
| 158 | 158 | </div> |
| 159 | 159 | </div> |
| 160 | 160 | <?php else : ?> |
| 161 | 161 | <input class="listitem-type" type="hidden" |
| 162 | - v-bind:name="'<?= $enc->attr( $this->formparam( array( 'content', '_idx_', 'cms.lists.type' ) ) ); ?>'.replace('_idx_', idx)" |
|
| 163 | - value="<?= $enc->attr( $listTypes->getCode()->first() ) ?>" /> |
|
| 162 | + v-bind:name="'<?= $enc->attr($this->formparam(array('content', '_idx_', 'cms.lists.type'))); ?>'.replace('_idx_', idx)" |
|
| 163 | + value="<?= $enc->attr($listTypes->getCode()->first()) ?>" /> |
|
| 164 | 164 | <?php endif; ?> |
| 165 | 165 | |
| 166 | 166 | <div class="form-group row optional"> |
| 167 | - <label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Start date' ) ); ?></label> |
|
| 167 | + <label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Start date')); ?></label> |
|
| 168 | 168 | <div class="col-sm-8"> |
| 169 | - <input is="flat-pickr" class="form-control listitem-datestart" type="datetime-local" tabindex="<?= $this->get( 'tabindex' ); ?>" |
|
| 170 | - v-bind:name="'<?= $enc->attr( $this->formparam( array( 'content', '_idx_', 'cms.lists.datestart' ) ) ); ?>'.replace('_idx_', idx)" |
|
| 171 | - placeholder="<?= $enc->attr( $this->translate( 'admin', 'YYYY-MM-DD hh:mm:ss (optional)' ) ); ?>" |
|
| 169 | + <input is="flat-pickr" class="form-control listitem-datestart" type="datetime-local" tabindex="<?= $this->get('tabindex'); ?>" |
|
| 170 | + v-bind:name="'<?= $enc->attr($this->formparam(array('content', '_idx_', 'cms.lists.datestart'))); ?>'.replace('_idx_', idx)" |
|
| 171 | + placeholder="<?= $enc->attr($this->translate('admin', 'YYYY-MM-DD hh:mm:ss (optional)')); ?>" |
|
| 172 | 172 | v-bind:disabled="item['cms.lists.siteid'] != siteid" |
| 173 | 173 | v-bind:config="Aimeos.flatpickr.datetime" |
| 174 | 174 | v-model="item['cms.lists.datestart']" /> |
| 175 | 175 | </div> |
| 176 | 176 | <div class="col-sm-12 form-text text-muted help-text"> |
| 177 | - <?= $enc->html( $this->translate( 'admin', 'The item is only shown on the web site after that date and time' ) ); ?> |
|
| 177 | + <?= $enc->html($this->translate('admin', 'The item is only shown on the web site after that date and time')); ?> |
|
| 178 | 178 | </div> |
| 179 | 179 | </div> |
| 180 | 180 | <div class="form-group row optional"> |
| 181 | - <label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'End date' ) ); ?></label> |
|
| 181 | + <label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'End date')); ?></label> |
|
| 182 | 182 | <div class="col-sm-8"> |
| 183 | - <input is="flat-pickr" class="form-control listitem-dateend" type="datetime-local" tabindex="<?= $this->get( 'tabindex' ); ?>" |
|
| 184 | - v-bind:name="'<?= $enc->attr( $this->formparam( array( 'content', '_idx_', 'cms.lists.dateend' ) ) ); ?>'.replace('_idx_', idx)" |
|
| 185 | - placeholder="<?= $enc->attr( $this->translate( 'admin', 'YYYY-MM-DD hh:mm:ss (optional)' ) ); ?>" |
|
| 183 | + <input is="flat-pickr" class="form-control listitem-dateend" type="datetime-local" tabindex="<?= $this->get('tabindex'); ?>" |
|
| 184 | + v-bind:name="'<?= $enc->attr($this->formparam(array('content', '_idx_', 'cms.lists.dateend'))); ?>'.replace('_idx_', idx)" |
|
| 185 | + placeholder="<?= $enc->attr($this->translate('admin', 'YYYY-MM-DD hh:mm:ss (optional)')); ?>" |
|
| 186 | 186 | v-bind:disabled="item['cms.lists.siteid'] != siteid" |
| 187 | 187 | v-bind:config="Aimeos.flatpickr.datetime" |
| 188 | 188 | v-model="item['cms.lists.dateend']" /> |
| 189 | 189 | </div> |
| 190 | 190 | <div class="col-sm-12 form-text text-muted help-text"> |
| 191 | - <?= $enc->html( $this->translate( 'admin', 'The item is only shown on the web site until that date and time' ) ); ?> |
|
| 191 | + <?= $enc->html($this->translate('admin', 'The item is only shown on the web site until that date and time')); ?> |
|
| 192 | 192 | </div> |
| 193 | 193 | </div> |
| 194 | 194 | </div> |
| 195 | 195 | |
| 196 | 196 | <div v-show="item['_ext']" class="col-xl-6 secondary" v-bind:class="{readonly: item['cms.lists.siteid'] != siteid}"> |
| 197 | - <config-table v-bind:tabindex="<?= $this->get( 'tabindex' ); ?>" |
|
| 198 | - v-bind:keys="JSON.parse('<?= $enc->attr( $this->config( 'admin/jqadm/cms/item/content/config/suggest', [] ) ) ?>')" |
|
| 199 | - v-bind:name="'<?= $enc->attr( $this->formparam( ['content', '_idx_', 'config', '_pos_', '_key_'] ) ); ?>'" |
|
| 197 | + <config-table v-bind:tabindex="<?= $this->get('tabindex'); ?>" |
|
| 198 | + v-bind:keys="JSON.parse('<?= $enc->attr($this->config('admin/jqadm/cms/item/content/config/suggest', [])) ?>')" |
|
| 199 | + v-bind:name="'<?= $enc->attr($this->formparam(['content', '_idx_', 'config', '_pos_', '_key_'])); ?>'" |
|
| 200 | 200 | v-bind:index="idx" v-bind:readonly="item['cms.lists.siteid'] != siteid" |
| 201 | 201 | v-bind:items="item['config']" v-on:update:config="item['config'] = $event"> |
| 202 | 202 | </config-table> |
| 203 | 203 | </div> |
| 204 | 204 | |
| 205 | - <?= $this->get( 'contentBody' ); ?> |
|
| 205 | + <?= $this->get('contentBody'); ?> |
|
| 206 | 206 | |
| 207 | 207 | </div> |
| 208 | 208 | </div> |
| 209 | 209 | </div> |
| 210 | 210 | |
| 211 | 211 | <div slot="footer" class="card-tools-more"> |
| 212 | - <div class="btn btn-primary btn-card-more act-add fa" tabindex="<?= $this->get( 'tabindex' ); ?>" |
|
| 213 | - title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)' ) ); ?>" |
|
| 212 | + <div class="btn btn-primary btn-card-more act-add fa" tabindex="<?= $this->get('tabindex'); ?>" |
|
| 213 | + title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>" |
|
| 214 | 214 | v-on:click="add()" > |
| 215 | 215 | </div> |
| 216 | 216 | </div> |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | * @param string|null $name Name of the controller implementaton (default: "Standard") |
| 29 | 29 | * @return \Aimeos\Controller\Frontend\Cms\Iface Controller object |
| 30 | 30 | */ |
| 31 | - public static function create( \Aimeos\MShop\Context\Item\Iface $context, string $name = null ) : \Aimeos\Controller\Frontend\Iface |
|
| 31 | + public static function create(\Aimeos\MShop\Context\Item\Iface $context, string $name = null) : \Aimeos\Controller\Frontend\Iface |
|
| 32 | 32 | { |
| 33 | 33 | /** controller/frontend/cms/name |
| 34 | 34 | * Class name of the used cms frontend controller implementation |
@@ -63,18 +63,18 @@ discard block |
||
| 63 | 63 | * @since 2021.04 |
| 64 | 64 | * @category Developer |
| 65 | 65 | */ |
| 66 | - if( $name === null ) { |
|
| 67 | - $name = $context->getConfig()->get( 'controller/frontend/cms/name', 'Standard' ); |
|
| 66 | + if ($name === null) { |
|
| 67 | + $name = $context->getConfig()->get('controller/frontend/cms/name', 'Standard'); |
|
| 68 | 68 | } |
| 69 | 69 | |
| 70 | 70 | $iface = '\\Aimeos\\Controller\\Frontend\\Cms\\Iface'; |
| 71 | 71 | $classname = '\\Aimeos\\Controller\\Frontend\\Cms\\' . $name; |
| 72 | 72 | |
| 73 | - if( ctype_alnum( $name ) === false ) { |
|
| 74 | - throw new \Aimeos\Controller\Frontend\Exception( sprintf( 'Invalid characters in class name "%1$s"', $classname ) ); |
|
| 73 | + if (ctype_alnum($name) === false) { |
|
| 74 | + throw new \Aimeos\Controller\Frontend\Exception(sprintf('Invalid characters in class name "%1$s"', $classname)); |
|
| 75 | 75 | } |
| 76 | 76 | |
| 77 | - $manager = self::createController( $context, $classname, $iface ); |
|
| 77 | + $manager = self::createController($context, $classname, $iface); |
|
| 78 | 78 | |
| 79 | 79 | /** controller/frontend/cms/decorators/excludes |
| 80 | 80 | * Excludes decorators added by the "common" option from the cms frontend controllers |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | * @see controller/frontend/cms/decorators/excludes |
| 151 | 151 | * @see controller/frontend/cms/decorators/global |
| 152 | 152 | */ |
| 153 | - return self::addControllerDecorators( $context, $manager, 'cms' ); |
|
| 153 | + return self::addControllerDecorators($context, $manager, 'cms'); |
|
| 154 | 154 | } |
| 155 | 155 | |
| 156 | 156 | } |
@@ -30,12 +30,12 @@ discard block |
||
| 30 | 30 | * @param \Aimeos\Controller\Frontend\Iface $controller Controller object |
| 31 | 31 | * @param \Aimeos\MShop\Context\Item\Iface $context Context object with required objects |
| 32 | 32 | */ |
| 33 | - public function __construct( \Aimeos\Controller\Frontend\Iface $controller, \Aimeos\MShop\Context\Item\Iface $context ) |
|
| 33 | + public function __construct(\Aimeos\Controller\Frontend\Iface $controller, \Aimeos\MShop\Context\Item\Iface $context) |
|
| 34 | 34 | { |
| 35 | - parent::__construct( $context ); |
|
| 35 | + parent::__construct($context); |
|
| 36 | 36 | |
| 37 | 37 | $iface = \Aimeos\Controller\Frontend\Cms\Iface::class; |
| 38 | - $this->controller = \Aimeos\MW\Common\Base::checkClass( $iface, $controller ); |
|
| 38 | + $this->controller = \Aimeos\MW\Common\Base::checkClass($iface, $controller); |
|
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | |
@@ -47,9 +47,9 @@ discard block |
||
| 47 | 47 | * @return mixed Returns the value of the called method |
| 48 | 48 | * @throws \Aimeos\Controller\Frontend\Exception If method call failed |
| 49 | 49 | */ |
| 50 | - public function __call( string $name, array $param ) |
|
| 50 | + public function __call(string $name, array $param) |
|
| 51 | 51 | { |
| 52 | - return @call_user_func_array( array( $this->controller, $name ), $param ); |
|
| 52 | + return @call_user_func_array(array($this->controller, $name), $param); |
|
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | |
@@ -71,9 +71,9 @@ discard block |
||
| 71 | 71 | * @return \Aimeos\Controller\Frontend\Cms\Iface Cms controller for fluent interface |
| 72 | 72 | * @since 2019.04 |
| 73 | 73 | */ |
| 74 | - public function compare( string $operator, string $key, $value ) : \Aimeos\Controller\Frontend\Cms\Iface |
|
| 74 | + public function compare(string $operator, string $key, $value) : \Aimeos\Controller\Frontend\Cms\Iface |
|
| 75 | 75 | { |
| 76 | - $this->controller->compare( $operator, $key, $value ); |
|
| 76 | + $this->controller->compare($operator, $key, $value); |
|
| 77 | 77 | return $this; |
| 78 | 78 | } |
| 79 | 79 | |
@@ -85,9 +85,9 @@ discard block |
||
| 85 | 85 | * @return \Aimeos\MShop\Cms\Item\Iface Cms item including the referenced domains items |
| 86 | 86 | * @since 2019.04 |
| 87 | 87 | */ |
| 88 | - public function find( string $code ) : \Aimeos\MShop\Cms\Item\Iface |
|
| 88 | + public function find(string $code) : \Aimeos\MShop\Cms\Item\Iface |
|
| 89 | 89 | { |
| 90 | - return $this->controller->find( $code ); |
|
| 90 | + return $this->controller->find($code); |
|
| 91 | 91 | } |
| 92 | 92 | |
| 93 | 93 | |
@@ -98,9 +98,9 @@ discard block |
||
| 98 | 98 | * @param array $params List of parameters for the search function with numeric keys starting at 0 |
| 99 | 99 | * @return string Search function string that can be used in compare() |
| 100 | 100 | */ |
| 101 | - public function function( string $name, array $params ) : string |
|
| 101 | + public function function(string $name, array $params) : string |
|
| 102 | 102 | { |
| 103 | - return $this->controller->function( $name, $params ); |
|
| 103 | + return $this->controller->function($name, $params); |
|
| 104 | 104 | } |
| 105 | 105 | |
| 106 | 106 | |
@@ -111,9 +111,9 @@ discard block |
||
| 111 | 111 | * @return \Aimeos\MShop\Cms\Item\Iface Cms item including the referenced domains items |
| 112 | 112 | * @since 2019.04 |
| 113 | 113 | */ |
| 114 | - public function get( string $id ) : \Aimeos\MShop\Cms\Item\Iface |
|
| 114 | + public function get(string $id) : \Aimeos\MShop\Cms\Item\Iface |
|
| 115 | 115 | { |
| 116 | - return $this->controller->get( $id ); |
|
| 116 | + return $this->controller->get($id); |
|
| 117 | 117 | } |
| 118 | 118 | |
| 119 | 119 | |
@@ -126,9 +126,9 @@ discard block |
||
| 126 | 126 | * @return \Aimeos\Controller\Frontend\Cms\Iface Cms controller for fluent interface |
| 127 | 127 | * @since 2019.10 |
| 128 | 128 | */ |
| 129 | - public function has( string $domain, string $type = null, string $refId = null ) : \Aimeos\Controller\Frontend\Cms\Iface |
|
| 129 | + public function has(string $domain, string $type = null, string $refId = null) : \Aimeos\Controller\Frontend\Cms\Iface |
|
| 130 | 130 | { |
| 131 | - $this->controller->has( $domain, $type, $refId ); |
|
| 131 | + $this->controller->has($domain, $type, $refId); |
|
| 132 | 132 | return $this; |
| 133 | 133 | } |
| 134 | 134 | |
@@ -140,9 +140,9 @@ discard block |
||
| 140 | 140 | * @return \Aimeos\Controller\Frontend\Cms\Iface Cms controller for fluent interface |
| 141 | 141 | * @since 2019.04 |
| 142 | 142 | */ |
| 143 | - public function parse( array $conditions ) : \Aimeos\Controller\Frontend\Cms\Iface |
|
| 143 | + public function parse(array $conditions) : \Aimeos\Controller\Frontend\Cms\Iface |
|
| 144 | 144 | { |
| 145 | - $this->controller->parse( $conditions ); |
|
| 145 | + $this->controller->parse($conditions); |
|
| 146 | 146 | return $this; |
| 147 | 147 | } |
| 148 | 148 | |
@@ -154,9 +154,9 @@ discard block |
||
| 154 | 154 | * @return \Aimeos\Map Ordered list of items implementing \Aimeos\MShop\Cms\Item\Iface |
| 155 | 155 | * @since 2019.04 |
| 156 | 156 | */ |
| 157 | - public function search( int &$total = null ) : \Aimeos\Map |
|
| 157 | + public function search(int &$total = null) : \Aimeos\Map |
|
| 158 | 158 | { |
| 159 | - return $this->controller->search( $total ); |
|
| 159 | + return $this->controller->search($total); |
|
| 160 | 160 | } |
| 161 | 161 | |
| 162 | 162 | |
@@ -168,9 +168,9 @@ discard block |
||
| 168 | 168 | * @return \Aimeos\Controller\Frontend\Cms\Iface Cms controller for fluent interface |
| 169 | 169 | * @since 2019.04 |
| 170 | 170 | */ |
| 171 | - public function slice( int $start, int $limit ) : \Aimeos\Controller\Frontend\Cms\Iface |
|
| 171 | + public function slice(int $start, int $limit) : \Aimeos\Controller\Frontend\Cms\Iface |
|
| 172 | 172 | { |
| 173 | - $this->controller->slice( $start, $limit ); |
|
| 173 | + $this->controller->slice($start, $limit); |
|
| 174 | 174 | return $this; |
| 175 | 175 | } |
| 176 | 176 | |
@@ -182,9 +182,9 @@ discard block |
||
| 182 | 182 | * @return \Aimeos\Controller\Frontend\Cms\Iface Cms controller for fluent interface |
| 183 | 183 | * @since 2019.04 |
| 184 | 184 | */ |
| 185 | - public function sort( string $key = null ) : \Aimeos\Controller\Frontend\Cms\Iface |
|
| 185 | + public function sort(string $key = null) : \Aimeos\Controller\Frontend\Cms\Iface |
|
| 186 | 186 | { |
| 187 | - $this->controller->sort( $key ); |
|
| 187 | + $this->controller->sort($key); |
|
| 188 | 188 | return $this; |
| 189 | 189 | } |
| 190 | 190 | |
@@ -196,9 +196,9 @@ discard block |
||
| 196 | 196 | * @return \Aimeos\Controller\Frontend\Cms\Iface Cms controller for fluent interface |
| 197 | 197 | * @since 2019.04 |
| 198 | 198 | */ |
| 199 | - public function uses( array $domains ) : \Aimeos\Controller\Frontend\Cms\Iface |
|
| 199 | + public function uses(array $domains) : \Aimeos\Controller\Frontend\Cms\Iface |
|
| 200 | 200 | { |
| 201 | - $this->controller->uses( $domains ); |
|
| 201 | + $this->controller->uses($domains); |
|
| 202 | 202 | return $this; |
| 203 | 203 | } |
| 204 | 204 | |
@@ -209,11 +209,11 @@ discard block |
||
| 209 | 209 | * @param \Aimeos\Controller\Frontend\Iface $object Reference to the outmost controller or decorator |
| 210 | 210 | * @return \Aimeos\Controller\Frontend\Iface Controller object for chaining method calls |
| 211 | 211 | */ |
| 212 | - public function setObject( \Aimeos\Controller\Frontend\Iface $object ) : \Aimeos\Controller\Frontend\Iface |
|
| 212 | + public function setObject(\Aimeos\Controller\Frontend\Iface $object) : \Aimeos\Controller\Frontend\Iface |
|
| 213 | 213 | { |
| 214 | - parent::setObject( $object ); |
|
| 214 | + parent::setObject($object); |
|
| 215 | 215 | |
| 216 | - $this->controller->setObject( $object ); |
|
| 216 | + $this->controller->setObject($object); |
|
| 217 | 217 | |
| 218 | 218 | return $this; |
| 219 | 219 | } |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | * @return \Aimeos\Controller\Frontend\Cms\Iface Cms controller for fluent interface |
| 29 | 29 | * @since 2021.04 |
| 30 | 30 | */ |
| 31 | - public function compare( string $operator, string $key, $value ) : Iface; |
|
| 31 | + public function compare(string $operator, string $key, $value) : Iface; |
|
| 32 | 32 | |
| 33 | 33 | /** |
| 34 | 34 | * Returns the cms for the given cms code |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | * @return \Aimeos\MShop\Cms\Item\Iface Cms item including the referenced domains items |
| 39 | 39 | * @since 2021.04 |
| 40 | 40 | */ |
| 41 | - public function find( string $code ) : \Aimeos\MShop\Cms\Item\Iface; |
|
| 41 | + public function find(string $code) : \Aimeos\MShop\Cms\Item\Iface; |
|
| 42 | 42 | |
| 43 | 43 | /** |
| 44 | 44 | * Creates a search function string for the given name and parameters |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | * @param array $params List of parameters for the search function with numeric keys starting at 0 |
| 48 | 48 | * @return string Search function string that can be used in compare() |
| 49 | 49 | */ |
| 50 | - public function function( string $name, array $params ) : string; |
|
| 50 | + public function function(string $name, array $params) : string; |
|
| 51 | 51 | |
| 52 | 52 | /** |
| 53 | 53 | * Returns the cms for the given cms ID |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | * @return \Aimeos\MShop\Cms\Item\Iface Cms item including the referenced domains items |
| 58 | 58 | * @since 2021.04 |
| 59 | 59 | */ |
| 60 | - public function get( string $id ) : \Aimeos\MShop\Cms\Item\Iface; |
|
| 60 | + public function get(string $id) : \Aimeos\MShop\Cms\Item\Iface; |
|
| 61 | 61 | |
| 62 | 62 | /** |
| 63 | 63 | * Adds a filter to return only items containing a reference to the given ID |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | * @return \Aimeos\Controller\Frontend\Product\Iface Product controller for fluent interface |
| 69 | 69 | * @since 2019.10 |
| 70 | 70 | */ |
| 71 | - public function has( string $domain, string $type = null, string $refId = null ) : Iface; |
|
| 71 | + public function has(string $domain, string $type = null, string $refId = null) : Iface; |
|
| 72 | 72 | |
| 73 | 73 | /** |
| 74 | 74 | * Parses the given array and adds the conditions to the list of conditions |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | * @return \Aimeos\Controller\Frontend\Cms\Iface Cms controller for fluent interface |
| 78 | 78 | * @since 2021.04 |
| 79 | 79 | */ |
| 80 | - public function parse( array $conditions ) : Iface; |
|
| 80 | + public function parse(array $conditions) : Iface; |
|
| 81 | 81 | |
| 82 | 82 | /** |
| 83 | 83 | * Returns the cmss filtered by the previously assigned conditions |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | * @return \Aimeos\Map Ordered list of items implementing \Aimeos\MShop\Cms\Item\Iface |
| 87 | 87 | * @since 2021.04 |
| 88 | 88 | */ |
| 89 | - public function search( int &$total = null ) : \Aimeos\Map; |
|
| 89 | + public function search(int &$total = null) : \Aimeos\Map; |
|
| 90 | 90 | |
| 91 | 91 | /** |
| 92 | 92 | * Sets the start value and the number of returned cms items for slicing the list of found cms items |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | * @return \Aimeos\Controller\Frontend\Cms\Iface Cms controller for fluent interface |
| 97 | 97 | * @since 2021.04 |
| 98 | 98 | */ |
| 99 | - public function slice( int $start, int $limit ) : Iface; |
|
| 99 | + public function slice(int $start, int $limit) : Iface; |
|
| 100 | 100 | |
| 101 | 101 | /** |
| 102 | 102 | * Sets the sorting of the result list |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | * @return \Aimeos\Controller\Frontend\Cms\Iface Cms controller for fluent interface |
| 106 | 106 | * @since 2021.04 |
| 107 | 107 | */ |
| 108 | - public function sort( string $key = null ) : Iface; |
|
| 108 | + public function sort(string $key = null) : Iface; |
|
| 109 | 109 | |
| 110 | 110 | /** |
| 111 | 111 | * Sets the referenced domains that will be fetched too when retrieving items |
@@ -114,5 +114,5 @@ discard block |
||
| 114 | 114 | * @return \Aimeos\Controller\Frontend\Cms\Iface Cms controller for fluent interface |
| 115 | 115 | * @since 2021.04 |
| 116 | 116 | */ |
| 117 | - public function uses( array $domains ) : Iface; |
|
| 117 | + public function uses(array $domains) : Iface; |
|
| 118 | 118 | } |