@@ -30,14 +30,14 @@ discard block |
||
| 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->msg( 'Adding cms test data', 0 ); |
|
| 35 | + $this->msg('Adding cms test data', 0); |
|
| 36 | 36 | |
| 37 | - $this->additional->setEditor( 'ai-cms-grapejs:lib/custom' ); |
|
| 38 | - $this->process( $this->getData() ); |
|
| 37 | + $this->additional->setEditor('ai-cms-grapejs:lib/custom'); |
|
| 38 | + $this->process($this->getData()); |
|
| 39 | 39 | |
| 40 | - $this->status( 'done' ); |
|
| 40 | + $this->status('done'); |
|
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | |
@@ -50,8 +50,8 @@ discard block |
||
| 50 | 50 | { |
| 51 | 51 | $path = __DIR__ . DIRECTORY_SEPARATOR . 'data' . DIRECTORY_SEPARATOR . 'cms.php'; |
| 52 | 52 | |
| 53 | - if( ( $testdata = include( $path ) ) == false ) { |
|
| 54 | - throw new \Aimeos\MShop\Exception( sprintf( 'No file "%1$s" found for cms domain', $path ) ); |
|
| 53 | + if (($testdata = include($path)) == false) { |
|
| 54 | + throw new \Aimeos\MShop\Exception(sprintf('No file "%1$s" found for cms domain', $path)); |
|
| 55 | 55 | } |
| 56 | 56 | |
| 57 | 57 | return $testdata; |
@@ -63,21 +63,21 @@ discard block |
||
| 63 | 63 | * |
| 64 | 64 | * @param array $testdata Multi-dimensional array of test data |
| 65 | 65 | */ |
| 66 | - protected function process( array $testdata ) |
|
| 66 | + protected function process(array $testdata) |
|
| 67 | 67 | { |
| 68 | - $manager = $this->getManager( 'cms' ); |
|
| 69 | - $listManager = $manager->getSubManager( 'lists' ); |
|
| 68 | + $manager = $this->getManager('cms'); |
|
| 69 | + $listManager = $manager->getSubManager('lists'); |
|
| 70 | 70 | |
| 71 | 71 | $manager->begin(); |
| 72 | 72 | |
| 73 | - $this->storeTypes( $testdata, ['cms/lists/type'] ); |
|
| 73 | + $this->storeTypes($testdata, ['cms/lists/type']); |
|
| 74 | 74 | |
| 75 | - foreach( $testdata['cms'] as $entry ) |
|
| 75 | + foreach ($testdata['cms'] as $entry) |
|
| 76 | 76 | { |
| 77 | - $item = $manager->create()->fromArray( $entry ); |
|
| 78 | - $item = $this->addListData( $listManager, $item, $entry ); |
|
| 77 | + $item = $manager->create()->fromArray($entry); |
|
| 78 | + $item = $this->addListData($listManager, $item, $entry); |
|
| 79 | 79 | |
| 80 | - $manager->save( $item ); |
|
| 80 | + $manager->save($item); |
|
| 81 | 81 | } |
| 82 | 82 | |
| 83 | 83 | $manager->commit(); |
@@ -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'; |
@@ -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 | } |