diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 457b03540f..34e8eacd24 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ on: jobs: validation: name: "Static analysis / PHP 8.0" - runs-on: ubuntu-18.04 + runs-on: ubuntu-20.04 strategy: fail-fast: false matrix: @@ -45,7 +45,7 @@ jobs: - name: Runs Elasticsearch uses: elastic/elastic-github-actions/elasticsearch@master with: - stack-version: 7.6.0 + stack-version: 7.10.0 port: 10005 - uses: actions/setup-node@v1 @@ -119,7 +119,7 @@ jobs: - name: Install NPM packages run: | - sudo npm install -g --unsafe-perm speccy@0.11.0 + sudo npm i --location=global --unsafe-perm speccy@0.11.0 - name: Speccy lint Glue specification run: speccy lint src/Generated/Glue/Specification/spryker_rest_api.schema.yml --rules=default @@ -158,7 +158,7 @@ jobs: php-80-mariadb-glue-alpine: name: "PHP 8.0 / MariaDB / Glue / Alpine" - runs-on: ubuntu-18.04 + runs-on: ubuntu-20.04 env: PROGRESS_TYPE: plain SPRYKER_PLATFORM_IMAGE: spryker/php:8.0 @@ -173,7 +173,7 @@ jobs: - name: Install docker-compose run: | - sudo curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose + sudo curl -L "https://github.com/docker/compose/releases/download/2.12.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose sudo chmod +x /usr/local/bin/docker-compose - name: Run docker @@ -187,7 +187,7 @@ jobs: php-80-postgresql-acceptance-alpine: name: "PHP 8.0 / PostgreSQL / Acceptance / Alpine" - runs-on: ubuntu-18.04 + runs-on: ubuntu-20.04 env: PROGRESS_TYPE: plain SPRYKER_PLATFORM_IMAGE: spryker/php:8.0 @@ -202,7 +202,7 @@ jobs: - name: Install docker-compose run: | - sudo curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose + sudo curl -L "https://github.com/docker/compose/releases/download/2.12.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose sudo chmod +x /usr/local/bin/docker-compose - name: Run docker @@ -216,7 +216,7 @@ jobs: php-80-postgresql-functional-alpine: name: "PHP 8.0 / PostgreSQL / Functional / Alpine" - runs-on: ubuntu-18.04 + runs-on: ubuntu-20.04 env: PROGRESS_TYPE: plain SPRYKER_PLATFORM_IMAGE: spryker/php:8.0 @@ -231,7 +231,7 @@ jobs: - name: Install docker-compose run: | - sudo curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose + sudo curl -L "https://github.com/docker/compose/releases/download/2.12.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose sudo chmod +x /usr/local/bin/docker-compose - name: Run docker @@ -244,7 +244,7 @@ jobs: php-80-mariadb-acceptance-alpine: name: "PHP 8.0 / MariaDB / Acceptance / Alpine" - runs-on: ubuntu-18.04 + runs-on: ubuntu-20.04 env: PROGRESS_TYPE: plain SPRYKER_PLATFORM_IMAGE: spryker/php:8.0 @@ -259,7 +259,7 @@ jobs: - name: Install docker-compose run: | - sudo curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose + sudo curl -L "https://github.com/docker/compose/releases/download/2.12.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose sudo chmod +x /usr/local/bin/docker-compose - name: Run docker @@ -273,7 +273,7 @@ jobs: php-80-mariadb-functional-alpine: name: "PHP 8.0 / MariaDB / Functional / Alpine" - runs-on: ubuntu-18.04 + runs-on: ubuntu-20.04 env: PROGRESS_TYPE: plain SPRYKER_PLATFORM_IMAGE: spryker/php:8.0 @@ -288,7 +288,7 @@ jobs: - name: Install docker-compose run: | - sudo curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose + sudo curl -L "https://github.com/docker/compose/releases/download/2.12.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose sudo chmod +x /usr/local/bin/docker-compose - name: Run docker @@ -301,7 +301,7 @@ jobs: php-80-postgres-functional-debian: name: "PHP 8.0 / PostgreSQL / Functional / Debian" - runs-on: ubuntu-18.04 + runs-on: ubuntu-20.04 env: PROGRESS_TYPE: plain SPRYKER_PLATFORM_IMAGE: spryker/php:8.0-debian @@ -316,7 +316,7 @@ jobs: - name: Install docker-compose run: | - sudo curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose + sudo curl -L "https://github.com/docker/compose/releases/download/2.12.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose sudo chmod +x /usr/local/bin/docker-compose - name: Run docker @@ -328,7 +328,7 @@ jobs: frontend-assets-via-docker-php-8-0: name: "Docker / Alpine / PHP 8.0 / Frontend & Assets" - runs-on: ubuntu-18.04 + runs-on: ubuntu-20.04 env: PROGRESS_TYPE: plain SPRYKER_PLATFORM_IMAGE: spryker/php:8.0 @@ -336,7 +336,7 @@ jobs: - uses: actions/checkout@v2 - run: echo eyAiZXhwZXJpbWVudGFsIiA6IHRydWUsICJmZWF0dXJlcyIgOiB7ICJidWlsZGtpdCI6IHRydWUgfSB9Cg==|base64 -d|sudo tee /etc/docker/daemon.json - run: sudo apt-get install --only-upgrade docker -y - - run: sudo curl -L "https://github.com/docker/compose/releases/download/1.24.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose + - run: sudo curl -L "https://github.com/docker/compose/releases/download/2.12.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose - run: sudo chmod +x /usr/local/bin/docker-compose - run: git clone https://github.com/spryker/docker-sdk.git --single-branch --branch master ./docker - run: docker/sdk boot deploy.yml diff --git a/.gitignore b/.gitignore index 1056d84519..c2afc15b03 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,8 @@ # IDEs -/.idea -/.project -/nbproject +.idea/ +.project/ +.vscode/ +nbproject/ /.buildpath /.settings *.sublime-* diff --git a/.stylelintignore b/.stylelintignore index 8a9682942e..34654a0bee 100644 --- a/.stylelintignore +++ b/.stylelintignore @@ -1,4 +1,5 @@ # Ignore paths **/node_modules/** +**/DateTimeConfiguratorPageExample/** **/dist/** -/public/*/assets/ +public/*/assets/** diff --git a/codeception.acceptance.yml b/codeception.acceptance.yml index 5535df07fc..41d144bccd 100644 --- a/codeception.acceptance.yml +++ b/codeception.acceptance.yml @@ -11,7 +11,6 @@ paths: support: tests/_support envs: tests/_envs -bootstrap: _bootstrap.php settings: suite_class: \PHPUnit_Framework_TestSuite colors: true diff --git a/codeception.api.yml b/codeception.api.yml index c05b206c57..afe88611b8 100644 --- a/codeception.api.yml +++ b/codeception.api.yml @@ -11,7 +11,6 @@ paths: support: tests/_support envs: tests/_envs -bootstrap: _bootstrap.php settings: suite_class: \PHPUnit_Framework_TestSuite colors: true diff --git a/codeception.ci.functional.yml b/codeception.ci.functional.yml index db81efcc11..7fbcb2c221 100644 --- a/codeception.ci.functional.yml +++ b/codeception.ci.functional.yml @@ -11,7 +11,6 @@ paths: support: tests/_support envs: tests/_envs -bootstrap: _bootstrap.php settings: suite_class: \PHPUnit_Framework_TestSuite colors: true diff --git a/codeception.functional.yml b/codeception.functional.yml index 8a073b5621..52c0d9338c 100644 --- a/codeception.functional.yml +++ b/codeception.functional.yml @@ -11,7 +11,6 @@ paths: support: tests/_support envs: tests/_envs -bootstrap: _bootstrap.php settings: suite_class: \PHPUnit_Framework_TestSuite colors: true diff --git a/codeception.yml b/codeception.yml index 543b2efecb..6f033679c0 100644 --- a/codeception.yml +++ b/codeception.yml @@ -11,7 +11,6 @@ paths: support: tests/_support envs: tests/_envs -bootstrap: _bootstrap.php settings: colors: true memory_limit: 1024M diff --git a/composer.json b/composer.json index 1ff74d658b..78ca50425a 100644 --- a/composer.json +++ b/composer.json @@ -289,7 +289,7 @@ "spryker-sdk/phpstan-spryker": "^0.4.0", "spryker-sdk/security-checker": "^0.1.0", "spryker/architecture-sniffer": "^0.5.5", - "spryker/code-sniffer": "^0.16.6", + "spryker/code-sniffer": "^0.17.18", "spryker/docker-chromedriver": "dev-master", "spryker/testify": "^3.47.0", "stecman/symfony-console-completion": "*", diff --git a/composer.lock b/composer.lock index 846d22dd36..5af8e3b62a 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "29eb7789fd14bcd44bc0199ccc64174d", + "content-hash": "04818dfc391f6979f8223c78dd407869", "packages": [ { "name": "async-aws/core", @@ -69420,27 +69420,26 @@ }, { "name": "spryker/code-sniffer", - "version": "0.16.6", + "version": "0.17.18", "source": { "type": "git", "url": "https://github.com/spryker/code-sniffer.git", - "reference": "a5b22a3145b75723325103f15d86ba16e8ef1cc8" + "reference": "5fb8b573abc4a906d0d364a4a03abd38e565ba29" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spryker/code-sniffer/zipball/a5b22a3145b75723325103f15d86ba16e8ef1cc8", - "reference": "a5b22a3145b75723325103f15d86ba16e8ef1cc8", + "url": "https://api.github.com/repos/spryker/code-sniffer/zipball/5fb8b573abc4a906d0d364a4a03abd38e565ba29", + "reference": "5fb8b573abc4a906d0d364a4a03abd38e565ba29", "shasum": "" }, "require": { - "php": ">=7.2", - "slevomat/coding-standard": "^7.0.1", - "squizlabs/php_codesniffer": "^3.6.0" + "php": ">=7.4", + "slevomat/coding-standard": "^7.2.0 || ^8.0.1", + "squizlabs/php_codesniffer": "^3.6.2" }, "require-dev": { - "dereuromark/composer-prefer-lowest": "^0.1.2", - "phpstan/phpstan": "^0.12.0", - "phpunit/phpunit": "^8.0 || ^9.0" + "phpstan/phpstan": "^1.0.0", + "phpunit/phpunit": "^9.5" }, "bin": [ "bin/tokenize" @@ -69468,13 +69467,14 @@ "codesniffer", "framework", "phpcs", - "standards" + "standards", + "static analysis" ], "support": { "issues": "https://github.com/spryker/code-sniffer/issues", "source": "https://github.com/spryker/code-sniffer" }, - "time": "2021-10-26T17:09:42+00:00" + "time": "2023-01-03T16:08:22+00:00" }, { "name": "spryker/development", diff --git a/config/Shared/common/config_oms-development.php b/config/Shared/common/config_oms-development.php index 2a1c6be002..2076cea096 100644 --- a/config/Shared/common/config_oms-development.php +++ b/config/Shared/common/config_oms-development.php @@ -36,5 +36,5 @@ [ DummyMarketplacePaymentConfig::PAYMENT_METHOD_DUMMY_MARKETPLACE_PAYMENT_INVOICE => 'MarketplacePayment01', NopaymentConfig::PAYMENT_PROVIDER_NAME => 'Nopayment01', - ] + ], ); diff --git a/config/Shared/config_default-ci.php b/config/Shared/config_default-ci.php index 0583b0b14e..811a90d41c 100644 --- a/config/Shared/config_default-ci.php +++ b/config/Shared/config_default-ci.php @@ -16,9 +16,9 @@ use Spryker\Shared\Kernel\Store; use Spryker\Shared\Log\LogConstants; use Spryker\Shared\Mail\MailConstants; +use Spryker\Shared\MerchantPortalApplication\MerchantPortalConstants; use Spryker\Shared\MessageBroker\MessageBrokerConstants; use Spryker\Shared\MessageBrokerAws\MessageBrokerAwsConstants; -use Spryker\Shared\MerchantPortalApplication\MerchantPortalConstants; use Spryker\Shared\Newsletter\NewsletterConstants; use Spryker\Shared\OauthClient\OauthClientConstants; use Spryker\Shared\Product\ProductConstants; @@ -210,11 +210,11 @@ $config[ZedRequestConstants::BASE_URL_ZED_API] = sprintf( 'http://%s', - $backendGatewayHost + $backendGatewayHost, ); $config[ZedRequestConstants::BASE_URL_SSL_ZED_API] = sprintf( 'https://%s', - $backendGatewayHost + $backendGatewayHost, ); // ---------------------------------------------------------------------------- @@ -223,7 +223,7 @@ $config[ApplicationConstants::BASE_URL_ZED] = sprintf( 'http://%s', - $backofficeHost + $backofficeHost, ); // ---------------------------------------------------------------------------- @@ -250,7 +250,7 @@ = $config[NewsletterConstants::BASE_URL_YVES] = sprintf( 'http://%s', - $yvesHost + $yvesHost, ); // ---------------------------------------------------------------------------- @@ -260,7 +260,7 @@ $config[GlueApplicationConstants::GLUE_APPLICATION_DOMAIN] = sprintf( 'http://%s', - $glueHost + $glueHost, ); if (class_exists(TestifyConstants::class)) { diff --git a/config/Shared/config_default-development.php b/config/Shared/config_default-development.php index 8c9b109bd7..8bb27d62bc 100644 --- a/config/Shared/config_default-development.php +++ b/config/Shared/config_default-development.php @@ -167,11 +167,11 @@ $config[ZedRequestConstants::BASE_URL_ZED_API] = sprintf( 'http://%s', - $backendGatewayHost + $backendGatewayHost, ); $config[ZedRequestConstants::BASE_URL_SSL_ZED_API] = sprintf( 'https://%s', - $backendGatewayHost + $backendGatewayHost, ); // ---------------------------------------------------------------------------- @@ -180,7 +180,7 @@ $config[ApplicationConstants::BASE_URL_ZED] = sprintf( 'http://%s', - $backofficeHost + $backofficeHost, ); // ---------------------------------------------------------------------------- @@ -207,7 +207,7 @@ = $config[NewsletterConstants::BASE_URL_YVES] = sprintf( 'http://%s', - $yvesHost + $yvesHost, ); // ---------------------------------------------------------------------------- @@ -217,7 +217,7 @@ $config[GlueApplicationConstants::GLUE_APPLICATION_DOMAIN] = sprintf( 'http://%s', - $glueHost + $glueHost, ); if (class_exists(TestifyConstants::class)) { diff --git a/config/Shared/config_default-devtest.php b/config/Shared/config_default-devtest.php index 53b6b32055..24bec4c5cc 100644 --- a/config/Shared/config_default-devtest.php +++ b/config/Shared/config_default-devtest.php @@ -153,11 +153,11 @@ $config[ZedRequestConstants::BASE_URL_ZED_API] = sprintf( 'http://%s', - $backendGatewayHost + $backendGatewayHost, ); $config[ZedRequestConstants::BASE_URL_SSL_ZED_API] = sprintf( 'https://%s', - $backendGatewayHost + $backendGatewayHost, ); // ---------------------------------------------------------------------------- @@ -166,7 +166,7 @@ $config[ApplicationConstants::BASE_URL_ZED] = sprintf( 'http://%s', - $backofficeHost + $backofficeHost, ); // ---------------------------------------------------------------------------- @@ -193,7 +193,7 @@ = $config[NewsletterConstants::BASE_URL_YVES] = sprintf( 'http://%s', - $yvesHost + $yvesHost, ); // ---------------------------------------------------------------------------- @@ -203,7 +203,7 @@ $config[GlueApplicationConstants::GLUE_APPLICATION_DOMAIN] = sprintf( 'http://%s', - $glueHost + $glueHost, ); if (class_exists(TestifyConstants::class)) { diff --git a/config/Shared/config_default-docker.dev.php b/config/Shared/config_default-docker.dev.php index 146d32055d..b0b014a209 100644 --- a/config/Shared/config_default-docker.dev.php +++ b/config/Shared/config_default-docker.dev.php @@ -14,9 +14,9 @@ use Spryker\Shared\GlueApplication\GlueApplicationConstants; use Spryker\Shared\Kernel\KernelConstants; use Spryker\Shared\Log\LogConstants; +use Spryker\Shared\MerchantPortalApplication\MerchantPortalConstants; use Spryker\Shared\MessageBroker\MessageBrokerConstants; use Spryker\Shared\MessageBrokerAws\MessageBrokerAwsConstants; -use Spryker\Shared\MerchantPortalApplication\MerchantPortalConstants; use Spryker\Shared\Newsletter\NewsletterConstants; use Spryker\Shared\OauthClient\OauthClientConstants; use Spryker\Shared\ProductManagement\ProductManagementConstants; @@ -26,7 +26,6 @@ use Spryker\Shared\Queue\QueueConstants; use Spryker\Shared\Router\RouterConstants; use Spryker\Shared\Session\SessionConstants; -use Spryker\Shared\Store\StoreConstants; use Spryker\Shared\Testify\TestifyConstants; use Spryker\Shared\WebProfiler\WebProfilerConstants; use Spryker\Shared\ZedRequest\ZedRequestConstants; @@ -114,7 +113,7 @@ $config[ApplicationConstants::BASE_URL_ZED] = sprintf( 'http://%s%s', getenv('SPRYKER_BE_HOST'), - $backofficePort !== 80 ? ':' . $backofficePort : '' + $backofficePort !== 80 ? ':' . $backofficePort : '', ); // ---------------------------------------------------------------------------- @@ -141,7 +140,7 @@ = sprintf( 'http://%s%s', $yvesHost, - $yvesPort !== 80 ? ':' . $yvesPort : '' + $yvesPort !== 80 ? ':' . $yvesPort : '', ); // ---------------------------------------------------------------------------- @@ -153,7 +152,7 @@ $config[GlueApplicationConstants::GLUE_APPLICATION_DOMAIN] = sprintf( 'http://%s%s', $glueHost, - $gluePort !== 80 ? ':' . $gluePort : '' + $gluePort !== 80 ? ':' . $gluePort : '', ); if (class_exists(TestifyConstants::class, true)) { diff --git a/config/Shared/config_default-docker.php b/config/Shared/config_default-docker.php index 4a49443984..6954620a5f 100644 --- a/config/Shared/config_default-docker.php +++ b/config/Shared/config_default-docker.php @@ -63,25 +63,25 @@ $config[ApplicationConstants::BASE_URL_ZED] = sprintf( 'http://%s%s', getenv('SPRYKER_BE_HOST'), - $backofficePort + $backofficePort, ); $config[ApplicationConstants::BASE_URL_SSL_ZED] = sprintf( 'https://%s%s', getenv('SPRYKER_BE_HOST'), - $backofficePort + $backofficePort, ); $config[ZedRequestConstants::HOST_ZED_API] = sprintf( '%s:%s', getenv('SPRYKER_ZED_HOST'), - $config[ApplicationConstants::PORT_ZED] + $config[ApplicationConstants::PORT_ZED], ); $config[ZedRequestConstants::BASE_URL_ZED_API] = sprintf( 'http://%s', - $config[ZedRequestConstants::HOST_ZED_API] + $config[ZedRequestConstants::HOST_ZED_API], ); $config[ZedRequestConstants::BASE_URL_SSL_ZED_API] = sprintf( 'https://%s', - $config[ZedRequestConstants::HOST_ZED_API] + $config[ZedRequestConstants::HOST_ZED_API], ); $config[ZedRequestConstants::TRANSFER_DEBUG_SESSION_FORWARD_ENABLED] = true; @@ -122,7 +122,7 @@ 'MarketplacePayment01', ]; $config[SalesConstants::PAYMENT_METHOD_STATEMACHINE_MAPPING] = [ - DummyMarketplacePaymentConfig::PAYMENT_METHOD_DUMMY_MARKETPLACE_PAYMENT_INVOICE => 'MarketplacePayment01' + DummyMarketplacePaymentConfig::PAYMENT_METHOD_DUMMY_MARKETPLACE_PAYMENT_INVOICE => 'MarketplacePayment01', ]; $config[EventConstants::LOGGER_ACTIVE] = true; @@ -150,12 +150,12 @@ $config[ApplicationConstants::BASE_URL_YVES] = sprintf( 'http://%s%s', $config[ApplicationConstants::HOST_YVES], - getenv('SPRYKER_FE_PORT') ? ':' . getenv('SPRYKER_FE_PORT') : '' + getenv('SPRYKER_FE_PORT') ? ':' . getenv('SPRYKER_FE_PORT') : '', ); $config[ApplicationConstants::BASE_URL_SSL_YVES] = sprintf( 'https://%s%s', $config[ApplicationConstants::HOST_YVES], - $config[ApplicationConstants::PORT_SSL_YVES] + $config[ApplicationConstants::PORT_SSL_YVES], ); $config[ProductManagementConstants::BASE_URL_YVES] = $config[ApplicationConstants::BASE_URL_YVES]; $config[NewsletterConstants::BASE_URL_YVES] = $config[ApplicationConstants::BASE_URL_YVES]; @@ -187,7 +187,7 @@ '%s://%s%s', $protocol, $glueHost, // TODO: refactor GlueControllerFilterPluginTest to avoid the knowledge of GLUE_APPLICATION_DOMAIN in Zed - $gluePort !== 80 ? ':' . $gluePort : '' + $gluePort !== 80 ? ':' . $gluePort : '', ); $config[GlueApplicationConstants::GLUE_APPLICATION_REST_DEBUG] = (bool)getenv('SPRYKER_DEBUG_ENABLED'); $config[GlueApplicationConstants::GLUE_APPLICATION_CORS_ALLOW_ORIGIN] = getenv('SPRYKER_GLUE_APPLICATION_CORS_ALLOW_ORIGIN') ?: ''; diff --git a/config/Shared/config_default-docker.production.php b/config/Shared/config_default-docker.production.php index 5a8b569ae5..103b03da25 100644 --- a/config/Shared/config_default-docker.production.php +++ b/config/Shared/config_default-docker.production.php @@ -110,7 +110,7 @@ $config[ApplicationConstants::BASE_URL_ZED] = sprintf( 'http://%s%s', getenv('SPRYKER_BE_HOST'), - $backofficePort !== 80 ? ':' . $backofficePort : '' + $backofficePort !== 80 ? ':' . $backofficePort : '', ); // ---------------------------------------------------------------------------- @@ -126,7 +126,7 @@ = sprintf( 'http://%s%s', $yvesHost, - $yvesPort !== 80 ? ':' . $yvesPort : '' + $yvesPort !== 80 ? ':' . $yvesPort : '', ); // ---------------------------------------------------------------------------- @@ -138,7 +138,7 @@ $config[GlueApplicationConstants::GLUE_APPLICATION_DOMAIN] = sprintf( 'http://%s%s', $glueHost, - $gluePort !== 80 ? ':' . $gluePort : '' + $gluePort !== 80 ? ':' . $gluePort : '', ); if (class_exists(TestifyConstants::class, true)) { @@ -157,9 +157,9 @@ sprintf( '%s/data/%s/cache/Zed/twig', APPLICATION_ROOT_DIR, - $CURRENT_STORE + $CURRENT_STORE, ), - FilesystemCache::FORCE_BYTECODE_INVALIDATION + FilesystemCache::FORCE_BYTECODE_INVALIDATION, ), ]; @@ -168,9 +168,9 @@ sprintf( '%s/data/%s/cache/Yves/twig', APPLICATION_ROOT_DIR, - $CURRENT_STORE + $CURRENT_STORE, ), - FilesystemCache::FORCE_BYTECODE_INVALIDATION + FilesystemCache::FORCE_BYTECODE_INVALIDATION, ), ]; diff --git a/config/Shared/config_default.php b/config/Shared/config_default.php index c448476e9d..4e4ff4c88f 100644 --- a/config/Shared/config_default.php +++ b/config/Shared/config_default.php @@ -223,14 +223,14 @@ $config[OauthConstants::PRIVATE_KEY_PATH] = str_replace( '__LINE__', PHP_EOL, - getenv('SPRYKER_OAUTH_KEY_PRIVATE') ?: '' + getenv('SPRYKER_OAUTH_KEY_PRIVATE') ?: '', ) ?: null; $config[OauthConstants::PUBLIC_KEY_PATH] = $config[OauthCryptographyConstants::PUBLIC_KEY_PATH] = str_replace( '__LINE__', PHP_EOL, - getenv('SPRYKER_OAUTH_KEY_PUBLIC') ?: '' + getenv('SPRYKER_OAUTH_KEY_PUBLIC') ?: '', ) ?: null; $config[OauthConstants::ENCRYPTION_KEY] = getenv('SPRYKER_OAUTH_ENCRYPTION_KEY') ?: null; $config[OauthConstants::OAUTH_CLIENT_IDENTIFIER] = getenv('SPRYKER_OAUTH_CLIENT_IDENTIFIER') ?: null; @@ -494,7 +494,7 @@ '%s://%s:%s/', getenv('SPRYKER_SCHEDULER_PROTOCOL') ?: 'http', getenv('SPRYKER_SCHEDULER_HOST'), - getenv('SPRYKER_SCHEDULER_PORT') + getenv('SPRYKER_SCHEDULER_PORT'), ), SchedulerJenkinsConfig::SCHEDULER_JENKINS_CSRF_ENABLED => (bool)getenv('SPRYKER_JENKINS_CSRF_PROTECTION_ENABLED'), ], @@ -534,15 +534,15 @@ $config[ZedRequestConstants::HOST_ZED_API] = sprintf( '%s%s', getenv('SPRYKER_ZED_HOST') ?: 'not-configured-host', - $zedPort !== $backofficeDefaultPort ? ':' . $zedPort : '' + $zedPort !== $backofficeDefaultPort ? ':' . $zedPort : '', ); $config[ZedRequestConstants::BASE_URL_ZED_API] = sprintf( 'http://%s', - $config[ZedRequestConstants::HOST_ZED_API] + $config[ZedRequestConstants::HOST_ZED_API], ); $config[ZedRequestConstants::BASE_URL_SSL_ZED_API] = sprintf( 'https://%s', - $config[ZedRequestConstants::HOST_ZED_API] + $config[ZedRequestConstants::HOST_ZED_API], ); // ---------------------------------------------------------------------------- @@ -553,7 +553,7 @@ $config[ApplicationConstants::BASE_URL_ZED] = sprintf( 'https://%s%s', $sprykerBackendHost, - $backofficePort !== 443 ? $backofficePort : '' + $backofficePort !== 443 ? $backofficePort : '', ); // ---------------------------------------------------------------------------- @@ -581,7 +581,7 @@ = sprintf( 'https://%s%s', $yvesHost, - $yvesPort !== 443 ? ':' . $yvesPort : '' + $yvesPort !== 443 ? ':' . $yvesPort : '', ); $config[ShopUiConstants::YVES_ASSETS_URL_PATTERN] = '/assets/' . (getenv('SPRYKER_BUILD_HASH') ?: 'current') . '/%theme%/'; @@ -596,7 +596,7 @@ = sprintf( 'https://%s%s', $glueHost, - $gluePort !== 443 ? ':' . $gluePort : '' + $gluePort !== 443 ? ':' . $gluePort : '', ); if (class_exists(TestifyConstants::class)) { @@ -616,7 +616,7 @@ $config[SalesConstants::PAYMENT_METHOD_STATEMACHINE_MAPPING] = [ DummyMarketplacePaymentConfig::PAYMENT_METHOD_DUMMY_MARKETPLACE_PAYMENT_INVOICE => 'MarketplacePayment01', - PaymentConfig::PAYMENT_FOREIGN_PROVIDER => 'ForeignPaymentB2CStateMachine01' + PaymentConfig::PAYMENT_FOREIGN_PROVIDER => 'ForeignPaymentB2CStateMachine01', ]; $config[OmsConstants::PROCESS_LOCATION] = [ diff --git a/config/Shared/config_propel.php b/config/Shared/config_propel.php index f81067bb53..ecc3af60c0 100644 --- a/config/Shared/config_propel.php +++ b/config/Shared/config_propel.php @@ -14,7 +14,7 @@ $config[PropelConstants::ZED_DB_ENGINE], $config[PropelConstants::ZED_DB_HOST], $config[PropelConstants::ZED_DB_PORT], - $config[PropelConstants::ZED_DB_DATABASE] + $config[PropelConstants::ZED_DB_DATABASE], ); $slaves = []; @@ -25,7 +25,7 @@ $config[PropelConstants::ZED_DB_ENGINE], $slaveData[PropelConstants::ZED_DB_HOST], $slaveData[PropelConstants::ZED_DB_PORT], - $config[PropelConstants::ZED_DB_DATABASE] + $config[PropelConstants::ZED_DB_DATABASE], ), 'user' => $config[PropelConstants::ZED_DB_USERNAME], 'password' => $config[PropelConstants::ZED_DB_PASSWORD], diff --git a/config/Shared/stores.php b/config/Shared/stores.php index 6c3db41a75..884b8b8f42 100644 --- a/config/Shared/stores.php +++ b/config/Shared/stores.php @@ -2,9 +2,10 @@ $stores = []; -if (!empty(getenv('SPRYKER_ACTIVE_STORES'))) { +if (getenv('SPRYKER_ACTIVE_STORES')) { $activeStores = array_map('trim', explode(',', getenv('SPRYKER_ACTIVE_STORES'))); + $templates = []; $templates['default'] = [ // different contexts 'contexts' => [ diff --git a/config/ruleset.xml b/config/ruleset.xml deleted file mode 100644 index 6845844e0b..0000000000 --- a/config/ruleset.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - Spryker Coding Standard for Project. - - Extends main Spryker Coding Standard. - All sniffs in ./Sniffs will be auto loaded - - - - - */src/Generated/* - */src/Orm/*/Base/ - */src/Orm/*/Map/ - */src/Orm/Propel/ - */tests/_support/_generated/* - */tests/_helpers/* - */tests/_output/* - ./data/cache/* - */node_modules/* - */docker/generator/* - - - - diff --git a/deploy.aws-env-template.yml b/deploy.aws-env-template.yml index e95bee8f33..d2ddf33771 100644 --- a/deploy.aws-env-template.yml +++ b/deploy.aws-env-template.yml @@ -52,6 +52,9 @@ image: SPRYKER_HOOK_DESTRUCTIVE_INSTALL: "vendor/bin/install -r EU/destructive --no-ansi -vvv" SPRYKER_PRODUCT_CONFIGURATOR_HOST: date-time-configurator-example.cloud.spryker.toys SPRYKER_PRODUCT_CONFIGURATOR_PORT: 443 + node: + version: 16 + npm: 8 composer: mode: --no-dev diff --git a/deploy.ci.api.mariadb.yml b/deploy.ci.api.mariadb.yml index 4373f30593..fd3d6875ec 100644 --- a/deploy.ci.api.mariadb.yml +++ b/deploy.ci.api.mariadb.yml @@ -10,6 +10,9 @@ image: environment: SPRYKER_PRODUCT_CONFIGURATOR_HOST: date-time-configurator-example.spryker.local SPRYKER_PRODUCT_CONFIGURATOR_PORT: 80 + node: + version: 16 + npm: 8 composer: mode: --no-dev autoload: --classmap-authoritative diff --git a/deploy.ci.api.yml b/deploy.ci.api.yml index 42a43832d6..88cf2975f9 100644 --- a/deploy.ci.api.yml +++ b/deploy.ci.api.yml @@ -10,6 +10,9 @@ image: environment: SPRYKER_PRODUCT_CONFIGURATOR_HOST: date-time-configurator-example.spryker.local SPRYKER_PRODUCT_CONFIGURATOR_PORT: 80 + node: + version: 16 + npm: 8 composer: mode: --no-dev autoload: --classmap-authoritative diff --git a/deploy.ci.functional.mariadb.yml b/deploy.ci.functional.mariadb.yml index 7dfb7638d3..13d3bd3a50 100644 --- a/deploy.ci.functional.mariadb.yml +++ b/deploy.ci.functional.mariadb.yml @@ -10,6 +10,9 @@ image: environment: SPRYKER_PRODUCT_CONFIGURATOR_HOST: date-time-configurator-example.spryker.local SPRYKER_PRODUCT_CONFIGURATOR_PORT: 80 + node: + version: 16 + npm: 8 composer: mode: --no-dev autoload: --classmap-authoritative diff --git a/deploy.ci.functional.yml b/deploy.ci.functional.yml index 7a47c5d446..ec9106fb44 100644 --- a/deploy.ci.functional.yml +++ b/deploy.ci.functional.yml @@ -10,6 +10,9 @@ image: environment: SPRYKER_PRODUCT_CONFIGURATOR_HOST: date-time-configurator-example.spryker.local SPRYKER_PRODUCT_CONFIGURATOR_PORT: 80 + node: + version: 16 + npm: 8 composer: mode: --no-dev autoload: --classmap-authoritative diff --git a/phpcs.xml b/phpcs.xml new file mode 100644 index 0000000000..f8e3f5c738 --- /dev/null +++ b/phpcs.xml @@ -0,0 +1,60 @@ + + + + Spryker Coding Standard for Project. + + Extends main Spryker Coding Standard. + All sniffs in ./Sniffs will be auto loaded + + + + + src/ + config/ + tests/ + + */src/Generated/* + */src/Orm/*/Base/ + */src/Orm/*/Map/ + */src/Orm/Propel/ + */tests/_support/_generated/* + */tests/_helpers/* + */tests/_output/* + */tests/*/_data/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + + + 0 + + + 0 + + + diff --git a/phpstan-bootstrap.php b/phpstan-bootstrap.php index de4baede33..b9692e411d 100644 --- a/phpstan-bootstrap.php +++ b/phpstan-bootstrap.php @@ -5,6 +5,8 @@ * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. */ +use PHP_CodeSniffer\Config; + define('APPLICATION_ROOT_DIR', __DIR__); define('APPLICATION_VENDOR_DIR', APPLICATION_ROOT_DIR . '/vendor'); define('APPLICATION_SOURCE_DIR', APPLICATION_ROOT_DIR . '/src'); @@ -24,7 +26,7 @@ } $manualAutoload = APPLICATION_VENDOR_DIR . '/squizlabs/php_codesniffer/autoload.php'; -if (!class_exists(\PHP_CodeSniffer\Config::class) && file_exists($manualAutoload)) { +if (!class_exists(Config::class) && file_exists($manualAutoload)) { require $manualAutoload; } @@ -36,7 +38,7 @@ * * @return void */ - function opcache_invalidate($script, $force = false) + function opcache_invalidate($script, $force = false): void { } } diff --git a/src/Pyz/Client/Agent/AgentDependencyProvider.php b/src/Pyz/Client/Agent/AgentDependencyProvider.php index a33fe06f61..e7844a680b 100644 --- a/src/Pyz/Client/Agent/AgentDependencyProvider.php +++ b/src/Pyz/Client/Agent/AgentDependencyProvider.php @@ -14,7 +14,7 @@ class AgentDependencyProvider extends SprykerAgentDependencyProvider { /** - * @return \Spryker\Client\AgentExtension\Dependency\Plugin\ImpersonationSessionFinisherPluginInterface[] + * @return array<\Spryker\Client\AgentExtension\Dependency\Plugin\ImpersonationSessionFinisherPluginInterface> */ protected function getImpersonationSessionFinisherPlugins(): array { diff --git a/src/Pyz/Client/Cart/CartDependencyProvider.php b/src/Pyz/Client/Cart/CartDependencyProvider.php index da6d3fb5eb..179c6ef4ea 100644 --- a/src/Pyz/Client/Cart/CartDependencyProvider.php +++ b/src/Pyz/Client/Cart/CartDependencyProvider.php @@ -8,7 +8,9 @@ namespace Pyz\Client\Cart; use Spryker\Client\Cart\CartDependencyProvider as SprykerCartDependencyProvider; +use Spryker\Client\Cart\Dependency\Plugin\ItemCountPluginInterface; use Spryker\Client\Cart\Plugin\ProductSeparateCartChangeExpanderPlugin; +use Spryker\Client\CartExtension\Dependency\Plugin\QuoteItemFinderPluginInterface; use Spryker\Client\DiscountPromotion\Plugin\AddDiscountPromotionCartRequestExpandPlugin; use Spryker\Client\PersistentCart\Plugin\DatabaseQuoteStorageStrategy; use Spryker\Client\ProductBundle\Plugin\Cart\BundleProductQuoteItemFinderPlugin; @@ -23,15 +25,15 @@ class CartDependencyProvider extends SprykerCartDependencyProvider /** * @return \Spryker\Client\Cart\Dependency\Plugin\ItemCountPluginInterface */ - protected function getItemCountPlugin() + protected function getItemCountPlugin(): ItemCountPluginInterface { return new ProductBundleItemCountQuantityPlugin(); } /** - * @return \Spryker\Client\CartExtension\Dependency\Plugin\QuoteStorageStrategyPluginInterface[] + * @return array<\Spryker\Client\CartExtension\Dependency\Plugin\QuoteStorageStrategyPluginInterface> */ - protected function getQuoteStorageStrategyPlugins() + protected function getQuoteStorageStrategyPlugins(): array { $quoteStorageStrategyPlugins = parent::getQuoteStorageStrategyPlugins(); $quoteStorageStrategyPlugins[] = new DatabaseQuoteStorageStrategy(); #PersistentCartFeature @@ -42,15 +44,15 @@ protected function getQuoteStorageStrategyPlugins() /** * @return \Spryker\Client\CartExtension\Dependency\Plugin\QuoteItemFinderPluginInterface */ - protected function getQuoteItemFinderPlugin() + protected function getQuoteItemFinderPlugin(): QuoteItemFinderPluginInterface { return new BundleProductQuoteItemFinderPlugin(); } /** - * @return \Spryker\Client\CartExtension\Dependency\Plugin\CartChangeRequestExpanderPluginInterface[] + * @return array<\Spryker\Client\CartExtension\Dependency\Plugin\CartChangeRequestExpanderPluginInterface> */ - protected function getAddItemsRequestExpanderPlugins() + protected function getAddItemsRequestExpanderPlugins(): array { return [ new AddDiscountPromotionCartRequestExpandPlugin(), @@ -62,9 +64,9 @@ protected function getAddItemsRequestExpanderPlugins() } /** - * @return \Spryker\Client\CartExtension\Dependency\Plugin\CartChangeRequestExpanderPluginInterface[] + * @return array<\Spryker\Client\CartExtension\Dependency\Plugin\CartChangeRequestExpanderPluginInterface> */ - protected function getRemoveItemsRequestExpanderPlugins() + protected function getRemoveItemsRequestExpanderPlugins(): array { return [ new RemoveBundleChangeRequestExpanderPlugin(), diff --git a/src/Pyz/Client/Catalog/CatalogDependencyProvider.php b/src/Pyz/Client/Catalog/CatalogDependencyProvider.php index cab917190e..f0b25efc7c 100644 --- a/src/Pyz/Client/Catalog/CatalogDependencyProvider.php +++ b/src/Pyz/Client/Catalog/CatalogDependencyProvider.php @@ -28,6 +28,7 @@ use Spryker\Client\ProductListSearch\Plugin\Search\ProductListQueryExpanderPlugin as ProductListSearchProductListQueryExpanderPlugin; use Spryker\Client\ProductReview\Plugin\RatingFacetConfigTransferBuilderPlugin; use Spryker\Client\ProductReview\Plugin\RatingSortConfigTransferBuilderPlugin; +use Spryker\Client\Search\Dependency\Plugin\QueryInterface; use Spryker\Client\SearchElasticsearch\Plugin\QueryExpander\CompletionQueryExpanderPlugin; use Spryker\Client\SearchElasticsearch\Plugin\QueryExpander\FacetQueryExpanderPlugin; use Spryker\Client\SearchElasticsearch\Plugin\QueryExpander\IsActiveInDateRangeQueryExpanderPlugin; @@ -49,7 +50,7 @@ class CatalogDependencyProvider extends SprykerCatalogDependencyProvider { /** - * @return \Spryker\Client\Catalog\Dependency\Plugin\FacetConfigTransferBuilderPluginInterface[] + * @return array<\Spryker\Client\Catalog\Dependency\Plugin\FacetConfigTransferBuilderPluginInterface> */ protected function getFacetConfigTransferBuilderPlugins(): array { @@ -61,7 +62,7 @@ protected function getFacetConfigTransferBuilderPlugins(): array } /** - * @return \Spryker\Client\Catalog\Dependency\Plugin\SortConfigTransferBuilderPluginInterface[] + * @return array<\Spryker\Client\Catalog\Dependency\Plugin\SortConfigTransferBuilderPluginInterface> */ protected function getSortConfigTransferBuilderPlugins(): array { @@ -79,13 +80,13 @@ protected function getSortConfigTransferBuilderPlugins(): array * * @return \Spryker\Client\Search\Dependency\Plugin\QueryInterface */ - protected function createCatalogSearchQueryPlugin() + protected function createCatalogSearchQueryPlugin(): QueryInterface { return new ProductCatalogSearchQueryPlugin(); } /** - * @return \Spryker\Client\Search\Dependency\Plugin\QueryExpanderPluginInterface[]|\Spryker\Client\SearchExtension\Dependency\Plugin\QueryExpanderPluginInterface[] + * @return array<\Spryker\Client\SearchExtension\Dependency\Plugin\QueryExpanderPluginInterface>|array<\Spryker\Client\Search\Dependency\Plugin\QueryExpanderPluginInterface> */ protected function createCatalogSearchQueryExpanderPlugins(): array { @@ -132,7 +133,7 @@ protected function createCatalogSearchResultFormatterPlugins(): array } /** - * @return \Spryker\Client\Search\Dependency\Plugin\QueryExpanderPluginInterface[]|\Spryker\Client\SearchExtension\Dependency\Plugin\QueryExpanderPluginInterface[] + * @return array<\Spryker\Client\SearchExtension\Dependency\Plugin\QueryExpanderPluginInterface>|array<\Spryker\Client\Search\Dependency\Plugin\QueryExpanderPluginInterface> */ protected function createSuggestionQueryExpanderPlugins(): array { @@ -167,7 +168,7 @@ protected function createSuggestionResultFormatterPlugins(): array } /** - * @return \Spryker\Client\Search\Dependency\Plugin\QueryExpanderPluginInterface[]|\Spryker\Client\SearchExtension\Dependency\Plugin\QueryExpanderPluginInterface[] + * @return array<\Spryker\Client\SearchExtension\Dependency\Plugin\QueryExpanderPluginInterface>|array<\Spryker\Client\Search\Dependency\Plugin\QueryExpanderPluginInterface> */ protected function createCatalogSearchCountQueryExpanderPlugins(): array { @@ -194,7 +195,7 @@ protected function getProductConcreteCatalogSearchResultFormatterPlugins(): arra } /** - * @return \Spryker\Client\Search\Dependency\Plugin\QueryExpanderPluginInterface[]|\Spryker\Client\SearchExtension\Dependency\Plugin\QueryExpanderPluginInterface[] + * @return array<\Spryker\Client\SearchExtension\Dependency\Plugin\QueryExpanderPluginInterface>|array<\Spryker\Client\Search\Dependency\Plugin\QueryExpanderPluginInterface> */ protected function getProductConcreteCatalogSearchQueryExpanderPlugins(): array { diff --git a/src/Pyz/Client/CmsSlot/CmsSlotDependencyProvider.php b/src/Pyz/Client/CmsSlot/CmsSlotDependencyProvider.php index 8d2a92d124..8bce99ad13 100644 --- a/src/Pyz/Client/CmsSlot/CmsSlotDependencyProvider.php +++ b/src/Pyz/Client/CmsSlot/CmsSlotDependencyProvider.php @@ -14,7 +14,7 @@ class CmsSlotDependencyProvider extends SprykerCmsSlotDependencyProvider { /** - * @return \Spryker\Client\CmsSlotExtension\Dependency\Plugin\ExternalDataProviderStrategyPluginInterface[] + * @return array<\Spryker\Client\CmsSlotExtension\Dependency\Plugin\ExternalDataProviderStrategyPluginInterface> */ public function getExternalDataProviderStrategyPlugins(): array { diff --git a/src/Pyz/Client/CmsSlotBlock/CmsSlotBlockDependencyProvider.php b/src/Pyz/Client/CmsSlotBlock/CmsSlotBlockDependencyProvider.php index 8db4581ee2..794478a429 100644 --- a/src/Pyz/Client/CmsSlotBlock/CmsSlotBlockDependencyProvider.php +++ b/src/Pyz/Client/CmsSlotBlock/CmsSlotBlockDependencyProvider.php @@ -15,7 +15,7 @@ class CmsSlotBlockDependencyProvider extends SprykerCmsSlotBlockDependencyProvider { /** - * @return \Spryker\Client\CmsSlotBlockExtension\Dependency\Plugin\CmsSlotBlockVisibilityResolverPluginInterface[] + * @return array<\Spryker\Client\CmsSlotBlockExtension\Dependency\Plugin\CmsSlotBlockVisibilityResolverPluginInterface> */ protected function getCmsSlotBlockVisibilityResolverPlugins(): array { diff --git a/src/Pyz/Client/Currency/CurrencyDependencyProvider.php b/src/Pyz/Client/Currency/CurrencyDependencyProvider.php index cebabdedb8..1b2376cea3 100644 --- a/src/Pyz/Client/Currency/CurrencyDependencyProvider.php +++ b/src/Pyz/Client/Currency/CurrencyDependencyProvider.php @@ -13,7 +13,7 @@ class CurrencyDependencyProvider extends SprykerCurrencyDependencyProvider { /** - * @return \Spryker\Client\CurrencyExtension\Dependency\CurrencyPostChangePluginInterface[] + * @return array<\Spryker\Client\CurrencyExtension\Dependency\CurrencyPostChangePluginInterface> */ protected function getCurrencyPostChangePlugins(): array { diff --git a/src/Pyz/Client/Customer/CustomerDependencyProvider.php b/src/Pyz/Client/Customer/CustomerDependencyProvider.php index 8e72cb85b7..293e2ed3cd 100644 --- a/src/Pyz/Client/Customer/CustomerDependencyProvider.php +++ b/src/Pyz/Client/Customer/CustomerDependencyProvider.php @@ -21,9 +21,9 @@ class CustomerDependencyProvider extends SprykerCustomerDependencyProvider { /** - * @return \Spryker\Client\Customer\Dependency\Plugin\CustomerSessionGetPluginInterface[] + * @return array<\Spryker\Client\Customer\Dependency\Plugin\CustomerSessionGetPluginInterface> */ - protected function getCustomerSessionGetPlugins() + protected function getCustomerSessionGetPlugins(): array { return [ new CustomerTransferSessionRefreshPlugin(), @@ -31,9 +31,9 @@ protected function getCustomerSessionGetPlugins() } /** - * @return \Spryker\Client\Customer\Dependency\Plugin\CustomerSessionSetPluginInterface[] + * @return array<\Spryker\Client\Customer\Dependency\Plugin\CustomerSessionSetPluginInterface> */ - protected function getCustomerSessionSetPlugins() + protected function getCustomerSessionSetPlugins(): array { return [ new GuestCartSaveCustomerSessionSetPlugin(), #MultiCartFeature @@ -45,7 +45,7 @@ protected function getCustomerSessionSetPlugins() /** * @return array <\Spryker\Client\CustomerExtension\Dependency\Plugin\DefaultAddressChangePluginInterface> */ - protected function getDefaultAddressChangePlugins() + protected function getDefaultAddressChangePlugins(): array { return [ new CustomerAddressDefaultAddressChangePlugin(), @@ -53,7 +53,7 @@ protected function getDefaultAddressChangePlugins() } /** - * @return \Spryker\Client\CustomerExtension\Dependency\Plugin\CustomerSecuredPatternRulePluginInterface[] + * @return array<\Spryker\Client\CustomerExtension\Dependency\Plugin\CustomerSecuredPatternRulePluginInterface> */ protected function getCustomerSecuredPatternRulePlugins(): array { diff --git a/src/Pyz/Client/ExampleProductSalePage/ExampleProductSalePageDependencyProvider.php b/src/Pyz/Client/ExampleProductSalePage/ExampleProductSalePageDependencyProvider.php index eabba3355e..bd9301c34e 100644 --- a/src/Pyz/Client/ExampleProductSalePage/ExampleProductSalePageDependencyProvider.php +++ b/src/Pyz/Client/ExampleProductSalePage/ExampleProductSalePageDependencyProvider.php @@ -62,7 +62,7 @@ class ExampleProductSalePageDependencyProvider extends AbstractDependencyProvide * * @return \Spryker\Client\Kernel\Container */ - public function provideServiceLayerDependencies(Container $container) + public function provideServiceLayerDependencies(Container $container): Container { $container = parent::provideServiceLayerDependencies($container); $container = $this->addPyzSearchClient($container); diff --git a/src/Pyz/Client/ExampleProductSalePage/ExampleProductSalePageFactory.php b/src/Pyz/Client/ExampleProductSalePage/ExampleProductSalePageFactory.php index 06dff298d8..1632b6b7cd 100644 --- a/src/Pyz/Client/ExampleProductSalePage/ExampleProductSalePageFactory.php +++ b/src/Pyz/Client/ExampleProductSalePage/ExampleProductSalePageFactory.php @@ -30,7 +30,7 @@ public function getPyzSaleSearchQueryPlugin(array $requestParameters = []): Quer return $this->getPyzSearchClient()->expandQuery( $saleQueryPlugin, $this->getSaleSearchQueryExpanderPlugins(), - $requestParameters + $requestParameters, ); } @@ -59,7 +59,7 @@ public function getPyzSearchClient(): SearchClientInterface } /** - * @return \Spryker\Client\SearchExtension\Dependency\Plugin\QueryExpanderPluginInterface[] + * @return array<\Spryker\Client\SearchExtension\Dependency\Plugin\QueryExpanderPluginInterface> */ protected function getSaleSearchQueryExpanderPlugins(): array { @@ -67,7 +67,7 @@ protected function getSaleSearchQueryExpanderPlugins(): array } /** - * @return \Spryker\Client\SearchExtension\Dependency\Plugin\ResultFormatterPluginInterface[] + * @return array<\Spryker\Client\SearchExtension\Dependency\Plugin\ResultFormatterPluginInterface> */ public function getSaleSearchResultFormatterPlugins(): array { diff --git a/src/Pyz/Client/MerchantSearch/MerchantSearchDependencyProvider.php b/src/Pyz/Client/MerchantSearch/MerchantSearchDependencyProvider.php index 8e53306274..78cc4d920f 100644 --- a/src/Pyz/Client/MerchantSearch/MerchantSearchDependencyProvider.php +++ b/src/Pyz/Client/MerchantSearch/MerchantSearchDependencyProvider.php @@ -16,7 +16,7 @@ class MerchantSearchDependencyProvider extends SprykerMerchantSearchDependencyProvider { /** - * @return \Spryker\Client\SearchExtension\Dependency\Plugin\ResultFormatterPluginInterface[] + * @return array<\Spryker\Client\SearchExtension\Dependency\Plugin\ResultFormatterPluginInterface> */ protected function getMerchantSearchResultFormatterPlugins(): array { @@ -26,7 +26,7 @@ protected function getMerchantSearchResultFormatterPlugins(): array } /** - * @return \Spryker\Client\SearchExtension\Dependency\Plugin\QueryExpanderPluginInterface[] + * @return array<\Spryker\Client\SearchExtension\Dependency\Plugin\QueryExpanderPluginInterface> */ protected function getMerchantSearchQueryExpanderPlugins(): array { diff --git a/src/Pyz/Client/MultiCart/MultiCartConfig.php b/src/Pyz/Client/MultiCart/MultiCartConfig.php index e58bb5eeeb..bb6fcf3e59 100644 --- a/src/Pyz/Client/MultiCart/MultiCartConfig.php +++ b/src/Pyz/Client/MultiCart/MultiCartConfig.php @@ -13,7 +13,7 @@ class MultiCartConfig extends SprykerMultiCartConfig { /** - * @return string[] + * @return array */ public function getQuoteFieldsAllowedForQuoteDuplicate(): array { diff --git a/src/Pyz/Client/Oauth/OauthDependencyProvider.php b/src/Pyz/Client/Oauth/OauthDependencyProvider.php index e602615f63..727872116c 100644 --- a/src/Pyz/Client/Oauth/OauthDependencyProvider.php +++ b/src/Pyz/Client/Oauth/OauthDependencyProvider.php @@ -14,7 +14,7 @@ class OauthDependencyProvider extends SprykerOauthDependencyProvider { /** - * @return \Spryker\Client\OauthExtension\Dependency\Plugin\KeyLoaderPluginInterface[] + * @return array<\Spryker\Client\OauthExtension\Dependency\Plugin\KeyLoaderPluginInterface> */ protected function getKeyLoaderPlugins(): array { @@ -24,7 +24,7 @@ protected function getKeyLoaderPlugins(): array } /** - * @return \Spryker\Client\OauthExtension\Dependency\Plugin\AuthorizationValidatorPluginInterface[] + * @return array<\Spryker\Client\OauthExtension\Dependency\Plugin\AuthorizationValidatorPluginInterface> */ protected function getAuthorizationValidatorPlugins(): array { diff --git a/src/Pyz/Client/Permission/PermissionDependencyProvider.php b/src/Pyz/Client/Permission/PermissionDependencyProvider.php index 19a618bb83..ca89adbc74 100644 --- a/src/Pyz/Client/Permission/PermissionDependencyProvider.php +++ b/src/Pyz/Client/Permission/PermissionDependencyProvider.php @@ -37,7 +37,7 @@ class PermissionDependencyProvider extends SprykerPermissionDependencyProvider { /** - * @return \Spryker\Client\PermissionExtension\Dependency\Plugin\PermissionStoragePluginInterface[] + * @return array<\Spryker\Client\PermissionExtension\Dependency\Plugin\PermissionStoragePluginInterface> */ protected function getPermissionStoragePlugins(): array { @@ -49,7 +49,7 @@ protected function getPermissionStoragePlugins(): array } /** - * @return \Spryker\Shared\PermissionExtension\Dependency\Plugin\PermissionPluginInterface[] + * @return array<\Spryker\Shared\PermissionExtension\Dependency\Plugin\PermissionPluginInterface> */ protected function getPermissionPlugins(): array { diff --git a/src/Pyz/Client/PersistentCart/PersistentCartDependencyProvider.php b/src/Pyz/Client/PersistentCart/PersistentCartDependencyProvider.php index e805f00457..6978608a5b 100644 --- a/src/Pyz/Client/PersistentCart/PersistentCartDependencyProvider.php +++ b/src/Pyz/Client/PersistentCart/PersistentCartDependencyProvider.php @@ -26,7 +26,7 @@ class PersistentCartDependencyProvider extends SprykerPersistentCartDependencyProvider { /** - * @return \Spryker\Client\PersistentCartExtension\Dependency\Plugin\QuoteUpdatePluginInterface[] + * @return array<\Spryker\Client\PersistentCartExtension\Dependency\Plugin\QuoteUpdatePluginInterface> */ protected function getQuoteUpdatePlugins(): array { @@ -39,7 +39,7 @@ protected function getQuoteUpdatePlugins(): array } /** - * @return \Spryker\Client\PersistentCartExtension\Dependency\Plugin\PersistentCartChangeExpanderPluginInterface[] + * @return array<\Spryker\Client\PersistentCartExtension\Dependency\Plugin\PersistentCartChangeExpanderPluginInterface> */ protected function getChangeRequestExtendPlugins(): array { diff --git a/src/Pyz/Client/PersistentCartShare/PersistentCartShareDependencyProvider.php b/src/Pyz/Client/PersistentCartShare/PersistentCartShareDependencyProvider.php index 3bccee052d..1e651581ba 100644 --- a/src/Pyz/Client/PersistentCartShare/PersistentCartShareDependencyProvider.php +++ b/src/Pyz/Client/PersistentCartShare/PersistentCartShareDependencyProvider.php @@ -15,7 +15,7 @@ class PersistentCartShareDependencyProvider extends SprykerPersistentCartShareDependencyProvider { /** - * @return \Spryker\Client\PersistentCartShareExtension\Dependency\Plugin\CartShareOptionPluginInterface[] + * @return array<\Spryker\Client\PersistentCartShareExtension\Dependency\Plugin\CartShareOptionPluginInterface> */ protected function getCartShareOptionPlugins(): array { diff --git a/src/Pyz/Client/Price/PriceDependencyProvider.php b/src/Pyz/Client/Price/PriceDependencyProvider.php index 74a7ef7492..72c7f20ff5 100644 --- a/src/Pyz/Client/Price/PriceDependencyProvider.php +++ b/src/Pyz/Client/Price/PriceDependencyProvider.php @@ -13,7 +13,7 @@ class PriceDependencyProvider extends SprykerPriceDependencyProvider { /** - * @return \Spryker\Client\PriceExtension\Dependency\Plugin\PriceModePostUpdatePluginInterface[] + * @return array<\Spryker\Client\PriceExtension\Dependency\Plugin\PriceModePostUpdatePluginInterface> */ protected function getPriceModePostUpdatePlugins(): array { diff --git a/src/Pyz/Client/PriceProductOfferStorage/PriceProductOfferStorageDependencyProvider.php b/src/Pyz/Client/PriceProductOfferStorage/PriceProductOfferStorageDependencyProvider.php index 3bd9d03cae..fac8bab6d9 100644 --- a/src/Pyz/Client/PriceProductOfferStorage/PriceProductOfferStorageDependencyProvider.php +++ b/src/Pyz/Client/PriceProductOfferStorage/PriceProductOfferStorageDependencyProvider.php @@ -13,7 +13,7 @@ class PriceProductOfferStorageDependencyProvider extends SprykerPriceProductOfferStorageDependencyProvider { /** - * @return \Spryker\Client\PriceProductOfferStorageExtension\Dependency\Plugin\PriceProductOfferStoragePriceExtractorPluginInterface[] + * @return array<\Spryker\Client\PriceProductOfferStorageExtension\Dependency\Plugin\PriceProductOfferStoragePriceExtractorPluginInterface> */ protected function getPriceProductOfferStoragePriceExtractorPlugins(): array { diff --git a/src/Pyz/Client/PriceProductStorage/PriceProductStorageDependencyProvider.php b/src/Pyz/Client/PriceProductStorage/PriceProductStorageDependencyProvider.php index 07aa67c43e..a47df3c4e7 100644 --- a/src/Pyz/Client/PriceProductStorage/PriceProductStorageDependencyProvider.php +++ b/src/Pyz/Client/PriceProductStorage/PriceProductStorageDependencyProvider.php @@ -18,7 +18,7 @@ class PriceProductStorageDependencyProvider extends SprykerPriceProductStorageDependencyProvider { /** - * @return \Spryker\Client\PriceProductStorageExtension\Dependency\Plugin\PriceProductStoragePriceDimensionPluginInterface[] + * @return array<\Spryker\Client\PriceProductStorageExtension\Dependency\Plugin\PriceProductStoragePriceDimensionPluginInterface> */ public function getPriceDimensionStorageReaderPlugins(): array { @@ -30,7 +30,7 @@ public function getPriceDimensionStorageReaderPlugins(): array } /** - * @return \Spryker\Client\PriceProductStorageExtension\Dependency\Plugin\PriceProductStoragePricesExtractorPluginInterface[] + * @return array<\Spryker\Client\PriceProductStorageExtension\Dependency\Plugin\PriceProductStoragePricesExtractorPluginInterface> */ protected function getPriceProductPricesExtractorPlugins(): array { @@ -40,7 +40,7 @@ protected function getPriceProductPricesExtractorPlugins(): array } /** - * @return \Spryker\Client\PriceProductStorageExtension\Dependency\Plugin\PriceProductFilterExpanderPluginInterface[] + * @return array<\Spryker\Client\PriceProductStorageExtension\Dependency\Plugin\PriceProductFilterExpanderPluginInterface> */ protected function getPriceProductFilterExpanderPlugins(): array { diff --git a/src/Pyz/Client/ProductAlternativeStorage/ProductAlternativeStorageDependencyProvider.php b/src/Pyz/Client/ProductAlternativeStorage/ProductAlternativeStorageDependencyProvider.php index eb9a0a8c24..ecbc0ab15b 100644 --- a/src/Pyz/Client/ProductAlternativeStorage/ProductAlternativeStorageDependencyProvider.php +++ b/src/Pyz/Client/ProductAlternativeStorage/ProductAlternativeStorageDependencyProvider.php @@ -14,7 +14,7 @@ class ProductAlternativeStorageDependencyProvider extends SprykerProductAlternativeStorageDependencyProvider { /** - * @return \Spryker\Client\ProductAlternativeStorageExtension\Dependency\Plugin\AlternativeProductApplicablePluginInterface[] + * @return array<\Spryker\Client\ProductAlternativeStorageExtension\Dependency\Plugin\AlternativeProductApplicablePluginInterface> */ protected function getAlternativeProductApplicableCheckPlugins(): array { diff --git a/src/Pyz/Client/ProductNew/ProductNewDependencyProvider.php b/src/Pyz/Client/ProductNew/ProductNewDependencyProvider.php index 3b4b443493..0a34f34274 100644 --- a/src/Pyz/Client/ProductNew/ProductNewDependencyProvider.php +++ b/src/Pyz/Client/ProductNew/ProductNewDependencyProvider.php @@ -24,9 +24,9 @@ class ProductNewDependencyProvider extends SprykerProductNewDependencyProvider { /** - * @return \Spryker\Client\Search\Dependency\Plugin\QueryExpanderPluginInterface[]|\Spryker\Client\SearchExtension\Dependency\Plugin\QueryExpanderPluginInterface[] + * @return array<\Spryker\Client\SearchExtension\Dependency\Plugin\QueryExpanderPluginInterface>|array<\Spryker\Client\Search\Dependency\Plugin\QueryExpanderPluginInterface> */ - protected function getNewProductsQueryExpanderPlugins() + protected function getNewProductsQueryExpanderPlugins(): array { return [ new StoreQueryExpanderPlugin(), diff --git a/src/Pyz/Client/ProductRelationStorage/ProductRelationStorageDependencyProvider.php b/src/Pyz/Client/ProductRelationStorage/ProductRelationStorageDependencyProvider.php index dc5d99872a..e73c445929 100644 --- a/src/Pyz/Client/ProductRelationStorage/ProductRelationStorageDependencyProvider.php +++ b/src/Pyz/Client/ProductRelationStorage/ProductRelationStorageDependencyProvider.php @@ -14,9 +14,9 @@ class ProductRelationStorageDependencyProvider extends SprykerProductRelationStorageDependencyProvider { /** - * @return \Spryker\Client\ProductStorage\Dependency\Plugin\ProductViewExpanderPluginInterface[] + * @return array<\Spryker\Client\ProductStorage\Dependency\Plugin\ProductViewExpanderPluginInterface> */ - protected function getRelatedProductExpanderPlugins() + protected function getRelatedProductExpanderPlugins(): array { return [ new ProductViewPriceExpanderPlugin(), diff --git a/src/Pyz/Client/ProductReview/ProductReviewConfig.php b/src/Pyz/Client/ProductReview/ProductReviewConfig.php index a3a220e2c0..1314df3a14 100644 --- a/src/Pyz/Client/ProductReview/ProductReviewConfig.php +++ b/src/Pyz/Client/ProductReview/ProductReviewConfig.php @@ -15,6 +15,7 @@ class ProductReviewConfig extends ProductReviewProductReviewConfig * @var int */ public const PAGINATION_DEFAULT_ITEMS_PER_PAGE = 3; + /** * @var array */ diff --git a/src/Pyz/Client/ProductSetPageSearch/ProductSetPageSearchDependencyProvider.php b/src/Pyz/Client/ProductSetPageSearch/ProductSetPageSearchDependencyProvider.php index ebc8449862..97c996e8fd 100644 --- a/src/Pyz/Client/ProductSetPageSearch/ProductSetPageSearchDependencyProvider.php +++ b/src/Pyz/Client/ProductSetPageSearch/ProductSetPageSearchDependencyProvider.php @@ -17,7 +17,7 @@ class ProductSetPageSearchDependencyProvider extends SprykerProductSetPageSearch /** * @return array */ - protected function getProductSetListResultFormatterPlugins() + protected function getProductSetListResultFormatterPlugins(): array { return [ new ProductSetPageSearchListResultFormatterPlugin(), @@ -27,7 +27,7 @@ protected function getProductSetListResultFormatterPlugins() /** * @return array */ - protected function getProductSetListQueryExpanderPlugins() + protected function getProductSetListQueryExpanderPlugins(): array { return [ new LocalizedQueryExpanderPlugin(), diff --git a/src/Pyz/Client/ProductStorage/ProductStorageDependencyProvider.php b/src/Pyz/Client/ProductStorage/ProductStorageDependencyProvider.php index 4bc30a4139..74e5f0bed4 100644 --- a/src/Pyz/Client/ProductStorage/ProductStorageDependencyProvider.php +++ b/src/Pyz/Client/ProductStorage/ProductStorageDependencyProvider.php @@ -26,11 +26,11 @@ class ProductStorageDependencyProvider extends SprykerProductStorageDependencyProvider { /** - * @return \Spryker\Client\ProductStorage\Dependency\Plugin\ProductViewExpanderPluginInterface[] + * @return array<\Spryker\Client\ProductStorage\Dependency\Plugin\ProductViewExpanderPluginInterface> */ - protected function getProductViewExpanderPlugins() + protected function getProductViewExpanderPlugins(): array { - /** @var \Spryker\Client\ProductStorage\Dependency\Plugin\ProductViewExpanderPluginInterface[] $plugins */ + /** @var array<\Spryker\Client\ProductStorage\Dependency\Plugin\ProductViewExpanderPluginInterface> $plugins */ $plugins = [ new ProductViewDiscontinuedOptionsExpanderPlugin(), #ProductDiscontinuedFeature new ProductVariantProductViewExpanderPlugin(), @@ -48,7 +48,7 @@ protected function getProductViewExpanderPlugins() } /** - * @return \Spryker\Client\ProductStorageExtension\Dependency\Plugin\ProductAbstractRestrictionPluginInterface[] + * @return array<\Spryker\Client\ProductStorageExtension\Dependency\Plugin\ProductAbstractRestrictionPluginInterface> */ protected function getProductAbstractRestrictionPlugins(): array { @@ -58,7 +58,7 @@ protected function getProductAbstractRestrictionPlugins(): array } /** - * @return \Spryker\Client\ProductStorageExtension\Dependency\Plugin\ProductConcreteRestrictionPluginInterface[] + * @return array<\Spryker\Client\ProductStorageExtension\Dependency\Plugin\ProductConcreteRestrictionPluginInterface> */ protected function getProductConcreteRestrictionPlugins(): array { @@ -68,7 +68,7 @@ protected function getProductConcreteRestrictionPlugins(): array } /** - * @return \Spryker\Client\ProductStorageExtension\Dependency\Plugin\ProductAbstractRestrictionFilterPluginInterface[] + * @return array<\Spryker\Client\ProductStorageExtension\Dependency\Plugin\ProductAbstractRestrictionFilterPluginInterface> */ protected function getProductAbstractRestrictionFilterPlugins(): array { @@ -78,7 +78,7 @@ protected function getProductAbstractRestrictionFilterPlugins(): array } /** - * @return \Spryker\Client\ProductStorageExtension\Dependency\Plugin\ProductConcreteRestrictionFilterPluginInterface[] + * @return array<\Spryker\Client\ProductStorageExtension\Dependency\Plugin\ProductConcreteRestrictionFilterPluginInterface> */ protected function getProductConcreteRestrictionFilterPlugins(): array { diff --git a/src/Pyz/Client/Queue/QueueDependencyProvider.php b/src/Pyz/Client/Queue/QueueDependencyProvider.php index 3fd07f0527..ebb93905f5 100644 --- a/src/Pyz/Client/Queue/QueueDependencyProvider.php +++ b/src/Pyz/Client/Queue/QueueDependencyProvider.php @@ -15,9 +15,9 @@ class QueueDependencyProvider extends BaseQueueDependencyProvider /** * @param \Spryker\Client\Kernel\Container $container * - * @return \Spryker\Client\Queue\Model\Adapter\AdapterInterface[] + * @return array<\Spryker\Client\Queue\Model\Adapter\AdapterInterface> */ - protected function createQueueAdapters(Container $container) + protected function createQueueAdapters(Container $container): array { return [ $container->getLocator()->rabbitMq()->client()->createQueueAdapter(), diff --git a/src/Pyz/Client/QuickOrder/QuickOrderDependencyProvider.php b/src/Pyz/Client/QuickOrder/QuickOrderDependencyProvider.php index b9cb36d514..b4ed0c6b7c 100644 --- a/src/Pyz/Client/QuickOrder/QuickOrderDependencyProvider.php +++ b/src/Pyz/Client/QuickOrder/QuickOrderDependencyProvider.php @@ -16,7 +16,7 @@ class QuickOrderDependencyProvider extends SprykerQuickOrderDependencyProvider { /** - * @return \Spryker\Client\QuickOrderExtension\Dependency\Plugin\ProductConcreteExpanderPluginInterface[] + * @return array<\Spryker\Client\QuickOrderExtension\Dependency\Plugin\ProductConcreteExpanderPluginInterface> */ protected function getProductConcreteExpanderPlugins(): array { @@ -26,7 +26,7 @@ protected function getProductConcreteExpanderPlugins(): array } /** - * @return \Spryker\Client\QuickOrderExtension\Dependency\Plugin\ItemValidatorPluginInterface[] + * @return array<\Spryker\Client\QuickOrderExtension\Dependency\Plugin\ItemValidatorPluginInterface> */ protected function getQuickOrderBuildItemValidatorPlugins(): array { diff --git a/src/Pyz/Client/Quote/QuoteDependencyProvider.php b/src/Pyz/Client/Quote/QuoteDependencyProvider.php index d31f2bdab8..318b77efba 100644 --- a/src/Pyz/Client/Quote/QuoteDependencyProvider.php +++ b/src/Pyz/Client/Quote/QuoteDependencyProvider.php @@ -19,9 +19,9 @@ class QuoteDependencyProvider extends BaseQuoteDependencyProvider /** * @param \Spryker\Client\Kernel\Container $container * - * @return \Spryker\Client\Quote\Dependency\Plugin\QuoteTransferExpanderPluginInterface[] + * @return array<\Spryker\Client\Quote\Dependency\Plugin\QuoteTransferExpanderPluginInterface> */ - protected function getQuoteTransferExpanderPlugins(Container $container) + protected function getQuoteTransferExpanderPlugins(Container $container): array { return [ new NameQuoteTransferExpanderPlugin(), #MultiCartFeature @@ -31,7 +31,7 @@ protected function getQuoteTransferExpanderPlugins(Container $container) } /** - * @return \Spryker\Client\QuoteExtension\Dependency\Plugin\DatabaseStrategyPreCheckPluginInterface[] + * @return array<\Spryker\Client\QuoteExtension\Dependency\Plugin\DatabaseStrategyPreCheckPluginInterface> */ protected function getDatabaseStrategyPreCheckPlugins(): array { diff --git a/src/Pyz/Client/QuoteApproval/QuoteApprovalDependencyProvider.php b/src/Pyz/Client/QuoteApproval/QuoteApprovalDependencyProvider.php index 523392e3e3..50c53d26a2 100644 --- a/src/Pyz/Client/QuoteApproval/QuoteApprovalDependencyProvider.php +++ b/src/Pyz/Client/QuoteApproval/QuoteApprovalDependencyProvider.php @@ -13,7 +13,7 @@ class QuoteApprovalDependencyProvider extends SprykerQuoteApprovalDependencyProvider { /** - * @return \Spryker\Client\QuoteApprovalExtension\Dependency\Plugin\QuoteApplicableForApprovalCheckPluginInterface[] + * @return array<\Spryker\Client\QuoteApprovalExtension\Dependency\Plugin\QuoteApplicableForApprovalCheckPluginInterface> */ protected function getQuoteApplicableForApprovalCheckPlugins(): array { diff --git a/src/Pyz/Client/QuoteRequest/QuoteRequestDependencyProvider.php b/src/Pyz/Client/QuoteRequest/QuoteRequestDependencyProvider.php index 0d4980b533..f0f2c96dba 100644 --- a/src/Pyz/Client/QuoteRequest/QuoteRequestDependencyProvider.php +++ b/src/Pyz/Client/QuoteRequest/QuoteRequestDependencyProvider.php @@ -14,7 +14,7 @@ class QuoteRequestDependencyProvider extends SprykerQuoteRequestDependencyProvider { /** - * @return \Spryker\Client\QuoteRequestExtension\Dependency\Plugin\QuoteRequestQuoteCheckPluginInterface[] + * @return array<\Spryker\Client\QuoteRequestExtension\Dependency\Plugin\QuoteRequestQuoteCheckPluginInterface> */ protected function getQuoteRequestQuoteCheckPlugins(): array { diff --git a/src/Pyz/Client/ResourceShare/ResourceShareDependencyProvider.php b/src/Pyz/Client/ResourceShare/ResourceShareDependencyProvider.php index e915acaa29..0152f23221 100644 --- a/src/Pyz/Client/ResourceShare/ResourceShareDependencyProvider.php +++ b/src/Pyz/Client/ResourceShare/ResourceShareDependencyProvider.php @@ -14,7 +14,7 @@ class ResourceShareDependencyProvider extends SprykerResourceShareDependencyProvider { /** - * @return \Spryker\Client\ResourceShareExtension\Dependency\Plugin\ResourceShareClientActivatorStrategyPluginInterface[] + * @return array<\Spryker\Client\ResourceShareExtension\Dependency\Plugin\ResourceShareClientActivatorStrategyPluginInterface> */ protected function getBeforeZedResourceShareActivatorStrategyPlugins(): array { @@ -24,7 +24,7 @@ protected function getBeforeZedResourceShareActivatorStrategyPlugins(): array } /** - * @return \Spryker\Client\ResourceShareExtension\Dependency\Plugin\ResourceShareClientActivatorStrategyPluginInterface[] + * @return array<\Spryker\Client\ResourceShareExtension\Dependency\Plugin\ResourceShareClientActivatorStrategyPluginInterface> */ protected function getAfterZedResourceShareActivatorStrategyPlugins(): array { diff --git a/src/Pyz/Client/SalesReturnSearch/SalesReturnSearchDependencyProvider.php b/src/Pyz/Client/SalesReturnSearch/SalesReturnSearchDependencyProvider.php index ac3f30507a..bb90c20fc2 100644 --- a/src/Pyz/Client/SalesReturnSearch/SalesReturnSearchDependencyProvider.php +++ b/src/Pyz/Client/SalesReturnSearch/SalesReturnSearchDependencyProvider.php @@ -15,7 +15,7 @@ class SalesReturnSearchDependencyProvider extends SprykerSalesReturnSearchDependencyProvider { /** - * @return \Spryker\Client\SearchExtension\Dependency\Plugin\ResultFormatterPluginInterface[] + * @return array<\Spryker\Client\SearchExtension\Dependency\Plugin\ResultFormatterPluginInterface> */ protected function getReturnReasonSearchResultFormatterPlugins(): array { @@ -25,7 +25,7 @@ protected function getReturnReasonSearchResultFormatterPlugins(): array } /** - * @return \Spryker\Client\SearchExtension\Dependency\Plugin\QueryExpanderPluginInterface[] + * @return array<\Spryker\Client\SearchExtension\Dependency\Plugin\QueryExpanderPluginInterface> */ protected function getReturnReasonSearchQueryExpanderPlugins(): array { diff --git a/src/Pyz/Client/Search/SearchDependencyProvider.php b/src/Pyz/Client/Search/SearchDependencyProvider.php index 05356e5e45..c74c74550e 100644 --- a/src/Pyz/Client/Search/SearchDependencyProvider.php +++ b/src/Pyz/Client/Search/SearchDependencyProvider.php @@ -12,6 +12,7 @@ use Spryker\Client\MerchantProductOfferSearch\Plugin\Search\MerchantNameSearchConfigExpanderPlugin; use Spryker\Client\MerchantProductSearch\Plugin\Search\MerchantProductMerchantNameSearchConfigExpanderPlugin; use Spryker\Client\ProductSearchConfigStorage\Plugin\Config\ProductSearchConfigExpanderPlugin; +use Spryker\Client\Search\Dependency\Plugin\SearchConfigBuilderInterface; use Spryker\Client\Search\SearchDependencyProvider as SprykerSearchDependencyProvider; use Spryker\Client\SearchElasticsearch\Plugin\ElasticsearchSearchAdapterPlugin; use Spryker\Client\SearchElasticsearch\Plugin\ElasticsearchSearchContextExpanderPlugin; @@ -23,7 +24,7 @@ class SearchDependencyProvider extends SprykerSearchDependencyProvider * * @return \Spryker\Client\Search\Dependency\Plugin\SearchConfigBuilderInterface */ - protected function createSearchConfigBuilderPlugin(Container $container) + protected function createSearchConfigBuilderPlugin(Container $container): SearchConfigBuilderInterface { return new CatalogSearchConfigBuilder(); } @@ -31,7 +32,7 @@ protected function createSearchConfigBuilderPlugin(Container $container) /** * @param \Spryker\Client\Kernel\Container $container * - * @return \Spryker\Client\SearchExtension\Dependency\Plugin\SearchConfigExpanderPluginInterface[] + * @return array<\Spryker\Client\SearchExtension\Dependency\Plugin\SearchConfigExpanderPluginInterface> */ protected function createSearchConfigExpanderPlugins(Container $container): array { @@ -45,7 +46,7 @@ protected function createSearchConfigExpanderPlugins(Container $container): arra } /** - * @return \Spryker\Client\SearchExtension\Dependency\Plugin\SearchAdapterPluginInterface[] + * @return array<\Spryker\Client\SearchExtension\Dependency\Plugin\SearchAdapterPluginInterface> */ protected function getClientAdapterPlugins(): array { @@ -55,7 +56,7 @@ protected function getClientAdapterPlugins(): array } /** - * @return \Spryker\Client\SearchExtension\Dependency\Plugin\SearchContextExpanderPluginInterface[] + * @return array<\Spryker\Client\SearchExtension\Dependency\Plugin\SearchContextExpanderPluginInterface> */ protected function getSearchContextExpanderPlugins(): array { diff --git a/src/Pyz/Client/SearchElasticsearch/SearchElasticsearchDependencyProvider.php b/src/Pyz/Client/SearchElasticsearch/SearchElasticsearchDependencyProvider.php index a0cc83da4f..233d20a443 100644 --- a/src/Pyz/Client/SearchElasticsearch/SearchElasticsearchDependencyProvider.php +++ b/src/Pyz/Client/SearchElasticsearch/SearchElasticsearchDependencyProvider.php @@ -19,7 +19,7 @@ class SearchElasticsearchDependencyProvider extends SprykerSearchElasticsearchDe /** * @param \Spryker\Client\Kernel\Container $container * - * @return \Spryker\Client\SearchExtension\Dependency\Plugin\SearchConfigBuilderPluginInterface[] + * @return array<\Spryker\Client\SearchExtension\Dependency\Plugin\SearchConfigBuilderPluginInterface> */ protected function getSearchConfigBuilderPlugins(Container $container): array { @@ -31,7 +31,7 @@ protected function getSearchConfigBuilderPlugins(Container $container): array /** * @param \Spryker\Client\Kernel\Container $container * - * @return \Spryker\Client\SearchExtension\Dependency\Plugin\SearchConfigExpanderPluginInterface[] + * @return array<\Spryker\Client\SearchExtension\Dependency\Plugin\SearchConfigExpanderPluginInterface> */ protected function getSearchConfigExpanderPlugins(Container $container): array { diff --git a/src/Pyz/Client/ShoppingList/ShoppingListDependencyProvider.php b/src/Pyz/Client/ShoppingList/ShoppingListDependencyProvider.php index ef97de5bc8..117fca8261 100644 --- a/src/Pyz/Client/ShoppingList/ShoppingListDependencyProvider.php +++ b/src/Pyz/Client/ShoppingList/ShoppingListDependencyProvider.php @@ -22,7 +22,7 @@ class ShoppingListDependencyProvider extends SprykerShoppingListDependencyProvider { /** - * @return \Spryker\Client\ShoppingListExtension\Dependency\Plugin\ShoppingListItemMapperPluginInterface[] + * @return array<\Spryker\Client\ShoppingListExtension\Dependency\Plugin\ShoppingListItemMapperPluginInterface> */ protected function getAddItemShoppingListItemMapperPlugins(): array { @@ -34,7 +34,7 @@ protected function getAddItemShoppingListItemMapperPlugins(): array } /** - * @return \Spryker\Client\ShoppingListExtension\Dependency\Plugin\ShoppingListItemToItemMapperPluginInterface[] + * @return array<\Spryker\Client\ShoppingListExtension\Dependency\Plugin\ShoppingListItemToItemMapperPluginInterface> */ protected function getShoppingListItemToItemMapperPlugins(): array { @@ -48,7 +48,7 @@ protected function getShoppingListItemToItemMapperPlugins(): array } /** - * @return \Spryker\Client\ShoppingListExtension\Dependency\Plugin\QuoteItemToItemMapperPluginInterface[] + * @return array<\Spryker\Client\ShoppingListExtension\Dependency\Plugin\QuoteItemToItemMapperPluginInterface> */ protected function getQuoteItemToItemMapperPlugins(): array { diff --git a/src/Pyz/Client/ShoppingListSession/ShoppingListSessionDependencyProvider.php b/src/Pyz/Client/ShoppingListSession/ShoppingListSessionDependencyProvider.php index 378b2fdc59..50020fec1e 100644 --- a/src/Pyz/Client/ShoppingListSession/ShoppingListSessionDependencyProvider.php +++ b/src/Pyz/Client/ShoppingListSession/ShoppingListSessionDependencyProvider.php @@ -13,7 +13,7 @@ class ShoppingListSessionDependencyProvider extends SprykerShoppingListSessionDependencyProvider { /** - * @return \Spryker\Client\ShoppingListSessionExtension\Dependency\Plugin\ShoppingListCollectionOutdatedPluginInterface[] + * @return array<\Spryker\Client\ShoppingListSessionExtension\Dependency\Plugin\ShoppingListCollectionOutdatedPluginInterface> */ protected function getShoppingListCollectionOutdatedPlugins(): array { diff --git a/src/Pyz/Client/UrlStorage/UrlStorageDependencyProvider.php b/src/Pyz/Client/UrlStorage/UrlStorageDependencyProvider.php index a446ffe887..b5fe25c388 100644 --- a/src/Pyz/Client/UrlStorage/UrlStorageDependencyProvider.php +++ b/src/Pyz/Client/UrlStorage/UrlStorageDependencyProvider.php @@ -18,9 +18,9 @@ class UrlStorageDependencyProvider extends SprykerUrlDependencyProvider { /** - * @return \Spryker\Client\UrlStorage\Dependency\Plugin\UrlStorageResourceMapperPluginInterface[] + * @return array<\Spryker\Client\UrlStorage\Dependency\Plugin\UrlStorageResourceMapperPluginInterface> */ - protected function getUrlStorageResourceMapperPlugins() + protected function getUrlStorageResourceMapperPlugins(): array { return [ new UrlStorageCmsPageMapperPlugin(), diff --git a/src/Pyz/Client/ZedRequest/ZedRequestDependencyProvider.php b/src/Pyz/Client/ZedRequest/ZedRequestDependencyProvider.php index 84ea4452ed..d5f947db21 100644 --- a/src/Pyz/Client/ZedRequest/ZedRequestDependencyProvider.php +++ b/src/Pyz/Client/ZedRequest/ZedRequestDependencyProvider.php @@ -16,9 +16,9 @@ class ZedRequestDependencyProvider extends SprykerZedRequestDependencyProvider { /** - * @return \Spryker\Client\ZedRequest\Dependency\Plugin\MetaDataProviderPluginInterface[] + * @return array<\Spryker\Client\ZedRequest\Dependency\Plugin\MetaDataProviderPluginInterface> */ - protected function getMetaDataProviderPlugins() + protected function getMetaDataProviderPlugins(): array { return [ 'currency' => new ZedRequestMetaDataProviderPlugin(), @@ -26,7 +26,7 @@ protected function getMetaDataProviderPlugins() } /** - * @return \Spryker\Client\ZedRequestExtension\Dependency\Plugin\HeaderExpanderPluginInterface[] + * @return array<\Spryker\Client\ZedRequestExtension\Dependency\Plugin\HeaderExpanderPluginInterface> */ protected function getHeaderExpanderPlugins(): array { diff --git a/src/Pyz/Glue/AuthRestApi/AuthRestApiDependencyProvider.php b/src/Pyz/Glue/AuthRestApi/AuthRestApiDependencyProvider.php index 017b14d00a..33b4329d4e 100644 --- a/src/Pyz/Glue/AuthRestApi/AuthRestApiDependencyProvider.php +++ b/src/Pyz/Glue/AuthRestApi/AuthRestApiDependencyProvider.php @@ -17,7 +17,7 @@ class AuthRestApiDependencyProvider extends SprykerAuthRestApiDependencyProvider { /** - * @return \Spryker\Glue\AuthRestApiExtension\Dependency\Plugin\RestUserMapperPluginInterface[] + * @return array<\Spryker\Glue\AuthRestApiExtension\Dependency\Plugin\RestUserMapperPluginInterface> */ protected function getRestUserExpanderPlugins(): array { diff --git a/src/Pyz/Glue/CartCodesRestApi/CartCodesRestApiDependencyProvider.php b/src/Pyz/Glue/CartCodesRestApi/CartCodesRestApiDependencyProvider.php index 12ebf926b5..47e6483d80 100644 --- a/src/Pyz/Glue/CartCodesRestApi/CartCodesRestApiDependencyProvider.php +++ b/src/Pyz/Glue/CartCodesRestApi/CartCodesRestApiDependencyProvider.php @@ -13,7 +13,7 @@ class CartCodesRestApiDependencyProvider extends SprykerCartCodesRestApiDependencyProvider { /** - * @return \Spryker\Glue\CartCodesRestApiExtension\Dependency\Plugin\DiscountMapperPluginInterface[] + * @return array<\Spryker\Glue\CartCodesRestApiExtension\Dependency\Plugin\DiscountMapperPluginInterface> */ protected function getDiscountMapperPlugins(): array { diff --git a/src/Pyz/Glue/CartsRestApi/CartsRestApiConfig.php b/src/Pyz/Glue/CartsRestApi/CartsRestApiConfig.php index 6448e5a143..a0b9fab895 100644 --- a/src/Pyz/Glue/CartsRestApi/CartsRestApiConfig.php +++ b/src/Pyz/Glue/CartsRestApi/CartsRestApiConfig.php @@ -15,6 +15,7 @@ class CartsRestApiConfig extends SprykerCartsRestApiConfig * @var bool */ protected const ALLOWED_CART_ITEM_EAGER_RELATIONSHIP = false; + /** * @var bool */ diff --git a/src/Pyz/Glue/CartsRestApi/CartsRestApiDependencyProvider.php b/src/Pyz/Glue/CartsRestApi/CartsRestApiDependencyProvider.php index 01fd00584a..4cf60cd196 100644 --- a/src/Pyz/Glue/CartsRestApi/CartsRestApiDependencyProvider.php +++ b/src/Pyz/Glue/CartsRestApi/CartsRestApiDependencyProvider.php @@ -25,7 +25,7 @@ class CartsRestApiDependencyProvider extends SprykerCartsRestApiDependencyProvider { /** - * @return \Spryker\Glue\CartsRestApiExtension\Dependency\Plugin\CustomerExpanderPluginInterface[] + * @return array<\Spryker\Glue\CartsRestApiExtension\Dependency\Plugin\CustomerExpanderPluginInterface> */ protected function getCustomerExpanderPlugins(): array { @@ -35,7 +35,7 @@ protected function getCustomerExpanderPlugins(): array } /** - * @return \Spryker\Glue\CartsRestApiExtension\Dependency\Plugin\RestCartItemsAttributesMapperPluginInterface[] + * @return array<\Spryker\Glue\CartsRestApiExtension\Dependency\Plugin\RestCartItemsAttributesMapperPluginInterface> */ protected function getRestCartItemsAttributesMapperPlugins(): array { @@ -48,7 +48,7 @@ protected function getRestCartItemsAttributesMapperPlugins(): array } /** - * @return \Spryker\Glue\CartsRestApiExtension\Dependency\Plugin\CartItemExpanderPluginInterface[] + * @return array<\Spryker\Glue\CartsRestApiExtension\Dependency\Plugin\CartItemExpanderPluginInterface> */ protected function getCartItemExpanderPlugins(): array { @@ -63,7 +63,7 @@ protected function getCartItemExpanderPlugins(): array } /** - * @return \Spryker\Glue\CartsRestApiExtension\Dependency\Plugin\CartItemFilterPluginInterface[] + * @return array<\Spryker\Glue\CartsRestApiExtension\Dependency\Plugin\CartItemFilterPluginInterface> */ protected function getCartItemFilterPlugins(): array { diff --git a/src/Pyz/Glue/CheckoutRestApi/CheckoutRestApiDependencyProvider.php b/src/Pyz/Glue/CheckoutRestApi/CheckoutRestApiDependencyProvider.php index bd4317f9cb..e088f1dddc 100644 --- a/src/Pyz/Glue/CheckoutRestApi/CheckoutRestApiDependencyProvider.php +++ b/src/Pyz/Glue/CheckoutRestApi/CheckoutRestApiDependencyProvider.php @@ -18,7 +18,7 @@ class CheckoutRestApiDependencyProvider extends SprykerCheckoutRestApiDependencyProvider { /** - * @return \Spryker\Glue\CheckoutRestApiExtension\Dependency\Plugin\CheckoutRequestAttributesValidatorPluginInterface[] + * @return array<\Spryker\Glue\CheckoutRestApiExtension\Dependency\Plugin\CheckoutRequestAttributesValidatorPluginInterface> */ protected function getCheckoutRequestAttributesValidatorPlugins(): array { @@ -28,7 +28,7 @@ protected function getCheckoutRequestAttributesValidatorPlugins(): array } /** - * @return \Spryker\Glue\CheckoutRestApiExtension\Dependency\Plugin\CheckoutRequestValidatorPluginInterface[] + * @return array<\Spryker\Glue\CheckoutRestApiExtension\Dependency\Plugin\CheckoutRequestValidatorPluginInterface> */ protected function getCheckoutRequestValidatorPlugins(): array { @@ -39,7 +39,7 @@ protected function getCheckoutRequestValidatorPlugins(): array } /** - * @return \Spryker\Glue\CheckoutRestApiExtension\Dependency\Plugin\CheckoutDataResponseMapperPluginInterface[] + * @return array<\Spryker\Glue\CheckoutRestApiExtension\Dependency\Plugin\CheckoutDataResponseMapperPluginInterface> */ protected function getCheckoutDataResponseMapperPlugins(): array { @@ -50,7 +50,7 @@ protected function getCheckoutDataResponseMapperPlugins(): array } /** - * @return \Spryker\Glue\CheckoutRestApiExtension\Dependency\Plugin\CheckoutRequestExpanderPluginInterface[] + * @return array<\Spryker\Glue\CheckoutRestApiExtension\Dependency\Plugin\CheckoutRequestExpanderPluginInterface> */ protected function getCheckoutRequestExpanderPlugins(): array { diff --git a/src/Pyz/Glue/CompanyBusinessUnitsRestApi/CompanyBusinessUnitsRestApiDependencyProvider.php b/src/Pyz/Glue/CompanyBusinessUnitsRestApi/CompanyBusinessUnitsRestApiDependencyProvider.php index 526e37fe89..1be2a3001c 100644 --- a/src/Pyz/Glue/CompanyBusinessUnitsRestApi/CompanyBusinessUnitsRestApiDependencyProvider.php +++ b/src/Pyz/Glue/CompanyBusinessUnitsRestApi/CompanyBusinessUnitsRestApiDependencyProvider.php @@ -13,7 +13,7 @@ class CompanyBusinessUnitsRestApiDependencyProvider extends SprykerCompanyBusinessUnitsRestApiDependencyProvider { /** - * @return \Spryker\Glue\CompanyBusinessUnitsRestApiExtension\Dependency\Plugin\CompanyBusinessUnitMapperPluginInterface[] + * @return array<\Spryker\Glue\CompanyBusinessUnitsRestApiExtension\Dependency\Plugin\CompanyBusinessUnitMapperPluginInterface> */ protected function getCompanyBusinessUnitMapperPlugins(): array { diff --git a/src/Pyz/Glue/CustomersRestApi/CustomersRestApiDependencyProvider.php b/src/Pyz/Glue/CustomersRestApi/CustomersRestApiDependencyProvider.php index 291cc515e4..2d2ca66d5a 100644 --- a/src/Pyz/Glue/CustomersRestApi/CustomersRestApiDependencyProvider.php +++ b/src/Pyz/Glue/CustomersRestApi/CustomersRestApiDependencyProvider.php @@ -15,7 +15,7 @@ class CustomersRestApiDependencyProvider extends SprykerCustomersRestApiDependencyProvider { /** - * @return \Spryker\Glue\CustomersRestApiExtension\Dependency\Plugin\CustomerPostCreatePluginInterface[] + * @return array<\Spryker\Glue\CustomersRestApiExtension\Dependency\Plugin\CustomerPostCreatePluginInterface> */ protected function getCustomerPostCreatePlugins(): array { @@ -25,7 +25,7 @@ protected function getCustomerPostCreatePlugins(): array } /** - * @return \Spryker\Glue\CustomersRestApiExtension\Dependency\Plugin\CustomerExpanderPluginInterface[] + * @return array<\Spryker\Glue\CustomersRestApiExtension\Dependency\Plugin\CustomerExpanderPluginInterface> */ protected function getCustomerExpanderPlugins(): array { diff --git a/src/Pyz/Glue/EntityTagsRestApi/EntityTagsRestApiConfig.php b/src/Pyz/Glue/EntityTagsRestApi/EntityTagsRestApiConfig.php index e14c2cd1ac..bf529be590 100644 --- a/src/Pyz/Glue/EntityTagsRestApi/EntityTagsRestApiConfig.php +++ b/src/Pyz/Glue/EntityTagsRestApi/EntityTagsRestApiConfig.php @@ -13,13 +13,13 @@ class EntityTagsRestApiConfig extends SprykerEntityTagsRestApiConfig { /** - * @return string[] + * @return array */ public function getEntityTagRequiredResources(): array { return array_merge( parent::getEntityTagRequiredResources(), - [CartsRestApiConfig::RESOURCE_CARTS] + [CartsRestApiConfig::RESOURCE_CARTS], ); } } diff --git a/src/Pyz/Glue/EventDispatcher/EventDispatcherDependencyProvider.php b/src/Pyz/Glue/EventDispatcher/EventDispatcherDependencyProvider.php index e2708a6453..8fc49c3c96 100644 --- a/src/Pyz/Glue/EventDispatcher/EventDispatcherDependencyProvider.php +++ b/src/Pyz/Glue/EventDispatcher/EventDispatcherDependencyProvider.php @@ -19,7 +19,7 @@ class EventDispatcherDependencyProvider extends SprykerEventDispatcherDependencyProvider { /** - * @return \Spryker\Shared\EventDispatcherExtension\Dependency\Plugin\EventDispatcherPluginInterface[] + * @return array<\Spryker\Shared\EventDispatcherExtension\Dependency\Plugin\EventDispatcherPluginInterface> */ protected function getEventDispatcherPlugins(): array { diff --git a/src/Pyz/Glue/GlueApplication/GlueApplicationConfig.php b/src/Pyz/Glue/GlueApplication/GlueApplicationConfig.php index a1d734b42a..efb51316ad 100644 --- a/src/Pyz/Glue/GlueApplication/GlueApplicationConfig.php +++ b/src/Pyz/Glue/GlueApplication/GlueApplicationConfig.php @@ -18,13 +18,13 @@ class GlueApplicationConfig extends SprykerGlueApplicationConfig public const VALIDATE_REQUEST_HEADERS = false; /** - * @return string[] + * @return array */ public function getCorsAllowedHeaders(): array { return array_merge( parent::getCorsAllowedHeaders(), - [CartsRestApiConfig::HEADER_ANONYMOUS_CUSTOMER_UNIQUE_ID] + [CartsRestApiConfig::HEADER_ANONYMOUS_CUSTOMER_UNIQUE_ID], ); } diff --git a/src/Pyz/Glue/GlueApplication/GlueApplicationDependencyProvider.php b/src/Pyz/Glue/GlueApplication/GlueApplicationDependencyProvider.php index 092bc52a2c..3a3a145e42 100644 --- a/src/Pyz/Glue/GlueApplication/GlueApplicationDependencyProvider.php +++ b/src/Pyz/Glue/GlueApplication/GlueApplicationDependencyProvider.php @@ -220,7 +220,7 @@ class GlueApplicationDependencyProvider extends SprykerGlueApplicationDependencyProvider { /** - * @return \Spryker\Glue\GlueApplicationExtension\Dependency\Plugin\ResourceRoutePluginInterface[] + * @return array<\Spryker\Glue\GlueApplicationExtension\Dependency\Plugin\ResourceRoutePluginInterface> */ protected function getResourceRoutePlugins(): array { @@ -309,7 +309,7 @@ protected function getResourceRoutePlugins(): array /** * {@inheritDoc} * - * @return \Spryker\Glue\GlueApplicationExtension\Dependency\Plugin\RestUserValidatorPluginInterface[] + * @return array<\Spryker\Glue\GlueApplicationExtension\Dependency\Plugin\RestUserValidatorPluginInterface> */ protected function getRestUserValidatorPlugins(): array { @@ -322,7 +322,7 @@ protected function getRestUserValidatorPlugins(): array /** * {@inheritDoc} * - * @return \Spryker\Glue\GlueApplicationExtension\Dependency\Plugin\ValidateHttpRequestPluginInterface[] + * @return array<\Spryker\Glue\GlueApplicationExtension\Dependency\Plugin\ValidateHttpRequestPluginInterface> */ protected function getValidateHttpRequestPlugins(): array { @@ -336,7 +336,7 @@ protected function getValidateHttpRequestPlugins(): array /** * {@inheritDoc} * - * @return \Spryker\Glue\GlueApplicationExtension\Dependency\Plugin\FormattedControllerBeforeActionPluginInterface[] + * @return array<\Spryker\Glue\GlueApplicationExtension\Dependency\Plugin\FormattedControllerBeforeActionPluginInterface> */ protected function getFormattedControllerBeforeActionTerminatePlugins(): array { @@ -348,7 +348,7 @@ protected function getFormattedControllerBeforeActionTerminatePlugins(): array /** * {@inheritDoc} * - * @return \Spryker\Glue\GlueApplicationExtension\Dependency\Plugin\FormatRequestPluginInterface[] + * @return array<\Spryker\Glue\GlueApplicationExtension\Dependency\Plugin\FormatRequestPluginInterface> */ protected function getFormatRequestPlugins(): array { @@ -358,7 +358,7 @@ protected function getFormatRequestPlugins(): array } /** - * @return \Spryker\Glue\GlueApplicationExtension\Dependency\Plugin\RestRequestValidatorPluginInterface[] + * @return array<\Spryker\Glue\GlueApplicationExtension\Dependency\Plugin\RestRequestValidatorPluginInterface> */ protected function getRestRequestValidatorPlugins(): array { @@ -379,7 +379,7 @@ protected function getRestRequestValidatorPlugins(): array } /** - * @return \Spryker\Glue\GlueApplicationExtension\Dependency\Plugin\ControllerAfterActionPluginInterface[] + * @return array<\Spryker\Glue\GlueApplicationExtension\Dependency\Plugin\ControllerAfterActionPluginInterface> */ protected function getControllerAfterActionPlugins(): array { @@ -392,7 +392,7 @@ protected function getControllerAfterActionPlugins(): array /** * {@inheritDoc} * - * @return \Spryker\Glue\GlueApplicationExtension\Dependency\Plugin\ValidateRestRequestPluginInterface[] + * @return array<\Spryker\Glue\GlueApplicationExtension\Dependency\Plugin\ValidateRestRequestPluginInterface> */ protected function getValidateRestRequestPlugins(): array { @@ -402,7 +402,7 @@ protected function getValidateRestRequestPlugins(): array } /** - * @return \Spryker\Glue\GlueApplicationExtension\Dependency\Plugin\FormatResponseHeadersPluginInterface[] + * @return array<\Spryker\Glue\GlueApplicationExtension\Dependency\Plugin\FormatResponseHeadersPluginInterface> */ protected function getFormatResponseHeadersPlugins(): array { @@ -413,7 +413,7 @@ protected function getFormatResponseHeadersPlugins(): array } /** - * @return \Spryker\Glue\GlueApplicationExtension\Dependency\Plugin\ControllerBeforeActionPluginInterface[] + * @return array<\Spryker\Glue\GlueApplicationExtension\Dependency\Plugin\ControllerBeforeActionPluginInterface> */ protected function getControllerBeforeActionPlugins(): array { @@ -432,179 +432,179 @@ protected function getControllerBeforeActionPlugins(): array * @return \Spryker\Glue\GlueApplicationExtension\Dependency\Plugin\ResourceRelationshipCollectionInterface */ protected function getResourceRelationshipPlugins( - ResourceRelationshipCollectionInterface $resourceRelationshipCollection + ResourceRelationshipCollectionInterface $resourceRelationshipCollection, ): ResourceRelationshipCollectionInterface { $resourceRelationshipCollection->addRelationship( CustomersRestApiConfig::RESOURCE_CUSTOMERS, - new CustomersToAddressesRelationshipPlugin() + new CustomersToAddressesRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( CompanyUsersRestApiConfig::RESOURCE_COMPANY_USERS, - new CompanyByCompanyUserResourceRelationshipPlugin() + new CompanyByCompanyUserResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( CompanyUsersRestApiConfig::RESOURCE_COMPANY_USERS, - new CompanyBusinessUnitByCompanyUserResourceRelationshipPlugin() + new CompanyBusinessUnitByCompanyUserResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( CompanyUsersRestApiConfig::RESOURCE_COMPANY_USERS, - new CompanyRoleByCompanyUserResourceRelationshipPlugin() + new CompanyRoleByCompanyUserResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( CompanyUsersRestApiConfig::RESOURCE_COMPANY_USERS, - new CustomerByCompanyUserResourceRelationshipPlugin() + new CustomerByCompanyUserResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( ProductsRestApiConfig::RESOURCE_ABSTRACT_PRODUCTS, - new AbstractProductPricesByResourceIdResourceRelationshipPlugin() + new AbstractProductPricesByResourceIdResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( ProductsRestApiConfig::RESOURCE_CONCRETE_PRODUCTS, - new ConcreteProductPricesByResourceIdResourceRelationshipPlugin() + new ConcreteProductPricesByResourceIdResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( ProductsRestApiConfig::RESOURCE_ABSTRACT_PRODUCTS, - new AbstractProductsProductImageSetsResourceRelationshipPlugin() + new AbstractProductsProductImageSetsResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( ProductsRestApiConfig::RESOURCE_ABSTRACT_PRODUCTS, - new ConcreteProductsByProductConcreteIdsResourceRelationshipPlugin() + new ConcreteProductsByProductConcreteIdsResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( ProductsRestApiConfig::RESOURCE_CONCRETE_PRODUCTS, - new ConcreteProductsProductImageSetsResourceRelationshipPlugin() + new ConcreteProductsProductImageSetsResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( ProductsRestApiConfig::RESOURCE_ABSTRACT_PRODUCTS, - new AbstractProductAvailabilitiesByResourceIdResourceRelationshipPlugin() + new AbstractProductAvailabilitiesByResourceIdResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( ProductsRestApiConfig::RESOURCE_CONCRETE_PRODUCTS, - new ConcreteProductAvailabilitiesByResourceIdResourceRelationshipPlugin() + new ConcreteProductAvailabilitiesByResourceIdResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( CartsRestApiConfig::RESOURCE_CART_ITEMS, - new ConcreteProductBySkuResourceRelationshipPlugin() + new ConcreteProductBySkuResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( CatalogSearchRestApiConfig::RESOURCE_CATALOG_SEARCH, - new CatalogSearchAbstractProductsResourceRelationshipPlugin() + new CatalogSearchAbstractProductsResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( CatalogSearchRestApiConfig::RESOURCE_CATALOG_SEARCH_SUGGESTIONS, - new CatalogSearchSuggestionsAbstractProductsResourceRelationshipPlugin() + new CatalogSearchSuggestionsAbstractProductsResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( ProductsRestApiConfig::RESOURCE_ABSTRACT_PRODUCTS, - new ProductLabelsRelationshipByResourceIdPlugin() + new ProductLabelsRelationshipByResourceIdPlugin(), ); $resourceRelationshipCollection->addRelationship( NavigationsRestApiConfig::RESOURCE_NAVIGATIONS, - new CategoryNodeByResourceIdResourceRelationshipPlugin() + new CategoryNodeByResourceIdResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( ProductsRestApiConfig::RESOURCE_CONCRETE_PRODUCTS, - new ProductLabelByProductConcreteSkuResourceRelationshipPlugin() + new ProductLabelByProductConcreteSkuResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( CheckoutRestApiConfig::RESOURCE_CHECKOUT, - new OrderRelationshipByOrderReferencePlugin() + new OrderRelationshipByOrderReferencePlugin(), ); $resourceRelationshipCollection->addRelationship( CompanyRolesRestApiConfig::RESOURCE_COMPANY_ROLES, - new CompanyByCompanyRoleResourceRelationshipPlugin() + new CompanyByCompanyRoleResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( CompanyBusinessUnitsRestApiConfig::RESOURCE_COMPANY_BUSINESS_UNITS, - new CompanyByCompanyBusinessUnitResourceRelationshipPlugin() + new CompanyByCompanyBusinessUnitResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( CompanyBusinessUnitsRestApiConfig::RESOURCE_COMPANY_BUSINESS_UNITS, - new CompanyBusinessUnitAddressesByCompanyBusinessUnitResourceRelationshipPlugin() + new CompanyBusinessUnitAddressesByCompanyBusinessUnitResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( ProductsRestApiConfig::RESOURCE_ABSTRACT_PRODUCTS, - new ProductTaxSetByProductAbstractSkuResourceRelationshipPlugin() + new ProductTaxSetByProductAbstractSkuResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( CartsRestApiConfig::RESOURCE_CARTS, - new CartPermissionGroupByQuoteResourceRelationshipPlugin() + new CartPermissionGroupByQuoteResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( CartsRestApiConfig::RESOURCE_CARTS, - new SharedCartByCartIdResourceRelationshipPlugin() + new SharedCartByCartIdResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( SharedCartsRestApiConfig::RESOURCE_SHARED_CARTS, - new CartPermissionGroupByShareDetailResourceRelationshipPlugin() + new CartPermissionGroupByShareDetailResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( SharedCartsRestApiConfig::RESOURCE_SHARED_CARTS, - new CompanyUserByShareDetailResourceRelationshipPlugin() + new CompanyUserByShareDetailResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( ProductsRestApiConfig::RESOURCE_ABSTRACT_PRODUCTS, - new ProductOptionsByProductAbstractSkuResourceRelationshipPlugin() + new ProductOptionsByProductAbstractSkuResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( ProductsRestApiConfig::RESOURCE_CONCRETE_PRODUCTS, - new ProductOptionsByProductConcreteSkuResourceRelationshipPlugin() + new ProductOptionsByProductConcreteSkuResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( ProductsRestApiConfig::RESOURCE_ABSTRACT_PRODUCTS, - new ProductReviewsRelationshipByProductAbstractSkuPlugin() + new ProductReviewsRelationshipByProductAbstractSkuPlugin(), ); $resourceRelationshipCollection->addRelationship( ProductsRestApiConfig::RESOURCE_CONCRETE_PRODUCTS, - new ProductReviewsRelationshipByProductConcreteSkuPlugin() + new ProductReviewsRelationshipByProductConcreteSkuPlugin(), ); $resourceRelationshipCollection->addRelationship( CartsRestApiConfig::RESOURCE_CARTS, - new VoucherByQuoteResourceRelationshipPlugin() + new VoucherByQuoteResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( CartsRestApiConfig::RESOURCE_CARTS, - new CartRuleByQuoteResourceRelationshipPlugin() + new CartRuleByQuoteResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( CartsRestApiConfig::RESOURCE_CARTS, - new CartItemsByQuoteResourceRelationshipPlugin() + new CartItemsByQuoteResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( ShoppingListsRestApiConfig::RESOURCE_SHOPPING_LIST_ITEMS, - new ConcreteProductBySkuResourceRelationshipPlugin() + new ConcreteProductBySkuResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( ShoppingListsRestApiConfig::RESOURCE_SHOPPING_LISTS, - new ShoppingListItemByShoppingListResourceRelationshipPlugin() + new ShoppingListItemByShoppingListResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( CartsRestApiConfig::RESOURCE_CARTS, - new PromotionItemByQuoteTransferResourceRelationshipPlugin() + new PromotionItemByQuoteTransferResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( CheckoutRestApiConfig::RESOURCE_CHECKOUT_DATA, - new ShipmentsByCheckoutDataResourceRelationshipPlugin() + new ShipmentsByCheckoutDataResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( ShipmentsRestApiConfig::RESOURCE_SHIPMENTS, - new ShipmentMethodsByShipmentResourceRelationshipPlugin() + new ShipmentMethodsByShipmentResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( CheckoutRestApiConfig::RESOURCE_CHECKOUT_DATA, - new PaymentMethodsByCheckoutDataResourceRelationshipPlugin() + new PaymentMethodsByCheckoutDataResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( CheckoutRestApiConfig::RESOURCE_CHECKOUT_DATA, - new CompanyBusinessUnitAddressByCheckoutDataResourceRelationshipPlugin() + new CompanyBusinessUnitAddressByCheckoutDataResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( CheckoutRestApiConfig::RESOURCE_CHECKOUT_DATA, - new AddressByCheckoutDataResourceRelationshipPlugin() + new AddressByCheckoutDataResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( CheckoutRestApiConfig::RESOURCE_CHECKOUT_DATA, @@ -616,121 +616,121 @@ protected function getResourceRelationshipPlugins( ); $resourceRelationshipCollection->addRelationship( OrdersRestApiConfig::RESOURCE_ORDERS, - new OrderShipmentByOrderResourceRelationshipPlugin() + new OrderShipmentByOrderResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( DiscountPromotionsRestApiConfig::RESOURCE_PROMOTIONAL_ITEMS, - new ProductAbstractBySkuResourceRelationshipPlugin() + new ProductAbstractBySkuResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( ProductsRestApiConfig::RESOURCE_CONCRETE_PRODUCTS, - new ProductMeasurementUnitsByProductConcreteResourceRelationshipPlugin() + new ProductMeasurementUnitsByProductConcreteResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( ProductsRestApiConfig::RESOURCE_CONCRETE_PRODUCTS, - new SalesUnitsByProductConcreteResourceRelationshipPlugin() + new SalesUnitsByProductConcreteResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( ProductMeasurementUnitsRestApiConfig::RESOURCE_SALES_UNITS, - new ProductMeasurementUnitsBySalesUnitResourceRelationshipPlugin() + new ProductMeasurementUnitsBySalesUnitResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( CartsRestApiConfig::RESOURCE_CART_ITEMS, - new SalesUnitsByCartItemResourceRelationshipPlugin() + new SalesUnitsByCartItemResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( SalesReturnsRestApiConfig::RESOURCE_RETURNS, - new ReturnItemByReturnResourceRelationshipPlugin() + new ReturnItemByReturnResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( SalesReturnsRestApiConfig::RESOURCE_RETURN_ITEMS, - new OrderItemByResourceIdResourceRelationshipPlugin() + new OrderItemByResourceIdResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( CmsPagesRestApiConfig::RESOURCE_CMS_PAGES, - new ContentBannerByCmsPageResourceRelationshipPlugin() + new ContentBannerByCmsPageResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( CmsPagesRestApiConfig::RESOURCE_CMS_PAGES, - new ContentProductAbstractListByCmsPageResourceRelationshipPlugin() + new ContentProductAbstractListByCmsPageResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( ContentProductAbstractListsRestApiConfig::RESOURCE_CONTENT_PRODUCT_ABSTRACT_LISTS, - new ProductAbstractByContentProductAbstractListResourceRelationshipPlugin() + new ProductAbstractByContentProductAbstractListResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( ProductsRestApiConfig::RESOURCE_CONCRETE_PRODUCTS, - new ProductAbstractByProductAbstractSkuResourceRelationshipPlugin() + new ProductAbstractByProductAbstractSkuResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( ProductBundlesRestApiConfig::RESOURCE_BUNDLED_PRODUCTS, - new ConcreteProductBySkuResourceRelationshipPlugin() + new ConcreteProductBySkuResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( ProductsRestApiConfig::RESOURCE_CONCRETE_PRODUCTS, - new BundledProductByProductConcreteSkuResourceRelationshipPlugin() + new BundledProductByProductConcreteSkuResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( CartsRestApiConfig::RESOURCE_CARTS, - new BundleItemByQuoteResourceRelationshipPlugin() + new BundleItemByQuoteResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( ProductBundleCartsRestApiConfig::RESOURCE_BUNDLE_ITEMS, - new BundledItemByQuoteResourceRelationshipPlugin() + new BundledItemByQuoteResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( ProductBundleCartsRestApiConfig::RESOURCE_BUNDLE_ITEMS, - new ConcreteProductBySkuResourceRelationshipPlugin() + new ConcreteProductBySkuResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( ProductBundleCartsRestApiConfig::RESOURCE_BUNDLED_ITEMS, - new ConcreteProductBySkuResourceRelationshipPlugin() + new ConcreteProductBySkuResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( ProductsRestApiConfig::RESOURCE_ABSTRACT_PRODUCTS, - new AbstractProductsCategoriesResourceRelationshipPlugin() + new AbstractProductsCategoriesResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( MerchantsRestApiConfig::RESOURCE_MERCHANTS, - new MerchantAddressByMerchantReferenceResourceRelationshipPlugin() + new MerchantAddressByMerchantReferenceResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( OrdersRestApiConfig::RESOURCE_ORDERS, - new MerchantsByOrderResourceRelationshipPlugin() + new MerchantsByOrderResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( ProductsRestApiConfig::RESOURCE_ABSTRACT_PRODUCTS, - new MerchantByMerchantReferenceResourceRelationshipPlugin() + new MerchantByMerchantReferenceResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( CartsRestApiConfig::RESOURCE_CART_ITEMS, - new MerchantByMerchantReferenceResourceRelationshipPlugin() + new MerchantByMerchantReferenceResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( CartsRestApiConfig::RESOURCE_GUEST_CARTS_ITEMS, - new MerchantByMerchantReferenceResourceRelationshipPlugin() + new MerchantByMerchantReferenceResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( ProductsRestApiConfig::RESOURCE_CONCRETE_PRODUCTS, - new ProductOffersByProductConcreteSkuResourceRelationshipPlugin() + new ProductOffersByProductConcreteSkuResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( MerchantProductOffersRestApiConfig::RESOURCE_PRODUCT_OFFERS, - new MerchantByMerchantReferenceResourceRelationshipPlugin() + new MerchantByMerchantReferenceResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( MerchantProductOffersRestApiConfig::RESOURCE_PRODUCT_OFFERS, - new ProductOfferPriceByProductOfferReferenceResourceRelationshipPlugin() + new ProductOfferPriceByProductOfferReferenceResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( MerchantsRestApiConfig::RESOURCE_MERCHANTS, - new MerchantOpeningHoursByMerchantReferenceResourceRelationshipPlugin() + new MerchantOpeningHoursByMerchantReferenceResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( SalesReturnsRestApiConfig::RESOURCE_RETURNS, - new MerchantByMerchantReferenceResourceRelationshipPlugin() + new MerchantByMerchantReferenceResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( @@ -760,24 +760,24 @@ protected function getResourceRelationshipPlugins( $resourceRelationshipCollection->addRelationship( ConfigurableBundlesRestApiConfig::RESOURCE_CONFIGURABLE_BUNDLE_TEMPLATES, - new ConfigurableBundleTemplateSlotByConfigurableBundleTemplateResourceRelationshipPlugin() + new ConfigurableBundleTemplateSlotByConfigurableBundleTemplateResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( ConfigurableBundlesRestApiConfig::RESOURCE_CONFIGURABLE_BUNDLE_TEMPLATES, - new ConfigurableBundleTemplateImageSetByConfigurableBundleTemplateResourceRelationshipPlugin() + new ConfigurableBundleTemplateImageSetByConfigurableBundleTemplateResourceRelationshipPlugin(), ); $resourceRelationshipCollection->addRelationship( ConfigurableBundlesProductsResourceRelationshipConfig::RESOURCE_CONFIGURABLE_BUNDLE_TEMPLATE_SLOTS, - new ProductConcreteByConfigurableBundleTemplateSlotResourceRelationshipPlugin() + new ProductConcreteByConfigurableBundleTemplateSlotResourceRelationshipPlugin(), ); return $resourceRelationshipCollection; } /** - * @return \Spryker\Glue\GlueApplicationExtension\Dependency\Plugin\RestUserFinderPluginInterface[] + * @return array<\Spryker\Glue\GlueApplicationExtension\Dependency\Plugin\RestUserFinderPluginInterface> */ protected function getRestUserFinderPlugins(): array { @@ -788,7 +788,7 @@ protected function getRestUserFinderPlugins(): array } /** - * @return \Spryker\Shared\ApplicationExtension\Dependency\Plugin\ApplicationPluginInterface[] + * @return array<\Spryker\Shared\ApplicationExtension\Dependency\Plugin\ApplicationPluginInterface> */ protected function getApplicationPlugins(): array { diff --git a/src/Pyz/Glue/HealthCheck/HealthCheckDependencyProvider.php b/src/Pyz/Glue/HealthCheck/HealthCheckDependencyProvider.php index bc762efd9a..6e1f9c57a5 100644 --- a/src/Pyz/Glue/HealthCheck/HealthCheckDependencyProvider.php +++ b/src/Pyz/Glue/HealthCheck/HealthCheckDependencyProvider.php @@ -15,7 +15,7 @@ class HealthCheckDependencyProvider extends SprykerHealthCheckDependencyProvider { /** - * @return \Spryker\Shared\HealthCheckExtension\Dependency\Plugin\HealthCheckPluginInterface[] + * @return array<\Spryker\Shared\HealthCheckExtension\Dependency\Plugin\HealthCheckPluginInterface> */ protected function getHealthCheckPlugins(): array { diff --git a/src/Pyz/Glue/MerchantsRestApi/MerchantsRestApiDependencyProvider.php b/src/Pyz/Glue/MerchantsRestApi/MerchantsRestApiDependencyProvider.php index 468ba03279..df5f1bdc90 100644 --- a/src/Pyz/Glue/MerchantsRestApi/MerchantsRestApiDependencyProvider.php +++ b/src/Pyz/Glue/MerchantsRestApi/MerchantsRestApiDependencyProvider.php @@ -13,7 +13,7 @@ class MerchantsRestApiDependencyProvider extends SprykerMerchantsRestApiDependencyProvider { /** - * @return \Spryker\Glue\MerchantsRestApiExtension\Dependency\Plugin\MerchantRestAttributesMapperPluginInterface[] + * @return array<\Spryker\Glue\MerchantsRestApiExtension\Dependency\Plugin\MerchantRestAttributesMapperPluginInterface> */ public function getMerchantRestAttributesMapperPlugins(): array { diff --git a/src/Pyz/Glue/NavigationsRestApi/NavigationsRestApiConfig.php b/src/Pyz/Glue/NavigationsRestApi/NavigationsRestApiConfig.php index 06ee92928a..8b81b2e51c 100644 --- a/src/Pyz/Glue/NavigationsRestApi/NavigationsRestApiConfig.php +++ b/src/Pyz/Glue/NavigationsRestApi/NavigationsRestApiConfig.php @@ -14,7 +14,7 @@ class NavigationsRestApiConfig extends SprykerNavigationsRestApiConfig /** * {@inheritDoc} * - * @return string[] + * @return array */ public function getNavigationTypeToUrlResourceIdFieldMapping(): array { diff --git a/src/Pyz/Glue/OrdersRestApi/OrdersRestApiDependencyProvider.php b/src/Pyz/Glue/OrdersRestApi/OrdersRestApiDependencyProvider.php index 3e9851f316..e51ea58a58 100644 --- a/src/Pyz/Glue/OrdersRestApi/OrdersRestApiDependencyProvider.php +++ b/src/Pyz/Glue/OrdersRestApi/OrdersRestApiDependencyProvider.php @@ -18,7 +18,7 @@ class OrdersRestApiDependencyProvider extends SprykerOrdersRestApiDependencyProvider { /** - * @return \Spryker\Glue\OrdersRestApiExtension\Dependency\Plugin\RestOrderItemsAttributesMapperPluginInterface[] + * @return array<\Spryker\Glue\OrdersRestApiExtension\Dependency\Plugin\RestOrderItemsAttributesMapperPluginInterface> */ protected function getRestOrderItemsAttributesMapperPlugins(): array { @@ -31,7 +31,7 @@ protected function getRestOrderItemsAttributesMapperPlugins(): array } /** - * @return \Spryker\Glue\OrdersRestApiExtension\Dependency\Plugin\RestOrderDetailsAttributesMapperPluginInterface[] + * @return array<\Spryker\Glue\OrdersRestApiExtension\Dependency\Plugin\RestOrderDetailsAttributesMapperPluginInterface> */ protected function getRestOrderDetailsAttributesMapperPlugins(): array { diff --git a/src/Pyz/Glue/ProductOfferPricesRestApi/ProductOfferPricesRestApiDependencyProvider.php b/src/Pyz/Glue/ProductOfferPricesRestApi/ProductOfferPricesRestApiDependencyProvider.php index cae6b1c871..2e9ba1c1be 100644 --- a/src/Pyz/Glue/ProductOfferPricesRestApi/ProductOfferPricesRestApiDependencyProvider.php +++ b/src/Pyz/Glue/ProductOfferPricesRestApi/ProductOfferPricesRestApiDependencyProvider.php @@ -13,7 +13,7 @@ class ProductOfferPricesRestApiDependencyProvider extends SprykerProductPricesRestApiDependencyProvider { /** - * @return \Spryker\Glue\ProductOfferPricesRestApiExtension\Dependency\Plugin\RestProductOfferPricesAttributesMapperPluginInterface[] + * @return array<\Spryker\Glue\ProductOfferPricesRestApiExtension\Dependency\Plugin\RestProductOfferPricesAttributesMapperPluginInterface> */ protected function getRestProductOfferPricesAttributesMapperPlugins(): array { diff --git a/src/Pyz/Glue/ProductPricesRestApi/ProductPricesRestApiDependencyProvider.php b/src/Pyz/Glue/ProductPricesRestApi/ProductPricesRestApiDependencyProvider.php index 53d3d52f5a..3b71fb4fb3 100644 --- a/src/Pyz/Glue/ProductPricesRestApi/ProductPricesRestApiDependencyProvider.php +++ b/src/Pyz/Glue/ProductPricesRestApi/ProductPricesRestApiDependencyProvider.php @@ -13,7 +13,7 @@ class ProductPricesRestApiDependencyProvider extends SprykerProductPricesRestApiDependencyProvider { /** - * @return \Spryker\Glue\ProductPricesRestApiExtension\Dependency\Plugin\RestProductPricesAttributesMapperPluginInterface[] + * @return array<\Spryker\Glue\ProductPricesRestApiExtension\Dependency\Plugin\RestProductPricesAttributesMapperPluginInterface> */ protected function getRestProductPricesAttributesMapperPlugins(): array { diff --git a/src/Pyz/Glue/ProductsRestApi/ProductsRestApiDependencyProvider.php b/src/Pyz/Glue/ProductsRestApi/ProductsRestApiDependencyProvider.php index e7927781cc..d14e1a8559 100644 --- a/src/Pyz/Glue/ProductsRestApi/ProductsRestApiDependencyProvider.php +++ b/src/Pyz/Glue/ProductsRestApi/ProductsRestApiDependencyProvider.php @@ -16,7 +16,7 @@ class ProductsRestApiDependencyProvider extends SprykerProductsRestApiDependencyProvider { /** - * @return \Spryker\Glue\ProductsRestApiExtension\Dependency\Plugin\ConcreteProductsResourceExpanderPluginInterface[] + * @return array<\Spryker\Glue\ProductsRestApiExtension\Dependency\Plugin\ConcreteProductsResourceExpanderPluginInterface> */ protected function getConcreteProductsResourceExpanderPlugins(): array { @@ -28,7 +28,7 @@ protected function getConcreteProductsResourceExpanderPlugins(): array } /** - * @return \Spryker\Glue\ProductsRestApiExtension\Dependency\Plugin\AbstractProductsResourceExpanderPluginInterface[] + * @return array<\Spryker\Glue\ProductsRestApiExtension\Dependency\Plugin\AbstractProductsResourceExpanderPluginInterface> */ protected function getAbstractProductsResourceExpanderPlugins(): array { diff --git a/src/Pyz/Glue/ShipmentsRestApi/ShipmentsRestApiDependencyProvider.php b/src/Pyz/Glue/ShipmentsRestApi/ShipmentsRestApiDependencyProvider.php index f6b7cf75d5..31a463a0e5 100644 --- a/src/Pyz/Glue/ShipmentsRestApi/ShipmentsRestApiDependencyProvider.php +++ b/src/Pyz/Glue/ShipmentsRestApi/ShipmentsRestApiDependencyProvider.php @@ -14,7 +14,7 @@ class ShipmentsRestApiDependencyProvider extends SprykerShipmentsRestApiDependencyProvider { /** - * @return \Spryker\Glue\ShipmentsRestApiExtension\Dependency\Plugin\AddressSourceCheckerPluginInterface[] + * @return array<\Spryker\Glue\ShipmentsRestApiExtension\Dependency\Plugin\AddressSourceCheckerPluginInterface> */ protected function getAddressSourceCheckerPlugins(): array { diff --git a/src/Pyz/Glue/UrlsRestApi/UrlsRestApiDependencyProvider.php b/src/Pyz/Glue/UrlsRestApi/UrlsRestApiDependencyProvider.php index 87e341aae0..834ce12ec4 100644 --- a/src/Pyz/Glue/UrlsRestApi/UrlsRestApiDependencyProvider.php +++ b/src/Pyz/Glue/UrlsRestApi/UrlsRestApiDependencyProvider.php @@ -16,7 +16,7 @@ class UrlsRestApiDependencyProvider extends SprykerUrlsRestApiDependencyProvider { /** - * @return \Spryker\Glue\UrlsRestApiExtension\Dependency\Plugin\RestUrlResolverAttributesTransferProviderPluginInterface[] + * @return array<\Spryker\Glue\UrlsRestApiExtension\Dependency\Plugin\RestUrlResolverAttributesTransferProviderPluginInterface> */ protected function getRestUrlResolverAttributesTransferProviderPlugins(): array { diff --git a/src/Pyz/Service/Barcode/BarcodeDependencyProvider.php b/src/Pyz/Service/Barcode/BarcodeDependencyProvider.php index 2b677e903f..406982f58a 100644 --- a/src/Pyz/Service/Barcode/BarcodeDependencyProvider.php +++ b/src/Pyz/Service/Barcode/BarcodeDependencyProvider.php @@ -13,7 +13,7 @@ class BarcodeDependencyProvider extends SprykerDependencyProvider { /** - * @return \Spryker\Service\BarcodeExtension\Dependency\Plugin\BarcodeGeneratorPluginInterface[] + * @return array<\Spryker\Service\BarcodeExtension\Dependency\Plugin\BarcodeGeneratorPluginInterface> */ protected function getBarcodeGeneratorPlugins(): array { diff --git a/src/Pyz/Service/PriceProduct/PriceProductDependencyProvider.php b/src/Pyz/Service/PriceProduct/PriceProductDependencyProvider.php index 3a20d0efe0..4fc1da7009 100644 --- a/src/Pyz/Service/PriceProduct/PriceProductDependencyProvider.php +++ b/src/Pyz/Service/PriceProduct/PriceProductDependencyProvider.php @@ -21,7 +21,7 @@ class PriceProductDependencyProvider extends SprykerPriceProductDependencyProvid /** * {@inheritDoc} * - * @return \Spryker\Service\PriceProductExtension\Dependency\Plugin\PriceProductFilterPluginInterface[] + * @return array<\Spryker\Service\PriceProductExtension\Dependency\Plugin\PriceProductFilterPluginInterface> */ protected function getPriceProductDecisionPlugins(): array { diff --git a/src/Pyz/Service/Shipment/ShipmentConfig.php b/src/Pyz/Service/Shipment/ShipmentConfig.php index 6a18d21c83..5d73eb78ca 100644 --- a/src/Pyz/Service/Shipment/ShipmentConfig.php +++ b/src/Pyz/Service/Shipment/ShipmentConfig.php @@ -13,7 +13,7 @@ class ShipmentConfig extends SprykerShipmentConfig { /** - * @return string[] + * @return array */ public function getShipmentHashFields(): array { diff --git a/src/Pyz/Shared/Comment/CommentConfig.php b/src/Pyz/Shared/Comment/CommentConfig.php index ad5affa2d9..8e1a955485 100644 --- a/src/Pyz/Shared/Comment/CommentConfig.php +++ b/src/Pyz/Shared/Comment/CommentConfig.php @@ -12,7 +12,7 @@ class CommentConfig extends SprykerCommentConfig { /** - * @return string[] + * @return array */ public function getAvailableCommentTags(): array { diff --git a/src/Pyz/Shared/ContentNavigationGui/ContentNavigationGuiConfig.php b/src/Pyz/Shared/ContentNavigationGui/ContentNavigationGuiConfig.php index 9117647046..5cbde76117 100644 --- a/src/Pyz/Shared/ContentNavigationGui/ContentNavigationGuiConfig.php +++ b/src/Pyz/Shared/ContentNavigationGui/ContentNavigationGuiConfig.php @@ -94,7 +94,7 @@ class ContentNavigationGuiConfig extends SprykerContentNavigationGuiConfig /** * @api * - * @return string[] + * @return array */ public function getContentWidgetTemplates(): array { diff --git a/src/Pyz/Shared/Quote/QuoteConfig.php b/src/Pyz/Shared/Quote/QuoteConfig.php index 59c37b802d..19e0069b7b 100644 --- a/src/Pyz/Shared/Quote/QuoteConfig.php +++ b/src/Pyz/Shared/Quote/QuoteConfig.php @@ -14,7 +14,7 @@ class QuoteConfig extends SprykerQuoteConfig /** * @return string */ - public function getStorageStrategy() + public function getStorageStrategy(): string { return static::STORAGE_STRATEGY_DATABASE; } diff --git a/src/Pyz/Shared/QuoteApproval/QuoteApprovalConfig.php b/src/Pyz/Shared/QuoteApproval/QuoteApprovalConfig.php index 1d7d3cf652..6f7d14a4f4 100644 --- a/src/Pyz/Shared/QuoteApproval/QuoteApprovalConfig.php +++ b/src/Pyz/Shared/QuoteApproval/QuoteApprovalConfig.php @@ -13,7 +13,7 @@ class QuoteApprovalConfig extends SprykerQuoteApprovalConfig { /** - * @return string[] + * @return array */ public function getRequiredQuoteFieldsForApprovalProcess(): array { diff --git a/src/Pyz/Yves/CartPage/CartPageDependencyProvider.php b/src/Pyz/Yves/CartPage/CartPageDependencyProvider.php index a60b86ebc8..7d7c975383 100644 --- a/src/Pyz/Yves/CartPage/CartPageDependencyProvider.php +++ b/src/Pyz/Yves/CartPage/CartPageDependencyProvider.php @@ -16,7 +16,7 @@ class CartPageDependencyProvider extends SprykerCartPageDependencyProvider { /** - * @return \SprykerShop\Yves\CartPage\Dependency\Plugin\CartItemTransformerPluginInterface[] + * @return array<\SprykerShop\Yves\CartPage\Dependency\Plugin\CartItemTransformerPluginInterface> */ protected function getCartItemTransformerPlugins(): array { @@ -36,7 +36,7 @@ protected function getAddToCartFormWidgetParameterExpanderPlugins(): array } /** - * @return \SprykerShop\Yves\CartPageExtension\Dependency\Plugin\PreAddToCartPluginInterface[] + * @return array<\SprykerShop\Yves\CartPageExtension\Dependency\Plugin\PreAddToCartPluginInterface> */ protected function getPreAddToCartPlugins(): array { diff --git a/src/Pyz/Yves/CartPage/CartPageFactory.php b/src/Pyz/Yves/CartPage/CartPageFactory.php index beb9c0caa5..f359184191 100644 --- a/src/Pyz/Yves/CartPage/CartPageFactory.php +++ b/src/Pyz/Yves/CartPage/CartPageFactory.php @@ -19,7 +19,7 @@ class CartPageFactory extends SprykerCartPageFactory public function createPyzCartItemsProductsProvider(): CartItemsProductProviderInterface { return new CartItemsProductProvider( - $this->getProductStorageClient() + $this->getProductStorageClient(), ); } } diff --git a/src/Pyz/Yves/CartPage/Controller/CartController.php b/src/Pyz/Yves/CartPage/Controller/CartController.php index 8380162360..eaeb918216 100644 --- a/src/Pyz/Yves/CartPage/Controller/CartController.php +++ b/src/Pyz/Yves/CartPage/Controller/CartController.php @@ -45,7 +45,7 @@ protected function executeIndexAction(array $selectedAttributes = []): array * * @return \Symfony\Component\HttpFoundation\RedirectResponse */ - public function addAction(Request $request, $sku) + public function addAction(Request $request, $sku): RedirectResponse { parent::addAction($request, $sku); diff --git a/src/Pyz/Yves/CartPage/Plugin/Provider/CartItemsProductProvider.php b/src/Pyz/Yves/CartPage/Plugin/Provider/CartItemsProductProvider.php index 8709101d4f..3c5d3bc5ce 100644 --- a/src/Pyz/Yves/CartPage/Plugin/Provider/CartItemsProductProvider.php +++ b/src/Pyz/Yves/CartPage/Plugin/Provider/CartItemsProductProvider.php @@ -25,10 +25,10 @@ public function __construct(CartPageToProductStorageClientInterface $productStor } /** - * @param \Generated\Shared\Transfer\ItemTransfer[] $cartItems + * @param array<\Generated\Shared\Transfer\ItemTransfer> $cartItems * @param string $locale * - * @return \Generated\Shared\Transfer\ProductViewTransfer[] + * @return array<\Generated\Shared\Transfer\ProductViewTransfer> */ public function getItemsProducts(array $cartItems, string $locale): array { @@ -37,7 +37,7 @@ public function getItemsProducts(array $cartItems, string $locale): array foreach ($cartItems as $item) { $productBySku[$item->getSku()] = $this->productStorageClient->findProductAbstractViewTransfer( $item->getIdProductAbstract(), - $locale + $locale, ); } diff --git a/src/Pyz/Yves/CartPage/Plugin/Provider/CartItemsProductProviderInterface.php b/src/Pyz/Yves/CartPage/Plugin/Provider/CartItemsProductProviderInterface.php index 732408a7f6..86a45360ce 100644 --- a/src/Pyz/Yves/CartPage/Plugin/Provider/CartItemsProductProviderInterface.php +++ b/src/Pyz/Yves/CartPage/Plugin/Provider/CartItemsProductProviderInterface.php @@ -10,10 +10,10 @@ interface CartItemsProductProviderInterface { /** - * @param \Generated\Shared\Transfer\ItemTransfer[] $cartItems + * @param array<\Generated\Shared\Transfer\ItemTransfer> $cartItems * @param string $locale * - * @return \Generated\Shared\Transfer\ProductViewTransfer[] + * @return array<\Generated\Shared\Transfer\ProductViewTransfer> */ public function getItemsProducts(array $cartItems, string $locale): array; } diff --git a/src/Pyz/Yves/ChartWidget/ChartWidgetDependencyProvider.php b/src/Pyz/Yves/ChartWidget/ChartWidgetDependencyProvider.php index 44e9cca24f..0df321c758 100644 --- a/src/Pyz/Yves/ChartWidget/ChartWidgetDependencyProvider.php +++ b/src/Pyz/Yves/ChartWidget/ChartWidgetDependencyProvider.php @@ -13,7 +13,7 @@ class ChartWidgetDependencyProvider extends SprykerShopChartDependencyProvider { /** - * @return \Spryker\Shared\Chart\Dependency\Plugin\ChartPluginInterface[] + * @return array<\Spryker\Shared\Chart\Dependency\Plugin\ChartPluginInterface> */ protected function getChartPlugins(): array { diff --git a/src/Pyz/Yves/CheckoutPage/CheckoutPageConfig.php b/src/Pyz/Yves/CheckoutPage/CheckoutPageConfig.php index 78062c2381..1553ac771c 100644 --- a/src/Pyz/Yves/CheckoutPage/CheckoutPageConfig.php +++ b/src/Pyz/Yves/CheckoutPage/CheckoutPageConfig.php @@ -12,7 +12,7 @@ class CheckoutPageConfig extends SprykerCheckoutPageConfig { /** - * @return string[] + * @return array */ public function getLocalizedTermsAndConditionsPageLinks(): array { diff --git a/src/Pyz/Yves/CheckoutPage/CheckoutPageDependencyProvider.php b/src/Pyz/Yves/CheckoutPage/CheckoutPageDependencyProvider.php index 7d25105962..112d6c58fd 100644 --- a/src/Pyz/Yves/CheckoutPage/CheckoutPageDependencyProvider.php +++ b/src/Pyz/Yves/CheckoutPage/CheckoutPageDependencyProvider.php @@ -76,7 +76,7 @@ protected function extendPyzPaymentMethodHandler(Container $container): Containe $paymentMethodHandler->add(new NopaymentHandlerPlugin(), NopaymentConfig::PAYMENT_PROVIDER_NAME); $paymentMethodHandler->add( new DummyMarketplacePaymentHandlerPlugin(), - DummyMarketplacePaymentConfig::PAYMENT_METHOD_DUMMY_MARKETPLACE_PAYMENT_INVOICE + DummyMarketplacePaymentConfig::PAYMENT_METHOD_DUMMY_MARKETPLACE_PAYMENT_INVOICE, ); $paymentMethodHandler->add(new PaymentForeignHandlerPlugin(), PaymentTransfer::FOREIGN_PAYMENTS); @@ -103,7 +103,7 @@ protected function extendPyzSubFormPluginCollection(Container $container): Conta } /** - * @return string[] + * @return array */ protected function getSummaryPageWidgetPlugins(): array { @@ -115,7 +115,7 @@ protected function getSummaryPageWidgetPlugins(): array /** * @phpstan-return array|\Symfony\Component\Form\FormInterface> * - * @return \Symfony\Component\Form\FormTypeInterface[]|string[] + * @return array<\Symfony\Component\Form\FormTypeInterface>|array */ protected function getCustomerStepSubForms(): array { @@ -138,7 +138,7 @@ protected function getPyzCustomerCheckoutForm($subForm, $blockPrefix): FormInter $blockPrefix, CustomerCheckoutForm::class, null, - [CustomerCheckoutForm::SUB_FORM_CUSTOMER => $subForm] + [CustomerCheckoutForm::SUB_FORM_CUSTOMER => $subForm], ); } @@ -151,7 +151,7 @@ protected function getPyzFormFactory(): FormFactory } /** - * @return string[] + * @return array */ protected function getAddressStepSubForms(): array { @@ -161,7 +161,7 @@ protected function getAddressStepSubForms(): array } /** - * @return \SprykerShop\Yves\CheckoutPageExtension\Dependency\Plugin\CheckoutAddressStepEnterPreCheckPluginInterface[] + * @return array<\SprykerShop\Yves\CheckoutPageExtension\Dependency\Plugin\CheckoutAddressStepEnterPreCheckPluginInterface> */ protected function getCheckoutAddressStepEnterPreCheckPlugins(): array { @@ -171,7 +171,7 @@ protected function getCheckoutAddressStepEnterPreCheckPlugins(): array } /** - * @return \SprykerShop\Yves\CheckoutPageExtension\Dependency\Plugin\CheckoutShipmentStepEnterPreCheckPluginInterface[] + * @return array<\SprykerShop\Yves\CheckoutPageExtension\Dependency\Plugin\CheckoutShipmentStepEnterPreCheckPluginInterface> */ protected function getCheckoutShipmentStepEnterPreCheckPlugins(): array { @@ -181,7 +181,7 @@ protected function getCheckoutShipmentStepEnterPreCheckPlugins(): array } /** - * @return \SprykerShop\Yves\CheckoutPageExtension\Dependency\Plugin\CheckoutPaymentStepEnterPreCheckPluginInterface[] + * @return array<\SprykerShop\Yves\CheckoutPageExtension\Dependency\Plugin\CheckoutPaymentStepEnterPreCheckPluginInterface> */ protected function getCheckoutPaymentStepEnterPreCheckPlugins(): array { @@ -191,7 +191,7 @@ protected function getCheckoutPaymentStepEnterPreCheckPlugins(): array } /** - * @return \SprykerShop\Yves\CheckoutPageExtension\Dependency\Plugin\AddressTransferExpanderPluginInterface[] + * @return array<\SprykerShop\Yves\CheckoutPageExtension\Dependency\Plugin\AddressTransferExpanderPluginInterface> */ protected function getAddressStepExecutorAddressExpanderPlugins(): array { @@ -218,7 +218,7 @@ protected function getCustomerStepHandler(): StepHandlerPluginInterface } /** - * @return \SprykerShop\Yves\CheckoutPageExtension\Dependency\Plugin\CheckoutStepResolverStrategyPluginInterface[] + * @return array<\SprykerShop\Yves\CheckoutPageExtension\Dependency\Plugin\CheckoutStepResolverStrategyPluginInterface> */ protected function getCheckoutStepResolverStrategyPlugins(): array { @@ -230,7 +230,7 @@ protected function getCheckoutStepResolverStrategyPlugins(): array } /** - * @return \SprykerShop\Yves\CheckoutPageExtension\Dependency\Plugin\StepEngine\CheckoutPageStepEnginePreRenderPluginInterface[] + * @return array<\SprykerShop\Yves\CheckoutPageExtension\Dependency\Plugin\StepEngine\CheckoutPageStepEnginePreRenderPluginInterface> */ protected function getCheckoutPageStepEnginePreRenderPlugins(): array { diff --git a/src/Pyz/Yves/CheckoutPage/Controller/CheckoutController.php b/src/Pyz/Yves/CheckoutPage/Controller/CheckoutController.php index d8e65aa6cc..b6cec381b5 100644 --- a/src/Pyz/Yves/CheckoutPage/Controller/CheckoutController.php +++ b/src/Pyz/Yves/CheckoutPage/Controller/CheckoutController.php @@ -37,7 +37,7 @@ public function customerAction(Request $request) $request, $this->getFactory() ->createPyzCheckoutFormFactory() - ->createCustomerFormCollection() + ->createCustomerFormCollection(), ); if (!is_array($response)) { @@ -47,7 +47,7 @@ public function customerAction(Request $request) return $this->view( $response, $this->getFactory()->getCustomerPageWidgetPlugins(), - '@CheckoutPage/views/login/login.twig' + '@CheckoutPage/views/login/login.twig', ); } @@ -70,7 +70,7 @@ public function addressAction(Request $request) $request, $this->getFactory() ->createPyzCheckoutFormFactory() - ->createAddressFormCollection() + ->createAddressFormCollection(), ); if (!is_array($response)) { @@ -80,7 +80,7 @@ public function addressAction(Request $request) return $this->view( $response, $this->getFactory()->getCustomerPageWidgetPlugins(), - '@CheckoutPage/views/address/address.twig' + '@CheckoutPage/views/address/address.twig', ); } @@ -103,7 +103,7 @@ public function shipmentAction(Request $request) $request, $this->getFactory() ->createPyzCheckoutFormFactory() - ->createShipmentFormCollection() + ->createShipmentFormCollection(), ); if (!is_array($response)) { @@ -113,7 +113,7 @@ public function shipmentAction(Request $request) return $this->view( $response, $this->getFactory()->getCustomerPageWidgetPlugins(), - '@CheckoutPage/views/shipment/shipment.twig' + '@CheckoutPage/views/shipment/shipment.twig', ); } @@ -136,7 +136,7 @@ public function paymentAction(Request $request) $request, $this->getFactory() ->createPyzCheckoutFormFactory() - ->getPaymentFormCollection() + ->getPaymentFormCollection(), ); if (!is_array($response)) { @@ -146,7 +146,7 @@ public function paymentAction(Request $request) return $this->view( $response, $this->getFactory()->getCustomerPageWidgetPlugins(), - '@CheckoutPage/views/payment/payment.twig' + '@CheckoutPage/views/payment/payment.twig', ); } @@ -169,7 +169,7 @@ public function summaryAction(Request $request) $request, $this->getFactory() ->createPyzCheckoutFormFactory() - ->createSummaryFormCollection() + ->createSummaryFormCollection(), ); if (!is_array($viewData)) { @@ -179,7 +179,7 @@ public function summaryAction(Request $request) return $this->view( $viewData, $this->getFactory()->getSummaryPageWidgetPlugins(), - '@CheckoutPage/views/summary/summary.twig' + '@CheckoutPage/views/summary/summary.twig', ); } diff --git a/src/Pyz/Yves/CheckoutPage/Form/Steps/PaymentForm.php b/src/Pyz/Yves/CheckoutPage/Form/Steps/PaymentForm.php index e04280127c..12117b5d79 100644 --- a/src/Pyz/Yves/CheckoutPage/Form/Steps/PaymentForm.php +++ b/src/Pyz/Yves/CheckoutPage/Form/Steps/PaymentForm.php @@ -250,7 +250,7 @@ protected function getPyzPaymentMethodSubForms(): array */ protected function extendPyzPaymentCollection( SubFormPluginCollection $paymentSubFormPluginCollection, - PaymentMethodsTransfer $paymentMethodsTransfer + PaymentMethodsTransfer $paymentMethodsTransfer, ): SubFormPluginCollection { $paymentCollectionExtenderPlugins = $this->getFactory()->getPaymentCollectionExtenderPlugins(); @@ -272,7 +272,7 @@ protected function extendPyzPaymentCollection( */ protected function filterPyzOutNotAvailableForms( SubFormPluginCollection $paymentMethodSubFormPlugins, - PaymentMethodsTransfer $availablePaymentMethodsTransfer + PaymentMethodsTransfer $availablePaymentMethodsTransfer, ): SubFormPluginCollection { $paymentMethodNames = $this->getPyzAvailablePaymentMethodNames($availablePaymentMethodsTransfer); $paymentMethodNames = array_combine($paymentMethodNames, $paymentMethodNames); diff --git a/src/Pyz/Yves/CmsBlockWidget/CmsBlockWidgetDependencyProvider.php b/src/Pyz/Yves/CmsBlockWidget/CmsBlockWidgetDependencyProvider.php index 06d62b9334..c355e20e5c 100644 --- a/src/Pyz/Yves/CmsBlockWidget/CmsBlockWidgetDependencyProvider.php +++ b/src/Pyz/Yves/CmsBlockWidget/CmsBlockWidgetDependencyProvider.php @@ -14,7 +14,7 @@ class CmsBlockWidgetDependencyProvider extends SprykerCmsBlockWidgetDependencyProvider { /** - * @return \Spryker\Shared\Twig\TwigExtensionInterface[] + * @return array<\Spryker\Shared\Twig\TwigExtensionInterface> */ protected function getTwigExtensionPlugins(): array { diff --git a/src/Pyz/Yves/CmsContentWidget/CmsContentWidgetDependencyProvider.php b/src/Pyz/Yves/CmsContentWidget/CmsContentWidgetDependencyProvider.php index 87e4575c70..7383ac8ea2 100644 --- a/src/Pyz/Yves/CmsContentWidget/CmsContentWidgetDependencyProvider.php +++ b/src/Pyz/Yves/CmsContentWidget/CmsContentWidgetDependencyProvider.php @@ -23,25 +23,25 @@ class CmsContentWidgetDependencyProvider extends SprykerCmsContentWidgetDependen /** * {@inheritDoc} * - * @return \Spryker\Yves\CmsContentWidget\Dependency\CmsContentWidgetPluginInterface[] + * @return array<\Spryker\Yves\CmsContentWidget\Dependency\CmsContentWidgetPluginInterface> */ public function getCmsContentWidgetPlugins() { return [ CmsProductContentWidgetConfigurationProvider::FUNCTION_NAME => new CmsProductContentWidgetPlugin( - new CmsProductContentWidgetConfigurationProvider() + new CmsProductContentWidgetConfigurationProvider(), ), CmsProductGroupContentWidgetConfigurationProvider::FUNCTION_NAME => new CmsProductContentWidgetPlugin( - new CmsProductGroupContentWidgetConfigurationProvider() + new CmsProductGroupContentWidgetConfigurationProvider(), ), CmsProductSetContentWidgetConfigurationProvider::FUNCTION_NAME => new CmsProductSetContentWidgetPlugin( - new CmsProductSetContentWidgetConfigurationProvider() + new CmsProductSetContentWidgetConfigurationProvider(), ), FileManagerWidgetConfigurationProvider::FUNCTION_NAME => new FileManagerWidgetPlugin( - new FileManagerWidgetConfigurationProvider() + new FileManagerWidgetConfigurationProvider(), ), CmsContentWidgetCmsBlockConnectorConfigurationProvider::FUNCTION_NAME => new CmsBlockContentWidgetPlugin( - new CmsContentWidgetCmsBlockConnectorConfigurationProvider() + new CmsContentWidgetCmsBlockConnectorConfigurationProvider(), ), ]; } diff --git a/src/Pyz/Yves/CommentWidget/CommentWidgetDependencyProvider.php b/src/Pyz/Yves/CommentWidget/CommentWidgetDependencyProvider.php index 3cdec225e9..1889b5af97 100644 --- a/src/Pyz/Yves/CommentWidget/CommentWidgetDependencyProvider.php +++ b/src/Pyz/Yves/CommentWidget/CommentWidgetDependencyProvider.php @@ -13,7 +13,7 @@ class CommentWidgetDependencyProvider extends SprykerShopCommentDependencyProvider { /** - * @return \SprykerShop\Yves\CommentWidgetExtension\Dependency\Plugin\CommentThreadAfterOperationStrategyPluginInterface[] + * @return array<\SprykerShop\Yves\CommentWidgetExtension\Dependency\Plugin\CommentThreadAfterOperationStrategyPluginInterface> */ protected function getCommentThreadAfterOperationStrategyPlugins(): array { diff --git a/src/Pyz/Yves/Console/ConsoleDependencyProvider.php b/src/Pyz/Yves/Console/ConsoleDependencyProvider.php index f1b328678f..aacede9e19 100644 --- a/src/Pyz/Yves/Console/ConsoleDependencyProvider.php +++ b/src/Pyz/Yves/Console/ConsoleDependencyProvider.php @@ -19,7 +19,7 @@ class ConsoleDependencyProvider extends SprykerConsoleDependencyProvider /** * @param \Spryker\Yves\Kernel\Container $container * - * @return \Symfony\Component\Console\Command\Command[] + * @return array<\Symfony\Component\Console\Command\Command> */ protected function getConsoleCommands(Container $container): array { @@ -32,7 +32,7 @@ protected function getConsoleCommands(Container $container): array /** * @param \Spryker\Yves\Kernel\Container $container * - * @return \Spryker\Shared\ApplicationExtension\Dependency\Plugin\ApplicationPluginInterface[] + * @return array<\Spryker\Shared\ApplicationExtension\Dependency\Plugin\ApplicationPluginInterface> */ protected function getApplicationPlugins(Container $container): array { @@ -44,7 +44,7 @@ protected function getApplicationPlugins(Container $container): array /** * @param \Spryker\Yves\Kernel\Container $container * - * @return \Symfony\Component\EventDispatcher\EventSubscriberInterface[] + * @return array<\Symfony\Component\EventDispatcher\EventSubscriberInterface> */ protected function getEventSubscriber(Container $container): array { diff --git a/src/Pyz/Yves/ContentBannerWidget/ContentBannerWidgetFactory.php b/src/Pyz/Yves/ContentBannerWidget/ContentBannerWidgetFactory.php index e8e5c5d874..72a3c5b9dc 100644 --- a/src/Pyz/Yves/ContentBannerWidget/ContentBannerWidgetFactory.php +++ b/src/Pyz/Yves/ContentBannerWidget/ContentBannerWidgetFactory.php @@ -28,7 +28,7 @@ public function createPyzContentBannerTwigFunction(Environment $twig, string $lo return new TwigFunction( $functionProvider->getFunctionName(), $functionProvider->getFunction(), - $functionProvider->getOptions() + $functionProvider->getOptions(), ); } @@ -43,7 +43,7 @@ public function createPyzContentBannerTwigFunctionProvider(Environment $twig, st return new ContentBannerTwigFunctionProvider( $twig, $localeName, - $this->getContentBannerClient() + $this->getContentBannerClient(), ); } } diff --git a/src/Pyz/Yves/ContentBannerWidget/Twig/ContentBannerTwigFunctionProvider.php b/src/Pyz/Yves/ContentBannerWidget/Twig/ContentBannerTwigFunctionProvider.php index d9d003e9f7..eb84e25a8a 100644 --- a/src/Pyz/Yves/ContentBannerWidget/Twig/ContentBannerTwigFunctionProvider.php +++ b/src/Pyz/Yves/ContentBannerWidget/Twig/ContentBannerTwigFunctionProvider.php @@ -57,7 +57,7 @@ class ContentBannerTwigFunctionProvider extends TwigFunctionProvider public function __construct( Environment $twig, string $localeName, - ContentBannerWidgetToContentBannerClientInterface $contentBannerClient + ContentBannerWidgetToContentBannerClientInterface $contentBannerClient, ) { $this->twig = $twig; $this->localeName = $localeName; @@ -93,7 +93,7 @@ public function getFunction(): callable return (string)$this->twig->render( $this->getPyzAvailableTemplates()[$templateIdentifier], - ['banner' => $contentBannerTypeTransfer] + ['banner' => $contentBannerTypeTransfer], ); }; } @@ -139,7 +139,7 @@ protected function getPyzMessageBannerWrongType(string $contentKey): string { return sprintf( 'Content Banner could not be rendered because the content item with key %s is not an banner.', - $contentKey + $contentKey, ); } } diff --git a/src/Pyz/Yves/ContentNavigationWidget/ContentNavigationWidgetConfig.php b/src/Pyz/Yves/ContentNavigationWidget/ContentNavigationWidgetConfig.php index b994fc74d3..415274ed3b 100644 --- a/src/Pyz/Yves/ContentNavigationWidget/ContentNavigationWidgetConfig.php +++ b/src/Pyz/Yves/ContentNavigationWidget/ContentNavigationWidgetConfig.php @@ -49,7 +49,7 @@ class ContentNavigationWidgetConfig extends SprykerShopContentNavigationWidgetCo /** * @api * - * @return string[] + * @return array */ public function getAvailableTemplateList(): array { diff --git a/src/Pyz/Yves/ContentProductSetWidget/ContentProductSetWidgetFactory.php b/src/Pyz/Yves/ContentProductSetWidget/ContentProductSetWidgetFactory.php index 7792041976..235e688d1f 100644 --- a/src/Pyz/Yves/ContentProductSetWidget/ContentProductSetWidgetFactory.php +++ b/src/Pyz/Yves/ContentProductSetWidget/ContentProductSetWidgetFactory.php @@ -27,13 +27,13 @@ class ContentProductSetWidgetFactory extends SprykerShopContentProductSetWidgetF */ public function createPyzContentProductSetTwigFunctionProvider( Environment $twig, - string $localeName + string $localeName, ): TwigFunctionProvider { return new ContentProductSetTwigFunctionProvider( $twig, $localeName, $this->createPyzContentProductSetReader(), - $this->createPyzContentProductAbstractReader() + $this->createPyzContentProductAbstractReader(), ); } @@ -45,14 +45,14 @@ public function createPyzContentProductSetTwigFunctionProvider( */ public function createPyzContentProductSetTwigFunction( Environment $twig, - string $localeName + string $localeName, ): TwigFunction { $functionProvider = $this->createPyzContentProductSetTwigFunctionProvider($twig, $localeName); return new TwigFunction( $functionProvider->getFunctionName(), $functionProvider->getFunction(), - $functionProvider->getOptions() + $functionProvider->getOptions(), ); } @@ -63,7 +63,7 @@ public function createPyzContentProductSetReader(): ContentProductSetReaderInter { return new ContentProductSetReader( $this->getContentProductSetClient(), - $this->getProductSetStorageClient() + $this->getProductSetStorageClient(), ); } @@ -73,7 +73,7 @@ public function createPyzContentProductSetReader(): ContentProductSetReaderInter public function createPyzContentProductAbstractReader(): ContentProductAbstractReaderInterface { return new ContentProductAbstractReader( - $this->getProductStorageClient() + $this->getProductStorageClient(), ); } } diff --git a/src/Pyz/Yves/ContentProductSetWidget/Plugin/Twig/ContentProductSetTwigPlugin.php b/src/Pyz/Yves/ContentProductSetWidget/Plugin/Twig/ContentProductSetTwigPlugin.php index 3dd2b6a7e2..4a2daac232 100644 --- a/src/Pyz/Yves/ContentProductSetWidget/Plugin/Twig/ContentProductSetTwigPlugin.php +++ b/src/Pyz/Yves/ContentProductSetWidget/Plugin/Twig/ContentProductSetTwigPlugin.php @@ -33,8 +33,8 @@ public function extend(Environment $twig, ContainerInterface $container): Enviro $twig->addFunction( $this->getFactory()->createPyzContentProductSetTwigFunction( $twig, - $this->getLocale() - ) + $this->getLocale(), + ), ); return $twig; diff --git a/src/Pyz/Yves/ContentProductSetWidget/Reader/ContentProductAbstractReader.php b/src/Pyz/Yves/ContentProductSetWidget/Reader/ContentProductAbstractReader.php index 5243756620..55172f0baa 100644 --- a/src/Pyz/Yves/ContentProductSetWidget/Reader/ContentProductAbstractReader.php +++ b/src/Pyz/Yves/ContentProductSetWidget/Reader/ContentProductAbstractReader.php @@ -30,12 +30,12 @@ public function __construct(ContentProductSetWidgetToProductStorageClientInterfa * @param array $selectedAttributes * @param string $localeName * - * @return \Generated\Shared\Transfer\ProductViewTransfer[] + * @return array<\Generated\Shared\Transfer\ProductViewTransfer> */ public function getProductAbstractCollection( ProductSetDataStorageTransfer $productSetDataStorageTransfer, array $selectedAttributes, - string $localeName + string $localeName, ): array { $productAbstractViewCollection = []; diff --git a/src/Pyz/Yves/ContentProductSetWidget/Reader/ContentProductAbstractReaderInterface.php b/src/Pyz/Yves/ContentProductSetWidget/Reader/ContentProductAbstractReaderInterface.php index adf52df745..36ec2e0488 100644 --- a/src/Pyz/Yves/ContentProductSetWidget/Reader/ContentProductAbstractReaderInterface.php +++ b/src/Pyz/Yves/ContentProductSetWidget/Reader/ContentProductAbstractReaderInterface.php @@ -16,11 +16,11 @@ interface ContentProductAbstractReaderInterface * @param array $selectedAttributes * @param string $localeName * - * @return \Generated\Shared\Transfer\ProductViewTransfer[] + * @return array<\Generated\Shared\Transfer\ProductViewTransfer> */ public function getProductAbstractCollection( ProductSetDataStorageTransfer $productSetDataStorageTransfer, array $selectedAttributes, - string $localeName + string $localeName, ): array; } diff --git a/src/Pyz/Yves/ContentProductSetWidget/Reader/ContentProductSetReader.php b/src/Pyz/Yves/ContentProductSetWidget/Reader/ContentProductSetReader.php index 1b58f8f80c..ff7dad6a60 100644 --- a/src/Pyz/Yves/ContentProductSetWidget/Reader/ContentProductSetReader.php +++ b/src/Pyz/Yves/ContentProductSetWidget/Reader/ContentProductSetReader.php @@ -29,7 +29,7 @@ class ContentProductSetReader implements ContentProductSetReaderInterface */ public function __construct( ContentProductSetWidgetToContentProductSetClientInterface $contentProductSetClient, - ContentProductSetWidgetToProductSetStorageClientInterface $productSetStorageClient + ContentProductSetWidgetToProductSetStorageClientInterface $productSetStorageClient, ) { $this->contentProductSetClient = $contentProductSetClient; $this->productSetStorageClient = $productSetStorageClient; diff --git a/src/Pyz/Yves/ContentProductSetWidget/Twig/ContentProductSetTwigFunctionProvider.php b/src/Pyz/Yves/ContentProductSetWidget/Twig/ContentProductSetTwigFunctionProvider.php index ecbd6ae3a3..f2153ac158 100644 --- a/src/Pyz/Yves/ContentProductSetWidget/Twig/ContentProductSetTwigFunctionProvider.php +++ b/src/Pyz/Yves/ContentProductSetWidget/Twig/ContentProductSetTwigFunctionProvider.php @@ -86,7 +86,7 @@ public function __construct( Environment $twig, string $localeName, ContentProductSetReaderInterface $contentProductSetReader, - ContentProductAbstractReaderInterface $contentProductAbstractReader + ContentProductAbstractReaderInterface $contentProductAbstractReader, ) { $this->twig = $twig; $this->localeName = $localeName; @@ -133,7 +133,7 @@ public function getFunction(): callable [ 'productSet' => $productSetDataStorageTransfer, 'productViews' => $productAbstractViewCollection, - ] + ], ); }; } @@ -150,7 +150,7 @@ public function getOptions(): array } /** - * @return string[] + * @return array */ protected function getPyzAvailableTemplates(): array { @@ -191,7 +191,7 @@ protected function getPyzMessageProductSetWrongType(string $contentKey): string { return sprintf( 'Content product set widget could not be rendered because the content item with key "%s" is not a product set.', - $contentKey + $contentKey, ); } diff --git a/src/Pyz/Yves/ContentProductWidget/ContentProductWidgetFactory.php b/src/Pyz/Yves/ContentProductWidget/ContentProductWidgetFactory.php index 6798052cdb..37e020a624 100644 --- a/src/Pyz/Yves/ContentProductWidget/ContentProductWidgetFactory.php +++ b/src/Pyz/Yves/ContentProductWidget/ContentProductWidgetFactory.php @@ -32,7 +32,7 @@ public function createPyzContentProductAbstractListTwigFunction(Environment $twi return new TwigFunction( $functionProvider->getFunctionName(), $functionProvider->getFunction(), - $functionProvider->getOptions() + $functionProvider->getOptions(), ); } @@ -47,7 +47,7 @@ public function createPyzContentProductAbstractListTwigFunctionProvider(Environm return new ContentProductAbstractListTwigFunctionProvider( $twig, $localeName, - $this->createPyzContentProductAbstractReader() + $this->createPyzContentProductAbstractReader(), ); } @@ -58,7 +58,7 @@ public function createPyzContentProductAbstractReader(): ContentProductAbstractR { return new ContentProductAbstractReader( $this->getPyzContentProductClient(), - $this->getPyzProductStorageClient() + $this->getPyzProductStorageClient(), ); } diff --git a/src/Pyz/Yves/ContentProductWidget/Reader/ContentProductAbstractReader.php b/src/Pyz/Yves/ContentProductWidget/Reader/ContentProductAbstractReader.php index 10586818e2..81c0dbb1e2 100644 --- a/src/Pyz/Yves/ContentProductWidget/Reader/ContentProductAbstractReader.php +++ b/src/Pyz/Yves/ContentProductWidget/Reader/ContentProductAbstractReader.php @@ -28,7 +28,7 @@ class ContentProductAbstractReader implements ContentProductAbstractReaderInterf */ public function __construct( ContentProductClientInterface $contentProductClient, - ProductStorageClientInterface $productStorageClient + ProductStorageClientInterface $productStorageClient, ) { $this->contentProductClient = $contentProductClient; $this->productStorageClient = $productStorageClient; @@ -38,7 +38,7 @@ public function __construct( * @param string $contentKey * @param string $localeName * - * @return \Generated\Shared\Transfer\ProductViewTransfer[] + * @return array<\Generated\Shared\Transfer\ProductViewTransfer> */ public function getPyzProductAbstractCollection(string $contentKey, string $localeName): array { diff --git a/src/Pyz/Yves/ContentProductWidget/Reader/ContentProductAbstractReaderInterface.php b/src/Pyz/Yves/ContentProductWidget/Reader/ContentProductAbstractReaderInterface.php index a3a9b2e65c..ba35365a7a 100644 --- a/src/Pyz/Yves/ContentProductWidget/Reader/ContentProductAbstractReaderInterface.php +++ b/src/Pyz/Yves/ContentProductWidget/Reader/ContentProductAbstractReaderInterface.php @@ -13,7 +13,7 @@ interface ContentProductAbstractReaderInterface * @param string $contentKey * @param string $localeName * - * @return \Generated\Shared\Transfer\ProductViewTransfer[] + * @return array<\Generated\Shared\Transfer\ProductViewTransfer> */ public function getPyzProductAbstractCollection(string $contentKey, string $localeName): array; } diff --git a/src/Pyz/Yves/ContentProductWidget/Twig/ContentProductAbstractListTwigFunctionProvider.php b/src/Pyz/Yves/ContentProductWidget/Twig/ContentProductAbstractListTwigFunctionProvider.php index c08942f0dc..9608b098c9 100644 --- a/src/Pyz/Yves/ContentProductWidget/Twig/ContentProductAbstractListTwigFunctionProvider.php +++ b/src/Pyz/Yves/ContentProductWidget/Twig/ContentProductAbstractListTwigFunctionProvider.php @@ -60,7 +60,7 @@ class ContentProductAbstractListTwigFunctionProvider extends TwigFunctionProvide public function __construct( Environment $twig, string $localeName, - ContentProductAbstractReaderInterface $contentProductAbstractReader + ContentProductAbstractReaderInterface $contentProductAbstractReader, ) { $this->twig = $twig; $this->localeName = $localeName; @@ -100,7 +100,7 @@ public function getFunction(): callable $this->getPyzAvailableTemplates()[$templateIdentifier], [ 'productAbstractViewCollection' => $productAbstractViewCollection, - ] + ], ); }; } @@ -146,7 +146,7 @@ protected function getPyzMessageProductAbstractWrongType(string $contentKey): st { return sprintf( 'Content product abstract list widget could not be rendered because the content item with key "%s" is not an abstract product list.', - $contentKey + $contentKey, ); } } diff --git a/src/Pyz/Yves/CustomerFullNameWidget/Widget/CustomerFullNameWidget.php b/src/Pyz/Yves/CustomerFullNameWidget/Widget/CustomerFullNameWidget.php index fb69b36bf4..282395566c 100644 --- a/src/Pyz/Yves/CustomerFullNameWidget/Widget/CustomerFullNameWidget.php +++ b/src/Pyz/Yves/CustomerFullNameWidget/Widget/CustomerFullNameWidget.php @@ -49,7 +49,7 @@ protected function addPyzCustomerFullNameParameter(): void $this->addParameter( static::PYZ_PARAMETER_CUSTOMER_FULL_NAME, - $customerTransfer->getFirstName() . ' ' . $customerTransfer->getLastName() + $customerTransfer->getFirstName() . ' ' . $customerTransfer->getLastName(), ); } } diff --git a/src/Pyz/Yves/CustomerPage/CustomerPageDependencyProvider.php b/src/Pyz/Yves/CustomerPage/CustomerPageDependencyProvider.php index 8e731cef50..27ace3ac3e 100644 --- a/src/Pyz/Yves/CustomerPage/CustomerPageDependencyProvider.php +++ b/src/Pyz/Yves/CustomerPage/CustomerPageDependencyProvider.php @@ -42,7 +42,7 @@ public function provideDependencies(Container $container): Container } /** - * @return string[] + * @return array */ protected function getCustomerOverviewWidgetPlugins(): array { @@ -52,7 +52,7 @@ protected function getCustomerOverviewWidgetPlugins(): array } /** - * @return string[] + * @return array */ protected function getCustomerOrderListWidgetPlugins(): array { @@ -62,7 +62,7 @@ protected function getCustomerOrderListWidgetPlugins(): array } /** - * @return string[] + * @return array */ protected function getCustomerOrderViewWidgetPlugins(): array { @@ -72,7 +72,7 @@ protected function getCustomerOrderViewWidgetPlugins(): array } /** - * @return \SprykerShop\Yves\CustomerPageExtension\Dependency\Plugin\PreRegistrationCustomerTransferExpanderPluginInterface[] + * @return array<\SprykerShop\Yves\CustomerPageExtension\Dependency\Plugin\PreRegistrationCustomerTransferExpanderPluginInterface> */ protected function getPreRegistrationCustomerTransferExpanderPlugins(): array { @@ -82,7 +82,7 @@ protected function getPreRegistrationCustomerTransferExpanderPlugins(): array } /** - * @return \SprykerShop\Yves\CustomerPageExtension\Dependency\Plugin\CustomerRedirectStrategyPluginInterface[] + * @return array<\SprykerShop\Yves\CustomerPageExtension\Dependency\Plugin\CustomerRedirectStrategyPluginInterface> */ protected function getAfterLoginCustomerRedirectPlugins(): array { @@ -118,7 +118,7 @@ protected function addPyzSessionClient(Container $container): Container } /** - * @return \SprykerShop\Yves\CustomerPageExtension\Dependency\Plugin\OrderSearchFormExpanderPluginInterface[] + * @return array<\SprykerShop\Yves\CustomerPageExtension\Dependency\Plugin\OrderSearchFormExpanderPluginInterface> */ protected function getOrderSearchFormExpanderPlugins(): array { @@ -128,7 +128,7 @@ protected function getOrderSearchFormExpanderPlugins(): array } /** - * @return \SprykerShop\Yves\CustomerPageExtension\Dependency\Plugin\OrderSearchFormHandlerPluginInterface[] + * @return array<\SprykerShop\Yves\CustomerPageExtension\Dependency\Plugin\OrderSearchFormHandlerPluginInterface> */ protected function getOrderSearchFormHandlerPlugins(): array { @@ -138,7 +138,7 @@ protected function getOrderSearchFormHandlerPlugins(): array } /** - * @return \SprykerShop\Yves\CustomerPageExtension\Dependency\Plugin\PreAuthUserCheckPluginInterface[] + * @return array<\SprykerShop\Yves\CustomerPageExtension\Dependency\Plugin\PreAuthUserCheckPluginInterface> */ protected function getPreAuthUserCheckPlugins(): array { @@ -148,7 +148,7 @@ protected function getPreAuthUserCheckPlugins(): array } /** - * @return \SprykerShop\Yves\CustomerPageExtension\Dependency\Plugin\CheckoutAddressStepPreGroupItemsByShipmentPluginInterface[] + * @return array<\SprykerShop\Yves\CustomerPageExtension\Dependency\Plugin\CheckoutAddressStepPreGroupItemsByShipmentPluginInterface> */ protected function getCheckoutAddressStepPreGroupItemsByShipmentPlugins(): array { diff --git a/src/Pyz/Yves/CustomerReorderWidget/CustomerReorderWidgetDependencyProvider.php b/src/Pyz/Yves/CustomerReorderWidget/CustomerReorderWidgetDependencyProvider.php index 85c60ec407..163f7bbbf3 100644 --- a/src/Pyz/Yves/CustomerReorderWidget/CustomerReorderWidgetDependencyProvider.php +++ b/src/Pyz/Yves/CustomerReorderWidget/CustomerReorderWidgetDependencyProvider.php @@ -15,7 +15,7 @@ class CustomerReorderWidgetDependencyProvider extends SprykerShopCustomerReorderWidgetDependencyProvider { /** - * @return \SprykerShop\Yves\CustomerReorderWidgetExtension\Dependency\Plugin\PostReorderPluginInterface[] + * @return array<\SprykerShop\Yves\CustomerReorderWidgetExtension\Dependency\Plugin\PostReorderPluginInterface> */ protected function getPostReorderPlugins(): array { diff --git a/src/Pyz/Yves/ErrorPage/ErrorPageDependencyProvider.php b/src/Pyz/Yves/ErrorPage/ErrorPageDependencyProvider.php index 9479a02247..407741f7a4 100644 --- a/src/Pyz/Yves/ErrorPage/ErrorPageDependencyProvider.php +++ b/src/Pyz/Yves/ErrorPage/ErrorPageDependencyProvider.php @@ -14,9 +14,9 @@ class ErrorPageDependencyProvider extends SprykerErrorPageDependencyProvider { /** - * @return \SprykerShop\Yves\ErrorPageExtension\Dependency\Plugin\ExceptionHandlerPluginInterface[] + * @return array<\SprykerShop\Yves\ErrorPageExtension\Dependency\Plugin\ExceptionHandlerPluginInterface> */ - protected function getExceptionHandlerPlugins() + protected function getExceptionHandlerPlugins(): array { return [ new RedirectExceptionHandlerPlugin(), diff --git a/src/Pyz/Yves/EventDispatcher/EventDispatcherDependencyProvider.php b/src/Pyz/Yves/EventDispatcher/EventDispatcherDependencyProvider.php index bb1df3fdec..36e33ee0d2 100644 --- a/src/Pyz/Yves/EventDispatcher/EventDispatcherDependencyProvider.php +++ b/src/Pyz/Yves/EventDispatcher/EventDispatcherDependencyProvider.php @@ -34,7 +34,7 @@ class EventDispatcherDependencyProvider extends SprykerEventDispatcherDependencyProvider { /** - * @return \Spryker\Shared\EventDispatcherExtension\Dependency\Plugin\EventDispatcherPluginInterface[] + * @return array<\Spryker\Shared\EventDispatcherExtension\Dependency\Plugin\EventDispatcherPluginInterface> */ protected function getEventDispatcherPlugins(): array { diff --git a/src/Pyz/Yves/ExampleProductSalePage/Controller/SaleController.php b/src/Pyz/Yves/ExampleProductSalePage/Controller/SaleController.php index 2e6632cdca..09290d93d8 100644 --- a/src/Pyz/Yves/ExampleProductSalePage/Controller/SaleController.php +++ b/src/Pyz/Yves/ExampleProductSalePage/Controller/SaleController.php @@ -49,7 +49,7 @@ public function indexPyzAction($categoryPath, Request $request): View return $this->view( $searchResults, $this->getFactory()->getExampleProductSalePageWidgetPlugins(), - '@ExampleProductSalePage/views/sale-example/sale-example.twig' + '@ExampleProductSalePage/views/sale-example/sale-example.twig', ); } @@ -73,7 +73,7 @@ protected function getPyzCategoryNode($categoryPath): array throw new NotFoundHttpException(sprintf( 'Category not found by path %s (full path %s)', $categoryPath, - $fullCategoryPath + $fullCategoryPath, )); } diff --git a/src/Pyz/Yves/ExampleProductSalePage/ExampleProductSalePageFactory.php b/src/Pyz/Yves/ExampleProductSalePage/ExampleProductSalePageFactory.php index 48176b695a..1ceca440cb 100644 --- a/src/Pyz/Yves/ExampleProductSalePage/ExampleProductSalePageFactory.php +++ b/src/Pyz/Yves/ExampleProductSalePage/ExampleProductSalePageFactory.php @@ -16,7 +16,7 @@ class ExampleProductSalePageFactory extends AbstractFactory { /** - * @return string[] + * @return array */ public function getExampleProductSalePageWidgetPlugins(): array { diff --git a/src/Pyz/Yves/Form/FormDependencyProvider.php b/src/Pyz/Yves/Form/FormDependencyProvider.php index 8377ef83a4..88c630de2c 100644 --- a/src/Pyz/Yves/Form/FormDependencyProvider.php +++ b/src/Pyz/Yves/Form/FormDependencyProvider.php @@ -16,7 +16,7 @@ class FormDependencyProvider extends SprykerFormDependencyProvider { /** - * @return \Spryker\Shared\FormExtension\Dependency\Plugin\FormPluginInterface[] + * @return array<\Spryker\Shared\FormExtension\Dependency\Plugin\FormPluginInterface> */ protected function getFormPlugins(): array { diff --git a/src/Pyz/Yves/HealthCheck/HealthCheckDependencyProvider.php b/src/Pyz/Yves/HealthCheck/HealthCheckDependencyProvider.php index 7b41030918..a0d702e478 100644 --- a/src/Pyz/Yves/HealthCheck/HealthCheckDependencyProvider.php +++ b/src/Pyz/Yves/HealthCheck/HealthCheckDependencyProvider.php @@ -16,7 +16,7 @@ class HealthCheckDependencyProvider extends SprykerHealthCheckDependencyProvider { /** - * @return \Spryker\Shared\HealthCheckExtension\Dependency\Plugin\HealthCheckPluginInterface[] + * @return array<\Spryker\Shared\HealthCheckExtension\Dependency\Plugin\HealthCheckPluginInterface> */ protected function getHealthCheckPlugins(): array { diff --git a/src/Pyz/Yves/Http/HttpDependencyProvider.php b/src/Pyz/Yves/Http/HttpDependencyProvider.php index 2c7f07f32f..731a2eef87 100644 --- a/src/Pyz/Yves/Http/HttpDependencyProvider.php +++ b/src/Pyz/Yves/Http/HttpDependencyProvider.php @@ -14,7 +14,7 @@ class HttpDependencyProvider extends SprykerHttpDependencyProvider { /** - * @return \Spryker\Shared\HttpExtension\Dependency\Plugin\FragmentHandlerPluginInterface[] + * @return array<\Spryker\Shared\HttpExtension\Dependency\Plugin\FragmentHandlerPluginInterface> */ protected function getFragmentHandlerPlugins(): array { diff --git a/src/Pyz/Yves/Log/LogDependencyProvider.php b/src/Pyz/Yves/Log/LogDependencyProvider.php index f94bb409ee..5c6fd28088 100644 --- a/src/Pyz/Yves/Log/LogDependencyProvider.php +++ b/src/Pyz/Yves/Log/LogDependencyProvider.php @@ -25,7 +25,7 @@ class LogDependencyProvider extends SprykerLogDependencyProvider * * @return \Spryker\Yves\Kernel\Container */ - protected function addLogHandlers(Container $container) + protected function addLogHandlers(Container $container): Container { $container->set(static::LOG_HANDLERS, function () { return [ @@ -42,7 +42,7 @@ protected function addLogHandlers(Container $container) * * @return \Spryker\Yves\Kernel\Container */ - protected function addProcessors(Container $container) + protected function addProcessors(Container $container): Container { $container->set(static::LOG_PROCESSORS, function () { return [ diff --git a/src/Pyz/Yves/Monitoring/MonitoringDependencyProvider.php b/src/Pyz/Yves/Monitoring/MonitoringDependencyProvider.php index e02f439479..518ce3676d 100644 --- a/src/Pyz/Yves/Monitoring/MonitoringDependencyProvider.php +++ b/src/Pyz/Yves/Monitoring/MonitoringDependencyProvider.php @@ -13,7 +13,7 @@ class MonitoringDependencyProvider extends SprykerMonitoringDependencyProvider { /** - * @return \Spryker\Service\MonitoringExtension\Dependency\Plugin\MonitoringExtensionPluginInterface[] + * @return array<\Spryker\Service\MonitoringExtension\Dependency\Plugin\MonitoringExtensionPluginInterface> */ protected function getMonitoringExtensions(): array { diff --git a/src/Pyz/Yves/ProductDetailPage/Controller/ProductController.php b/src/Pyz/Yves/ProductDetailPage/Controller/ProductController.php index 6f6dd5db42..2945fa4ecd 100644 --- a/src/Pyz/Yves/ProductDetailPage/Controller/ProductController.php +++ b/src/Pyz/Yves/ProductDetailPage/Controller/ProductController.php @@ -55,7 +55,7 @@ protected function executeDetailAction(array $productData, Request $request): ar $quoteTransfer = new QuoteTransfer(); $quoteTransfer->addItem( - (new ItemTransfer())->setIdProductAbstract($productViewTransfer->getIdProductAbstract()) + (new ItemTransfer())->setIdProductAbstract($productViewTransfer->getIdProductAbstract()), ); $bundledProducts = []; @@ -73,7 +73,7 @@ protected function executeDetailAction(array $productData, Request $request): ar 'sku' => $bundledProduct['sku'], 'idProductConcrete' => $bundledProduct['id_product_concrete'], ], - $this->getLocale() + $this->getLocale(), ); $bundledProduct['image'] = $bundledProductView->getImages()->offsetGet(0)->getExternalUrlSmall(); $bundledProducts[] = $bundledProduct; diff --git a/src/Pyz/Yves/ProductGroupWidget/ProductGroupWidgetDependencyProvider.php b/src/Pyz/Yves/ProductGroupWidget/ProductGroupWidgetDependencyProvider.php index 790bc8bd10..2433a72c7d 100644 --- a/src/Pyz/Yves/ProductGroupWidget/ProductGroupWidgetDependencyProvider.php +++ b/src/Pyz/Yves/ProductGroupWidget/ProductGroupWidgetDependencyProvider.php @@ -15,7 +15,7 @@ class ProductGroupWidgetDependencyProvider extends SprykerShopProductGroupWidgetDependencyProvider { /** - * @return \SprykerShop\Yves\ProductGroupWidgetExtension\Dependency\Plugin\ProductViewExpanderPluginInterface[] + * @return array<\SprykerShop\Yves\ProductGroupWidgetExtension\Dependency\Plugin\ProductViewExpanderPluginInterface> */ protected function getProductViewExpanderPlugins(): array { @@ -26,7 +26,7 @@ protected function getProductViewExpanderPlugins(): array } /** - * @return \SprykerShop\Yves\ProductGroupWidgetExtension\Dependency\Plugin\ProductViewBulkExpanderPluginInterface[] + * @return array<\SprykerShop\Yves\ProductGroupWidgetExtension\Dependency\Plugin\ProductViewBulkExpanderPluginInterface> */ protected function getProductViewBulkExpanderPlugins(): array { diff --git a/src/Pyz/Yves/ProductSetWidget/Widget/ProductSetIdsWidget.php b/src/Pyz/Yves/ProductSetWidget/Widget/ProductSetIdsWidget.php index a403468a5d..14576d1d74 100644 --- a/src/Pyz/Yves/ProductSetWidget/Widget/ProductSetIdsWidget.php +++ b/src/Pyz/Yves/ProductSetWidget/Widget/ProductSetIdsWidget.php @@ -60,7 +60,7 @@ protected function addPyzProductSetListParameter(array $productSetIds): void } /** - * @param int[] $productSetIds + * @param array $productSetIds * * @return array */ @@ -109,7 +109,7 @@ protected function getPyzProductSetStorageTransfer($idProductSet): ?ProductSetDa /** * @param \Generated\Shared\Transfer\ProductSetDataStorageTransfer $productSetDataStorageTransfer * - * @return \Generated\Shared\Transfer\ProductViewTransfer[] + * @return array<\Generated\Shared\Transfer\ProductViewTransfer> */ protected function mapPyzProductSetDataStorageTransfers(ProductSetDataStorageTransfer $productSetDataStorageTransfer): array { @@ -121,7 +121,7 @@ protected function mapPyzProductSetDataStorageTransfers(ProductSetDataStorageTra } $productViewTransfers[] = $this->getFactory()->getPyzProductStorageClient()->mapProductStorageData( $productAbstractData, - $this->getLocale() + $this->getLocale(), ); } diff --git a/src/Pyz/Yves/QuickOrderPage/QuickOrderPageDependencyProvider.php b/src/Pyz/Yves/QuickOrderPage/QuickOrderPageDependencyProvider.php index b3273fd582..15e5f1061b 100644 --- a/src/Pyz/Yves/QuickOrderPage/QuickOrderPageDependencyProvider.php +++ b/src/Pyz/Yves/QuickOrderPage/QuickOrderPageDependencyProvider.php @@ -24,7 +24,7 @@ class QuickOrderPageDependencyProvider extends SprykerQuickOrderPageDependencyProvider { /** - * @return \SprykerShop\Yves\QuickOrderPageExtension\Dependency\Plugin\QuickOrderItemExpanderPluginInterface[] + * @return array<\SprykerShop\Yves\QuickOrderPageExtension\Dependency\Plugin\QuickOrderItemExpanderPluginInterface> */ protected function getQuickOrderItemTransferExpanderPlugins(): array { @@ -36,7 +36,7 @@ protected function getQuickOrderItemTransferExpanderPlugins(): array } /** - * @return \SprykerShop\Yves\QuickOrderPageExtension\Dependency\Plugin\QuickOrderFormHandlerStrategyPluginInterface[] + * @return array<\SprykerShop\Yves\QuickOrderPageExtension\Dependency\Plugin\QuickOrderFormHandlerStrategyPluginInterface> */ protected function getQuickOrderFormHandlerStrategyPlugins(): array { @@ -46,7 +46,7 @@ protected function getQuickOrderFormHandlerStrategyPlugins(): array } /** - * @return \SprykerShop\Yves\QuickOrderPageExtension\Dependency\Plugin\QuickOrderFormColumnPluginInterface[] + * @return array<\SprykerShop\Yves\QuickOrderPageExtension\Dependency\Plugin\QuickOrderFormColumnPluginInterface> */ protected function getQuickOrderFormColumnPlugins(): array { @@ -57,7 +57,7 @@ protected function getQuickOrderFormColumnPlugins(): array } /** - * @return \SprykerShop\Yves\QuickOrderPageExtension\Dependency\Plugin\QuickOrderUploadedFileParserStrategyPluginInterface[] + * @return array<\SprykerShop\Yves\QuickOrderPageExtension\Dependency\Plugin\QuickOrderUploadedFileParserStrategyPluginInterface> */ protected function getQuickOrderUploadedFileParserPlugins(): array { @@ -67,7 +67,7 @@ protected function getQuickOrderUploadedFileParserPlugins(): array } /** - * @return \SprykerShop\Yves\QuickOrderPageExtension\Dependency\Plugin\QuickOrderFileTemplateStrategyPluginInterface[] + * @return array<\SprykerShop\Yves\QuickOrderPageExtension\Dependency\Plugin\QuickOrderFileTemplateStrategyPluginInterface> */ protected function getQuickOrderFileTemplatePlugins(): array { @@ -77,7 +77,7 @@ protected function getQuickOrderFileTemplatePlugins(): array } /** - * @return \SprykerShop\Yves\QuickOrderPageExtension\Dependency\Plugin\QuickOrderUploadedFileValidatorStrategyPluginInterface[] + * @return array<\SprykerShop\Yves\QuickOrderPageExtension\Dependency\Plugin\QuickOrderUploadedFileValidatorStrategyPluginInterface> */ protected function getQuickOrderUploadedFileValidatorPlugins(): array { diff --git a/src/Pyz/Yves/QuoteRequestAgentPage/QuoteRequestAgentPageDependencyProvider.php b/src/Pyz/Yves/QuoteRequestAgentPage/QuoteRequestAgentPageDependencyProvider.php index 78c551c3b0..e8c653c616 100644 --- a/src/Pyz/Yves/QuoteRequestAgentPage/QuoteRequestAgentPageDependencyProvider.php +++ b/src/Pyz/Yves/QuoteRequestAgentPage/QuoteRequestAgentPageDependencyProvider.php @@ -15,7 +15,7 @@ class QuoteRequestAgentPageDependencyProvider extends SprykerQuoteRequestAgentPageDependencyProvider { /** - * @return \SprykerShop\Yves\QuoteRequestAgentPageExtension\Dependency\Plugin\QuoteRequestAgentFormMetadataFieldPluginInterface[] + * @return array<\SprykerShop\Yves\QuoteRequestAgentPageExtension\Dependency\Plugin\QuoteRequestAgentFormMetadataFieldPluginInterface> */ protected function getQuoteRequestAgentFormMetadataFieldPlugins(): array { diff --git a/src/Pyz/Yves/QuoteRequestPage/QuoteRequestPageDependencyProvider.php b/src/Pyz/Yves/QuoteRequestPage/QuoteRequestPageDependencyProvider.php index d9751bf908..64ef195c48 100644 --- a/src/Pyz/Yves/QuoteRequestPage/QuoteRequestPageDependencyProvider.php +++ b/src/Pyz/Yves/QuoteRequestPage/QuoteRequestPageDependencyProvider.php @@ -15,7 +15,7 @@ class QuoteRequestPageDependencyProvider extends SprykerQuoteRequestPageDependencyProvider { /** - * @return \SprykerShop\Yves\QuoteRequestPageExtension\Dependency\Plugin\QuoteRequestFormMetadataFieldPluginInterface[] + * @return array<\SprykerShop\Yves\QuoteRequestPageExtension\Dependency\Plugin\QuoteRequestFormMetadataFieldPluginInterface> */ protected function getQuoteRequestFormMetadataFieldPlugins(): array { diff --git a/src/Pyz/Yves/ResourceSharePage/ResourceSharePageDependencyProvider.php b/src/Pyz/Yves/ResourceSharePage/ResourceSharePageDependencyProvider.php index 57182048ce..9b7f7d525f 100644 --- a/src/Pyz/Yves/ResourceSharePage/ResourceSharePageDependencyProvider.php +++ b/src/Pyz/Yves/ResourceSharePage/ResourceSharePageDependencyProvider.php @@ -14,7 +14,7 @@ class ResourceSharePageDependencyProvider extends SprykerResourceSharePageDependencyProvider { /** - * @return \SprykerShop\Yves\ResourceSharePageExtension\Dependency\Plugin\ResourceShareRouterStrategyPluginInterface[] + * @return array<\SprykerShop\Yves\ResourceSharePageExtension\Dependency\Plugin\ResourceShareRouterStrategyPluginInterface> */ protected function getResourceShareRouterStrategyPlugins(): array { diff --git a/src/Pyz/Yves/Router/RouterDependencyProvider.php b/src/Pyz/Yves/Router/RouterDependencyProvider.php index 2f0d718ba2..f32999f5d5 100644 --- a/src/Pyz/Yves/Router/RouterDependencyProvider.php +++ b/src/Pyz/Yves/Router/RouterDependencyProvider.php @@ -74,7 +74,7 @@ class RouterDependencyProvider extends SprykerRouterDependencyProvider { /** - * @return \Spryker\Yves\RouterExtension\Dependency\Plugin\RouterPluginInterface[] + * @return array<\Spryker\Yves\RouterExtension\Dependency\Plugin\RouterPluginInterface> */ protected function getRouterPlugins(): array { @@ -87,7 +87,7 @@ protected function getRouterPlugins(): array } /** - * @return \Spryker\Yves\RouterExtension\Dependency\Plugin\RouteProviderPluginInterface[] + * @return array<\Spryker\Yves\RouterExtension\Dependency\Plugin\RouteProviderPluginInterface> */ protected function getRouteProvider(): array { @@ -150,7 +150,7 @@ protected function getRouteProvider(): array } /** - * @return \Spryker\Yves\RouterExtension\Dependency\Plugin\PostAddRouteManipulatorPluginInterface[] + * @return array<\Spryker\Yves\RouterExtension\Dependency\Plugin\PostAddRouteManipulatorPluginInterface> */ protected function getPostAddRouteManipulator(): array { @@ -162,7 +162,7 @@ protected function getPostAddRouteManipulator(): array } /** - * @return \Spryker\Yves\RouterExtension\Dependency\Plugin\RouterEnhancerPluginInterface[] + * @return array<\Spryker\Yves\RouterExtension\Dependency\Plugin\RouterEnhancerPluginInterface> */ protected function getRouterEnhancerPlugins(): array { diff --git a/src/Pyz/Yves/SalesReturnPage/SalesReturnPageDependencyProvider.php b/src/Pyz/Yves/SalesReturnPage/SalesReturnPageDependencyProvider.php index e6b512ddd7..f1d4427aab 100644 --- a/src/Pyz/Yves/SalesReturnPage/SalesReturnPageDependencyProvider.php +++ b/src/Pyz/Yves/SalesReturnPage/SalesReturnPageDependencyProvider.php @@ -13,7 +13,7 @@ class SalesReturnPageDependencyProvider extends SprykerSalesReturnPageDependencyProvider { /** - * @return \SprykerShop\Yves\SalesReturnPageExtension\Dependency\Plugin\ReturnCreateFormHandlerPluginInterface[] + * @return array<\SprykerShop\Yves\SalesReturnPageExtension\Dependency\Plugin\ReturnCreateFormHandlerPluginInterface> */ protected function getReturnCreateFormHandlerPlugins(): array { diff --git a/src/Pyz/Yves/Security/SecurityDependencyProvider.php b/src/Pyz/Yves/Security/SecurityDependencyProvider.php index b31778a1b1..6cae77d309 100644 --- a/src/Pyz/Yves/Security/SecurityDependencyProvider.php +++ b/src/Pyz/Yves/Security/SecurityDependencyProvider.php @@ -20,7 +20,7 @@ class SecurityDependencyProvider extends SprykerSecurityDependencyProvider { /** - * @return \Spryker\Shared\SecurityExtension\Dependency\Plugin\SecurityPluginInterface[] + * @return array<\Spryker\Shared\SecurityExtension\Dependency\Plugin\SecurityPluginInterface> */ protected function getSecurityPlugins(): array { diff --git a/src/Pyz/Yves/Session/SessionDependencyProvider.php b/src/Pyz/Yves/Session/SessionDependencyProvider.php index 0b8a97b984..db08ab6704 100644 --- a/src/Pyz/Yves/Session/SessionDependencyProvider.php +++ b/src/Pyz/Yves/Session/SessionDependencyProvider.php @@ -15,7 +15,7 @@ class SessionDependencyProvider extends SprykerSessionDependencyProvider { /** - * @return \Spryker\Shared\SessionExtension\Dependency\Plugin\SessionHandlerProviderPluginInterface[] + * @return array<\Spryker\Shared\SessionExtension\Dependency\Plugin\SessionHandlerProviderPluginInterface> */ protected function getSessionHandlerPlugins(): array { diff --git a/src/Pyz/Yves/ShopApplication/ShopApplicationDependencyProvider.php b/src/Pyz/Yves/ShopApplication/ShopApplicationDependencyProvider.php index a6f571a3c5..6eeb6e266e 100644 --- a/src/Pyz/Yves/ShopApplication/ShopApplicationDependencyProvider.php +++ b/src/Pyz/Yves/ShopApplication/ShopApplicationDependencyProvider.php @@ -171,7 +171,7 @@ class ShopApplicationDependencyProvider extends SprykerShopApplicationDependencyProvider { /** - * @return string[] + * @return array */ protected function getGlobalWidgets(): array { @@ -311,7 +311,7 @@ protected function getGlobalWidgets(): array } /** - * @return \SprykerShop\Yves\ShopApplicationExtension\Dependency\Plugin\WidgetCacheKeyGeneratorStrategyPluginInterface[] + * @return array<\SprykerShop\Yves\ShopApplicationExtension\Dependency\Plugin\WidgetCacheKeyGeneratorStrategyPluginInterface> */ protected function getWidgetCacheKeyGeneratorStrategyPlugins(): array { @@ -326,7 +326,7 @@ protected function getWidgetCacheKeyGeneratorStrategyPlugins(): array } /** - * @return \SprykerShop\Yves\ShopApplicationExtension\Dependency\Plugin\FilterControllerEventHandlerPluginInterface[] + * @return array<\SprykerShop\Yves\ShopApplicationExtension\Dependency\Plugin\FilterControllerEventHandlerPluginInterface> */ protected function getFilterControllerEventSubscriberPlugins(): array { @@ -338,7 +338,7 @@ protected function getFilterControllerEventSubscriberPlugins(): array } /** - * @return \Spryker\Shared\ApplicationExtension\Dependency\Plugin\ApplicationPluginInterface[] + * @return array<\Spryker\Shared\ApplicationExtension\Dependency\Plugin\ApplicationPluginInterface> */ protected function getApplicationPlugins(): array { diff --git a/src/Pyz/Yves/ShopCmsSlot/ShopCmsSlotDependencyProvider.php b/src/Pyz/Yves/ShopCmsSlot/ShopCmsSlotDependencyProvider.php index 8b84354609..ba0174026e 100644 --- a/src/Pyz/Yves/ShopCmsSlot/ShopCmsSlotDependencyProvider.php +++ b/src/Pyz/Yves/ShopCmsSlot/ShopCmsSlotDependencyProvider.php @@ -14,7 +14,7 @@ class ShopCmsSlotDependencyProvider extends SprykerShopShopCmsSlotDependencyProvider { /** - * @return \SprykerShop\Yves\ShopCmsSlotExtension\Dependency\Plugin\CmsSlotContentPluginInterface[] + * @return array<\SprykerShop\Yves\ShopCmsSlotExtension\Dependency\Plugin\CmsSlotContentPluginInterface> */ protected function getCmsSlotContentPlugins(): array { diff --git a/src/Pyz/Yves/ShopPermission/ShopPermissionDependencyProvider.php b/src/Pyz/Yves/ShopPermission/ShopPermissionDependencyProvider.php index 0df091c43d..49b9d44cb8 100644 --- a/src/Pyz/Yves/ShopPermission/ShopPermissionDependencyProvider.php +++ b/src/Pyz/Yves/ShopPermission/ShopPermissionDependencyProvider.php @@ -13,9 +13,9 @@ class ShopPermissionDependencyProvider extends SprykerShopPermissionDependencyProvider { /** - * @return \SprykerShop\Yves\ShopApplication\Plugin\AbstractTwigExtensionPlugin[] + * @return array<\SprykerShop\Yves\ShopApplication\Plugin\AbstractTwigExtensionPlugin> */ - protected function getPermissionTwigExtensionPlugins() + protected function getPermissionTwigExtensionPlugins(): array { return [ new PermissionTwigExtensionPlugin(), diff --git a/src/Pyz/Yves/ShoppingListPage/ShoppingListPageDependencyProvider.php b/src/Pyz/Yves/ShoppingListPage/ShoppingListPageDependencyProvider.php index 96d1e12466..25a85ac265 100644 --- a/src/Pyz/Yves/ShoppingListPage/ShoppingListPageDependencyProvider.php +++ b/src/Pyz/Yves/ShoppingListPage/ShoppingListPageDependencyProvider.php @@ -18,7 +18,7 @@ class ShoppingListPageDependencyProvider extends SprykerShoppingListPageDependencyProvider { /** - * @return \Spryker\Client\ProductStorage\Dependency\Plugin\ProductViewExpanderPluginInterface[] + * @return array<\Spryker\Client\ProductStorage\Dependency\Plugin\ProductViewExpanderPluginInterface> */ protected function getShoppingListItemExpanderPlugins(): array { @@ -30,7 +30,7 @@ protected function getShoppingListItemExpanderPlugins(): array } /** - * @return \SprykerShop\Yves\ShoppingListPageExtension\Dependency\Plugin\ShoppingListItemFormExpanderPluginInterface[] + * @return array<\SprykerShop\Yves\ShoppingListPageExtension\Dependency\Plugin\ShoppingListItemFormExpanderPluginInterface> */ protected function getShoppingListItemFormExpanderPlugins(): array { @@ -41,7 +41,7 @@ protected function getShoppingListItemFormExpanderPlugins(): array } /** - * @return \SprykerShop\Yves\ShoppingListPageExtension\Dependency\Plugin\ShoppingListFormDataProviderMapperPluginInterface[] + * @return array<\SprykerShop\Yves\ShoppingListPageExtension\Dependency\Plugin\ShoppingListFormDataProviderMapperPluginInterface> */ protected function getShoppingListFormDataProviderMapperPlugins(): array { diff --git a/src/Pyz/Yves/StorageRouter/StorageRouterDependencyProvider.php b/src/Pyz/Yves/StorageRouter/StorageRouterDependencyProvider.php index e612955998..58cab4f1a9 100644 --- a/src/Pyz/Yves/StorageRouter/StorageRouterDependencyProvider.php +++ b/src/Pyz/Yves/StorageRouter/StorageRouterDependencyProvider.php @@ -18,7 +18,7 @@ class StorageRouterDependencyProvider extends SprykerShopStorageRouterDependencyProvider { /** - * @return \SprykerShop\Yves\StorageRouterExtension\Dependency\Plugin\ResourceCreatorPluginInterface[] + * @return array<\SprykerShop\Yves\StorageRouterExtension\Dependency\Plugin\ResourceCreatorPluginInterface> */ protected function getResourceCreatorPlugins(): array { diff --git a/src/Pyz/Yves/TabsWidget/TabsWidgetDependencyProvider.php b/src/Pyz/Yves/TabsWidget/TabsWidgetDependencyProvider.php index c3cd8a2dba..07ff653cf6 100644 --- a/src/Pyz/Yves/TabsWidget/TabsWidgetDependencyProvider.php +++ b/src/Pyz/Yves/TabsWidget/TabsWidgetDependencyProvider.php @@ -14,7 +14,7 @@ class TabsWidgetDependencyProvider extends SprykerTabsWidgetDependencyProvider { /** - * @return \SprykerShop\Yves\TabsWidgetExtension\Plugin\FullTextSearchTabPluginInterface[] + * @return array<\SprykerShop\Yves\TabsWidgetExtension\Plugin\FullTextSearchTabPluginInterface> */ protected function createFullTextSearchPlugins(): array { diff --git a/src/Pyz/Yves/Twig/TwigDependencyProvider.php b/src/Pyz/Yves/Twig/TwigDependencyProvider.php index 371ed3b84f..d0e39de679 100644 --- a/src/Pyz/Yves/Twig/TwigDependencyProvider.php +++ b/src/Pyz/Yves/Twig/TwigDependencyProvider.php @@ -49,7 +49,7 @@ class TwigDependencyProvider extends SprykerTwigDependencyProvider { /** - * @return \Spryker\Shared\TwigExtension\Dependency\Plugin\TwigPluginInterface[] + * @return array<\Spryker\Shared\TwigExtension\Dependency\Plugin\TwigPluginInterface> */ protected function getTwigPlugins(): array { @@ -91,7 +91,7 @@ protected function getTwigPlugins(): array } /** - * @return \Spryker\Shared\TwigExtension\Dependency\Plugin\TwigLoaderPluginInterface[] + * @return array<\Spryker\Shared\TwigExtension\Dependency\Plugin\TwigLoaderPluginInterface> */ protected function getTwigLoaderPlugins(): array { diff --git a/src/Pyz/Yves/Validator/ValidatorDependencyProvider.php b/src/Pyz/Yves/Validator/ValidatorDependencyProvider.php index e7ed0f8b84..a66af2445c 100644 --- a/src/Pyz/Yves/Validator/ValidatorDependencyProvider.php +++ b/src/Pyz/Yves/Validator/ValidatorDependencyProvider.php @@ -16,7 +16,7 @@ class ValidatorDependencyProvider extends SprykerValidatorDependencyProvider { /** - * @return \Spryker\Shared\ValidatorExtension\Dependency\Plugin\ValidatorPluginInterface[] + * @return array<\Spryker\Shared\ValidatorExtension\Dependency\Plugin\ValidatorPluginInterface> */ protected function getValidatorPlugins(): array { @@ -28,7 +28,7 @@ protected function getValidatorPlugins(): array } /** - * @return \Spryker\Shared\ValidatorExtension\Dependency\Plugin\ConstraintPluginInterface[] + * @return array<\Spryker\Shared\ValidatorExtension\Dependency\Plugin\ConstraintPluginInterface> */ protected function getConstraintPlugins(): array { diff --git a/src/Pyz/Yves/WebProfilerWidget/WebProfilerWidgetDependencyProvider.php b/src/Pyz/Yves/WebProfilerWidget/WebProfilerWidgetDependencyProvider.php index 8b6e2002d9..39d64d5d68 100644 --- a/src/Pyz/Yves/WebProfilerWidget/WebProfilerWidgetDependencyProvider.php +++ b/src/Pyz/Yves/WebProfilerWidget/WebProfilerWidgetDependencyProvider.php @@ -26,9 +26,9 @@ class WebProfilerWidgetDependencyProvider extends SprykerWebProfilerDependencyProvider { /** - * @return \Spryker\Shared\WebProfilerExtension\Dependency\Plugin\WebProfilerDataCollectorPluginInterface[] + * @return array<\Spryker\Shared\WebProfilerExtension\Dependency\Plugin\WebProfilerDataCollectorPluginInterface> */ - public function getDataCollectorPlugins() + public function getDataCollectorPlugins(): array { return [ new WebProfilerRequestDataCollectorPlugin(), diff --git a/src/Pyz/Zed/Acl/AclConfig.php b/src/Pyz/Zed/Acl/AclConfig.php index 084057bb60..68a661b63d 100644 --- a/src/Pyz/Zed/Acl/AclConfig.php +++ b/src/Pyz/Zed/Acl/AclConfig.php @@ -20,7 +20,7 @@ class AclConfig extends SprykerAclConfig /** * @return array */ - public function getInstallerUsers() + public function getInstallerUsers(): array { return [ 'admin@spryker.com' => [ diff --git a/src/Pyz/Zed/Acl/AclDependencyProvider.php b/src/Pyz/Zed/Acl/AclDependencyProvider.php index 90e24fa9c3..189122c4f9 100644 --- a/src/Pyz/Zed/Acl/AclDependencyProvider.php +++ b/src/Pyz/Zed/Acl/AclDependencyProvider.php @@ -25,7 +25,7 @@ protected function getAclRolesExpanderPlugins(): array } /** - * @return \Spryker\Zed\AclExtension\Dependency\Plugin\AclRolePostSavePluginInterface[] + * @return array<\Spryker\Zed\AclExtension\Dependency\Plugin\AclRolePostSavePluginInterface> */ protected function getAclRolePostSavePlugins(): array { diff --git a/src/Pyz/Zed/Application/ApplicationDependencyProvider.php b/src/Pyz/Zed/Application/ApplicationDependencyProvider.php index df3e54caf2..14d5f8a5a4 100644 --- a/src/Pyz/Zed/Application/ApplicationDependencyProvider.php +++ b/src/Pyz/Zed/Application/ApplicationDependencyProvider.php @@ -35,7 +35,7 @@ class ApplicationDependencyProvider extends SprykerApplicationDependencyProvider /** * @deprecated Use {@link \Pyz\Zed\Application\ApplicationDependencyProvider::getBackofficeApplicationPlugins()} instead. * - * @return \Spryker\Shared\ApplicationExtension\Dependency\Plugin\ApplicationPluginInterface[] + * @return array<\Spryker\Shared\ApplicationExtension\Dependency\Plugin\ApplicationPluginInterface> */ protected function getApplicationPlugins(): array { @@ -43,7 +43,7 @@ protected function getApplicationPlugins(): array } /** - * @return \Spryker\Shared\ApplicationExtension\Dependency\Plugin\ApplicationPluginInterface[] + * @return array<\Spryker\Shared\ApplicationExtension\Dependency\Plugin\ApplicationPluginInterface> */ protected function getBackofficeApplicationPlugins(): array { @@ -73,7 +73,7 @@ protected function getBackofficeApplicationPlugins(): array } /** - * @return \Spryker\Shared\ApplicationExtension\Dependency\Plugin\ApplicationPluginInterface[] + * @return array<\Spryker\Shared\ApplicationExtension\Dependency\Plugin\ApplicationPluginInterface> */ protected function getBackendGatewayApplicationPlugins(): array { @@ -89,7 +89,7 @@ protected function getBackendGatewayApplicationPlugins(): array } /** - * @return \Spryker\Shared\ApplicationExtension\Dependency\Plugin\ApplicationPluginInterface[] + * @return array<\Spryker\Shared\ApplicationExtension\Dependency\Plugin\ApplicationPluginInterface> */ protected function getBackendApiApplicationPlugins(): array { diff --git a/src/Pyz/Zed/AuthRestApi/AuthRestApiDependencyProvider.php b/src/Pyz/Zed/AuthRestApi/AuthRestApiDependencyProvider.php index 38707279e8..6f84629a91 100644 --- a/src/Pyz/Zed/AuthRestApi/AuthRestApiDependencyProvider.php +++ b/src/Pyz/Zed/AuthRestApi/AuthRestApiDependencyProvider.php @@ -13,7 +13,7 @@ class AuthRestApiDependencyProvider extends SprykerAuthRestApiDependencyProvider { /** - * @return \Spryker\Zed\AuthRestApiExtension\Dependency\Plugin\PostAuthPluginInterface[] + * @return array<\Spryker\Zed\AuthRestApiExtension\Dependency\Plugin\PostAuthPluginInterface> */ protected function getPostAuthPlugins(): array { diff --git a/src/Pyz/Zed/Availability/AvailabilityDependencyProvider.php b/src/Pyz/Zed/Availability/AvailabilityDependencyProvider.php index 53fef97844..b3d8d621fd 100644 --- a/src/Pyz/Zed/Availability/AvailabilityDependencyProvider.php +++ b/src/Pyz/Zed/Availability/AvailabilityDependencyProvider.php @@ -17,7 +17,7 @@ class AvailabilityDependencyProvider extends SprykerAvailabilityDependencyProvider { /** - * @return \Spryker\Zed\AvailabilityExtension\Dependency\Plugin\BatchAvailabilityStrategyPluginInterface[] + * @return array<\Spryker\Zed\AvailabilityExtension\Dependency\Plugin\BatchAvailabilityStrategyPluginInterface> */ protected function getBatchAvailabilityStrategyPlugins(): array { @@ -30,7 +30,7 @@ protected function getBatchAvailabilityStrategyPlugins(): array } /** - * @return \Spryker\Zed\AvailabilityExtension\Dependency\Plugin\AvailabilityStrategyPluginInterface[] + * @return array<\Spryker\Zed\AvailabilityExtension\Dependency\Plugin\AvailabilityStrategyPluginInterface> */ protected function getAvailabilityStrategyPlugins(): array { diff --git a/src/Pyz/Zed/AvailabilityGui/AvailabilityGuiDependencyProvider.php b/src/Pyz/Zed/AvailabilityGui/AvailabilityGuiDependencyProvider.php index 208221f005..36fa304a54 100644 --- a/src/Pyz/Zed/AvailabilityGui/AvailabilityGuiDependencyProvider.php +++ b/src/Pyz/Zed/AvailabilityGui/AvailabilityGuiDependencyProvider.php @@ -15,7 +15,7 @@ class AvailabilityGuiDependencyProvider extends SprykerAvailabilityGuiDependencyProvider { /** - * @return \Spryker\Zed\AvailabilityGuiExtension\Dependency\Plugin\AvailabilityViewActionViewDataExpanderPluginInterface[] + * @return array<\Spryker\Zed\AvailabilityGuiExtension\Dependency\Plugin\AvailabilityViewActionViewDataExpanderPluginInterface> */ protected function getAvailabilityViewActionViewDataExpanderPlugins(): array { @@ -25,7 +25,7 @@ protected function getAvailabilityViewActionViewDataExpanderPlugins(): array } /** - * @return \Spryker\Zed\AvailabilityGuiExtension\Dependency\Plugin\AvailabilityAbstractTableQueryCriteriaExpanderPluginInterface[] + * @return array<\Spryker\Zed\AvailabilityGuiExtension\Dependency\Plugin\AvailabilityAbstractTableQueryCriteriaExpanderPluginInterface> */ protected function getAvailabilityAbstractTableQueryCriteriaExpanderPlugins(): array { diff --git a/src/Pyz/Zed/BusinessOnBehalfGui/BusinessOnBehalfGuiDependencyProvider.php b/src/Pyz/Zed/BusinessOnBehalfGui/BusinessOnBehalfGuiDependencyProvider.php index d16bde1ad2..e1a4a23b69 100644 --- a/src/Pyz/Zed/BusinessOnBehalfGui/BusinessOnBehalfGuiDependencyProvider.php +++ b/src/Pyz/Zed/BusinessOnBehalfGui/BusinessOnBehalfGuiDependencyProvider.php @@ -13,7 +13,7 @@ class BusinessOnBehalfGuiDependencyProvider extends SprykerBusinessOnBehalfGuiDependencyProvider { /** - * @return \Spryker\Zed\BusinessOnBehalfGuiExtension\Dependency\Plugin\CustomerBusinessUnitAttachFormExpanderPluginInterface[] + * @return array<\Spryker\Zed\BusinessOnBehalfGuiExtension\Dependency\Plugin\CustomerBusinessUnitAttachFormExpanderPluginInterface> */ protected function getCustomerBusinessUnitAttachFormExpanderPlugins(): array { diff --git a/src/Pyz/Zed/Calculation/CalculationDependencyProvider.php b/src/Pyz/Zed/Calculation/CalculationDependencyProvider.php index b4508d7acd..6003a320db 100644 --- a/src/Pyz/Zed/Calculation/CalculationDependencyProvider.php +++ b/src/Pyz/Zed/Calculation/CalculationDependencyProvider.php @@ -180,11 +180,11 @@ class CalculationDependencyProvider extends SprykerCalculationDependencyProvider * * @param \Spryker\Zed\Kernel\Container $container * - * @return \Spryker\Zed\CalculationExtension\Dependency\Plugin\CalculationPluginInterface[] + * @return array<\Spryker\Zed\CalculationExtension\Dependency\Plugin\CalculationPluginInterface> */ - protected function getQuoteCalculatorPluginStack(Container $container) + protected function getQuoteCalculatorPluginStack(Container $container): array { - /** @var \Spryker\Zed\Calculation\Dependency\Plugin\CalculationPluginInterface[] $pluginStack */ + /** @var array<\Spryker\Zed\Calculation\Dependency\Plugin\CalculationPluginInterface> $pluginStack */ $pluginStack = [ new RemoveTotalsCalculatorPlugin(), new RemoveAllCalculatedDiscountsCalculatorPlugin(), @@ -239,9 +239,9 @@ protected function getQuoteCalculatorPluginStack(Container $container) * * @param \Spryker\Zed\Kernel\Container $container * - * @return \Spryker\Zed\CalculationExtension\Dependency\Plugin\CalculationPluginInterface[] + * @return array<\Spryker\Zed\CalculationExtension\Dependency\Plugin\CalculationPluginInterface> */ - protected function getOrderCalculatorPluginStack(Container $container) + protected function getOrderCalculatorPluginStack(Container $container): array { return [ @@ -276,7 +276,7 @@ protected function getOrderCalculatorPluginStack(Container $container) } /** - * @return \Spryker\Zed\CalculationExtension\Dependency\Plugin\QuotePostRecalculatePluginStrategyInterface[] + * @return array<\Spryker\Zed\CalculationExtension\Dependency\Plugin\QuotePostRecalculatePluginStrategyInterface> */ protected function getQuotePostRecalculatePlugins(): array { diff --git a/src/Pyz/Zed/Cart/CartDependencyProvider.php b/src/Pyz/Zed/Cart/CartDependencyProvider.php index 5535d376dd..ec212615b0 100644 --- a/src/Pyz/Zed/Cart/CartDependencyProvider.php +++ b/src/Pyz/Zed/Cart/CartDependencyProvider.php @@ -91,7 +91,7 @@ class CartDependencyProvider extends SprykerCartDependencyProvider /** * @param \Spryker\Zed\Kernel\Container $container * - * @return \Spryker\Zed\CartExtension\Dependency\Plugin\ItemExpanderPluginInterface[] + * @return array<\Spryker\Zed\CartExtension\Dependency\Plugin\ItemExpanderPluginInterface> */ protected function getExpanderPlugins(Container $container): array { @@ -128,7 +128,7 @@ protected function getExpanderPlugins(Container $container): array /** * @param \Spryker\Zed\Kernel\Container $container * - * @return \Spryker\Zed\CartExtension\Dependency\Plugin\CartChangeTransferNormalizerPluginInterface[] + * @return array<\Spryker\Zed\CartExtension\Dependency\Plugin\CartChangeTransferNormalizerPluginInterface> */ protected function getCartBeforePreCheckNormalizerPlugins(Container $container): array { @@ -140,7 +140,7 @@ protected function getCartBeforePreCheckNormalizerPlugins(Container $container): /** * @param \Spryker\Zed\Kernel\Container $container * - * @return \Spryker\Zed\CartExtension\Dependency\Plugin\CartPreCheckPluginInterface[] + * @return array<\Spryker\Zed\CartExtension\Dependency\Plugin\CartPreCheckPluginInterface> */ protected function getCartPreCheckPlugins(Container $container): array { @@ -173,7 +173,7 @@ protected function getCartPreCheckPlugins(Container $container): array /** * @param \Spryker\Zed\Kernel\Container $container * - * @return \Spryker\Zed\CartExtension\Dependency\Plugin\CartOperationPostSavePluginInterface[] + * @return array<\Spryker\Zed\CartExtension\Dependency\Plugin\CartOperationPostSavePluginInterface> */ protected function getPostSavePlugins(Container $container): array { @@ -191,7 +191,7 @@ protected function getPostSavePlugins(Container $container): array /** * @param \Spryker\Zed\Kernel\Container $container * - * @return \Spryker\Zed\CartExtension\Dependency\Plugin\PreReloadItemsPluginInterface[] + * @return array<\Spryker\Zed\CartExtension\Dependency\Plugin\PreReloadItemsPluginInterface> */ protected function getPreReloadPlugins(Container $container): array { @@ -211,7 +211,7 @@ protected function getPreReloadPlugins(Container $container): array /** * @param \Spryker\Zed\Kernel\Container $container * - * @return \Spryker\Zed\CartExtension\Dependency\Plugin\PostReloadItemsPluginInterface[] + * @return array<\Spryker\Zed\CartExtension\Dependency\Plugin\PostReloadItemsPluginInterface> */ protected function getPostReloadItemsPlugins(Container $container): array { @@ -223,7 +223,7 @@ protected function getPostReloadItemsPlugins(Container $container): array /** * @param \Spryker\Zed\Kernel\Container $container * - * @return \Spryker\Zed\CartExtension\Dependency\Plugin\CartTerminationPluginInterface[] + * @return array<\Spryker\Zed\CartExtension\Dependency\Plugin\CartTerminationPluginInterface> */ protected function getTerminationPlugins(Container $container): array { @@ -236,7 +236,7 @@ protected function getTerminationPlugins(Container $container): array /** * @param \Spryker\Zed\Kernel\Container $container * - * @return \Spryker\Zed\CartExtension\Dependency\Plugin\CartRemovalPreCheckPluginInterface[] + * @return array<\Spryker\Zed\CartExtension\Dependency\Plugin\CartRemovalPreCheckPluginInterface> */ protected function getCartRemovalPreCheckPlugins(Container $container): array { @@ -248,7 +248,7 @@ protected function getCartRemovalPreCheckPlugins(Container $container): array /** * @param \Spryker\Zed\Kernel\Container $container * - * @return \Spryker\Zed\CartExtension\Dependency\Plugin\QuoteChangeObserverPluginInterface[] + * @return array<\Spryker\Zed\CartExtension\Dependency\Plugin\QuoteChangeObserverPluginInterface> */ protected function getQuoteChangeObserverPlugins(Container $container): array { @@ -261,7 +261,7 @@ protected function getQuoteChangeObserverPlugins(Container $container): array /** * @param \Spryker\Zed\Kernel\Container $container * - * @return \Spryker\Zed\CartExtension\Dependency\Plugin\CartOperationStrategyPluginInterface[] + * @return array<\Spryker\Zed\CartExtension\Dependency\Plugin\CartOperationStrategyPluginInterface> */ protected function getCartAddItemStrategyPlugins(Container $container): array { @@ -273,7 +273,7 @@ protected function getCartAddItemStrategyPlugins(Container $container): array /** * @param \Spryker\Zed\Kernel\Container $container * - * @return \Spryker\Zed\CartExtension\Dependency\Plugin\CartOperationStrategyPluginInterface[] + * @return array<\Spryker\Zed\CartExtension\Dependency\Plugin\CartOperationStrategyPluginInterface> */ protected function getCartRemoveItemStrategyPlugins(Container $container): array { @@ -283,7 +283,7 @@ protected function getCartRemoveItemStrategyPlugins(Container $container): array } /** - * @return \Spryker\Zed\CartExtension\Dependency\Plugin\QuoteLockPreResetPluginInterface[] + * @return array<\Spryker\Zed\CartExtension\Dependency\Plugin\QuoteLockPreResetPluginInterface> */ protected function getQuoteLockPreResetPlugins(): array { diff --git a/src/Pyz/Zed/CartCode/CartCodeDependencyProvider.php b/src/Pyz/Zed/CartCode/CartCodeDependencyProvider.php index 6ba8d3289a..0f63960399 100644 --- a/src/Pyz/Zed/CartCode/CartCodeDependencyProvider.php +++ b/src/Pyz/Zed/CartCode/CartCodeDependencyProvider.php @@ -13,7 +13,7 @@ class CartCodeDependencyProvider extends SprykerCartCodeDependencyProvider { /** - * @return \Spryker\Zed\CartCodeExtension\Dependency\Plugin\CartCodePluginInterface[] + * @return array<\Spryker\Zed\CartCodeExtension\Dependency\Plugin\CartCodePluginInterface> */ protected function getCartCodePlugins(): array { diff --git a/src/Pyz/Zed/CartsRestApi/CartsRestApiDependencyProvider.php b/src/Pyz/Zed/CartsRestApi/CartsRestApiDependencyProvider.php index 484222c1bf..3b346c4896 100644 --- a/src/Pyz/Zed/CartsRestApi/CartsRestApiDependencyProvider.php +++ b/src/Pyz/Zed/CartsRestApi/CartsRestApiDependencyProvider.php @@ -32,7 +32,7 @@ protected function getQuoteCreatorPlugin(): QuoteCreatorPluginInterface } /** - * @return \Spryker\Zed\CartsRestApiExtension\Dependency\Plugin\QuoteCollectionExpanderPluginInterface[] + * @return array<\Spryker\Zed\CartsRestApiExtension\Dependency\Plugin\QuoteCollectionExpanderPluginInterface> */ protected function getQuoteCollectionExpanderPlugins(): array { @@ -42,7 +42,7 @@ protected function getQuoteCollectionExpanderPlugins(): array } /** - * @return \Spryker\Zed\CartsRestApiExtension\Dependency\Plugin\QuoteExpanderPluginInterface[] + * @return array<\Spryker\Zed\CartsRestApiExtension\Dependency\Plugin\QuoteExpanderPluginInterface> */ protected function getQuoteExpanderPlugins(): array { @@ -54,7 +54,7 @@ protected function getQuoteExpanderPlugins(): array } /** - * @return \Spryker\Zed\CartsRestApiExtension\Dependency\Plugin\CartItemMapperPluginInterface[] + * @return array<\Spryker\Zed\CartsRestApiExtension\Dependency\Plugin\CartItemMapperPluginInterface> */ protected function getCartItemMapperPlugins(): array { @@ -68,7 +68,7 @@ protected function getCartItemMapperPlugins(): array } /** - * @return \Spryker\Zed\CartsRestApiExtension\Dependency\Plugin\QuoteItemReadValidatorPluginInterface[] + * @return array<\Spryker\Zed\CartsRestApiExtension\Dependency\Plugin\QuoteItemReadValidatorPluginInterface> */ protected function getQuoteItemReadValidatorPlugins(): array { diff --git a/src/Pyz/Zed/Category/CategoryConfig.php b/src/Pyz/Zed/Category/CategoryConfig.php index 9428274124..74560cb918 100644 --- a/src/Pyz/Zed/Category/CategoryConfig.php +++ b/src/Pyz/Zed/Category/CategoryConfig.php @@ -14,7 +14,7 @@ class CategoryConfig extends CategoryCategoryConfig /** * @return array */ - public function getTemplateList() + public function getTemplateList(): array { $templateList = [ 'Catalog + Slots' => '@CatalogPage/views/catalog-with-cms-block/catalog-with-cms-slot.twig', diff --git a/src/Pyz/Zed/Category/CategoryDependencyProvider.php b/src/Pyz/Zed/Category/CategoryDependencyProvider.php index 6b6ca778d3..522563677d 100644 --- a/src/Pyz/Zed/Category/CategoryDependencyProvider.php +++ b/src/Pyz/Zed/Category/CategoryDependencyProvider.php @@ -24,12 +24,12 @@ class CategoryDependencyProvider extends SprykerDependencyProvider { /** - * @return \Spryker\Zed\CategoryExtension\Dependency\Plugin\CategoryRelationDeletePluginInterface[] + * @return array<\Spryker\Zed\CategoryExtension\Dependency\Plugin\CategoryRelationDeletePluginInterface> */ protected function getRelationDeletePluginStack(): array { /** - * @var \Spryker\Zed\Category\Dependency\Plugin\CategoryRelationDeletePluginInterface[] $deletePlugins + * @var array<\Spryker\Zed\Category\Dependency\Plugin\CategoryRelationDeletePluginInterface> $deletePlugins */ $deletePlugins = [ new RemoveProductCategoryRelationPlugin(), @@ -41,7 +41,7 @@ protected function getRelationDeletePluginStack(): array } /** - * @return \Spryker\Zed\CategoryExtension\Dependency\Plugin\CategoryRelationUpdatePluginInterface[] + * @return array<\Spryker\Zed\CategoryExtension\Dependency\Plugin\CategoryRelationUpdatePluginInterface> */ protected function getRelationUpdatePluginStack(): array { @@ -53,7 +53,7 @@ protected function getRelationUpdatePluginStack(): array } /** - * @return \Spryker\Zed\CategoryExtension\Dependency\Plugin\CategoryTransferExpanderPluginInterface[] + * @return array<\Spryker\Zed\CategoryExtension\Dependency\Plugin\CategoryTransferExpanderPluginInterface> */ protected function getCategoryPostReadPlugins(): array { @@ -63,7 +63,7 @@ protected function getCategoryPostReadPlugins(): array } /** - * @return \Spryker\Zed\CategoryExtension\Dependency\Plugin\CategoryUrlPathPluginInterface[] + * @return array<\Spryker\Zed\CategoryExtension\Dependency\Plugin\CategoryUrlPathPluginInterface> */ protected function getCategoryUrlPathPlugins(): array { @@ -73,7 +73,7 @@ protected function getCategoryUrlPathPlugins(): array } /** - * @return \Spryker\Zed\CategoryExtension\Dependency\Plugin\CategoryUpdateAfterPluginInterface[] + * @return array<\Spryker\Zed\CategoryExtension\Dependency\Plugin\CategoryUpdateAfterPluginInterface> */ protected function getCategoryPostUpdatePlugins(): array { @@ -83,7 +83,7 @@ protected function getCategoryPostUpdatePlugins(): array } /** - * @return \Spryker\Zed\CategoryExtension\Dependency\Plugin\CategoryCreateAfterPluginInterface[] + * @return array<\Spryker\Zed\CategoryExtension\Dependency\Plugin\CategoryCreateAfterPluginInterface> */ protected function getCategoryPostCreatePlugins(): array { diff --git a/src/Pyz/Zed/CategoryGui/CategoryGuiDependencyProvider.php b/src/Pyz/Zed/CategoryGui/CategoryGuiDependencyProvider.php index 23f15e3464..81d44dac8d 100644 --- a/src/Pyz/Zed/CategoryGui/CategoryGuiDependencyProvider.php +++ b/src/Pyz/Zed/CategoryGui/CategoryGuiDependencyProvider.php @@ -30,7 +30,7 @@ protected function getStoreRelationFormTypePlugin(): FormTypeInterface } /** - * @return \Spryker\Zed\CategoryGuiExtension\Dependency\Plugin\CategoryFormTabExpanderPluginInterface[] + * @return array<\Spryker\Zed\CategoryGuiExtension\Dependency\Plugin\CategoryFormTabExpanderPluginInterface> */ protected function getCategoryFormTabExpanderPlugins(): array { @@ -40,7 +40,7 @@ protected function getCategoryFormTabExpanderPlugins(): array } /** - * @return \Spryker\Zed\CategoryGuiExtension\Dependency\Plugin\CategoryFormPluginInterface[] + * @return array<\Spryker\Zed\CategoryGuiExtension\Dependency\Plugin\CategoryFormPluginInterface> */ protected function getCategoryFormPlugins(): array { @@ -51,7 +51,7 @@ protected function getCategoryFormPlugins(): array } /** - * @return \Spryker\Zed\CategoryGuiExtension\Dependency\Plugin\CategoryRelationReadPluginInterface[] + * @return array<\Spryker\Zed\CategoryGuiExtension\Dependency\Plugin\CategoryRelationReadPluginInterface> */ protected function getCategoryRelationReadPlugins(): array { diff --git a/src/Pyz/Zed/ChartGui/ChartGuiDependencyProvider.php b/src/Pyz/Zed/ChartGui/ChartGuiDependencyProvider.php index c94a273c70..b86ce6ce50 100644 --- a/src/Pyz/Zed/ChartGui/ChartGuiDependencyProvider.php +++ b/src/Pyz/Zed/ChartGui/ChartGuiDependencyProvider.php @@ -20,7 +20,7 @@ class ChartGuiDependencyProvider extends SprykerChartGuiDependencyProvider { /** - * @return \Spryker\Shared\Chart\Dependency\Plugin\ChartPluginInterface[] + * @return array<\Spryker\Shared\Chart\Dependency\Plugin\ChartPluginInterface> */ protected function getChartPlugins(): array { @@ -33,7 +33,7 @@ protected function getChartPlugins(): array } /** - * @return \Spryker\Shared\Chart\Dependency\Plugin\TwigChartFunctionPluginInterface[] + * @return array<\Spryker\Shared\Chart\Dependency\Plugin\TwigChartFunctionPluginInterface> */ protected function getTwigChartFunctionPlugins(): array { diff --git a/src/Pyz/Zed/Checkout/CheckoutDependencyProvider.php b/src/Pyz/Zed/Checkout/CheckoutDependencyProvider.php index 3c7951ae0d..37907ba1a6 100644 --- a/src/Pyz/Zed/Checkout/CheckoutDependencyProvider.php +++ b/src/Pyz/Zed/Checkout/CheckoutDependencyProvider.php @@ -46,9 +46,9 @@ class CheckoutDependencyProvider extends SprykerCheckoutDependencyProvider /** * @param \Spryker\Zed\Kernel\Container $container * - * @return \Spryker\Zed\CheckoutExtension\Dependency\Plugin\CheckoutPreConditionPluginInterface[] + * @return array<\Spryker\Zed\CheckoutExtension\Dependency\Plugin\CheckoutPreConditionPluginInterface> */ - protected function getCheckoutPreConditions(Container $container) + protected function getCheckoutPreConditions(Container $container): array { return [ new CustomerPreConditionCheckerPlugin(), @@ -74,9 +74,9 @@ protected function getCheckoutPreConditions(Container $container) /** * @param \Spryker\Zed\Kernel\Container $container * - * @return \Spryker\Zed\Checkout\Dependency\Plugin\CheckoutSaveOrderInterface[]|\Spryker\Zed\CheckoutExtension\Dependency\Plugin\CheckoutDoSaveOrderInterface[] + * @return array<\Spryker\Zed\CheckoutExtension\Dependency\Plugin\CheckoutDoSaveOrderInterface>|array<\Spryker\Zed\Checkout\Dependency\Plugin\CheckoutSaveOrderInterface> */ - protected function getCheckoutOrderSavers(Container $container) + protected function getCheckoutOrderSavers(Container $container): array { return [ new CustomerOrderSavePlugin(), @@ -105,9 +105,9 @@ protected function getCheckoutOrderSavers(Container $container) /** * @param \Spryker\Zed\Kernel\Container $container * - * @return \Spryker\Zed\CheckoutExtension\Dependency\Plugin\CheckoutPostSaveInterface[] + * @return array<\Spryker\Zed\CheckoutExtension\Dependency\Plugin\CheckoutPostSaveInterface> */ - protected function getCheckoutPostHooks(Container $container) + protected function getCheckoutPostHooks(Container $container): array { return [ new CloseQuoteRequestCheckoutPostSaveHookPlugin(), @@ -118,9 +118,9 @@ protected function getCheckoutPostHooks(Container $container) /** * @param \Spryker\Zed\Kernel\Container $container * - * @return \Spryker\Zed\Checkout\Dependency\Plugin\CheckoutPreSaveHookInterface[]|\Spryker\Zed\Checkout\Dependency\Plugin\CheckoutPreSaveInterface[] + * @return array<\Spryker\Zed\Checkout\Dependency\Plugin\CheckoutPreSaveInterface>|array<\Spryker\Zed\Checkout\Dependency\Plugin\CheckoutPreSaveHookInterface> */ - protected function getCheckoutPreSaveHooks(Container $container) + protected function getCheckoutPreSaveHooks(Container $container): array { return [ new SalesOrderExpanderPlugin(), diff --git a/src/Pyz/Zed/CheckoutRestApi/CheckoutRestApiDependencyProvider.php b/src/Pyz/Zed/CheckoutRestApi/CheckoutRestApiDependencyProvider.php index 66efed3bbf..217d010e14 100644 --- a/src/Pyz/Zed/CheckoutRestApi/CheckoutRestApiDependencyProvider.php +++ b/src/Pyz/Zed/CheckoutRestApi/CheckoutRestApiDependencyProvider.php @@ -28,7 +28,7 @@ class CheckoutRestApiDependencyProvider extends SprykerCheckoutRestApiDependencyProvider { /** - * @return \Spryker\Zed\CheckoutRestApiExtension\Dependency\Plugin\QuoteMapperPluginInterface[] + * @return array<\Spryker\Zed\CheckoutRestApiExtension\Dependency\Plugin\QuoteMapperPluginInterface> */ protected function getQuoteMapperPlugins(): array { @@ -44,7 +44,7 @@ protected function getQuoteMapperPlugins(): array } /** - * @return \Spryker\Zed\CheckoutRestApiExtension\Dependency\Plugin\CheckoutDataValidatorPluginInterface[] + * @return array<\Spryker\Zed\CheckoutRestApiExtension\Dependency\Plugin\CheckoutDataValidatorPluginInterface> */ protected function getCheckoutDataValidatorPlugins(): array { @@ -58,7 +58,7 @@ protected function getCheckoutDataValidatorPlugins(): array } /** - * @return \Spryker\Zed\CheckoutRestApiExtension\Dependency\Plugin\ReadCheckoutDataValidatorPluginInterface[] + * @return array<\Spryker\Zed\CheckoutRestApiExtension\Dependency\Plugin\ReadCheckoutDataValidatorPluginInterface> */ protected function getReadCheckoutDataValidatorPlugins(): array { @@ -69,7 +69,7 @@ protected function getReadCheckoutDataValidatorPlugins(): array } /** - * @return \Spryker\Zed\CheckoutRestApiExtension\Dependency\Plugin\CheckoutDataExpanderPluginInterface[] + * @return array<\Spryker\Zed\CheckoutRestApiExtension\Dependency\Plugin\CheckoutDataExpanderPluginInterface> */ protected function getCheckoutDataExpanderPlugins(): array { diff --git a/src/Pyz/Zed/Cms/CmsDependencyProvider.php b/src/Pyz/Zed/Cms/CmsDependencyProvider.php index d3fb61d0d7..04d9708e88 100644 --- a/src/Pyz/Zed/Cms/CmsDependencyProvider.php +++ b/src/Pyz/Zed/Cms/CmsDependencyProvider.php @@ -42,7 +42,7 @@ protected function getTransferExpanderPlugins(Container $container): array } /** - * @return \Spryker\Zed\CmsExtension\Dependency\Plugin\CmsPageDataExpanderPluginInterface[] + * @return array<\Spryker\Zed\CmsExtension\Dependency\Plugin\CmsPageDataExpanderPluginInterface> */ protected function getCmsPageDataExpanderPlugins(): array { @@ -52,7 +52,7 @@ protected function getCmsPageDataExpanderPlugins(): array } /** - * @return \Spryker\Zed\Cms\Communication\Plugin\PostCmsPageActivatorPluginInterface[] + * @return array<\Spryker\Zed\Cms\Communication\Plugin\PostCmsPageActivatorPluginInterface> */ protected function getCmsPagePostActivatorPlugins(): array { @@ -62,7 +62,7 @@ protected function getCmsPagePostActivatorPlugins(): array } /** - * @return \Spryker\Zed\CmsExtension\Dependency\Plugin\CmsPageBeforeDeletePluginInterface[] + * @return array<\Spryker\Zed\CmsExtension\Dependency\Plugin\CmsPageBeforeDeletePluginInterface> */ protected function getCmsPageBeforeDeletePlugins(): array { diff --git a/src/Pyz/Zed/CmsBlockGui/CmsBlockGuiDependencyProvider.php b/src/Pyz/Zed/CmsBlockGui/CmsBlockGuiDependencyProvider.php index 5bb9eb30bb..9ccf61bbfb 100644 --- a/src/Pyz/Zed/CmsBlockGui/CmsBlockGuiDependencyProvider.php +++ b/src/Pyz/Zed/CmsBlockGui/CmsBlockGuiDependencyProvider.php @@ -12,6 +12,7 @@ use Spryker\Zed\CmsBlockGui\CmsBlockGuiDependencyProvider as CmsBlockGuiCmsBlockGuiDependencyProvider; use Spryker\Zed\ContentGui\Communication\Plugin\CmsBlockGui\HtmlToTwigExpressionsCmsBlockGlossaryBeforeSavePlugin; use Spryker\Zed\ContentGui\Communication\Plugin\CmsBlockGui\TwigExpressionsToHtmlCmsBlockGlossaryAfterFindPlugin; +use Spryker\Zed\Kernel\Communication\Form\FormTypeInterface; use Spryker\Zed\Store\Communication\Plugin\Form\StoreRelationToggleFormTypePlugin; class CmsBlockGuiDependencyProvider extends CmsBlockGuiCmsBlockGuiDependencyProvider @@ -19,7 +20,7 @@ class CmsBlockGuiDependencyProvider extends CmsBlockGuiCmsBlockGuiDependencyProv /** * @return array<\Spryker\Zed\CmsBlockGui\Communication\Plugin\CmsBlockFormPluginInterface> */ - protected function getCmsBlockFormPlugins() + protected function getCmsBlockFormPlugins(): array { $plugins = parent::getCmsBlockFormPlugins(); $plugins = array_merge($plugins, [ @@ -32,7 +33,7 @@ protected function getCmsBlockFormPlugins() /** * @return array<\Spryker\Zed\CmsBlockGui\Communication\Plugin\CmsBlockViewPluginInterface> */ - protected function getCmsBlockViewPlugins() + protected function getCmsBlockViewPlugins(): array { return array_merge(parent::getCmsBlockViewPlugins(), [ new CmsBlockCategoryListViewPlugin(), @@ -42,7 +43,7 @@ protected function getCmsBlockViewPlugins() /** * @return \Spryker\Zed\Kernel\Communication\Form\FormTypeInterface */ - protected function getStoreRelationFormTypePlugin() + protected function getStoreRelationFormTypePlugin(): FormTypeInterface { return new StoreRelationToggleFormTypePlugin(); } diff --git a/src/Pyz/Zed/CmsBlockStorage/CmsBlockStorageDependencyProvider.php b/src/Pyz/Zed/CmsBlockStorage/CmsBlockStorageDependencyProvider.php index 49e289d241..ebd501baff 100644 --- a/src/Pyz/Zed/CmsBlockStorage/CmsBlockStorageDependencyProvider.php +++ b/src/Pyz/Zed/CmsBlockStorage/CmsBlockStorageDependencyProvider.php @@ -13,7 +13,7 @@ class CmsBlockStorageDependencyProvider extends SprykerCmsBlockStorageDependencyProvider { /** - * @return \Spryker\Zed\CmsBlockStorage\Dependency\Plugin\CmsBlockStorageDataExpanderPluginInterface[] + * @return array<\Spryker\Zed\CmsBlockStorage\Dependency\Plugin\CmsBlockStorageDataExpanderPluginInterface> */ protected function getContentWidgetDataExpanderPlugins(): array { diff --git a/src/Pyz/Zed/CmsContentWidget/CmsContentWidgetConfig.php b/src/Pyz/Zed/CmsContentWidget/CmsContentWidgetConfig.php index a5a42693ff..1cc26dcb64 100644 --- a/src/Pyz/Zed/CmsContentWidget/CmsContentWidgetConfig.php +++ b/src/Pyz/Zed/CmsContentWidget/CmsContentWidgetConfig.php @@ -20,7 +20,7 @@ class CmsContentWidgetConfig extends SprykerCmsContentConfig /** * {@inheritDoc} * - * @return \Spryker\Shared\CmsContentWidget\Dependency\CmsContentWidgetConfigurationProviderInterface[] + * @return array<\Spryker\Shared\CmsContentWidget\Dependency\CmsContentWidgetConfigurationProviderInterface> */ public function getCmsContentWidgetConfigurationProviders() { diff --git a/src/Pyz/Zed/CmsContentWidget/CmsContentWidgetDependencyProvider.php b/src/Pyz/Zed/CmsContentWidget/CmsContentWidgetDependencyProvider.php index acd20373d8..d64e17553d 100644 --- a/src/Pyz/Zed/CmsContentWidget/CmsContentWidgetDependencyProvider.php +++ b/src/Pyz/Zed/CmsContentWidget/CmsContentWidgetDependencyProvider.php @@ -25,7 +25,7 @@ class CmsContentWidgetDependencyProvider extends SprykerCmsContentWidgetDependen * * @param \Spryker\Zed\Kernel\Container $container * - * @return \Spryker\Zed\CmsContentWidget\Dependency\Plugin\CmsContentWidgetParameterMapperPluginInterface[] + * @return array<\Spryker\Zed\CmsContentWidget\Dependency\Plugin\CmsContentWidgetParameterMapperPluginInterface> */ protected function getCmsContentWidgetParameterMapperPlugins(Container $container) { diff --git a/src/Pyz/Zed/CmsGui/CmsGuiDependencyProvider.php b/src/Pyz/Zed/CmsGui/CmsGuiDependencyProvider.php index 8df50294a4..2cc1eb5ff5 100644 --- a/src/Pyz/Zed/CmsGui/CmsGuiDependencyProvider.php +++ b/src/Pyz/Zed/CmsGui/CmsGuiDependencyProvider.php @@ -18,7 +18,7 @@ class CmsGuiDependencyProvider extends SprykerCmsGuiDependencyProvider { /** - * @return \Spryker\Zed\CmsGui\Dependency\Plugin\CmsPageTableExpanderPluginInterface[] + * @return array<\Spryker\Zed\CmsGui\Dependency\Plugin\CmsPageTableExpanderPluginInterface> */ protected function getCmsPageTableExpanderPlugins(): array { @@ -28,7 +28,7 @@ protected function getCmsPageTableExpanderPlugins(): array } /** - * @return \Spryker\Zed\CmsGui\Dependency\Plugin\CreateGlossaryExpanderPluginInterface[] + * @return array<\Spryker\Zed\CmsGui\Dependency\Plugin\CreateGlossaryExpanderPluginInterface> */ protected function getCreateGlossaryExpanderPlugins(): array { @@ -46,7 +46,7 @@ protected function getStoreRelationFormTypePlugin(): FormTypeInterface } /** - * @return \Spryker\Zed\CmsGuiExtension\Dependency\Plugin\CmsGlossaryAfterFindPluginInterface[] + * @return array<\Spryker\Zed\CmsGuiExtension\Dependency\Plugin\CmsGlossaryAfterFindPluginInterface> */ protected function getCmsGlossaryAfterFindPlugins(): array { @@ -56,7 +56,7 @@ protected function getCmsGlossaryAfterFindPlugins(): array } /** - * @return \Spryker\Zed\CmsGuiExtension\Dependency\Plugin\CmsGlossaryBeforeSavePluginInterface[] + * @return array<\Spryker\Zed\CmsGuiExtension\Dependency\Plugin\CmsGlossaryBeforeSavePluginInterface> */ protected function getCmsGlossaryBeforeSavePlugins(): array { diff --git a/src/Pyz/Zed/CmsSlotBlock/CmsSlotBlockConfig.php b/src/Pyz/Zed/CmsSlotBlock/CmsSlotBlockConfig.php index db1bb00381..9a57b3f4d9 100644 --- a/src/Pyz/Zed/CmsSlotBlock/CmsSlotBlockConfig.php +++ b/src/Pyz/Zed/CmsSlotBlock/CmsSlotBlockConfig.php @@ -15,7 +15,7 @@ class CmsSlotBlockConfig extends SprykerCmsSlotBlockConfig { /** - * @return string[][] + * @return array> */ public function getTemplateConditionsAssignment(): array { diff --git a/src/Pyz/Zed/CmsSlotBlockGui/CmsSlotBlockGuiDependencyProvider.php b/src/Pyz/Zed/CmsSlotBlockGui/CmsSlotBlockGuiDependencyProvider.php index 0581e35a4e..da452c1cea 100644 --- a/src/Pyz/Zed/CmsSlotBlockGui/CmsSlotBlockGuiDependencyProvider.php +++ b/src/Pyz/Zed/CmsSlotBlockGui/CmsSlotBlockGuiDependencyProvider.php @@ -15,7 +15,7 @@ class CmsSlotBlockGuiDependencyProvider extends SprykerCmsSlotBlockGuiDependencyProvider { /** - * @return \Spryker\Zed\CmsSlotBlockGuiExtension\Communication\Plugin\CmsSlotBlockGuiConditionFormPluginInterface[] + * @return array<\Spryker\Zed\CmsSlotBlockGuiExtension\Communication\Plugin\CmsSlotBlockGuiConditionFormPluginInterface> */ protected function getCmsSlotBlockFormPlugins(): array { diff --git a/src/Pyz/Zed/CmsStorage/CmsStorageDependencyProvider.php b/src/Pyz/Zed/CmsStorage/CmsStorageDependencyProvider.php index 5e0774621a..46a3ace810 100644 --- a/src/Pyz/Zed/CmsStorage/CmsStorageDependencyProvider.php +++ b/src/Pyz/Zed/CmsStorage/CmsStorageDependencyProvider.php @@ -13,9 +13,9 @@ class CmsStorageDependencyProvider extends SprykerCmsStorageDependencyProvider { /** - * @return \Spryker\Zed\CmsExtension\Dependency\Plugin\CmsPageDataExpanderPluginInterface[] + * @return array<\Spryker\Zed\CmsExtension\Dependency\Plugin\CmsPageDataExpanderPluginInterface> */ - protected function getContentWidgetDataExpander() + protected function getContentWidgetDataExpander(): array { return [ new CmsPageParameterMapExpanderPlugin(), diff --git a/src/Pyz/Zed/Company/CompanyDependencyProvider.php b/src/Pyz/Zed/Company/CompanyDependencyProvider.php index b17f9771a3..fa11dbaee8 100644 --- a/src/Pyz/Zed/Company/CompanyDependencyProvider.php +++ b/src/Pyz/Zed/Company/CompanyDependencyProvider.php @@ -16,7 +16,7 @@ class CompanyDependencyProvider extends SprykerCompanyDependencyProvider { /** - * @return \Spryker\Zed\CompanyExtension\Dependency\Plugin\CompanyPostCreatePluginInterface[] + * @return array<\Spryker\Zed\CompanyExtension\Dependency\Plugin\CompanyPostCreatePluginInterface> */ protected function getCompanyPostCreatePlugins(): array { @@ -28,7 +28,7 @@ protected function getCompanyPostCreatePlugins(): array } /** - * @return \Spryker\Zed\CompanyExtension\Dependency\Plugin\CompanyPostSavePluginInterface[] + * @return array<\Spryker\Zed\CompanyExtension\Dependency\Plugin\CompanyPostSavePluginInterface> */ protected function getCompanyPostSavePlugins(): array { diff --git a/src/Pyz/Zed/CompanyBusinessUnit/CompanyBusinessUnitDependencyProvider.php b/src/Pyz/Zed/CompanyBusinessUnit/CompanyBusinessUnitDependencyProvider.php index 27871c361f..48afde01ea 100644 --- a/src/Pyz/Zed/CompanyBusinessUnit/CompanyBusinessUnitDependencyProvider.php +++ b/src/Pyz/Zed/CompanyBusinessUnit/CompanyBusinessUnitDependencyProvider.php @@ -15,7 +15,7 @@ class CompanyBusinessUnitDependencyProvider extends SprykerCompanyBusinessUnitDependencyProvider { /** - * @return \Spryker\Zed\CompanyBusinessUnitExtension\Dependency\Plugin\CompanyBusinessUnitPostSavePluginInterface[] + * @return array<\Spryker\Zed\CompanyBusinessUnitExtension\Dependency\Plugin\CompanyBusinessUnitPostSavePluginInterface> */ protected function getCompanyBusinessUnitPostSavePlugins(): array { @@ -25,7 +25,7 @@ protected function getCompanyBusinessUnitPostSavePlugins(): array } /** - * @return \Spryker\Zed\CompanyBusinessUnitExtension\Dependency\Plugin\CompanyBusinessUnitExpanderPluginInterface[] + * @return array<\Spryker\Zed\CompanyBusinessUnitExtension\Dependency\Plugin\CompanyBusinessUnitExpanderPluginInterface> */ protected function getCompanyBusinessUnitExpanderPlugins(): array { @@ -35,7 +35,7 @@ protected function getCompanyBusinessUnitExpanderPlugins(): array } /** - * @return \Spryker\Zed\CompanyBusinessUnitExtension\Dependency\Plugin\CompanyBusinessUnitPreDeletePluginInterface[] + * @return array<\Spryker\Zed\CompanyBusinessUnitExtension\Dependency\Plugin\CompanyBusinessUnitPreDeletePluginInterface> */ protected function getCompanyBusinessUnitPreDeletePlugins(): array { diff --git a/src/Pyz/Zed/CompanyBusinessUnitGui/CompanyBusinessUnitGuiDependencyProvider.php b/src/Pyz/Zed/CompanyBusinessUnitGui/CompanyBusinessUnitGuiDependencyProvider.php index 11ca1438d1..7032d55e33 100644 --- a/src/Pyz/Zed/CompanyBusinessUnitGui/CompanyBusinessUnitGuiDependencyProvider.php +++ b/src/Pyz/Zed/CompanyBusinessUnitGui/CompanyBusinessUnitGuiDependencyProvider.php @@ -13,7 +13,7 @@ class CompanyBusinessUnitGuiDependencyProvider extends SprykerCompanyBusinessUnitGuiDependencyProvider { /** - * @return \Spryker\Zed\CompanyBusinessUnitGuiExtension\Communication\Plugin\CompanyBusinessUnitFormExpanderPluginInterface[] + * @return array<\Spryker\Zed\CompanyBusinessUnitGuiExtension\Communication\Plugin\CompanyBusinessUnitFormExpanderPluginInterface> */ protected function getCompanyBusinessUnitEditFormExpanderPlugins(): array { diff --git a/src/Pyz/Zed/CompanyRole/CompanyRoleConfig.php b/src/Pyz/Zed/CompanyRole/CompanyRoleConfig.php index 4b66041492..725f24f34d 100644 --- a/src/Pyz/Zed/CompanyRole/CompanyRoleConfig.php +++ b/src/Pyz/Zed/CompanyRole/CompanyRoleConfig.php @@ -27,17 +27,19 @@ class CompanyRoleConfig extends SprykerCompanyRoleConfig * @var string */ protected const PYZ_BUYER_ROLE_NAME = 'Buyer'; + /** * @var string */ protected const PYZ_APPROVER_ROLE_NAME = 'Approver'; + /** * @var string */ protected const PYZ_BUYER_WITH_LIMIT_ROLE_NAME = 'Buyer With Limit'; /** - * @return string[] + * @return array */ public function getAdminRolePermissionKeys(): array { @@ -50,7 +52,7 @@ public function getAdminRolePermissionKeys(): array } /** - * @return string[] + * @return array */ protected function getPyzBuyerRolePermissionKeys(): array { @@ -63,7 +65,7 @@ protected function getPyzBuyerRolePermissionKeys(): array } /** - * @return string[] + * @return array */ protected function getPyzApproverRolePermissionKeys(): array { @@ -73,7 +75,7 @@ protected function getPyzApproverRolePermissionKeys(): array } /** - * @return \Generated\Shared\Transfer\CompanyRoleTransfer[] + * @return array<\Generated\Shared\Transfer\CompanyRoleTransfer> */ public function getPredefinedCompanyRoles(): array { @@ -93,7 +95,7 @@ protected function getPyzBuyerRole(): CompanyRoleTransfer return (new CompanyRoleTransfer()) ->setName(static::PYZ_BUYER_ROLE_NAME) ->setPermissionCollection($this->createPermissionCollectionFromPermissionKeys( - $this->getPyzBuyerRolePermissionKeys() + $this->getPyzBuyerRolePermissionKeys(), )); } @@ -105,7 +107,7 @@ protected function getPyzApproverRole(): CompanyRoleTransfer return (new CompanyRoleTransfer()) ->setName(static::PYZ_APPROVER_ROLE_NAME) ->setPermissionCollection($this->createPermissionCollectionFromPermissionKeys( - $this->getPyzApproverRolePermissionKeys() + $this->getPyzApproverRolePermissionKeys(), )); } @@ -117,12 +119,12 @@ protected function getPyzBuyerWithLimitRole(): CompanyRoleTransfer return (new CompanyRoleTransfer()) ->setName(static::PYZ_BUYER_WITH_LIMIT_ROLE_NAME) ->setPermissionCollection($this->createPermissionCollectionFromPermissionKeys( - $this->getPyzBuyerWithLimitRolePermissionKeys() + $this->getPyzBuyerWithLimitRolePermissionKeys(), )); } /** - * @return string[] + * @return array */ protected function getPyzBuyerWithLimitRolePermissionKeys(): array { diff --git a/src/Pyz/Zed/CompanyUnitAddress/CompanyUnitAddressDependencyProvider.php b/src/Pyz/Zed/CompanyUnitAddress/CompanyUnitAddressDependencyProvider.php index 466956304b..6e59a68c3e 100644 --- a/src/Pyz/Zed/CompanyUnitAddress/CompanyUnitAddressDependencyProvider.php +++ b/src/Pyz/Zed/CompanyUnitAddress/CompanyUnitAddressDependencyProvider.php @@ -13,7 +13,7 @@ class CompanyUnitAddressDependencyProvider extends SprykerCompanyUnitAddressDependencyProvider { /** - * @return \Spryker\Zed\CompanyUnitAddressExtension\Dependency\Plugin\CompanyUnitAddressPostSavePluginInterface[] + * @return array<\Spryker\Zed\CompanyUnitAddressExtension\Dependency\Plugin\CompanyUnitAddressPostSavePluginInterface> */ protected function getCompanyUnitAddressPostSavePlugins(): array { diff --git a/src/Pyz/Zed/CompanyUnitAddressGui/CompanyUnitAddressGuiDependencyProvider.php b/src/Pyz/Zed/CompanyUnitAddressGui/CompanyUnitAddressGuiDependencyProvider.php index 0bfd4f62fe..78ba407090 100644 --- a/src/Pyz/Zed/CompanyUnitAddressGui/CompanyUnitAddressGuiDependencyProvider.php +++ b/src/Pyz/Zed/CompanyUnitAddressGui/CompanyUnitAddressGuiDependencyProvider.php @@ -14,7 +14,7 @@ class CompanyUnitAddressGuiDependencyProvider extends SprykerCompanyUnitAddressGuiDependencyProvider { /** - * @return \Spryker\Zed\CompanyUnitAddressGuiExtension\Dependency\Plugin\CompanyUnitAddressEditFormExpanderPluginInterface[] + * @return array<\Spryker\Zed\CompanyUnitAddressGuiExtension\Dependency\Plugin\CompanyUnitAddressEditFormExpanderPluginInterface> */ protected function getCompanyUnitAddressFormPlugins(): array { @@ -24,7 +24,7 @@ protected function getCompanyUnitAddressFormPlugins(): array } /** - * @return \Spryker\Zed\CompanyUnitAddressGuiExtension\Dependency\Plugin\CompanyUnitAddressTableConfigExpanderPluginInterface[] + * @return array<\Spryker\Zed\CompanyUnitAddressGuiExtension\Dependency\Plugin\CompanyUnitAddressTableConfigExpanderPluginInterface> */ protected function getCompanyUnitAddressTableConfigExpanderPlugins(): array { @@ -34,7 +34,7 @@ protected function getCompanyUnitAddressTableConfigExpanderPlugins(): array } /** - * @return \Spryker\Zed\CompanyUnitAddressGuiExtension\Dependency\Plugin\CompanyUnitAddressTableHeaderExpanderPluginInterface[] + * @return array<\Spryker\Zed\CompanyUnitAddressGuiExtension\Dependency\Plugin\CompanyUnitAddressTableHeaderExpanderPluginInterface> */ protected function getCompanyUnitAddressTableHeaderExpanderPlugins(): array { @@ -44,7 +44,7 @@ protected function getCompanyUnitAddressTableHeaderExpanderPlugins(): array } /** - * @return \Spryker\Zed\CompanyUnitAddressGuiExtension\Dependency\Plugin\CompanyUnitAddressTableDataExpanderPluginInterface[] + * @return array<\Spryker\Zed\CompanyUnitAddressGuiExtension\Dependency\Plugin\CompanyUnitAddressTableDataExpanderPluginInterface> */ protected function getCompanyUnitAddressTableDataExpanderPlugins(): array { diff --git a/src/Pyz/Zed/CompanyUser/Communication/Plugin/Permission/SeeCompanyMenuPermissionPlugin.php b/src/Pyz/Zed/CompanyUser/Communication/Plugin/Permission/SeeCompanyMenuPermissionPlugin.php index 6e1d84039d..b62f356989 100644 --- a/src/Pyz/Zed/CompanyUser/Communication/Plugin/Permission/SeeCompanyMenuPermissionPlugin.php +++ b/src/Pyz/Zed/CompanyUser/Communication/Plugin/Permission/SeeCompanyMenuPermissionPlugin.php @@ -11,7 +11,8 @@ use Spryker\Shared\PermissionExtension\Dependency\Plugin\PermissionPluginInterface; /** - * @method \Pyz\Zed\CompanyUser\Business\CompanyUserFacadeInterface getFacade() + * @method \Spryker\Zed\CompanyUser\Business\CompanyUserFacadeInterface getFacade() + * @method \Spryker\Zed\CompanyUser\CompanyUserConfig getConfig() */ class SeeCompanyMenuPermissionPlugin extends AbstractPlugin implements PermissionPluginInterface { diff --git a/src/Pyz/Zed/CompanyUser/CompanyUserDependencyProvider.php b/src/Pyz/Zed/CompanyUser/CompanyUserDependencyProvider.php index de9a7f7372..5f1789306c 100755 --- a/src/Pyz/Zed/CompanyUser/CompanyUserDependencyProvider.php +++ b/src/Pyz/Zed/CompanyUser/CompanyUserDependencyProvider.php @@ -23,7 +23,7 @@ class CompanyUserDependencyProvider extends SprykerCompanyUserDependencyProvider { /** - * @return \Spryker\Zed\CompanyUserExtension\Dependency\Plugin\CompanyUserHydrationPluginInterface[] + * @return array<\Spryker\Zed\CompanyUserExtension\Dependency\Plugin\CompanyUserHydrationPluginInterface> */ protected function getCompanyUserHydrationPlugins(): array { @@ -35,7 +35,7 @@ protected function getCompanyUserHydrationPlugins(): array } /** - * @return \Spryker\Zed\CompanyUserExtension\Dependency\Plugin\CompanyUserPostCreatePluginInterface[] + * @return array<\Spryker\Zed\CompanyUserExtension\Dependency\Plugin\CompanyUserPostCreatePluginInterface> */ protected function getCompanyUserPostCreatePlugins(): array { @@ -46,7 +46,7 @@ protected function getCompanyUserPostCreatePlugins(): array } /** - * @return \Spryker\Zed\CompanyUserExtension\Dependency\Plugin\CompanyUserPreSavePluginInterface[] + * @return array<\Spryker\Zed\CompanyUserExtension\Dependency\Plugin\CompanyUserPreSavePluginInterface> */ protected function getCompanyUserPreSavePlugins(): array { @@ -56,7 +56,7 @@ protected function getCompanyUserPreSavePlugins(): array } /** - * @return \Spryker\Zed\CompanyUserExtension\Dependency\Plugin\CompanyUserPostSavePluginInterface[] + * @return array<\Spryker\Zed\CompanyUserExtension\Dependency\Plugin\CompanyUserPostSavePluginInterface> */ protected function getCompanyUserPostSavePlugins(): array { @@ -66,7 +66,7 @@ protected function getCompanyUserPostSavePlugins(): array } /** - * @return \Spryker\Zed\CompanyUserExtension\Dependency\Plugin\CompanyUserPreDeletePluginInterface[] + * @return array<\Spryker\Zed\CompanyUserExtension\Dependency\Plugin\CompanyUserPreDeletePluginInterface> */ protected function getCompanyUserPreDeletePlugins(): array { @@ -78,7 +78,7 @@ protected function getCompanyUserPreDeletePlugins(): array } /** - * @return \Spryker\Zed\CompanyUserExtension\Dependency\Plugin\CompanyUserSavePreCheckPluginInterface[] + * @return array<\Spryker\Zed\CompanyUserExtension\Dependency\Plugin\CompanyUserSavePreCheckPluginInterface> */ protected function getCompanyUserSavePreCheckPlugins(): array { diff --git a/src/Pyz/Zed/CompanyUserGui/CompanyUserGuiDependencyProvider.php b/src/Pyz/Zed/CompanyUserGui/CompanyUserGuiDependencyProvider.php index c96a63d038..c8cecccf7a 100644 --- a/src/Pyz/Zed/CompanyUserGui/CompanyUserGuiDependencyProvider.php +++ b/src/Pyz/Zed/CompanyUserGui/CompanyUserGuiDependencyProvider.php @@ -24,7 +24,7 @@ class CompanyUserGuiDependencyProvider extends SprykerCompanyUserGuiDependencyProvider { /** - * @return \Spryker\Zed\CompanyUserGuiExtension\Dependency\Plugin\CompanyUserTableConfigExpanderPluginInterface[] + * @return array<\Spryker\Zed\CompanyUserGuiExtension\Dependency\Plugin\CompanyUserTableConfigExpanderPluginInterface> */ protected function getCompanyUserTableConfigExpanderPlugins(): array { @@ -35,7 +35,7 @@ protected function getCompanyUserTableConfigExpanderPlugins(): array } /** - * @return \Spryker\Zed\CompanyUserGuiExtension\Dependency\Plugin\CompanyUserTablePrepareDataExpanderPluginInterface[] + * @return array<\Spryker\Zed\CompanyUserGuiExtension\Dependency\Plugin\CompanyUserTablePrepareDataExpanderPluginInterface> */ protected function getCompanyUserTablePrepareDataExpanderPlugins(): array { @@ -46,7 +46,7 @@ protected function getCompanyUserTablePrepareDataExpanderPlugins(): array } /** - * @return \Spryker\Zed\CompanyUserGuiExtension\Dependency\Plugin\CompanyUserFormExpanderPluginInterface[] + * @return array<\Spryker\Zed\CompanyUserGuiExtension\Dependency\Plugin\CompanyUserFormExpanderPluginInterface> */ protected function getCompanyUserFormExpanderPlugins(): array { @@ -59,7 +59,7 @@ protected function getCompanyUserFormExpanderPlugins(): array } /** - * @return \Spryker\Zed\CompanyUserGuiExtension\Dependency\Plugin\CompanyUserAttachCustomerFormExpanderPluginInterface[] + * @return array<\Spryker\Zed\CompanyUserGuiExtension\Dependency\Plugin\CompanyUserAttachCustomerFormExpanderPluginInterface> */ protected function getCompanyUserAttachCustomerFormExpanderPlugins(): array { @@ -70,7 +70,7 @@ protected function getCompanyUserAttachCustomerFormExpanderPlugins(): array } /** - * @return \Spryker\Zed\CompanyUserGuiExtension\Dependency\Plugin\CompanyUserTableActionExpanderPluginInterface[] + * @return array<\Spryker\Zed\CompanyUserGuiExtension\Dependency\Plugin\CompanyUserTableActionExpanderPluginInterface> */ protected function getCompanyUserTableActionExpanderPlugins(): array { diff --git a/src/Pyz/Zed/CompanyUserStorage/CompanyUserStorageDependencyProvider.php b/src/Pyz/Zed/CompanyUserStorage/CompanyUserStorageDependencyProvider.php index 8f05663729..ba706a1b67 100644 --- a/src/Pyz/Zed/CompanyUserStorage/CompanyUserStorageDependencyProvider.php +++ b/src/Pyz/Zed/CompanyUserStorage/CompanyUserStorageDependencyProvider.php @@ -13,7 +13,7 @@ class CompanyUserStorageDependencyProvider extends SprykerCompanyUserStorageDependencyProvider { /** - * @return \Spryker\Zed\CompanyUserStorageExtension\Dependency\Plugin\CompanyUserStorageExpanderPluginInterface[] + * @return array<\Spryker\Zed\CompanyUserStorageExtension\Dependency\Plugin\CompanyUserStorageExpanderPluginInterface> */ protected function getCompanyUserStorageExpanderPlugins(): array { diff --git a/src/Pyz/Zed/ConfigurableBundleGui/ConfigurableBundleGuiDependencyProvider.php b/src/Pyz/Zed/ConfigurableBundleGui/ConfigurableBundleGuiDependencyProvider.php index 715cc434b0..d9719d27c7 100644 --- a/src/Pyz/Zed/ConfigurableBundleGui/ConfigurableBundleGuiDependencyProvider.php +++ b/src/Pyz/Zed/ConfigurableBundleGui/ConfigurableBundleGuiDependencyProvider.php @@ -18,7 +18,7 @@ class ConfigurableBundleGuiDependencyProvider extends SprykerConfigurableBundleGuiDependencyProvider { /** - * @return \Spryker\Zed\ConfigurableBundleGuiExtension\Dependency\Plugin\ConfigurableBundleTemplateSlotEditTabsExpanderPluginInterface[] + * @return array<\Spryker\Zed\ConfigurableBundleGuiExtension\Dependency\Plugin\ConfigurableBundleTemplateSlotEditTabsExpanderPluginInterface> */ protected function getConfigurableBundleTemplateSlotEditTabsExpanderPlugins(): array { @@ -28,7 +28,7 @@ protected function getConfigurableBundleTemplateSlotEditTabsExpanderPlugins(): a } /** - * @return \Spryker\Zed\ConfigurableBundleGuiExtension\Dependency\Plugin\ConfigurableBundleTemplateSlotEditFormExpanderPluginInterface[] + * @return array<\Spryker\Zed\ConfigurableBundleGuiExtension\Dependency\Plugin\ConfigurableBundleTemplateSlotEditFormExpanderPluginInterface> */ protected function getConfigurableBundleTemplateSlotEditFormExpanderPlugins(): array { @@ -38,7 +38,7 @@ protected function getConfigurableBundleTemplateSlotEditFormExpanderPlugins(): a } /** - * @return \Spryker\Zed\ConfigurableBundleGuiExtension\Dependency\Plugin\ConfigurableBundleTemplateSlotEditFormDataProviderExpanderPluginInterface[] + * @return array<\Spryker\Zed\ConfigurableBundleGuiExtension\Dependency\Plugin\ConfigurableBundleTemplateSlotEditFormDataProviderExpanderPluginInterface> */ protected function getConfigurableBundleTemplateSlotEditFormDataProviderExpanderPlugins(): array { @@ -48,7 +48,7 @@ protected function getConfigurableBundleTemplateSlotEditFormDataProviderExpander } /** - * @return \Spryker\Zed\ConfigurableBundleGuiExtension\Dependency\Plugin\ConfigurableBundleTemplateSlotEditFormFileUploadHandlerPluginInterface[] + * @return array<\Spryker\Zed\ConfigurableBundleGuiExtension\Dependency\Plugin\ConfigurableBundleTemplateSlotEditFormFileUploadHandlerPluginInterface> */ protected function getConfigurableBundleTemplateSlotEditFormFileUploadHandlerPlugins(): array { @@ -58,7 +58,7 @@ protected function getConfigurableBundleTemplateSlotEditFormFileUploadHandlerPlu } /** - * @return \Spryker\Zed\ConfigurableBundleGuiExtension\Dependency\Plugin\ConfigurableBundleTemplateSlotEditSubTabsProviderPluginInterface[] + * @return array<\Spryker\Zed\ConfigurableBundleGuiExtension\Dependency\Plugin\ConfigurableBundleTemplateSlotEditSubTabsProviderPluginInterface> */ protected function getConfigurableBundleTemplateSlotEditSubTabsProviderPlugins(): array { @@ -68,7 +68,7 @@ protected function getConfigurableBundleTemplateSlotEditSubTabsProviderPlugins() } /** - * @return \Spryker\Zed\ConfigurableBundleGuiExtension\Dependency\Plugin\ConfigurableBundleTemplateSlotEditTablesProviderPluginInterface[] + * @return array<\Spryker\Zed\ConfigurableBundleGuiExtension\Dependency\Plugin\ConfigurableBundleTemplateSlotEditTablesProviderPluginInterface> */ protected function getConfigurableBundleTemplateSlotEditTablesProviderPlugins(): array { diff --git a/src/Pyz/Zed/Console/ConsoleDependencyProvider.php b/src/Pyz/Zed/Console/ConsoleDependencyProvider.php index 16c1348749..0333e06075 100644 --- a/src/Pyz/Zed/Console/ConsoleDependencyProvider.php +++ b/src/Pyz/Zed/Console/ConsoleDependencyProvider.php @@ -188,7 +188,7 @@ class ConsoleDependencyProvider extends SprykerConsoleDependencyProvider /** * @param \Spryker\Zed\Kernel\Container $container * - * @return \Symfony\Component\Console\Command\Command[] + * @return array<\Symfony\Component\Console\Command\Command> */ protected function getConsoleCommands(Container $container): array { @@ -446,7 +446,7 @@ protected function getConsoleCommands(Container $container): array * * @return array */ - public function getConsolePostRunHookPlugins(Container $container) + public function getConsolePostRunHookPlugins(Container $container): array { return [ new EventBehaviorPostHookPlugin(), @@ -456,7 +456,7 @@ public function getConsolePostRunHookPlugins(Container $container) /** * @param \Spryker\Zed\Kernel\Container $container * - * @return \Spryker\Shared\ApplicationExtension\Dependency\Plugin\ApplicationPluginInterface[] + * @return array<\Spryker\Shared\ApplicationExtension\Dependency\Plugin\ApplicationPluginInterface> */ public function getApplicationPlugins(Container $container): array { @@ -470,7 +470,7 @@ public function getApplicationPlugins(Container $container): array /** * @param \Spryker\Zed\Kernel\Container $container * - * @return \Spryker\Zed\Monitoring\Communication\Plugin\Console\MonitoringConsolePlugin[] + * @return array<\Spryker\Zed\Monitoring\Communication\Plugin\Console\MonitoringConsolePlugin> */ public function getEventSubscriber(Container $container): array { diff --git a/src/Pyz/Zed/ContentGui/ContentGuiDependencyProvider.php b/src/Pyz/Zed/ContentGui/ContentGuiDependencyProvider.php index 56c6ee1539..9b252ba814 100644 --- a/src/Pyz/Zed/ContentGui/ContentGuiDependencyProvider.php +++ b/src/Pyz/Zed/ContentGui/ContentGuiDependencyProvider.php @@ -22,7 +22,7 @@ class ContentGuiDependencyProvider extends SprykerContentGuiDependencyProvider { /** - * @return \Spryker\Zed\ContentGuiExtension\Dependency\Plugin\ContentPluginInterface[] + * @return array<\Spryker\Zed\ContentGuiExtension\Dependency\Plugin\ContentPluginInterface> */ protected function getContentPlugins(): array { @@ -36,7 +36,7 @@ protected function getContentPlugins(): array } /** - * @return \Spryker\Zed\ContentGuiExtension\Dependency\Plugin\ContentGuiEditorPluginInterface[] + * @return array<\Spryker\Zed\ContentGuiExtension\Dependency\Plugin\ContentGuiEditorPluginInterface> */ protected function getContentEditorPlugins(): array { diff --git a/src/Pyz/Zed/Customer/CustomerConfig.php b/src/Pyz/Zed/Customer/CustomerConfig.php index 7afe6eed4e..b3b94788ef 100644 --- a/src/Pyz/Zed/Customer/CustomerConfig.php +++ b/src/Pyz/Zed/Customer/CustomerConfig.php @@ -15,6 +15,7 @@ class CustomerConfig extends SprykerCustomerConfig * @var int */ protected const MIN_LENGTH_CUSTOMER_PASSWORD = 8; + /** * @var int */ @@ -23,7 +24,7 @@ class CustomerConfig extends SprykerCustomerConfig /** * {@inheritDoc} * - * @return string[] + * @return array */ public function getCustomerPasswordAllowList(): array { @@ -35,7 +36,7 @@ public function getCustomerPasswordAllowList(): array /** * {@inheritDoc} * - * @return string[] + * @return array */ public function getCustomerPasswordDenyList(): array { @@ -77,7 +78,7 @@ public function getCustomerPasswordSequenceLimit(): ?int /** * {@inheritDoc} * - * @return string[] + * @return array */ public function getCustomerDetailExternalBlocksUrls() { diff --git a/src/Pyz/Zed/Customer/CustomerDependencyProvider.php b/src/Pyz/Zed/Customer/CustomerDependencyProvider.php index f72069ceb5..84594a00ed 100644 --- a/src/Pyz/Zed/Customer/CustomerDependencyProvider.php +++ b/src/Pyz/Zed/Customer/CustomerDependencyProvider.php @@ -45,7 +45,7 @@ class CustomerDependencyProvider extends SprykerCustomerDependencyProvider * * @return \Spryker\Zed\Kernel\Container */ - public function provideCommunicationLayerDependencies(Container $container) + public function provideCommunicationLayerDependencies(Container $container): Container { $container = parent::provideCommunicationLayerDependencies($container); $container = $this->addPyzFacadeSales($container); @@ -83,7 +83,7 @@ protected function addPyzFacadeNewsletter(Container $container): Container } /** - * @return \Spryker\Zed\Customer\Dependency\Plugin\CustomerAnonymizerPluginInterface[] + * @return array<\Spryker\Zed\Customer\Dependency\Plugin\CustomerAnonymizerPluginInterface> */ protected function getCustomerAnonymizerPlugins(): array { @@ -97,7 +97,7 @@ protected function getCustomerAnonymizerPlugins(): array } /** - * @return \Spryker\Zed\Customer\Dependency\Plugin\CustomerTransferExpanderPluginInterface[] + * @return array<\Spryker\Zed\Customer\Dependency\Plugin\CustomerTransferExpanderPluginInterface> */ protected function getCustomerTransferExpanderPlugins(): array { @@ -117,7 +117,7 @@ protected function getCustomerTransferExpanderPlugins(): array } /** - * @return \Spryker\Zed\CustomerExtension\Dependency\Plugin\PostCustomerRegistrationPluginInterface[] + * @return array<\Spryker\Zed\CustomerExtension\Dependency\Plugin\PostCustomerRegistrationPluginInterface> */ protected function getPostCustomerRegistrationPlugins(): array { @@ -127,7 +127,7 @@ protected function getPostCustomerRegistrationPlugins(): array } /** - * @return \Spryker\Zed\CustomerExtension\Dependency\Plugin\CustomerTableActionExpanderPluginInterface[] + * @return array<\Spryker\Zed\CustomerExtension\Dependency\Plugin\CustomerTableActionExpanderPluginInterface> */ protected function getCustomerTableActionExpanderPlugins(): array { diff --git a/src/Pyz/Zed/CustomerAccess/Business/CustomerAccess/CustomerAccessUpdater.php b/src/Pyz/Zed/CustomerAccess/Business/CustomerAccess/CustomerAccessUpdater.php index 362c59c94c..94326fe0be 100644 --- a/src/Pyz/Zed/CustomerAccess/Business/CustomerAccess/CustomerAccessUpdater.php +++ b/src/Pyz/Zed/CustomerAccess/Business/CustomerAccess/CustomerAccessUpdater.php @@ -38,7 +38,7 @@ class CustomerAccessUpdater implements CustomerAccessUpdaterInterface public function __construct( CustomerAccessEntityManagerInterface $customerAccessEntityManager, CustomerAccessReaderInterface $customerAccessReader, - CustomerAccessFilterInterface $customerAccessFilter + CustomerAccessFilterInterface $customerAccessFilter, ) { $this->customerAccessEntityManager = $customerAccessEntityManager; $this->customerAccessReader = $customerAccessReader; diff --git a/src/Pyz/Zed/CustomerAccess/Business/CustomerAccessBusinessFactory.php b/src/Pyz/Zed/CustomerAccess/Business/CustomerAccessBusinessFactory.php index 930f02dfb1..802d4864a2 100644 --- a/src/Pyz/Zed/CustomerAccess/Business/CustomerAccessBusinessFactory.php +++ b/src/Pyz/Zed/CustomerAccess/Business/CustomerAccessBusinessFactory.php @@ -28,7 +28,7 @@ class CustomerAccessBusinessFactory extends SprykerCustomerAccessBusinessFactory public function createPyzCustomerAccessFilter(): CustomerAccessFilterInterface { return new CustomerAccessFilter( - $this->getConfig() + $this->getConfig(), ); } @@ -40,7 +40,7 @@ public function createPyzCustomerAccessUpdater(): CustomerAccessUpdaterInterface return new CustomerAccessUpdater( $this->getEntityManager(), $this->createPyzCustomerAccessReader(), - $this->createPyzCustomerAccessFilter() + $this->createPyzCustomerAccessFilter(), ); } diff --git a/src/Pyz/Zed/CustomerAccess/Business/CustomerAccessFacade.php b/src/Pyz/Zed/CustomerAccess/Business/CustomerAccessFacade.php index 3e3547b980..cc6617971c 100644 --- a/src/Pyz/Zed/CustomerAccess/Business/CustomerAccessFacade.php +++ b/src/Pyz/Zed/CustomerAccess/Business/CustomerAccessFacade.php @@ -13,6 +13,8 @@ /** * @method \Pyz\Zed\CustomerAccess\Business\CustomerAccessBusinessFactory getFactory() + * @method \Pyz\Zed\CustomerAccess\Persistence\CustomerAccessEntityManagerInterface getEntityManager() + * @method \Pyz\Zed\CustomerAccess\Persistence\CustomerAccessRepositoryInterface getRepository() */ class CustomerAccessFacade extends SprykerCustomerAccessFacade implements CustomerAccessFacadeInterface, CustomerAccessGuiToCustomerAccessFacadeInterface { diff --git a/src/Pyz/Zed/CustomerAccess/CustomerAccessConfig.php b/src/Pyz/Zed/CustomerAccess/CustomerAccessConfig.php index 9dbbd1c05c..b74ed797be 100644 --- a/src/Pyz/Zed/CustomerAccess/CustomerAccessConfig.php +++ b/src/Pyz/Zed/CustomerAccess/CustomerAccessConfig.php @@ -15,7 +15,7 @@ class CustomerAccessConfig extends SprykerCustomerAccessConfig /** * {@inheritDoc} * - * @return string[] + * @return array */ public function getContentTypes(): array { @@ -31,7 +31,7 @@ public function getContentTypes(): array /** * Returns content access by type for install. * - * @return bool[] + * @return array */ public function getContentAccessByType(): array { diff --git a/src/Pyz/Zed/CustomerAccess/Persistence/CustomerAccessEntityManager.php b/src/Pyz/Zed/CustomerAccess/Persistence/CustomerAccessEntityManager.php index 5a0af5e1ff..3197b8e471 100644 --- a/src/Pyz/Zed/CustomerAccess/Persistence/CustomerAccessEntityManager.php +++ b/src/Pyz/Zed/CustomerAccess/Persistence/CustomerAccessEntityManager.php @@ -49,7 +49,7 @@ public function setPyzContentTypesToInaccessible(CustomerAccessTransfer $custome $updatedContentTypeAccessCollection->append( $this->getFactory() ->createPyzCustomerAccessMapper() - ->mapCustomerAccessEntityToContentTypeAccessTransfer($customerAccessEntity, new ContentTypeAccessTransfer()) + ->mapCustomerAccessEntityToContentTypeAccessTransfer($customerAccessEntity, new ContentTypeAccessTransfer()), ); } $customerAccessTransfer->setContentTypeAccess($updatedContentTypeAccessCollection); diff --git a/src/Pyz/Zed/CustomerAccess/Persistence/CustomerAccessPersistenceFactory.php b/src/Pyz/Zed/CustomerAccess/Persistence/CustomerAccessPersistenceFactory.php index 4119dd6ea7..f73f78afe0 100644 --- a/src/Pyz/Zed/CustomerAccess/Persistence/CustomerAccessPersistenceFactory.php +++ b/src/Pyz/Zed/CustomerAccess/Persistence/CustomerAccessPersistenceFactory.php @@ -11,6 +11,11 @@ use Pyz\Zed\CustomerAccess\Persistence\Propel\Mapper\CustomerAccessMapper; use Spryker\Zed\CustomerAccess\Persistence\CustomerAccessPersistenceFactory as SprykerCustomerAccessPersistenceFactory; +/** + * @method \Pyz\Zed\CustomerAccess\Persistence\CustomerAccessEntityManagerInterface getEntityManager() + * @method \Pyz\Zed\CustomerAccess\CustomerAccessConfig getConfig() + * @method \Pyz\Zed\CustomerAccess\Persistence\CustomerAccessRepositoryInterface getRepository() + */ class CustomerAccessPersistenceFactory extends SprykerCustomerAccessPersistenceFactory { /** diff --git a/src/Pyz/Zed/CustomerAccess/Persistence/Propel/Mapper/CustomerAccessMapper.php b/src/Pyz/Zed/CustomerAccess/Persistence/Propel/Mapper/CustomerAccessMapper.php index bb153d61e3..5c4deea6cd 100644 --- a/src/Pyz/Zed/CustomerAccess/Persistence/Propel/Mapper/CustomerAccessMapper.php +++ b/src/Pyz/Zed/CustomerAccess/Persistence/Propel/Mapper/CustomerAccessMapper.php @@ -22,7 +22,7 @@ class CustomerAccessMapper */ public function mapCustomerAccessEntityToContentTypeAccessTransfer( SpyUnauthenticatedCustomerAccess $customerAccessEntity, - ContentTypeAccessTransfer $contentTypeAccessTransfer + ContentTypeAccessTransfer $contentTypeAccessTransfer, ): ContentTypeAccessTransfer { return $contentTypeAccessTransfer->fromArray($customerAccessEntity->toArray(), true); } @@ -35,11 +35,11 @@ public function mapCustomerAccessEntityToContentTypeAccessTransfer( */ public function mapEntitiesToCustomerAccessTransfer( ObjectCollection $customerAccessEntities, - CustomerAccessTransfer $customerAccessTransfer + CustomerAccessTransfer $customerAccessTransfer, ): CustomerAccessTransfer { foreach ($customerAccessEntities as $customerAccessEntity) { $customerAccessTransfer->addContentTypeAccess( - $this->mapCustomerAccessEntityToContentTypeAccessTransfer($customerAccessEntity, new ContentTypeAccessTransfer()) + $this->mapCustomerAccessEntityToContentTypeAccessTransfer($customerAccessEntity, new ContentTypeAccessTransfer()), ); } @@ -54,10 +54,10 @@ public function mapEntitiesToCustomerAccessTransfer( */ public function mapEntityToCustomerAccessTransfer( SpyUnauthenticatedCustomerAccess $customerAccessEntity, - CustomerAccessTransfer $customerAccessTransfer + CustomerAccessTransfer $customerAccessTransfer, ): CustomerAccessTransfer { return $customerAccessTransfer->addContentTypeAccess( - (new ContentTypeAccessTransfer())->fromArray($customerAccessEntity->toArray(), true) + (new ContentTypeAccessTransfer())->fromArray($customerAccessEntity->toArray(), true), ); } } diff --git a/src/Pyz/Zed/CustomerAccessGui/Communication/CustomerAccessGuiCommunicationFactory.php b/src/Pyz/Zed/CustomerAccessGui/Communication/CustomerAccessGuiCommunicationFactory.php index 703f92faef..e3e7d3ed53 100644 --- a/src/Pyz/Zed/CustomerAccessGui/Communication/CustomerAccessGuiCommunicationFactory.php +++ b/src/Pyz/Zed/CustomerAccessGui/Communication/CustomerAccessGuiCommunicationFactory.php @@ -47,7 +47,7 @@ public function getPyzCustomerAccessForm(CustomerAccessTransfer $customerAccessT return $this->getFormFactory()->create( CustomerAccessForm::class, $customerAccessTransfer, - $options + $options, ); } } diff --git a/src/Pyz/Zed/CustomerAccessGui/Communication/Form/CustomerAccessForm.php b/src/Pyz/Zed/CustomerAccessGui/Communication/Form/CustomerAccessForm.php index b529403192..073f6c833c 100644 --- a/src/Pyz/Zed/CustomerAccessGui/Communication/Form/CustomerAccessForm.php +++ b/src/Pyz/Zed/CustomerAccessGui/Communication/Form/CustomerAccessForm.php @@ -15,7 +15,8 @@ use Symfony\Component\OptionsResolver\OptionsResolver; /** - * @method \Spryker\Zed\CustomerAccessGui\Communication\CustomerAccessGuiCommunicationFactory getFactory() + * @method \Pyz\Zed\CustomerAccessGui\Communication\CustomerAccessGuiCommunicationFactory getFactory() + * @method \Spryker\Zed\CustomerAccessGui\CustomerAccessGuiConfig getConfig() */ class CustomerAccessForm extends AbstractType { @@ -63,7 +64,7 @@ public function configureOptions(OptionsResolver $resolver): void /** * @param \Symfony\Component\Form\FormBuilderInterface $builder - * @param string[] $options + * @param array $options * * @return void */ diff --git a/src/Pyz/Zed/CustomerAccessGui/Communication/Form/DataProvider/CustomerAccessDataProvider.php b/src/Pyz/Zed/CustomerAccessGui/Communication/Form/DataProvider/CustomerAccessDataProvider.php index 63fada30e1..74b4e7028a 100644 --- a/src/Pyz/Zed/CustomerAccessGui/Communication/Form/DataProvider/CustomerAccessDataProvider.php +++ b/src/Pyz/Zed/CustomerAccessGui/Communication/Form/DataProvider/CustomerAccessDataProvider.php @@ -24,7 +24,7 @@ class CustomerAccessDataProvider * @param \Pyz\Zed\CustomerAccess\Business\CustomerAccessFacadeInterface $customerAccessFacade */ public function __construct( - CustomerAccessFacadeInterface $customerAccessFacade + CustomerAccessFacadeInterface $customerAccessFacade, ) { $this->customerAccessFacade = $customerAccessFacade; } @@ -57,9 +57,9 @@ public function getData(): CustomerAccessTransfer } /** - * @param \ArrayObject|\Generated\Shared\Transfer\ContentTypeAccessTransfer[] $contentTypes + * @param \ArrayObject<\Generated\Shared\Transfer\ContentTypeAccessTransfer> $contentTypes * - * @return \Generated\Shared\Transfer\ContentTypeAccessTransfer[] + * @return array<\Generated\Shared\Transfer\ContentTypeAccessTransfer> */ protected function filterPyzContentTypesData(ArrayObject $contentTypes): array { @@ -67,7 +67,7 @@ protected function filterPyzContentTypesData(ArrayObject $contentTypes): array $contentTypes->getArrayCopy(), function (ContentTypeAccessTransfer $entity) { return $entity->getIsRestricted(); - } + }, ); } } diff --git a/src/Pyz/Zed/Dashboard/DashboardDependencyProvider.php b/src/Pyz/Zed/Dashboard/DashboardDependencyProvider.php index 64ce067188..7a9d13e8a7 100644 --- a/src/Pyz/Zed/Dashboard/DashboardDependencyProvider.php +++ b/src/Pyz/Zed/Dashboard/DashboardDependencyProvider.php @@ -15,7 +15,7 @@ class DashboardDependencyProvider extends SprykerDashboardDependencyProvider { /** - * @return \Spryker\Shared\Dashboard\Dependency\Plugin\DashboardPluginInterface[] + * @return array<\Spryker\Shared\Dashboard\Dependency\Plugin\DashboardPluginInterface> */ protected function getDashboardPlugins(): array { diff --git a/src/Pyz/Zed/DataExport/DataExportDependencyProvider.php b/src/Pyz/Zed/DataExport/DataExportDependencyProvider.php index ea31813564..7a161fe2ac 100644 --- a/src/Pyz/Zed/DataExport/DataExportDependencyProvider.php +++ b/src/Pyz/Zed/DataExport/DataExportDependencyProvider.php @@ -18,7 +18,7 @@ class DataExportDependencyProvider extends SprykerDataExportDependencyProvider { /** - * @return \Spryker\Zed\DataExportExtension\Dependency\Plugin\DataEntityExporterPluginInterface[] + * @return array<\Spryker\Zed\DataExportExtension\Dependency\Plugin\DataEntityExporterPluginInterface> */ protected function getDataEntityExporterPlugins(): array { diff --git a/src/Pyz/Zed/DataImport/Business/CombinedProduct/DataSet/CombinedProductMandatoryColumnCondition.php b/src/Pyz/Zed/DataImport/Business/CombinedProduct/DataSet/CombinedProductMandatoryColumnCondition.php index 72d3291195..5f948f8ae7 100644 --- a/src/Pyz/Zed/DataImport/Business/CombinedProduct/DataSet/CombinedProductMandatoryColumnCondition.php +++ b/src/Pyz/Zed/DataImport/Business/CombinedProduct/DataSet/CombinedProductMandatoryColumnCondition.php @@ -16,7 +16,7 @@ abstract class CombinedProductMandatoryColumnCondition implements DataSetConditi * Specification: * - Returns a list of columns. * - * @return string[] + * @return array */ abstract protected function getMandatoryColumns(): array; diff --git a/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductAbstract/CombinedProductAbstractHydratorStep.php b/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductAbstract/CombinedProductAbstractHydratorStep.php index 37a10f7686..e9c5a2a751 100644 --- a/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductAbstract/CombinedProductAbstractHydratorStep.php +++ b/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductAbstract/CombinedProductAbstractHydratorStep.php @@ -23,6 +23,7 @@ class CombinedProductAbstractHydratorStep extends ProductAbstractHydratorStep * @var string */ public const COLUMN_ABSTRACT_SKU = 'abstract_sku'; + /** * @var string */ @@ -32,38 +33,47 @@ class CombinedProductAbstractHydratorStep extends ProductAbstractHydratorStep * @var string */ public const COLUMN_CATEGORY_KEY = 'product_abstract.category_key'; + /** * @var string */ public const COLUMN_CATEGORY_PRODUCT_ORDER = 'product_abstract.category_product_order'; + /** * @var string */ public const COLUMN_URL = 'product_abstract.url'; + /** * @var string */ public const COLUMN_COLOR_CODE = 'product_abstract.color_code'; + /** * @var string */ public const COLUMN_TAX_SET_NAME = 'product_abstract.tax_set_name'; + /** * @var string */ public const COLUMN_META_TITLE = 'product_abstract.meta_title'; + /** * @var string */ public const COLUMN_META_KEYWORDS = 'product_abstract.meta_keywords'; + /** * @var string */ public const COLUMN_META_DESCRIPTION = 'product_abstract.meta_description'; + /** * @var string */ public const COLUMN_NEW_FROM = 'product_abstract.new_from'; + /** * @var string */ @@ -73,6 +83,7 @@ class CombinedProductAbstractHydratorStep extends ProductAbstractHydratorStep * @var string */ public const COLUMN_NAME = 'product.name'; + /** * @var string */ @@ -87,6 +98,7 @@ class CombinedProductAbstractHydratorStep extends ProductAbstractHydratorStep * @var string */ protected const ASSIGNABLE_PRODUCT_TYPE_ABSTRACT = 'abstract'; + /** * @var string */ @@ -126,7 +138,7 @@ protected function assertAssignableProductTypeColumn(DataSetInterface $dataSet): throw new DataKeyNotFoundInDataSetException(sprintf( '"%s" must be defined in the data set. Given: "%s"', static::COLUMN_ASSIGNED_PRODUCT_TYPE, - implode(', ', array_keys($dataSet->getArrayCopy())) + implode(', ', array_keys($dataSet->getArrayCopy())), )); } @@ -135,7 +147,7 @@ protected function assertAssignableProductTypeColumn(DataSetInterface $dataSet): '"%s" must have one of the following values: %s. Given: "%s"', static::COLUMN_ASSIGNED_PRODUCT_TYPE, implode(', ', static::ASSIGNABLE_PRODUCT_TYPES), - $dataSet[static::COLUMN_ASSIGNED_PRODUCT_TYPE] + $dataSet[static::COLUMN_ASSIGNED_PRODUCT_TYPE], )); } } diff --git a/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductAbstract/CombinedProductAbstractTypeDataSetCondition.php b/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductAbstract/CombinedProductAbstractTypeDataSetCondition.php index 9b281715b7..ebba13e266 100644 --- a/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductAbstract/CombinedProductAbstractTypeDataSetCondition.php +++ b/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductAbstract/CombinedProductAbstractTypeDataSetCondition.php @@ -16,6 +16,7 @@ class CombinedProductAbstractTypeDataSetCondition implements DataSetConditionInt * @var string */ protected const ASSIGNABLE_PRODUCT_TYPE_ABSTRACT = 'abstract'; + /** * @var string */ diff --git a/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductAbstractStore/CombinedProductAbstractStoreHydratorStep.php b/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductAbstractStore/CombinedProductAbstractStoreHydratorStep.php index 983cf96d6b..44caa0bb8a 100644 --- a/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductAbstractStore/CombinedProductAbstractStoreHydratorStep.php +++ b/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductAbstractStore/CombinedProductAbstractStoreHydratorStep.php @@ -20,6 +20,7 @@ class CombinedProductAbstractStoreHydratorStep extends ProductAbstractStoreHydra * @var string */ public const COLUMN_ABSTRACT_SKU = 'abstract_sku'; + /** * @var string */ diff --git a/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductAbstractStore/CombinedProductAbstractStoreMandatoryColumnCondition.php b/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductAbstractStore/CombinedProductAbstractStoreMandatoryColumnCondition.php index fb8455ece9..cc81d9d13e 100644 --- a/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductAbstractStore/CombinedProductAbstractStoreMandatoryColumnCondition.php +++ b/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductAbstractStore/CombinedProductAbstractStoreMandatoryColumnCondition.php @@ -12,7 +12,7 @@ class CombinedProductAbstractStoreMandatoryColumnCondition extends CombinedProductMandatoryColumnCondition { /** - * @return string[] + * @return array */ protected function getMandatoryColumns(): array { diff --git a/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductConcrete/CombinedProductConcreteHydratorStep.php b/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductConcrete/CombinedProductConcreteHydratorStep.php index 33a7f808f2..cfd8631f1f 100644 --- a/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductConcrete/CombinedProductConcreteHydratorStep.php +++ b/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductConcrete/CombinedProductConcreteHydratorStep.php @@ -24,6 +24,7 @@ class CombinedProductConcreteHydratorStep extends ProductConcreteHydratorStep * @var string */ public const COLUMN_ABSTRACT_SKU = 'abstract_sku'; + /** * @var string */ @@ -33,10 +34,12 @@ class CombinedProductConcreteHydratorStep extends ProductConcreteHydratorStep * @var string */ public const COLUMN_IS_SEARCHABLE = 'product_concrete.is_searchable'; + /** * @var string */ public const COLUMN_BUNDLES = 'product_concrete.bundled'; + /** * @var string */ @@ -46,6 +49,7 @@ class CombinedProductConcreteHydratorStep extends ProductConcreteHydratorStep * @var string */ public const COLUMN_NAME = 'product.name'; + /** * @var string */ @@ -60,6 +64,7 @@ class CombinedProductConcreteHydratorStep extends ProductConcreteHydratorStep * @var string */ protected const ASSIGNABLE_PRODUCT_TYPE_CONCRETE = 'concrete'; + /** * @var string */ @@ -107,7 +112,7 @@ protected function assertAssignableProductTypeColumn(DataSetInterface $dataSet): throw new DataKeyNotFoundInDataSetException(sprintf( '"%s" must be defined in the data set. Given: "%s"', static::COLUMN_ASSIGNED_PRODUCT_TYPE, - implode(', ', array_keys($dataSet->getArrayCopy())) + implode(', ', array_keys($dataSet->getArrayCopy())), )); } @@ -116,7 +121,7 @@ protected function assertAssignableProductTypeColumn(DataSetInterface $dataSet): '"%s" must have one of the following values: %s. Given: "%s"', static::COLUMN_ASSIGNED_PRODUCT_TYPE, implode(', ', static::ASSIGNABLE_PRODUCT_TYPES), - $dataSet[static::COLUMN_ASSIGNED_PRODUCT_TYPE] + $dataSet[static::COLUMN_ASSIGNED_PRODUCT_TYPE], )); } } diff --git a/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductConcrete/CombinedProductConcreteTypeDataSetCondition.php b/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductConcrete/CombinedProductConcreteTypeDataSetCondition.php index 377805a67f..1c85a8c0f1 100644 --- a/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductConcrete/CombinedProductConcreteTypeDataSetCondition.php +++ b/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductConcrete/CombinedProductConcreteTypeDataSetCondition.php @@ -16,6 +16,7 @@ class CombinedProductConcreteTypeDataSetCondition implements DataSetConditionInt * @var string */ protected const ASSIGNABLE_PRODUCT_TYPE_CONCRETE = 'concrete'; + /** * @var string */ diff --git a/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductGroup/CombinedProductGroupMandatoryColumnCondition.php b/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductGroup/CombinedProductGroupMandatoryColumnCondition.php index c71ca3262f..201a2b9914 100644 --- a/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductGroup/CombinedProductGroupMandatoryColumnCondition.php +++ b/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductGroup/CombinedProductGroupMandatoryColumnCondition.php @@ -12,7 +12,7 @@ class CombinedProductGroupMandatoryColumnCondition extends CombinedProductMandatoryColumnCondition { /** - * @return string[] + * @return array */ protected function getMandatoryColumns(): array { diff --git a/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductGroup/CombinedProductGroupWriter.php b/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductGroup/CombinedProductGroupWriter.php index 79c79fc3a5..da41e227f0 100644 --- a/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductGroup/CombinedProductGroupWriter.php +++ b/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductGroup/CombinedProductGroupWriter.php @@ -16,10 +16,12 @@ class CombinedProductGroupWriter extends ProductGroupWriter * @var string */ public const COLUMN_ABSTRACT_SKU = 'abstract_sku'; + /** * @var string */ public const COLUMN_PRODUCT_GROUP_KEY = 'product_group.group_key'; + /** * @var string */ diff --git a/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductImage/CombinedProductImageHydratorStep.php b/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductImage/CombinedProductImageHydratorStep.php index dc6b562218..b65887c7a1 100644 --- a/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductImage/CombinedProductImageHydratorStep.php +++ b/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductImage/CombinedProductImageHydratorStep.php @@ -23,6 +23,7 @@ class CombinedProductImageHydratorStep extends ProductImageHydratorStep * @var string */ public const COLUMN_ABSTRACT_SKU = 'abstract_sku'; + /** * @var string */ @@ -32,26 +33,32 @@ class CombinedProductImageHydratorStep extends ProductImageHydratorStep * @var string */ public const COLUMN_IMAGE_SET_NAME = 'product_image.image_set_name'; + /** * @var string */ public const COLUMN_EXTERNAL_URL_LARGE = 'product_image.external_url_large'; + /** * @var string */ public const COLUMN_EXTERNAL_URL_SMALL = 'product_image.external_url_small'; + /** * @var string */ public const COLUMN_LOCALE = 'product_image.locale'; + /** * @var string */ public const COLUMN_SORT_ORDER = 'product_image.sort_order'; + /** * @var string */ public const COLUMN_PRODUCT_IMAGE_KEY = 'product_image.product_image_key'; + /** * @var string */ @@ -66,6 +73,7 @@ class CombinedProductImageHydratorStep extends ProductImageHydratorStep * @var string */ protected const ASSIGNABLE_PRODUCT_TYPE_ABSTRACT = 'abstract'; + /** * @var string */ @@ -124,7 +132,7 @@ protected function assertAssignableProductTypeColumn(DataSetInterface $dataSet): throw new DataKeyNotFoundInDataSetException(sprintf( '"%s" must be defined in the data set. Given: "%s"', static::COLUMN_ASSIGNED_PRODUCT_TYPE, - implode(', ', array_keys($dataSet->getArrayCopy())) + implode(', ', array_keys($dataSet->getArrayCopy())), )); } @@ -133,7 +141,7 @@ protected function assertAssignableProductTypeColumn(DataSetInterface $dataSet): '"%s" must have one of the following values: %s. Given: "%s"', static::COLUMN_ASSIGNED_PRODUCT_TYPE, implode(', ', static::ASSIGNABLE_PRODUCT_TYPES), - $dataSet[static::COLUMN_ASSIGNED_PRODUCT_TYPE] + $dataSet[static::COLUMN_ASSIGNED_PRODUCT_TYPE], )); } } diff --git a/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductImage/CombinedProductImageMandatoryColumnCondition.php b/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductImage/CombinedProductImageMandatoryColumnCondition.php index 95254b983b..fd3d7b2af2 100644 --- a/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductImage/CombinedProductImageMandatoryColumnCondition.php +++ b/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductImage/CombinedProductImageMandatoryColumnCondition.php @@ -12,7 +12,7 @@ class CombinedProductImageMandatoryColumnCondition extends CombinedProductMandatoryColumnCondition { /** - * @return string[] + * @return array */ protected function getMandatoryColumns(): array { diff --git a/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductPrice/CombinedProductPriceHydratorStep.php b/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductPrice/CombinedProductPriceHydratorStep.php index 604af9de3e..884ffbb3cc 100644 --- a/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductPrice/CombinedProductPriceHydratorStep.php +++ b/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductPrice/CombinedProductPriceHydratorStep.php @@ -25,6 +25,7 @@ class CombinedProductPriceHydratorStep extends ProductPriceHydratorStep * @var string */ public const COLUMN_ABSTRACT_SKU = 'abstract_sku'; + /** * @var string */ @@ -34,30 +35,37 @@ class CombinedProductPriceHydratorStep extends ProductPriceHydratorStep * @var string */ public const COLUMN_CURRENCY = 'product_price.currency'; + /** * @var string */ public const COLUMN_STORE = 'product_price.store'; + /** * @var string */ public const COLUMN_PRICE_NET = 'product_price.value_net'; + /** * @var string */ public const COLUMN_PRICE_GROSS = 'product_price.value_gross'; + /** * @var string */ public const COLUMN_PRICE_DATA = 'product_price.price_data'; + /** * @var string */ public const COLUMN_PRICE_DATA_CHECKSUM = 'product_price.price_data_checksum'; + /** * @var string */ public const COLUMN_PRICE_TYPE = 'product_price.price_type'; + /** * @var string */ @@ -72,10 +80,12 @@ class CombinedProductPriceHydratorStep extends ProductPriceHydratorStep * @var string */ protected const ASSIGNABLE_PRODUCT_TYPE_ABSTRACT = 'abstract'; + /** * @var string */ protected const ASSIGNABLE_PRODUCT_TYPE_CONCRETE = 'concrete'; + /** * @var array */ @@ -90,7 +100,7 @@ class CombinedProductPriceHydratorStep extends ProductPriceHydratorStep */ public function __construct( PriceProductFacadeInterface $priceProductFacade, - DataImportToUtilEncodingServiceInterface $utilEncodingService + DataImportToUtilEncodingServiceInterface $utilEncodingService, ) { parent::__construct($priceProductFacade, $utilEncodingService); } @@ -140,7 +150,7 @@ protected function assertAssignableProductTypeColumn(DataSetInterface $dataSet): throw new DataKeyNotFoundInDataSetException(sprintf( '"%s" must be defined in the data set. Given: "%s"', static::COLUMN_ASSIGNED_PRODUCT_TYPE, - implode(', ', array_keys($dataSet->getArrayCopy())) + implode(', ', array_keys($dataSet->getArrayCopy())), )); } @@ -149,7 +159,7 @@ protected function assertAssignableProductTypeColumn(DataSetInterface $dataSet): '"%s" must have one of the following values: %s. Given: "%s"', static::COLUMN_ASSIGNED_PRODUCT_TYPE, implode(', ', static::ASSIGNABLE_PRODUCT_TYPES), - $dataSet[static::COLUMN_ASSIGNED_PRODUCT_TYPE] + $dataSet[static::COLUMN_ASSIGNED_PRODUCT_TYPE], )); } } diff --git a/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductPrice/CombinedProductPriceMandatoryColumnCondition.php b/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductPrice/CombinedProductPriceMandatoryColumnCondition.php index e0737b118d..d14d23f0ff 100644 --- a/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductPrice/CombinedProductPriceMandatoryColumnCondition.php +++ b/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductPrice/CombinedProductPriceMandatoryColumnCondition.php @@ -12,7 +12,7 @@ class CombinedProductPriceMandatoryColumnCondition extends CombinedProductMandatoryColumnCondition { /** - * @return string[] + * @return array */ protected function getMandatoryColumns(): array { diff --git a/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductPrice/Writer/CombinedProductPricePropelDataSetWriter.php b/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductPrice/Writer/CombinedProductPricePropelDataSetWriter.php index 2afc792b7a..f8a12dabf4 100644 --- a/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductPrice/Writer/CombinedProductPricePropelDataSetWriter.php +++ b/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductPrice/Writer/CombinedProductPricePropelDataSetWriter.php @@ -16,12 +16,19 @@ class CombinedProductPricePropelDataSetWriter extends ProductPricePropelDataSetWriter { protected const COLUMN_ABSTRACT_SKU = CombinedProductPriceHydratorStep::COLUMN_ABSTRACT_SKU; + protected const COLUMN_CONCRETE_SKU = CombinedProductPriceHydratorStep::COLUMN_CONCRETE_SKU; + protected const COLUMN_STORE = CombinedProductPriceHydratorStep::COLUMN_STORE; + protected const COLUMN_CURRENCY = CombinedProductPriceHydratorStep::COLUMN_CURRENCY; + protected const COLUMN_PRICE_GROSS = CombinedProductPriceHydratorStep::COLUMN_PRICE_GROSS; + protected const COLUMN_PRICE_NET = CombinedProductPriceHydratorStep::COLUMN_PRICE_NET; + protected const COLUMN_PRICE_DATA = CombinedProductPriceHydratorStep::COLUMN_PRICE_DATA; + protected const COLUMN_PRICE_DATA_CHECKSUM = CombinedProductPriceHydratorStep::COLUMN_PRICE_DATA_CHECKSUM; /** @@ -32,7 +39,7 @@ class CombinedProductPricePropelDataSetWriter extends ProductPricePropelDataSetW public function __construct( ProductRepository $productRepository, StoreFacadeInterface $storeFacade, - CurrencyFacadeInterface $currencyFacade + CurrencyFacadeInterface $currencyFacade, ) { parent::__construct($productRepository, $storeFacade, $currencyFacade); } diff --git a/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductStock/CombinedProductStockHydratorStep.php b/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductStock/CombinedProductStockHydratorStep.php index 4de3ece572..c19e0c2e8a 100644 --- a/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductStock/CombinedProductStockHydratorStep.php +++ b/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductStock/CombinedProductStockHydratorStep.php @@ -25,14 +25,17 @@ class CombinedProductStockHydratorStep extends ProductStockHydratorStep * @var string */ public const COLUMN_NAME = 'product_stock.name'; + /** * @var string */ public const COLUMN_QUANTITY = 'product_stock.quantity'; + /** * @var string */ public const COLUMN_IS_NEVER_OUT_OF_STOCK = 'product_stock.is_never_out_of_stock'; + /** * @var string */ diff --git a/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductStock/CombinedProductStockMandatoryColumnCondition.php b/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductStock/CombinedProductStockMandatoryColumnCondition.php index a58c226ba5..d374c5bb1d 100644 --- a/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductStock/CombinedProductStockMandatoryColumnCondition.php +++ b/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductStock/CombinedProductStockMandatoryColumnCondition.php @@ -12,7 +12,7 @@ class CombinedProductStockMandatoryColumnCondition extends CombinedProductMandatoryColumnCondition { /** - * @return string[] + * @return array */ protected function getMandatoryColumns(): array { diff --git a/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductStock/Writer/CombinedProductStockPropelDataSetWriter.php b/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductStock/Writer/CombinedProductStockPropelDataSetWriter.php index b24f85a278..71423d1d94 100644 --- a/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductStock/Writer/CombinedProductStockPropelDataSetWriter.php +++ b/src/Pyz/Zed/DataImport/Business/CombinedProduct/ProductStock/Writer/CombinedProductStockPropelDataSetWriter.php @@ -17,7 +17,9 @@ class CombinedProductStockPropelDataSetWriter extends ProductStockPropelDataSetWriter { protected const COLUMN_CONCRETE_SKU = CombinedProductStockHydratorStep::COLUMN_CONCRETE_SKU; + protected const COLUMN_IS_BUNDLE = CombinedProductStockHydratorStep::COLUMN_IS_BUNDLE; + protected const COLUMN_IS_NEVER_OUT_OF_STOCK = CombinedProductStockHydratorStep::COLUMN_IS_NEVER_OUT_OF_STOCK; /** @@ -30,7 +32,7 @@ public function __construct( ProductBundleFacadeInterface $productBundleFacade, ProductRepositoryInterface $productRepository, StoreFacadeInterface $storeFacade, - StockFacadeInterface $stockFacade + StockFacadeInterface $stockFacade, ) { parent::__construct($productBundleFacade, $productRepository, $storeFacade, $stockFacade); } diff --git a/src/Pyz/Zed/DataImport/Business/DataImportBusinessFactory.php b/src/Pyz/Zed/DataImport/Business/DataImportBusinessFactory.php index 4a9a0052be..7dc369afc8 100644 --- a/src/Pyz/Zed/DataImport/Business/DataImportBusinessFactory.php +++ b/src/Pyz/Zed/DataImport/Business/DataImportBusinessFactory.php @@ -36,6 +36,7 @@ use Pyz\Zed\DataImport\Business\Model\CmsBlockStore\CmsBlockStoreWriterStep; use Pyz\Zed\DataImport\Business\Model\CmsTemplate\CmsTemplateWriterStep; use Pyz\Zed\DataImport\Business\Model\Country\Repository\CountryRepository; +use Pyz\Zed\DataImport\Business\Model\Country\Repository\CountryRepositoryInterface; use Pyz\Zed\DataImport\Business\Model\Currency\CurrencyWriterStep; use Pyz\Zed\DataImport\Business\Model\Customer\CustomerWriterStep; use Pyz\Zed\DataImport\Business\Model\DataImporterConditional; @@ -49,6 +50,7 @@ use Pyz\Zed\DataImport\Business\Model\Locale\AddLocalesStep; use Pyz\Zed\DataImport\Business\Model\Locale\LocaleNameToIdLocaleStep; use Pyz\Zed\DataImport\Business\Model\Locale\Repository\LocaleRepository; +use Pyz\Zed\DataImport\Business\Model\Locale\Repository\LocaleRepositoryInterface; use Pyz\Zed\DataImport\Business\Model\MerchantUser\MerchantUserWriterStep; use Pyz\Zed\DataImport\Business\Model\Navigation\NavigationKeyToIdNavigationStep; use Pyz\Zed\DataImport\Business\Model\Navigation\NavigationWriterStep; @@ -117,8 +119,10 @@ use Spryker\Zed\DataImport\Business\Model\DataSet\DataSetWriterCollection; use Spryker\Zed\DataImport\Business\Model\DataSet\DataSetWriterInterface; use Spryker\Zed\Discount\DiscountConfig; +use Spryker\Zed\Event\Business\EventFacadeInterface; use Spryker\Zed\MerchantUser\Business\MerchantUserFacadeInterface; use Spryker\Zed\PriceProduct\Business\PriceProductFacadeInterface; +use Spryker\Zed\ProductBundle\Business\ProductBundleFacadeInterface; use Spryker\Zed\Stock\Business\StockFacadeInterface; use Spryker\Zed\Store\Business\StoreFacadeInterface; @@ -225,7 +229,7 @@ public function getDataImporterByType(DataImportConfigurationActionTransfer $dat public function createCurrencyImporter(DataImportConfigurationActionTransfer $dataImportConfigurationActionTransfer): DataImporterInterface { $dataImporter = $this->getCsvDataImporterFromConfig( - $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer) + $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer), ); $dataSetStepBroker = $this->createTransactionAwareDataSetStepBroker(); @@ -248,9 +252,9 @@ public function createStoreImporter(DataImportConfigurationActionTransfer $dataI $dataImportConfigurationActionTransfer->getDataEntity(), new StoreReader( $this->createDataSet( - Store::getInstance()->getAllowedStores() - ) - ) + Store::getInstance()->getAllowedStores(), + ), + ), ); $dataSetStepBroker = $this->createDataSetStepBroker(); @@ -269,7 +273,7 @@ public function createStoreImporter(DataImportConfigurationActionTransfer $dataI public function createGlossaryImporter(DataImportConfigurationActionTransfer $dataImportConfigurationActionTransfer): DataImporterInterface { $dataImporter = $this->getCsvDataImporterFromConfig( - $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer) + $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer), ); $dataSetStepBroker = $this->createTransactionAwareDataSetStepBroker(GlossaryWriterStep::BULK_SIZE); @@ -290,7 +294,7 @@ public function createGlossaryImporter(DataImportConfigurationActionTransfer $da public function createCategoryTemplateImporter(DataImportConfigurationActionTransfer $dataImportConfigurationActionTransfer): DataImporterInterface { $dataImporter = $this->getCsvDataImporterFromConfig( - $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer) + $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer), ); $dataSetStepBroker = $this->createTransactionAwareDataSetStepBroker(); @@ -311,7 +315,7 @@ public function createCategoryTemplateImporter(DataImportConfigurationActionTran public function createCustomerImporter(DataImportConfigurationActionTransfer $dataImportConfigurationActionTransfer) { $dataImporter = $this->getCsvDataImporterFromConfig( - $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer) + $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer), ); $dataSetStepBroker = $this->createTransactionAwareDataSetStepBroker(); @@ -330,7 +334,7 @@ public function createCustomerImporter(DataImportConfigurationActionTransfer $da public function createCmsTemplateImporter(DataImportConfigurationActionTransfer $dataImportConfigurationActionTransfer) { $dataImporter = $this->getCsvDataImporterFromConfig( - $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer) + $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer), ); $dataSetStepBroker = $this->createTransactionAwareDataSetStepBroker(); @@ -350,7 +354,7 @@ public function createCmsTemplateImporter(DataImportConfigurationActionTransfer public function createCmsBlockImporter(DataImportConfigurationActionTransfer $dataImportConfigurationActionTransfer) { $dataImporter = $this->getCsvDataImporterFromConfig( - $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer) + $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer), ); $dataSetStepBroker = $this->createTransactionAwareDataSetStepBroker(CmsBlockWriterStep::BULK_SIZE); @@ -377,7 +381,7 @@ public function createCmsBlockImporter(DataImportConfigurationActionTransfer $da public function createCmsBlockStoreImporter(DataImportConfigurationActionTransfer $dataImportConfigurationActionTransfer) { $dataImporter = $this->getCsvDataImporterFromConfig( - $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer) + $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer), ); $dataSetStepBroker = $this->createTransactionAwareDataSetStepBroker(CmsBlockStoreWriterStep::BULK_SIZE); @@ -395,7 +399,7 @@ public function createCmsBlockStoreImporter(DataImportConfigurationActionTransfe public function createDiscountImporter(DataImportConfigurationActionTransfer $dataImportConfigurationActionTransfer) { $dataImporter = $this->getCsvDataImporterFromConfig( - $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer) + $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer), ); $dataSetStepBroker = $this->createTransactionAwareDataSetStepBroker(DiscountWriterStep::BULK_SIZE); @@ -415,7 +419,7 @@ public function createDiscountImporter(DataImportConfigurationActionTransfer $da public function createDiscountStoreImporter(DataImportConfigurationActionTransfer $dataImportConfigurationActionTransfer) { $dataImporter = $this->getCsvDataImporterFromConfig( - $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer) + $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer), ); $dataSetStepBroker = $this->createTransactionAwareDataSetStepBroker(DiscountStoreWriterStep::BULK_SIZE); $dataSetStepBroker @@ -433,7 +437,7 @@ public function createDiscountStoreImporter(DataImportConfigurationActionTransfe public function createDiscountAmountImporter(DataImportConfigurationActionTransfer $dataImportConfigurationActionTransfer) { $dataImporter = $this->getCsvDataImporterFromConfig( - $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer) + $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer), ); $dataSetStepBroker = $this->createTransactionAwareDataSetStepBroker(DiscountAmountWriterStep::BULK_SIZE); @@ -453,7 +457,7 @@ public function createDiscountAmountImporter(DataImportConfigurationActionTransf public function createDiscountVoucherImporter(DataImportConfigurationActionTransfer $dataImportConfigurationActionTransfer) { $dataImporter = $this->getCsvDataImporterFromConfig( - $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer) + $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer), ); $dataSetStepBroker = $this->createTransactionAwareDataSetStepBroker(DiscountVoucherWriterStep::BULK_SIZE); @@ -468,7 +472,7 @@ public function createDiscountVoucherImporter(DataImportConfigurationActionTrans /** * @return \Spryker\Zed\Discount\DiscountConfig */ - public function createDiscountConfig() + public function createDiscountConfig(): DiscountConfig { return new DiscountConfig(); } @@ -481,7 +485,7 @@ public function createDiscountConfig() public function createProductOptionImporter(DataImportConfigurationActionTransfer $dataImportConfigurationActionTransfer) { $dataImporter = $this->getCsvDataImporterFromConfig( - $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer) + $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer), ); $dataSetStepBroker = $this->createTransactionAwareDataSetStepBroker(); @@ -507,7 +511,7 @@ public function createProductOptionImporter(DataImportConfigurationActionTransfe public function createProductOptionPriceImporter(DataImportConfigurationActionTransfer $dataImportConfigurationActionTransfer) { $dataImporter = $this->getCsvDataImporterFromConfig( - $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer) + $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer), ); $dataSetStepBroker = $this->createTransactionAwareDataSetStepBroker(); @@ -528,7 +532,7 @@ public function createProductStockImporter(DataImportConfigurationActionTransfer { /** @var \Spryker\Zed\DataImport\Business\Model\DataSet\DataSetStepBrokerAwareInterface|\Spryker\Zed\DataImport\Business\Model\DataImporterInterface|\Spryker\Zed\DataImport\Business\Model\DataImporterDataSetWriterAwareInterface $dataImporter */ $dataImporter = $this->getCsvDataImporterWriterAwareFromConfig( - $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer) + $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer), ); $dataSetStepBroker = $this->createTransactionAwareDataSetStepBroker(ProductStockHydratorStep::BULK_SIZE); @@ -543,7 +547,7 @@ public function createProductStockImporter(DataImportConfigurationActionTransfer /** * @return \Spryker\Zed\ProductBundle\Business\ProductBundleFacadeInterface */ - public function getProductBundleFacade() + public function getProductBundleFacade(): ProductBundleFacadeInterface { return $this->getProvidedDependency(DataImportDependencyProvider::FACADE_PRODUCT_BUNDLE); } @@ -557,7 +561,7 @@ public function createProductImageImporter(DataImportConfigurationActionTransfer { /** @var \Spryker\Zed\DataImport\Business\Model\DataSet\DataSetStepBrokerAwareInterface|\Spryker\Zed\DataImport\Business\Model\DataImporterInterface|\Spryker\Zed\DataImport\Business\Model\DataImporterDataSetWriterAwareInterface $dataImporter */ $dataImporter = $this->getCsvDataImporterWriterAwareFromConfig( - $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer) + $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer), ); $dataSetStepBroker = $this->createTransactionAwareDataSetStepBroker(ProductImageHydratorStep::BULK_SIZE); @@ -576,7 +580,7 @@ public function createProductImageImporter(DataImportConfigurationActionTransfer /** * @return \Pyz\Zed\DataImport\Business\Model\Locale\Repository\LocaleRepositoryInterface */ - public function createLocaleRepository() + public function createLocaleRepository(): LocaleRepositoryInterface { return new LocaleRepository(); } @@ -589,7 +593,7 @@ public function createLocaleRepository() public function createTaxImporter(DataImportConfigurationActionTransfer $dataImportConfigurationActionTransfer) { $dataImporter = $this->getCsvDataImporterFromConfig( - $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer) + $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer), ); $dataSetStepBroker = $this->createTransactionAwareDataSetStepBroker(TaxWriterStep::BULK_SIZE); @@ -604,7 +608,7 @@ public function createTaxImporter(DataImportConfigurationActionTransfer $dataImp /** * @return \Pyz\Zed\DataImport\Business\Model\Country\Repository\CountryRepositoryInterface */ - public function createCountryRepository() + public function createCountryRepository(): CountryRepositoryInterface { return new CountryRepository(); } @@ -617,7 +621,7 @@ public function createCountryRepository() public function createNavigationImporter(DataImportConfigurationActionTransfer $dataImportConfigurationActionTransfer) { $dataImporter = $this->getCsvDataImporterFromConfig( - $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer) + $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer), ); $dataSetStepBroker = $this->createTransactionAwareDataSetStepBroker(NavigationWriterStep::BULK_SIZE); @@ -637,7 +641,7 @@ public function createNavigationImporter(DataImportConfigurationActionTransfer $ public function createNavigationNodeImporter(DataImportConfigurationActionTransfer $dataImportConfigurationActionTransfer) { $dataImporter = $this->getCsvDataImporterFromConfig( - $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer) + $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer), ); $dataSetStepBroker = $this->createTransactionAwareDataSetStepBroker(NavigationNodeWriterStep::BULK_SIZE); @@ -665,8 +669,8 @@ public function createNavigationNodeImporter(DataImportConfigurationActionTransf */ public function createNavigationKeyToIdNavigationStep( $source = NavigationKeyToIdNavigationStep::KEY_SOURCE, - $target = NavigationKeyToIdNavigationStep::KEY_TARGET - ) { + $target = NavigationKeyToIdNavigationStep::KEY_TARGET, + ): NavigationKeyToIdNavigationStep { return new NavigationKeyToIdNavigationStep($source, $target); } @@ -676,8 +680,10 @@ public function createNavigationKeyToIdNavigationStep( * * @return \Pyz\Zed\DataImport\Business\Model\NavigationNode\NavigationNodeValidityDatesStep */ - public function createNavigationNodeValidityDatesStep($keyValidFrom, $keyValidTo) - { + public function createNavigationNodeValidityDatesStep( + $keyValidFrom, + $keyValidTo, + ): NavigationNodeValidityDatesStep { return new NavigationNodeValidityDatesStep($keyValidFrom, $keyValidTo); } @@ -686,11 +692,12 @@ public function createNavigationNodeValidityDatesStep($keyValidFrom, $keyValidTo * * @return \Spryker\Zed\DataImport\Business\Model\DataImporterInterface */ - public function createProductAbstractImporter(DataImportConfigurationActionTransfer $dataImportConfigurationActionTransfer) - { + public function createProductAbstractImporter( + DataImportConfigurationActionTransfer $dataImportConfigurationActionTransfer, + ): DataImporterInterface { /** @var \Spryker\Zed\DataImport\Business\Model\DataSet\DataSetStepBrokerAwareInterface|\Spryker\Zed\DataImport\Business\Model\DataImporterInterface|\Spryker\Zed\DataImport\Business\Model\DataImporterDataSetWriterAwareInterface $dataImporter */ $dataImporter = $this->getCsvDataImporterWriterAwareFromConfig( - $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer) + $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer), ); $dataSetStepBroker = $this->createTransactionAwareDataSetStepBroker(ProductAbstractHydratorStep::BULK_SIZE); @@ -721,11 +728,12 @@ public function createProductAbstractImporter(DataImportConfigurationActionTrans * * @return \Spryker\Zed\DataImport\Business\Model\DataImporterInterface */ - public function createProductAbstractStoreImporter(DataImportConfigurationActionTransfer $dataImportConfigurationActionTransfer) - { + public function createProductAbstractStoreImporter( + DataImportConfigurationActionTransfer $dataImportConfigurationActionTransfer, + ): DataImporterInterface { /** @var \Spryker\Zed\DataImport\Business\Model\DataSet\DataSetStepBrokerAwareInterface|\Spryker\Zed\DataImport\Business\Model\DataImporterInterface|\Spryker\Zed\DataImport\Business\Model\DataImporterDataSetWriterAwareInterface $dataImporter */ $dataImporter = $this->getCsvDataImporterWriterAwareFromConfig( - $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer) + $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer), ); $dataSetStepBroker = $this->createTransactionAwareDataSetStepBroker(ProductAbstractStoreHydratorStep::BULK_SIZE); @@ -742,11 +750,12 @@ public function createProductAbstractStoreImporter(DataImportConfigurationAction * * @return \Spryker\Zed\DataImport\Business\Model\DataImporterInterface */ - public function createProductConcreteImporter(DataImportConfigurationActionTransfer $dataImportConfigurationActionTransfer) - { + public function createProductConcreteImporter( + DataImportConfigurationActionTransfer $dataImportConfigurationActionTransfer, + ): DataImporterInterface { /** @var \Spryker\Zed\DataImport\Business\Model\DataSet\DataSetStepBrokerAwareInterface|\Spryker\Zed\DataImport\Business\Model\DataImporterInterface|\Spryker\Zed\DataImport\Business\Model\DataImporterBeforeImportAwareInterface|\Spryker\Zed\DataImport\Business\Model\DataImporterAfterImportAwareInterface|\Spryker\Zed\DataImport\Business\Model\DataImporterDataSetWriterAwareInterface $dataImporter */ $dataImporter = $this->getCsvDataImporterWriterAwareFromConfig( - $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer) + $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer), ); $dataSetStepBroker = $this->createTransactionAwareDataSetStepBroker(ProductConcreteHydratorStep::BULK_SIZE); @@ -761,7 +770,7 @@ public function createProductConcreteImporter(DataImportConfigurationActionTrans ProductConcreteHydratorStep::COLUMN_IS_SEARCHABLE, ])) ->addStep(new ProductConcreteHydratorStep( - $this->createProductRepository() + $this->createProductRepository(), )); $dataImporter->addDataSetStepBroker($dataSetStepBroker); @@ -777,14 +786,14 @@ public function createProductConcreteAttributesUniqueCheckStep(): DataImportStep { return new ProductConcreteAttributesUniqueCheckStep( $this->createProductRepository(), - $this->getUtilEncodingService() + $this->getUtilEncodingService(), ); } /** * @return \Pyz\Zed\DataImport\Business\Model\Product\Repository\ProductRepository */ - public function createProductRepository() + public function createProductRepository(): ProductRepository { return new ProductRepository(); } @@ -797,7 +806,7 @@ public function createProductRepository() public function createProductAttributeKeyImporter(DataImportConfigurationActionTransfer $dataImportConfigurationActionTransfer) { $dataImporter = $this->getCsvDataImporterFromConfig( - $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer) + $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer), ); $dataSetStepBroker = $this->createTransactionAwareDataSetStepBroker(); @@ -817,7 +826,7 @@ public function createProductAttributeKeyImporter(DataImportConfigurationActionT public function createProductManagementAttributeImporter(DataImportConfigurationActionTransfer $dataImportConfigurationActionTransfer) { $dataImporter = $this->getCsvDataImporterFromConfig( - $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer) + $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer), ); $dataSetStepBroker = $this->createTransactionAwareDataSetStepBroker(); @@ -835,7 +844,7 @@ public function createProductManagementAttributeImporter(DataImportConfiguration /** * @return \Pyz\Zed\DataImport\Business\Model\ProductManagementAttribute\ProductManagementLocalizedAttributesExtractorStep */ - public function createProductManagementLocalizedAttributesExtractorStep() + public function createProductManagementLocalizedAttributesExtractorStep(): ProductManagementLocalizedAttributesExtractorStep { return new ProductManagementLocalizedAttributesExtractorStep(); } @@ -848,13 +857,13 @@ public function createProductManagementLocalizedAttributesExtractorStep() public function createProductGroupImporter(DataImportConfigurationActionTransfer $dataImportConfigurationActionTransfer) { $dataImporter = $this->getCsvDataImporterFromConfig( - $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer) + $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer), ); $dataSetStepBroker = $this->createTransactionAwareDataSetStepBroker(ProductGroupWriter::BULK_SIZE); $dataSetStepBroker ->addStep(new ProductGroupWriter( - $this->createProductRepository() + $this->createProductRepository(), )); $dataImporter->addDataSetStepBroker($dataSetStepBroker); @@ -870,13 +879,13 @@ public function createProductGroupImporter(DataImportConfigurationActionTransfer public function createProductReviewImporter(DataImportConfigurationActionTransfer $dataImportConfigurationActionTransfer) { $dataImporter = $this->getCsvDataImporterFromConfig( - $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer) + $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer), ); $dataSetStepBroker = $this->createTransactionAwareDataSetStepBroker(); $dataSetStepBroker->addStep(new ProductReviewWriterStep( $this->createProductRepository(), - $this->createLocaleRepository() + $this->createLocaleRepository(), )); $dataImporter->addDataSetStepBroker($dataSetStepBroker); @@ -892,7 +901,7 @@ public function createProductReviewImporter(DataImportConfigurationActionTransfe public function createProductSetImporter(DataImportConfigurationActionTransfer $dataImportConfigurationActionTransfer) { $dataImporter = $this->getCsvDataImporterFromConfig( - $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer) + $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer), ); $dataSetStepBroker = $this->createTransactionAwareDataSetStepBroker(); @@ -909,7 +918,7 @@ public function createProductSetImporter(DataImportConfigurationActionTransfer $ ProductSetWriterStep::KEY_META_KEYWORDS, ])) ->addStep(new ProductSetWriterStep( - $this->createProductRepository() + $this->createProductRepository(), )); $dataImporter->addDataSetStepBroker($dataSetStepBroker); @@ -920,7 +929,7 @@ public function createProductSetImporter(DataImportConfigurationActionTransfer $ /** * @return \Pyz\Zed\DataImport\Business\Model\ProductSet\ProductSetImageExtractorStep */ - public function createProductSetImageExtractorStep() + public function createProductSetImageExtractorStep(): ProductSetImageExtractorStep { return new ProductSetImageExtractorStep(); } @@ -933,7 +942,7 @@ public function createProductSetImageExtractorStep() public function createProductSearchAttributeMapImporter(DataImportConfigurationActionTransfer $dataImportConfigurationActionTransfer) { $dataImporter = $this->getCsvDataImporterFromConfig( - $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer) + $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer), ); $dataSetStepBroker = $this->createTransactionAwareDataSetStepBroker(); @@ -954,7 +963,7 @@ public function createProductSearchAttributeMapImporter(DataImportConfigurationA public function createProductSearchAttributeImporter(DataImportConfigurationActionTransfer $dataImportConfigurationActionTransfer) { $dataImporter = $this->getCsvDataImporterFromConfig( - $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer) + $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer), ); $dataSetStepBroker = $this->createTransactionAwareDataSetStepBroker(); @@ -963,7 +972,7 @@ public function createProductSearchAttributeImporter(DataImportConfigurationActi ->addStep($this->createAddProductAttributeKeysStep()) ->addStep($this->createLocalizedAttributesExtractorStep([ProductSearchAttributeWriter::KEY])) ->addStep(new ProductSearchAttributeWriter( - $this->createSearchGlossaryKeyBuilder() + $this->createSearchGlossaryKeyBuilder(), )); $dataImporter->addDataSetStepBroker($dataSetStepBroker); @@ -975,7 +984,7 @@ public function createProductSearchAttributeImporter(DataImportConfigurationActi /** * @return \Pyz\Zed\DataImport\Business\Model\ProductSearchAttribute\Hook\ProductSearchAfterImportHook */ - public function createProductSearchAfterImportHook() + public function createProductSearchAfterImportHook(): ProductSearchAfterImportHook { return new ProductSearchAfterImportHook(); } @@ -983,7 +992,7 @@ public function createProductSearchAfterImportHook() /** * @return \Spryker\Shared\ProductSearch\Code\KeyBuilder\FilterGlossaryKeyBuilder */ - public function createSearchGlossaryKeyBuilder() + public function createSearchGlossaryKeyBuilder(): FilterGlossaryKeyBuilder { return new FilterGlossaryKeyBuilder(); } @@ -991,7 +1000,7 @@ public function createSearchGlossaryKeyBuilder() /** * @return \Pyz\Zed\DataImport\Business\Model\ProductAbstract\AddCategoryKeysStep */ - public function createAddCategoryKeysStep() + public function createAddCategoryKeysStep(): AddCategoryKeysStep { return new AddCategoryKeysStep(); } @@ -999,7 +1008,7 @@ public function createAddCategoryKeysStep() /** * @return \Pyz\Zed\DataImport\Business\Model\Product\AttributesExtractorStep */ - public function createAttributesExtractorStep() + public function createAttributesExtractorStep(): AttributesExtractorStep { return new AttributesExtractorStep(); } @@ -1009,15 +1018,16 @@ public function createAttributesExtractorStep() * * @return \Pyz\Zed\DataImport\Business\Model\Product\ProductLocalizedAttributesExtractorStep */ - public function createProductLocalizedAttributesExtractorStep(array $defaultAttributes = []) - { + public function createProductLocalizedAttributesExtractorStep( + array $defaultAttributes = [], + ): ProductLocalizedAttributesExtractorStep { return new ProductLocalizedAttributesExtractorStep($defaultAttributes); } /** * @return \Pyz\Zed\DataImport\Business\Model\ProductAbstract\AddProductAbstractSkusStep */ - public function createAddProductAbstractSkusStep() + public function createAddProductAbstractSkusStep(): AddProductAbstractSkusStep { return new AddProductAbstractSkusStep(); } @@ -1028,8 +1038,10 @@ public function createAddProductAbstractSkusStep() * * @return \Pyz\Zed\DataImport\Business\Model\Locale\LocaleNameToIdLocaleStep */ - public function createLocaleNameToIdStep($source = LocaleNameToIdLocaleStep::KEY_SOURCE, $target = LocaleNameToIdLocaleStep::KEY_TARGET) - { + public function createLocaleNameToIdStep( + $source = LocaleNameToIdLocaleStep::KEY_SOURCE, + $target = LocaleNameToIdLocaleStep::KEY_TARGET, + ): LocaleNameToIdLocaleStep { return new LocaleNameToIdLocaleStep($source, $target); } @@ -1039,15 +1051,17 @@ public function createLocaleNameToIdStep($source = LocaleNameToIdLocaleStep::KEY * * @return \Pyz\Zed\DataImport\Business\Model\Tax\TaxSetNameToIdTaxSetStep */ - public function createTaxSetNameToIdTaxSetStep($source = TaxSetNameToIdTaxSetStep::KEY_SOURCE, $target = TaxSetNameToIdTaxSetStep::KEY_TARGET) - { + public function createTaxSetNameToIdTaxSetStep( + $source = TaxSetNameToIdTaxSetStep::KEY_SOURCE, + $target = TaxSetNameToIdTaxSetStep::KEY_TARGET, + ): TaxSetNameToIdTaxSetStep { return new TaxSetNameToIdTaxSetStep($source, $target); } /** * @return \Pyz\Zed\DataImport\Business\Model\ProductAttributeKey\AddProductAttributeKeysStep */ - public function createAddProductAttributeKeysStep() + public function createAddProductAttributeKeysStep(): AddProductAttributeKeysStep { return new AddProductAttributeKeysStep(); } @@ -1055,7 +1069,7 @@ public function createAddProductAttributeKeysStep() /** * @return \Spryker\Zed\Event\Business\EventFacadeInterface */ - public function getEventFacade() + public function getEventFacade(): EventFacadeInterface { return $this->getProvidedDependency(DataImportDependencyProvider::FACADE_EVENT); } @@ -1074,7 +1088,7 @@ public function createAddLocalesStep(): DataImportStepInterface * * @return \Pyz\Zed\DataImport\Business\Model\DataImporterConditional */ - public function createDataImporterConditional($importType, DataReaderInterface $reader) + public function createDataImporterConditional($importType, DataReaderInterface $reader): DataImporterConditional { return new DataImporterConditional($importType, $reader, $this->getGracefulRunnerFacade()); } @@ -1095,8 +1109,9 @@ public function createDataImporterWriterAwareConditional($importType, DataReader * * @return \Pyz\Zed\DataImport\Business\Model\DataImporterConditional */ - public function getConditionalCsvDataImporterFromConfig(DataImporterConfigurationTransfer $dataImporterConfigurationTransfer) - { + public function getConditionalCsvDataImporterFromConfig( + DataImporterConfigurationTransfer $dataImporterConfigurationTransfer, + ): DataImporterConditional { $csvReader = $this->createCsvReaderFromConfig($dataImporterConfigurationTransfer->getReaderConfiguration()); return $this->createDataImporterConditional($dataImporterConfigurationTransfer->getImportType(), $csvReader); @@ -1108,7 +1123,7 @@ public function getConditionalCsvDataImporterFromConfig(DataImporterConfiguratio * @return \Pyz\Zed\DataImport\Business\Model\DataImporterDataSetWriterAwareConditional */ public function getConditionalCsvDataImporterWriterAwareFromConfig( - DataImporterConfigurationTransfer $dataImporterConfigurationTransfer + DataImporterConfigurationTransfer $dataImporterConfigurationTransfer, ): DataImporterDataSetWriterAwareInterface { $csvReader = $this->createCsvReaderFromConfig($dataImporterConfigurationTransfer->getReaderConfiguration()); @@ -1123,7 +1138,7 @@ public function createCombinedProductPricePropelDataSetWriter(): DataSetWriterIn return new CombinedProductPricePropelDataSetWriter( $this->createProductRepository(), $this->getStoreFacade(), - $this->getCurrencyFacade() + $this->getCurrencyFacade(), ); } @@ -1133,7 +1148,7 @@ public function createCombinedProductPricePropelDataSetWriter(): DataSetWriterIn public function createCombinedProductImagePropelDataSetWriter(): DataSetWriterInterface { return new CombinedProductImagePropelDataSetWriter( - $this->createProductImageRepository() + $this->createProductImageRepository(), ); } @@ -1146,7 +1161,7 @@ public function createCombinedProductStockPropelDataSetWriter(): DataSetWriterIn $this->getProductBundleFacade(), $this->createProductRepository(), $this->getStoreFacade(), - $this->getStockFacade() + $this->getStockFacade(), ); } @@ -1164,7 +1179,7 @@ public function createCombinedProductAbstractStorePropelDataSetWriter(): DataSet public function createCombinedProductAbstractPropelDataSetWriter(): DataSetWriterInterface { return new CombinedProductAbstractPropelDataSetWriter( - $this->createProductRepository() + $this->createProductRepository(), ); } @@ -1174,7 +1189,7 @@ public function createCombinedProductAbstractPropelDataSetWriter(): DataSetWrite public function createCombinedProductConcretePropelDataSetWriter(): DataSetWriterInterface { return new CombinedProductConcretePropelDataSetWriter( - $this->createProductRepository() + $this->createProductRepository(), ); } @@ -1186,14 +1201,14 @@ public function createCombinedProductConcretePropelDataSetWriter(): DataSetWrite public function createCombinedProductPriceImporter(DataImportConfigurationActionTransfer $dataImportConfigurationActionTransfer): DataImporterInterface { $dataImporter = $this->getConditionalCsvDataImporterWriterAwareFromConfig( - $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer) + $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer), ); $dataSetStepBroker = $this->createTransactionAwareDataSetStepBroker(CombinedProductPriceHydratorStep::BULK_SIZE); $dataSetStepBroker ->addStep(new CombinedProductPriceHydratorStep( $this->getPriceProductFacade(), - $this->getUtilEncodingService() + $this->getUtilEncodingService(), )); $dataImporter->setDataSetCondition($this->createCombinedProductPriceMandatoryColumnCondition()); @@ -1244,7 +1259,7 @@ public function createProductStockDataImportWriters(): DataSetWriterInterface } /** - * @return \Spryker\Zed\DataImportExtension\Dependency\Plugin\DataSetWriterPluginInterface[] + * @return array<\Spryker\Zed\DataImportExtension\Dependency\Plugin\DataSetWriterPluginInterface> */ public function createProductStockWriterPlugins(): array { @@ -1278,7 +1293,7 @@ public function createCombinedProductPriceDataSetWriters(): DataSetWriterInterfa } /** - * @return \Spryker\Zed\DataImportExtension\Dependency\Plugin\DataSetWriterPluginInterface[] + * @return array<\Spryker\Zed\DataImportExtension\Dependency\Plugin\DataSetWriterPluginInterface> */ public function createCombinedProductPriceDataSetWriterPlugins(): array { @@ -1295,7 +1310,7 @@ public function createCombinedProductPriceDataSetWriterPlugins(): array public function createCombinedProductImageImporter(DataImportConfigurationActionTransfer $dataImportConfigurationActionTransfer): DataImporterInterface { $dataImporter = $this->getConditionalCsvDataImporterWriterAwareFromConfig( - $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer) + $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer), ); $dataSetStepBroker = $this->createTransactionAwareDataSetStepBroker(CombinedProductImageHydratorStep::BULK_SIZE); @@ -1329,7 +1344,7 @@ public function createCombinedProductImageDataSetWriters(): DataSetWriterInterfa } /** - * @return \Spryker\Zed\DataImportExtension\Dependency\Plugin\DataSetWriterPluginInterface[] + * @return array<\Spryker\Zed\DataImportExtension\Dependency\Plugin\DataSetWriterPluginInterface> */ public function createCombinedProductImageDataSetWriterPlugins(): array { @@ -1346,7 +1361,7 @@ public function createCombinedProductImageDataSetWriterPlugins(): array public function createCombinedProductStockImporter(DataImportConfigurationActionTransfer $dataImportConfigurationActionTransfer): DataImporterInterface { $dataImporter = $this->getConditionalCsvDataImporterWriterAwareFromConfig( - $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer) + $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer), ); $dataSetStepBroker = $this->createTransactionAwareDataSetStepBroker(CombinedProductStockHydratorStep::BULK_SIZE); @@ -1377,7 +1392,7 @@ public function createCombinedProductStockDataSetWriters(): DataSetWriterInterfa } /** - * @return \Spryker\Zed\DataImportExtension\Dependency\Plugin\DataSetWriterPluginInterface[] + * @return array<\Spryker\Zed\DataImportExtension\Dependency\Plugin\DataSetWriterPluginInterface> */ public function createCombinedProductStockDataSetWriterPlugins(): array { @@ -1392,10 +1407,10 @@ public function createCombinedProductStockDataSetWriterPlugins(): array * @return \Spryker\Zed\DataImport\Business\Model\DataImporterInterface */ public function createCombinedProductAbstractStoreImporter( - DataImportConfigurationActionTransfer $dataImportConfigurationActionTransfer + DataImportConfigurationActionTransfer $dataImportConfigurationActionTransfer, ): DataImporterInterface { $dataImporter = $this->getConditionalCsvDataImporterWriterAwareFromConfig( - $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer) + $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer), ); $dataSetStepBroker = $this->createTransactionAwareDataSetStepBroker(CombinedProductAbstractStoreHydratorStep::BULK_SIZE); @@ -1425,7 +1440,7 @@ public function createCombinedProductAbstractStoreDataSetWriters(): DataSetWrite } /** - * @return \Spryker\Zed\DataImportExtension\Dependency\Plugin\DataSetWriterPluginInterface[] + * @return array<\Spryker\Zed\DataImportExtension\Dependency\Plugin\DataSetWriterPluginInterface> */ public function createCombinedProductAbstractStoreDataSetWriterPlugins(): array { @@ -1442,7 +1457,7 @@ public function createCombinedProductAbstractStoreDataSetWriterPlugins(): array public function createCombinedProductAbstractImporter(DataImportConfigurationActionTransfer $dataImportConfigurationActionTransfer): DataImporterInterface { $dataImporter = $this->getConditionalCsvDataImporterWriterAwareFromConfig( - $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer) + $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer), ); $dataSetStepBroker = $this->createTransactionAwareDataSetStepBroker(CombinedProductAbstractHydratorStep::BULK_SIZE); @@ -1486,7 +1501,7 @@ public function createCombinedProductAbstractDataSetWriters(): DataSetWriterInte } /** - * @return \Spryker\Zed\DataImportExtension\Dependency\Plugin\DataSetWriterPluginInterface[] + * @return array<\Spryker\Zed\DataImportExtension\Dependency\Plugin\DataSetWriterPluginInterface> */ public function createCombinedProductAbstractDataSetWriterPlugins(): array { @@ -1503,7 +1518,7 @@ public function createCombinedProductAbstractDataSetWriterPlugins(): array public function createCombinedProductConcreteImporter(DataImportConfigurationActionTransfer $dataImportConfigurationActionTransfer): DataImporterInterface { $dataImporter = $this->getConditionalCsvDataImporterWriterAwareFromConfig( - $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer) + $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer), ); $dataSetStepBroker = $this->createTransactionAwareDataSetStepBroker(CombinedProductConcreteHydratorStep::BULK_SIZE); @@ -1518,7 +1533,7 @@ public function createCombinedProductConcreteImporter(DataImportConfigurationAct CombinedProductConcreteHydratorStep::COLUMN_IS_SEARCHABLE, ])) ->addStep(new CombinedProductConcreteHydratorStep( - $this->createProductRepository() + $this->createProductRepository(), )); $dataImporter->setDataSetCondition($this->createCombinedProductConcreteTypeDataSetCondition()); @@ -1545,7 +1560,7 @@ public function createCombinedProductConcreteDataSetWriters(): DataSetWriterInte } /** - * @return \Spryker\Zed\DataImportExtension\Dependency\Plugin\DataSetWriterPluginInterface[] + * @return array<\Spryker\Zed\DataImportExtension\Dependency\Plugin\DataSetWriterPluginInterface> */ public function createCombinedProductConcreteDataSetWriterPlugins(): array { @@ -1562,7 +1577,7 @@ public function createCombinedProductConcreteDataSetWriterPlugins(): array public function createCombinedProductGroupImporter(DataImportConfigurationActionTransfer $dataImportConfigurationActionTransfer): DataImporterInterface { $dataImporter = $this->getConditionalCsvDataImporterFromConfig( - $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer) + $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer), ); $dataSetStepBroker = $this->createTransactionAwareDataSetStepBroker(ProductGroupWriter::BULK_SIZE); @@ -1591,7 +1606,7 @@ public function createCombinedProductGroupMandatoryColumnCondition(): DataSetCon */ public function createProductAbstractSkuToIdProductAbstractStep( string $source = ProductAbstractSkuToIdProductAbstractStep::KEY_SOURCE, - string $target = ProductAbstractSkuToIdProductAbstractStep::KEY_TARGET + string $target = ProductAbstractSkuToIdProductAbstractStep::KEY_TARGET, ): DataImportStepInterface { return new ProductAbstractSkuToIdProductAbstractStep($source, $target); } @@ -1604,7 +1619,7 @@ public function createProductAbstractSkuToIdProductAbstractStep( */ public function createProductSkuToIdProductStep( string $source = ProductSkuToIdProductStep::KEY_SOURCE, - string $target = ProductSkuToIdProductStep::KEY_TARGET + string $target = ProductSkuToIdProductStep::KEY_TARGET, ): DataImportStepInterface { return new ProductSkuToIdProductStep($source, $target); } @@ -1615,7 +1630,7 @@ public function createProductSkuToIdProductStep( public function createProductAbstractCheckExistenceStep(): DataImportStepInterface { return new ProductAbstractCheckExistenceStep( - $this->createProductRepository() + $this->createProductRepository(), ); } @@ -1625,7 +1640,7 @@ public function createProductAbstractCheckExistenceStep(): DataImportStepInterfa public function createProductConcreteCheckExistenceStep(): DataImportStepInterface { return new ProductConcreteCheckExistenceStep( - $this->createProductRepository() + $this->createProductRepository(), ); } @@ -1638,7 +1653,7 @@ public function createProductAbstractDataImportWriters(): DataSetWriterInterface } /** - * @return \Spryker\Zed\DataImportExtension\Dependency\Plugin\DataSetWriterPluginInterface[] + * @return array<\Spryker\Zed\DataImportExtension\Dependency\Plugin\DataSetWriterPluginInterface> */ public function createProductAbstractWriterPlugins(): array { @@ -1656,7 +1671,7 @@ public function createProductConcreteDataImportWriters(): DataSetWriterInterface } /** - * @return \Spryker\Zed\DataImportExtension\Dependency\Plugin\DataSetWriterPluginInterface[] + * @return array<\Spryker\Zed\DataImportExtension\Dependency\Plugin\DataSetWriterPluginInterface> */ public function createProductConcreteWriterPlugins(): array { @@ -1674,7 +1689,7 @@ public function createProductImageDataWriters(): DataSetWriterInterface } /** - * @return \Spryker\Zed\DataImportExtension\Dependency\Plugin\DataSetWriterPluginInterface[] + * @return array<\Spryker\Zed\DataImportExtension\Dependency\Plugin\DataSetWriterPluginInterface> */ public function createProductImageWriterPlugins(): array { @@ -1692,7 +1707,7 @@ public function createProductAbstractStoreDataImportWriters(): DataSetWriterInte } /** - * @return \Spryker\Zed\DataImportExtension\Dependency\Plugin\DataSetWriterPluginInterface[] + * @return array<\Spryker\Zed\DataImportExtension\Dependency\Plugin\DataSetWriterPluginInterface> */ public function createProductAbstractStoreWriterPlugins(): array { @@ -1734,7 +1749,7 @@ public function createProductStockPropelWriter(): DataSetWriterInterface $this->getProductBundleFacade(), $this->createProductRepository(), $this->getStoreFacade(), - $this->getStockFacade() + $this->getStockFacade(), ); } @@ -1759,8 +1774,9 @@ public function createCombinedAttributesExtractorStep(): DataImportStepInterface * * @return \Pyz\Zed\DataImport\Business\Model\Product\ProductLocalizedAttributesExtractorStep */ - public function createCombinedProductLocalizedAttributesExtractorStep(array $defaultAttributes = []) - { + public function createCombinedProductLocalizedAttributesExtractorStep( + array $defaultAttributes = [], + ): ProductLocalizedAttributesExtractorStep { return new CombinedProductLocalizedAttributesExtractorStep($defaultAttributes); } @@ -1770,15 +1786,15 @@ public function createCombinedProductLocalizedAttributesExtractorStep(array $def * @return \Spryker\Zed\DataImport\Business\Model\DataImporterInterface */ public function createMerchantUserImporter( - DataImportConfigurationActionTransfer $dataImportConfigurationActionTransfer + DataImportConfigurationActionTransfer $dataImportConfigurationActionTransfer, ): DataImporterInterface { $dataImporter = $this->getCsvDataImporterFromConfig( - $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer) + $this->getConfig()->buildImporterConfigurationByDataImportConfigAction($dataImportConfigurationActionTransfer), ); $dataSetStepBroker = $this->createTransactionAwareDataSetStepBroker(); $dataSetStepBroker->addStep(new MerchantUserWriterStep( - $this->getMerchantUserFacade() + $this->getMerchantUserFacade(), )); $dataImporter->addDataSetStepBroker($dataSetStepBroker); diff --git a/src/Pyz/Zed/DataImport/Business/Model/CategoryTemplate/CategoryTemplateWriterStep.php b/src/Pyz/Zed/DataImport/Business/Model/CategoryTemplate/CategoryTemplateWriterStep.php index 910400d1ed..c5f1a5f7cb 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/CategoryTemplate/CategoryTemplateWriterStep.php +++ b/src/Pyz/Zed/DataImport/Business/Model/CategoryTemplate/CategoryTemplateWriterStep.php @@ -28,7 +28,7 @@ class CategoryTemplateWriterStep implements DataImportStepInterface * * @return void */ - public function execute(DataSetInterface $dataSet) + public function execute(DataSetInterface $dataSet): void { $categoryTemplateEntity = SpyCategoryTemplateQuery::create() ->filterByName($dataSet[static::KEY_NAME]) diff --git a/src/Pyz/Zed/DataImport/Business/Model/CmsBlock/CmsBlockWriterStep.php b/src/Pyz/Zed/DataImport/Business/Model/CmsBlock/CmsBlockWriterStep.php index e9de942bce..8ffc84eb63 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/CmsBlock/CmsBlockWriterStep.php +++ b/src/Pyz/Zed/DataImport/Business/Model/CmsBlock/CmsBlockWriterStep.php @@ -150,7 +150,7 @@ protected function findOrCreateCmsBlock(DataSetInterface $dataSet, SpyCmsBlockTe * * @return void */ - protected function findOrCreateCmsBlockPlaceholderTranslation(DataSetInterface $dataSet, SpyCmsBlock $cmsBlockEntity) + protected function findOrCreateCmsBlockPlaceholderTranslation(DataSetInterface $dataSet, SpyCmsBlock $cmsBlockEntity): void { foreach ($dataSet[LocalizedAttributesExtractorStep::KEY_LOCALIZED_ATTRIBUTES] as $idLocale => $placeholder) { foreach ($placeholder as $key => $value) { diff --git a/src/Pyz/Zed/DataImport/Business/Model/CmsBlockStore/CmsBlockStoreWriterStep.php b/src/Pyz/Zed/DataImport/Business/Model/CmsBlockStore/CmsBlockStoreWriterStep.php index 54b6af6548..123cbcd00b 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/CmsBlockStore/CmsBlockStoreWriterStep.php +++ b/src/Pyz/Zed/DataImport/Business/Model/CmsBlockStore/CmsBlockStoreWriterStep.php @@ -34,12 +34,12 @@ class CmsBlockStoreWriterStep extends PublishAwareStep implements DataImportStep public const KEY_STORE_NAME = 'store_name'; /** - * @var int[] Keys are CMS Block names, values are CMS Block IDs. + * @var array Keys are CMS Block names, values are CMS Block IDs. */ protected static $idCmsBlockBuffer = []; /** - * @var int[] Keys are store names, values are store ids. + * @var array Keys are store names, values are store ids. */ protected static $idStoreBuffer = []; diff --git a/src/Pyz/Zed/DataImport/Business/Model/CmsTemplate/CmsTemplateWriterStep.php b/src/Pyz/Zed/DataImport/Business/Model/CmsTemplate/CmsTemplateWriterStep.php index 202aed3778..0ea3627679 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/CmsTemplate/CmsTemplateWriterStep.php +++ b/src/Pyz/Zed/DataImport/Business/Model/CmsTemplate/CmsTemplateWriterStep.php @@ -28,7 +28,7 @@ class CmsTemplateWriterStep implements DataImportStepInterface * * @return void */ - public function execute(DataSetInterface $dataSet) + public function execute(DataSetInterface $dataSet): void { $cmsTemplate = SpyCmsTemplateQuery::create() ->filterByTemplateName($dataSet[static::KEY_TEMPLATE_NAME]) diff --git a/src/Pyz/Zed/DataImport/Business/Model/Country/Repository/CountryRepository.php b/src/Pyz/Zed/DataImport/Business/Model/Country/Repository/CountryRepository.php index 3a4c691eab..9d0d8de0bd 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/Country/Repository/CountryRepository.php +++ b/src/Pyz/Zed/DataImport/Business/Model/Country/Repository/CountryRepository.php @@ -53,7 +53,7 @@ public function getIdCountryByName($countryName): int /** * @return void */ - private function loadCountries() + private function loadCountries(): void { $query = SpyCountryQuery::create(); diff --git a/src/Pyz/Zed/DataImport/Business/Model/Currency/CurrencyWriterStep.php b/src/Pyz/Zed/DataImport/Business/Model/Currency/CurrencyWriterStep.php index 3adacd950a..7ff97b0d42 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/Currency/CurrencyWriterStep.php +++ b/src/Pyz/Zed/DataImport/Business/Model/Currency/CurrencyWriterStep.php @@ -33,7 +33,7 @@ class CurrencyWriterStep implements DataImportStepInterface * * @return void */ - public function execute(DataSetInterface $dataSet) + public function execute(DataSetInterface $dataSet): void { $currencyEntity = SpyCurrencyQuery::create() ->filterByCode($dataSet[static::KEY_ISO_CODE]) diff --git a/src/Pyz/Zed/DataImport/Business/Model/Customer/CustomerWriterStep.php b/src/Pyz/Zed/DataImport/Business/Model/Customer/CustomerWriterStep.php index 8597c50a91..726c285075 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/Customer/CustomerWriterStep.php +++ b/src/Pyz/Zed/DataImport/Business/Model/Customer/CustomerWriterStep.php @@ -26,7 +26,7 @@ class CustomerWriterStep implements DataImportStepInterface * * @return void */ - public function execute(DataSetInterface $dataSet) + public function execute(DataSetInterface $dataSet): void { $customerEntity = SpyCustomerQuery::create() ->filterByCustomerReference($dataSet[self::COL_CUSTOMER_REFERENCE]) @@ -53,12 +53,12 @@ public function execute(DataSetInterface $dataSet) * * @return int */ - protected function getCurrentId(DataSetInterface $dataSet) + protected function getCurrentId(DataSetInterface $dataSet): int { if (!preg_match('/(\d+)$/', preg_quote($dataSet[self::COL_CUSTOMER_REFERENCE], '/'), $matches)) { throw new InvalidDataException(sprintf( 'Invalid customer reference: "%s". Value expected to end with a number.', - preg_quote($dataSet[self::COL_CUSTOMER_REFERENCE], '/') + preg_quote($dataSet[self::COL_CUSTOMER_REFERENCE], '/'), )); } diff --git a/src/Pyz/Zed/DataImport/Business/Model/DataImporterDataSetWriterAwareConditional.php b/src/Pyz/Zed/DataImport/Business/Model/DataImporterDataSetWriterAwareConditional.php index f78a0bfa85..9e08720e04 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/DataImporterDataSetWriterAwareConditional.php +++ b/src/Pyz/Zed/DataImport/Business/Model/DataImporterDataSetWriterAwareConditional.php @@ -24,7 +24,7 @@ class DataImporterDataSetWriterAwareConditional extends DataImporterDataSetWrite * * @return void */ - public function setDataSetCondition(DataSetConditionInterface $dataSetCondition) + public function setDataSetCondition(DataSetConditionInterface $dataSetCondition): void { $this->dataSetCondition = $dataSetCondition; } diff --git a/src/Pyz/Zed/DataImport/Business/Model/Discount/DiscountWriterStep.php b/src/Pyz/Zed/DataImport/Business/Model/Discount/DiscountWriterStep.php index aad1665289..6e5c78d971 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/Discount/DiscountWriterStep.php +++ b/src/Pyz/Zed/DataImport/Business/Model/Discount/DiscountWriterStep.php @@ -14,6 +14,7 @@ use Orm\Zed\DiscountPromotion\Persistence\SpyDiscountPromotion; use Orm\Zed\DiscountPromotion\Persistence\SpyDiscountPromotionQuery; use Orm\Zed\Shipment\Persistence\SpyShipmentCarrierQuery; +use Orm\Zed\Shipment\Persistence\SpyShipmentMethod; use Orm\Zed\Shipment\Persistence\SpyShipmentMethodQuery; use Spryker\Shared\Discount\DiscountConstants; use Spryker\Zed\DataImport\Business\Model\DataImportStep\DataImportStepInterface; @@ -106,7 +107,7 @@ class DiscountWriterStep implements DataImportStepInterface * * @return void */ - public function execute(DataSetInterface $dataSet) + public function execute(DataSetInterface $dataSet): void { $discountEntity = SpyDiscountQuery::create() ->filterByDiscountKey($dataSet[static::KEY_DISCOUNT_KEY]) @@ -151,7 +152,7 @@ public function execute(DataSetInterface $dataSet) * * @return string */ - protected function processQueryString($queryString) + protected function processQueryString($queryString): string { $queryString = $this->convertShipmentCarrierNameToId($queryString); $queryString = $this->convertShipmentMethodNameToId($queryString); @@ -164,7 +165,7 @@ protected function processQueryString($queryString) * * @return string */ - protected function convertShipmentMethodNameToId($queryString) + protected function convertShipmentMethodNameToId($queryString): string { $shipmentConditionValues = $this->extractConditionValuesWithShipmentCarrierMethodNames($queryString); @@ -181,7 +182,7 @@ protected function convertShipmentMethodNameToId($queryString) * * @return string */ - protected function convertShipmentCarrierNameToId($queryString) + protected function convertShipmentCarrierNameToId($queryString): string { $shipmentCarrierNames = $this->extractConditionValueWithShipmentCarrierNames($queryString); @@ -199,9 +200,9 @@ protected function convertShipmentCarrierNameToId($queryString) /** * @param string $queryString * - * @return string[] + * @return array */ - protected function extractConditionValuesWithShipmentCarrierMethodNames($queryString) + protected function extractConditionValuesWithShipmentCarrierMethodNames($queryString): array { $shipmentMethodNames = []; preg_match_all('/shipment-method = "([\w \(\)]*)"/', $queryString, $shipmentMethodNames); @@ -213,9 +214,9 @@ protected function extractConditionValuesWithShipmentCarrierMethodNames($querySt /** * @param string $queryString * - * @return string[] + * @return array */ - protected function extractConditionValueWithShipmentCarrierNames($queryString) + protected function extractConditionValueWithShipmentCarrierNames($queryString): array { $shipmentCarrierNames = []; preg_match_all('/shipment-carrier = "([\w \(\)]*)"/', $queryString, $shipmentCarrierNames); @@ -229,7 +230,7 @@ protected function extractConditionValueWithShipmentCarrierNames($queryString) * * @return \Orm\Zed\Shipment\Persistence\SpyShipmentMethod */ - protected function findShipmentMethodByConditionValue($conditionValue) + protected function findShipmentMethodByConditionValue($conditionValue): SpyShipmentMethod { $shipmentCarrierNameMatches = []; preg_match_all('/([\w ]+)\(([\w ]+)\)/', $conditionValue, $shipmentCarrierNameMatches); @@ -253,7 +254,7 @@ protected function findShipmentMethodByConditionValue($conditionValue) * * @return void */ - protected function saveDiscountPromotion(DataSetInterface $dataSet, SpyDiscount $discountEntity) + protected function saveDiscountPromotion(DataSetInterface $dataSet, SpyDiscount $discountEntity): void { if (!isset($dataSet[static::KEY_PROMOTION_SKU]) || empty($dataSet[static::KEY_PROMOTION_SKU])) { return; diff --git a/src/Pyz/Zed/DataImport/Business/Model/DiscountAmount/DiscountAmountWriterStep.php b/src/Pyz/Zed/DataImport/Business/Model/DiscountAmount/DiscountAmountWriterStep.php index bbba42b858..1fccac1726 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/DiscountAmount/DiscountAmountWriterStep.php +++ b/src/Pyz/Zed/DataImport/Business/Model/DiscountAmount/DiscountAmountWriterStep.php @@ -7,6 +7,7 @@ namespace Pyz\Zed\DataImport\Business\Model\DiscountAmount; +use Orm\Zed\Currency\Persistence\SpyCurrency; use Orm\Zed\Currency\Persistence\SpyCurrencyQuery; use Orm\Zed\Discount\Persistence\SpyDiscountAmountQuery; use Orm\Zed\Discount\Persistence\SpyDiscountQuery; @@ -50,7 +51,7 @@ class DiscountAmountWriterStep implements DataImportStepInterface * * @return void */ - public function execute(DataSetInterface $dataSet) + public function execute(DataSetInterface $dataSet): void { $discountEntity = SpyDiscountQuery::create() ->findOneByDiscountKey($dataSet[static::KEY_DISCOUNT_KEY]); @@ -76,7 +77,7 @@ public function execute(DataSetInterface $dataSet) * * @return \Orm\Zed\Currency\Persistence\SpyCurrency */ - protected function getCurrencyByCode($currencyCode) + protected function getCurrencyByCode($currencyCode): SpyCurrency { if (isset(static::$currencyCache[$currencyCode])) { return static::$currencyCache[$currencyCode]; diff --git a/src/Pyz/Zed/DataImport/Business/Model/DiscountStore/DiscountStoreWriterStep.php b/src/Pyz/Zed/DataImport/Business/Model/DiscountStore/DiscountStoreWriterStep.php index ac2f1bf044..52d25cb3fa 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/DiscountStore/DiscountStoreWriterStep.php +++ b/src/Pyz/Zed/DataImport/Business/Model/DiscountStore/DiscountStoreWriterStep.php @@ -31,12 +31,12 @@ class DiscountStoreWriterStep implements DataImportStepInterface public const KEY_STORE_NAME = 'store_name'; /** - * @var int[] Keys are discount keys, values are discount IDs. + * @var array Keys are discount keys, values are discount IDs. */ protected static $idDiscountBuffer = []; /** - * @var int[] Keys are store names, values are store ids. + * @var array Keys are store names, values are store ids. */ protected static $idStoreBuffer = []; @@ -45,7 +45,7 @@ class DiscountStoreWriterStep implements DataImportStepInterface * * @return void */ - public function execute(DataSetInterface $dataSet) + public function execute(DataSetInterface $dataSet): void { (new SpyDiscountStoreQuery()) ->filterByFkDiscount($this->getIdDiscountByKey($dataSet[static::KEY_DISCOUNT_KEY])) @@ -59,7 +59,7 @@ public function execute(DataSetInterface $dataSet) * * @return int */ - protected function getIdDiscountByKey($discountKey) + protected function getIdDiscountByKey($discountKey): int { if (!isset(static::$idDiscountBuffer[$discountKey])) { static::$idDiscountBuffer[$discountKey] = @@ -74,7 +74,7 @@ protected function getIdDiscountByKey($discountKey) * * @return int */ - protected function getIdStoreByName($storeName) + protected function getIdStoreByName($storeName): int { if (!isset(static::$idStoreBuffer[$storeName])) { static::$idStoreBuffer[$storeName] = diff --git a/src/Pyz/Zed/DataImport/Business/Model/DiscountVoucher/DiscountVoucherWriterStep.php b/src/Pyz/Zed/DataImport/Business/Model/DiscountVoucher/DiscountVoucherWriterStep.php index 9f613998c2..5e189765e3 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/DiscountVoucher/DiscountVoucherWriterStep.php +++ b/src/Pyz/Zed/DataImport/Business/Model/DiscountVoucher/DiscountVoucherWriterStep.php @@ -76,7 +76,7 @@ public function __construct(DiscountConfig $discountConfig) * * @return void */ - public function execute(DataSetInterface $dataSet) + public function execute(DataSetInterface $dataSet): void { $discountEntity = SpyDiscountQuery::create() ->findOneByDiscountKey($dataSet[static::KEY_DISCOUNT_KEY]); @@ -113,7 +113,7 @@ public function execute(DataSetInterface $dataSet) * * @return bool */ - protected function voucherBatchExists(SpyDiscount $discountEntity, $voucherBatch) + protected function voucherBatchExists(SpyDiscount $discountEntity, $voucherBatch): bool { $query = SpyDiscountVoucherQuery::create() ->filterByFkDiscountVoucherPool($discountEntity->getFkDiscountVoucherPool()) @@ -129,7 +129,7 @@ protected function voucherBatchExists(SpyDiscount $discountEntity, $voucherBatch * * @return array */ - protected function generateCodes($length, $quantity, $customCode = null) + protected function generateCodes($length, $quantity, $customCode = null): array { $codesToGenerate = []; @@ -156,7 +156,7 @@ protected function generateCodes($length, $quantity, $customCode = null) * * @return string */ - protected function addCustomCodeToGenerated($customCode, $code) + protected function addCustomCodeToGenerated($customCode, $code): string { $replacementString = $this->discountConfig->getVoucherPoolTemplateReplacementString(); @@ -176,7 +176,7 @@ protected function addCustomCodeToGenerated($customCode, $code) * * @return bool */ - protected function voucherCodeExists($code) + protected function voucherCodeExists($code): bool { return (SpyDiscountVoucherQuery::create()->filterByCode($code)->count() > 0); } @@ -186,7 +186,7 @@ protected function voucherCodeExists($code) * * @return string */ - protected function getRandomVoucherCode($length) + protected function getRandomVoucherCode($length): string { $allowedCharacters = $this->discountConfig->getVoucherCodeCharacters(); diff --git a/src/Pyz/Zed/DataImport/Business/Model/Glossary/GlossaryWriterStep.php b/src/Pyz/Zed/DataImport/Business/Model/Glossary/GlossaryWriterStep.php index 6886d9af72..c4c9ff36ae 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/Glossary/GlossaryWriterStep.php +++ b/src/Pyz/Zed/DataImport/Business/Model/Glossary/GlossaryWriterStep.php @@ -46,7 +46,7 @@ class GlossaryWriterStep extends PublishAwareStep implements DataImportStepInter * * @return void */ - public function execute(DataSetInterface $dataSet) + public function execute(DataSetInterface $dataSet): void { $glossaryKeyEntity = SpyGlossaryKeyQuery::create() ->filterByKey($dataSet[static::KEY_KEY]) diff --git a/src/Pyz/Zed/DataImport/Business/Model/Locale/LocaleNameToIdLocaleStep.php b/src/Pyz/Zed/DataImport/Business/Model/Locale/LocaleNameToIdLocaleStep.php index d41c0a66e7..24bb70112f 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/Locale/LocaleNameToIdLocaleStep.php +++ b/src/Pyz/Zed/DataImport/Business/Model/Locale/LocaleNameToIdLocaleStep.php @@ -57,13 +57,13 @@ public function __construct($source = self::KEY_SOURCE, $target = self::KEY_TARG * * @return void */ - public function execute(DataSetInterface $dataSet) + public function execute(DataSetInterface $dataSet): void { if (!isset($dataSet[$this->source])) { throw new DataKeyNotFoundInDataSetException(sprintf( 'Expected a key "%s" in current data set. Available keys: "%s"', $this->source, - implode(', ', array_keys($dataSet->getArrayCopy())) + implode(', ', array_keys($dataSet->getArrayCopy())), )); } @@ -81,7 +81,7 @@ public function execute(DataSetInterface $dataSet) * * @return int */ - protected function resolveIdLocale($localeName) + protected function resolveIdLocale($localeName): int { $query = SpyLocaleQuery::create(); $localeEntity = $query->filterByLocaleName($localeName)->findOne(); diff --git a/src/Pyz/Zed/DataImport/Business/Model/Locale/Repository/LocaleRepository.php b/src/Pyz/Zed/DataImport/Business/Model/Locale/Repository/LocaleRepository.php index e2bf23d4ed..7f81d6c252 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/Locale/Repository/LocaleRepository.php +++ b/src/Pyz/Zed/DataImport/Business/Model/Locale/Repository/LocaleRepository.php @@ -34,7 +34,7 @@ public function getIdLocaleByLocale($locale): int /** * @return void */ - private function loadLocaleMap() + private function loadLocaleMap(): void { /** @var array $localeCollection */ $localeCollection = SpyLocaleQuery::create() diff --git a/src/Pyz/Zed/DataImport/Business/Model/MerchantUser/MerchantUserWriterStep.php b/src/Pyz/Zed/DataImport/Business/Model/MerchantUser/MerchantUserWriterStep.php index e7921824a9..0e055fbba6 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/MerchantUser/MerchantUserWriterStep.php +++ b/src/Pyz/Zed/DataImport/Business/Model/MerchantUser/MerchantUserWriterStep.php @@ -53,18 +53,18 @@ public function execute(DataSetInterface $dataSet): void $merchantUserTransfer = $this->merchantUserFacade->findMerchantUser( (new MerchantUserCriteriaTransfer()) ->setIdUser($idUser) - ->setIdMerchant($idMerchant) + ->setIdMerchant($idMerchant), ); if (!$merchantUserTransfer) { $userTransfer = $this->merchantUserFacade->findUser( - (new UserCriteriaTransfer())->setIdUser($idUser) + (new UserCriteriaTransfer())->setIdUser($idUser), ); $this->merchantUserFacade->createMerchantUser( (new MerchantUserTransfer()) ->setIdMerchant($idMerchant) - ->setUser($userTransfer) + ->setUser($userTransfer), ); } } diff --git a/src/Pyz/Zed/DataImport/Business/Model/Navigation/NavigationKeyToIdNavigationStep.php b/src/Pyz/Zed/DataImport/Business/Model/Navigation/NavigationKeyToIdNavigationStep.php index 8386d76dfc..1953436909 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/Navigation/NavigationKeyToIdNavigationStep.php +++ b/src/Pyz/Zed/DataImport/Business/Model/Navigation/NavigationKeyToIdNavigationStep.php @@ -57,13 +57,13 @@ public function __construct($source = self::KEY_SOURCE, $target = self::KEY_TARG * * @return void */ - public function execute(DataSetInterface $dataSet) + public function execute(DataSetInterface $dataSet): void { if (!isset($dataSet[$this->source])) { throw new DataKeyNotFoundInDataSetException(sprintf( 'Expected a key "%s" in current data set. Available keys: "%s"', $this->source, - implode(', ', array_keys($dataSet->getArrayCopy())) + implode(', ', array_keys($dataSet->getArrayCopy())), )); } @@ -81,7 +81,7 @@ public function execute(DataSetInterface $dataSet) * * @return int */ - protected function resolveIdNavigation($navigationKey) + protected function resolveIdNavigation($navigationKey): int { $navigationEntity = SpyNavigationQuery::create() ->findOneByKey($navigationKey); diff --git a/src/Pyz/Zed/DataImport/Business/Model/Navigation/NavigationWriterStep.php b/src/Pyz/Zed/DataImport/Business/Model/Navigation/NavigationWriterStep.php index 346d5e1ffa..dc10afb68d 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/Navigation/NavigationWriterStep.php +++ b/src/Pyz/Zed/DataImport/Business/Model/Navigation/NavigationWriterStep.php @@ -41,7 +41,7 @@ class NavigationWriterStep extends PublishAwareStep implements DataImportStepInt * * @return void */ - public function execute(DataSetInterface $dataSet) + public function execute(DataSetInterface $dataSet): void { $navigationEntity = SpyNavigationQuery::create() ->filterByKey($dataSet[static::KEY]) @@ -61,7 +61,7 @@ public function execute(DataSetInterface $dataSet) * * @return string */ - protected function getName(SpyNavigation $navigationEntity, DataSetInterface $dataSet) + protected function getName(SpyNavigation $navigationEntity, DataSetInterface $dataSet): string { if (isset($dataSet[static::NAME]) && !empty($dataSet[static::NAME])) { return $dataSet[static::NAME]; diff --git a/src/Pyz/Zed/DataImport/Business/Model/NavigationNode/NavigationNodeValidityDatesStep.php b/src/Pyz/Zed/DataImport/Business/Model/NavigationNode/NavigationNodeValidityDatesStep.php index 83c1ff9212..b420b1e85e 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/NavigationNode/NavigationNodeValidityDatesStep.php +++ b/src/Pyz/Zed/DataImport/Business/Model/NavigationNode/NavigationNodeValidityDatesStep.php @@ -38,7 +38,7 @@ public function __construct($keyValidFrom, $keyValidTo) * * @return void */ - public function execute(DataSetInterface $dataSet) + public function execute(DataSetInterface $dataSet): void { $this->filterDate($dataSet, $this->keyValidFrom); $this->filterDate($dataSet, $this->keyValidTo); @@ -53,7 +53,7 @@ public function execute(DataSetInterface $dataSet) * * @return void */ - protected function filterDate(DataSetInterface $dataSet, $key) + protected function filterDate(DataSetInterface $dataSet, $key): void { if (isset($dataSet[$key])) { return; @@ -70,7 +70,7 @@ protected function filterDate(DataSetInterface $dataSet, $key) * * @return void */ - protected function formatDate(DataSetInterface $dataSet, $key) + protected function formatDate(DataSetInterface $dataSet, $key): void { if ($dataSet[$key] === '') { return; @@ -80,7 +80,7 @@ protected function formatDate(DataSetInterface $dataSet, $key) if ($timestamp === false || $timestamp <= 0) { throw new NavigationNodeValidityDateException( - sprintf('%s date (%s) does not match expected format: YYYY-MM-DD.', $key, $dataSet[$key]) + sprintf('%s date (%s) does not match expected format: YYYY-MM-DD.', $key, $dataSet[$key]), ); } @@ -94,7 +94,7 @@ protected function formatDate(DataSetInterface $dataSet, $key) * * @return void */ - protected function assertDateRelation(DataSetInterface $dataSet) + protected function assertDateRelation(DataSetInterface $dataSet): void { $validFromDate = $dataSet[$this->keyValidFrom]; $validToDate = $dataSet[$this->keyValidTo]; @@ -110,8 +110,8 @@ protected function assertDateRelation(DataSetInterface $dataSet) $this->keyValidFrom, $validFromDate, $this->keyValidTo, - $validToDate - ) + $validToDate, + ), ); } } diff --git a/src/Pyz/Zed/DataImport/Business/Model/NavigationNode/NavigationNodeWriterStep.php b/src/Pyz/Zed/DataImport/Business/Model/NavigationNode/NavigationNodeWriterStep.php index a69d9cec3a..4358f76e42 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/NavigationNode/NavigationNodeWriterStep.php +++ b/src/Pyz/Zed/DataImport/Business/Model/NavigationNode/NavigationNodeWriterStep.php @@ -112,7 +112,7 @@ class NavigationNodeWriterStep extends PublishAwareStep implements DataImportSte * * @return void */ - public function execute(DataSetInterface $dataSet) + public function execute(DataSetInterface $dataSet): void { $navigationNodeEntity = SpyNavigationNodeQuery::create() ->filterByFkNavigation($dataSet[NavigationKeyToIdNavigationStep::KEY_TARGET]) @@ -134,7 +134,7 @@ public function execute(DataSetInterface $dataSet) if (!empty($dataSet[static::KEY_PARENT_NODE_KEY])) { $navigationNodeEntity->setFkParentNavigationNode( - $this->getFkParentNavigationNode($dataSet[static::KEY_PARENT_NODE_KEY]) + $this->getFkParentNavigationNode($dataSet[static::KEY_PARENT_NODE_KEY]), ); } @@ -175,7 +175,7 @@ public function execute(DataSetInterface $dataSet) * * @return int */ - protected function getFkParentNavigationNode($nodeKey) + protected function getFkParentNavigationNode($nodeKey): int { $parentNavigationNodeEntity = SpyNavigationNodeQuery::create() ->findOneByNodeKey($nodeKey); @@ -183,7 +183,7 @@ protected function getFkParentNavigationNode($nodeKey) if (!$parentNavigationNodeEntity) { throw new NavigationNodeByKeyNotFoundException(sprintf( 'NavigationNode with key "%s" not found', - $nodeKey + $nodeKey, )); } @@ -194,9 +194,9 @@ protected function getFkParentNavigationNode($nodeKey) * @param \Orm\Zed\Navigation\Persistence\SpyNavigationNode $navigationNodeEntity * @param \Spryker\Zed\DataImport\Business\Model\DataSet\DataSetInterface $dataSet * - * @return int + * @return int|null */ - protected function getPosition(SpyNavigationNode $navigationNodeEntity, DataSetInterface $dataSet) + protected function getPosition(SpyNavigationNode $navigationNodeEntity, DataSetInterface $dataSet): ?int { if (isset($dataSet[static::KEY_POSITION]) && !empty($dataSet[static::KEY_POSITION])) { return (int)$dataSet[static::KEY_POSITION]; @@ -211,7 +211,7 @@ protected function getPosition(SpyNavigationNode $navigationNodeEntity, DataSetI * * @return bool */ - protected function isActive(SpyNavigationNode $navigationNodeEntity, DataSetInterface $dataSet) + protected function isActive(SpyNavigationNode $navigationNodeEntity, DataSetInterface $dataSet): bool { if (isset($dataSet[static::KEY_IS_ACTIVE]) && !empty($dataSet[static::KEY_IS_ACTIVE])) { return (bool)$dataSet[static::KEY_IS_ACTIVE]; @@ -226,7 +226,7 @@ protected function isActive(SpyNavigationNode $navigationNodeEntity, DataSetInte * * @return string */ - protected function getNodeType(SpyNavigationNode $navigationNodeEntity, DataSetInterface $dataSet) + protected function getNodeType(SpyNavigationNode $navigationNodeEntity, DataSetInterface $dataSet): string { if (isset($dataSet[static::KEY_NODE_TYPE]) && !empty($dataSet[static::KEY_NODE_TYPE])) { return $dataSet[static::KEY_NODE_TYPE]; @@ -241,7 +241,7 @@ protected function getNodeType(SpyNavigationNode $navigationNodeEntity, DataSetI * * @return string */ - protected function getTitle(SpyNavigationNodeLocalizedAttributes $navigationNodeLocalizedAttributes, array $localizedAttributes) + protected function getTitle(SpyNavigationNodeLocalizedAttributes $navigationNodeLocalizedAttributes, array $localizedAttributes): string { if (isset($localizedAttributes[static::KEY_TITLE]) && !empty($localizedAttributes[static::KEY_TITLE])) { return $localizedAttributes[static::KEY_TITLE]; @@ -254,9 +254,9 @@ protected function getTitle(SpyNavigationNodeLocalizedAttributes $navigationNode * @param \Orm\Zed\Navigation\Persistence\SpyNavigationNodeLocalizedAttributes $navigationNodeLocalizedAttributes * @param array $localizedAttributes * - * @return string + * @return string|null */ - protected function getLink(SpyNavigationNodeLocalizedAttributes $navigationNodeLocalizedAttributes, array $localizedAttributes) + protected function getLink(SpyNavigationNodeLocalizedAttributes $navigationNodeLocalizedAttributes, array $localizedAttributes): ?string { if (isset($localizedAttributes[static::KEY_URL]) && !empty($localizedAttributes[static::KEY_URL])) { return $localizedAttributes[static::KEY_URL]; @@ -269,9 +269,9 @@ protected function getLink(SpyNavigationNodeLocalizedAttributes $navigationNodeL * @param \Orm\Zed\Navigation\Persistence\SpyNavigationNodeLocalizedAttributes $navigationNodeLocalizedAttributes * @param array $localizedAttributes * - * @return string + * @return string|null */ - protected function getExternalUrl(SpyNavigationNodeLocalizedAttributes $navigationNodeLocalizedAttributes, array $localizedAttributes) + protected function getExternalUrl(SpyNavigationNodeLocalizedAttributes $navigationNodeLocalizedAttributes, array $localizedAttributes): ?string { if (isset($localizedAttributes[static::KEY_URL]) && !empty($localizedAttributes[static::KEY_URL])) { return $localizedAttributes[static::KEY_URL]; @@ -285,9 +285,9 @@ protected function getExternalUrl(SpyNavigationNodeLocalizedAttributes $navigati * @param array $localizedAttributes * @param int $idLocale * - * @return int + * @return int|null */ - protected function getFkUrl(SpyNavigationNodeLocalizedAttributes $navigationNodeLocalizedAttributes, array $localizedAttributes, $idLocale) + protected function getFkUrl(SpyNavigationNodeLocalizedAttributes $navigationNodeLocalizedAttributes, array $localizedAttributes, $idLocale): ?int { if (isset($localizedAttributes[static::KEY_URL]) && !empty($localizedAttributes[static::KEY_URL])) { $urlEntity = SpyUrlQuery::create() @@ -307,9 +307,9 @@ protected function getFkUrl(SpyNavigationNodeLocalizedAttributes $navigationNode * @param \Orm\Zed\Navigation\Persistence\SpyNavigationNodeLocalizedAttributes $navigationNodeLocalizedAttributes * @param array $localizedAttributes * - * @return string + * @return string|null */ - protected function getCssClass(SpyNavigationNodeLocalizedAttributes $navigationNodeLocalizedAttributes, array $localizedAttributes) + protected function getCssClass(SpyNavigationNodeLocalizedAttributes $navigationNodeLocalizedAttributes, array $localizedAttributes): ?string { if (isset($localizedAttributes[static::KEY_CSS_CLASS]) && !empty($localizedAttributes[static::KEY_CSS_CLASS])) { return $localizedAttributes[static::KEY_CSS_CLASS]; diff --git a/src/Pyz/Zed/DataImport/Business/Model/Product/AttributesExtractorStep.php b/src/Pyz/Zed/DataImport/Business/Model/Product/AttributesExtractorStep.php index 0fce48e740..36c4adb7a2 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/Product/AttributesExtractorStep.php +++ b/src/Pyz/Zed/DataImport/Business/Model/Product/AttributesExtractorStep.php @@ -22,7 +22,7 @@ class AttributesExtractorStep implements DataImportStepInterface * * @return void */ - public function execute(DataSetInterface $dataSet) + public function execute(DataSetInterface $dataSet): void { $keysToUnset = []; $attributes = []; diff --git a/src/Pyz/Zed/DataImport/Business/Model/Product/ProductLocalizedAttributesExtractorStep.php b/src/Pyz/Zed/DataImport/Business/Model/Product/ProductLocalizedAttributesExtractorStep.php index b3f16dc83b..c33866c29c 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/Product/ProductLocalizedAttributesExtractorStep.php +++ b/src/Pyz/Zed/DataImport/Business/Model/Product/ProductLocalizedAttributesExtractorStep.php @@ -35,7 +35,7 @@ public function __construct(array $defaultAttributes = []) * * @return void */ - public function execute(DataSetInterface $dataSet) + public function execute(DataSetInterface $dataSet): void { $keysToUnset = []; $localizedAttributes = []; diff --git a/src/Pyz/Zed/DataImport/Business/Model/Product/Repository/ProductRepository.php b/src/Pyz/Zed/DataImport/Business/Model/Product/Repository/ProductRepository.php index 0854e62564..f88b6e4812 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/Product/Repository/ProductRepository.php +++ b/src/Pyz/Zed/DataImport/Business/Model/Product/Repository/ProductRepository.php @@ -101,7 +101,7 @@ public function getProductConcreteAttributesCollection(): ArrayCollection * * @return void */ - private function resolveProductByConcreteSku($sku) + private function resolveProductByConcreteSku($sku): void { $productEntity = SpyProductQuery::create() ->joinWithSpyProductAbstract() @@ -124,7 +124,7 @@ private function resolveProductByConcreteSku($sku) * * @return void */ - private function resolveProductByAbstractSku($sku) + private function resolveProductByAbstractSku($sku): void { $productAbstractEntity = SpyProductAbstractQuery::create() ->findOneBySku($sku); @@ -165,7 +165,7 @@ public function addProductConcrete(SpyProduct $productEntity, $abstractSku = nul } /** - * @return string[] + * @return array */ public function getSkuProductAbstractList(): array { @@ -176,7 +176,7 @@ public function getSkuProductAbstractList(): array } /** - * @return string[] + * @return array */ public function getSkuProductConcreteList(): array { diff --git a/src/Pyz/Zed/DataImport/Business/Model/Product/Repository/ProductRepositoryInterface.php b/src/Pyz/Zed/DataImport/Business/Model/Product/Repository/ProductRepositoryInterface.php index 06a16a7e46..0ef26986cf 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/Product/Repository/ProductRepositoryInterface.php +++ b/src/Pyz/Zed/DataImport/Business/Model/Product/Repository/ProductRepositoryInterface.php @@ -28,12 +28,12 @@ public function getIdProductByConcreteSku($sku): int; public function getAbstractSkuByConcreteSku($sku): string; /** - * @return string[] + * @return array */ public function getSkuProductAbstractList(): array; /** - * @return string[] + * @return array */ public function getSkuProductConcreteList(): array; diff --git a/src/Pyz/Zed/DataImport/Business/Model/ProductAbstract/AddCategoryKeysStep.php b/src/Pyz/Zed/DataImport/Business/Model/ProductAbstract/AddCategoryKeysStep.php index 02e1061c80..ade646bdad 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/ProductAbstract/AddCategoryKeysStep.php +++ b/src/Pyz/Zed/DataImport/Business/Model/ProductAbstract/AddCategoryKeysStep.php @@ -28,9 +28,9 @@ class AddCategoryKeysStep implements DataImportStepInterface * * @return void */ - public function execute(DataSetInterface $dataSet) + public function execute(DataSetInterface $dataSet): void { - if (empty($this->categoryKeys)) { + if (!$this->categoryKeys) { $categoryEntityCollection = SpyCategoryQuery::create()->find(); foreach ($categoryEntityCollection as $categoryEntity) { diff --git a/src/Pyz/Zed/DataImport/Business/Model/ProductAbstract/AddProductAbstractSkusStep.php b/src/Pyz/Zed/DataImport/Business/Model/ProductAbstract/AddProductAbstractSkusStep.php index 939be7f861..b5311996b8 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/ProductAbstract/AddProductAbstractSkusStep.php +++ b/src/Pyz/Zed/DataImport/Business/Model/ProductAbstract/AddProductAbstractSkusStep.php @@ -30,9 +30,9 @@ class AddProductAbstractSkusStep implements DataImportStepInterface * * @return void */ - public function execute(DataSetInterface $dataSet) + public function execute(DataSetInterface $dataSet): void { - if (empty($this->productAbstractSkus)) { + if (!$this->productAbstractSkus) { $query = SpyProductAbstractQuery::create(); $query->select([ SpyProductAbstractTableMap::COL_SKU, diff --git a/src/Pyz/Zed/DataImport/Business/Model/ProductAbstract/ProductAbstractCheckExistenceStep.php b/src/Pyz/Zed/DataImport/Business/Model/ProductAbstract/ProductAbstractCheckExistenceStep.php index 42149dab91..58c19f04e5 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/ProductAbstract/ProductAbstractCheckExistenceStep.php +++ b/src/Pyz/Zed/DataImport/Business/Model/ProductAbstract/ProductAbstractCheckExistenceStep.php @@ -25,12 +25,12 @@ class ProductAbstractCheckExistenceStep implements DataImportStepInterface protected $productRepository; /** - * @var string[] Keys are concrete product sku values. + * @var array Keys are concrete product sku values. */ protected $skuProductConcreteList = []; /** - * @var bool[] Keys are abstract product sku values. Values are set to "true" when abstract product added. + * @var array Keys are abstract product sku values. Values are set to "true" when abstract product added. */ protected $resolved = []; diff --git a/src/Pyz/Zed/DataImport/Business/Model/ProductAbstract/ProductAbstractHydratorStep.php b/src/Pyz/Zed/DataImport/Business/Model/ProductAbstract/ProductAbstractHydratorStep.php index 52fd9f1d60..fd7f09ca4a 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/ProductAbstract/ProductAbstractHydratorStep.php +++ b/src/Pyz/Zed/DataImport/Business/Model/ProductAbstract/ProductAbstractHydratorStep.php @@ -233,7 +233,7 @@ protected function importProductCategories(DataSetInterface $dataSet): void throw new DataKeyNotFoundInDataSetException(sprintf( 'The category with key "%s" was not found in categoryKeys. Maybe there is a typo. Given Categories: "%s"', $categoryKey, - implode('', array_values($dataSet[static::COLUMN_CATEGORY_KEYS])) + implode('', array_values($dataSet[static::COLUMN_CATEGORY_KEYS])), )); } diff --git a/src/Pyz/Zed/DataImport/Business/Model/ProductAbstract/ProductAbstractWriterStep.php b/src/Pyz/Zed/DataImport/Business/Model/ProductAbstract/ProductAbstractWriterStep.php index 87cde99e7f..406786f006 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/ProductAbstract/ProductAbstractWriterStep.php +++ b/src/Pyz/Zed/DataImport/Business/Model/ProductAbstract/ProductAbstractWriterStep.php @@ -133,7 +133,7 @@ public function __construct(ProductRepository $productRepository) * * @return void */ - public function execute(DataSetInterface $dataSet) + public function execute(DataSetInterface $dataSet): void { $productAbstractEntity = $this->importProductAbstract($dataSet); @@ -151,7 +151,7 @@ public function execute(DataSetInterface $dataSet) * * @return \Orm\Zed\Product\Persistence\SpyProductAbstract */ - protected function importProductAbstract(DataSetInterface $dataSet) + protected function importProductAbstract(DataSetInterface $dataSet): SpyProductAbstract { $productAbstractEntity = SpyProductAbstractQuery::create() ->filterBySku($dataSet[static::KEY_ABSTRACT_SKU]) @@ -177,7 +177,7 @@ protected function importProductAbstract(DataSetInterface $dataSet) * * @return void */ - protected function importProductAbstractLocalizedAttributes(DataSetInterface $dataSet, SpyProductAbstract $productAbstractEntity) + protected function importProductAbstractLocalizedAttributes(DataSetInterface $dataSet, SpyProductAbstract $productAbstractEntity): void { foreach ($dataSet[ProductLocalizedAttributesExtractorStep::KEY_LOCALIZED_ATTRIBUTES] as $idLocale => $localizedAttributes) { $productAbstractLocalizedAttributesEntity = SpyProductAbstractLocalizedAttributesQuery::create() @@ -207,7 +207,7 @@ protected function importProductAbstractLocalizedAttributes(DataSetInterface $da * * @return void */ - protected function importProductCategories(DataSetInterface $dataSet, SpyProductAbstract $productAbstractEntity) + protected function importProductCategories(DataSetInterface $dataSet, SpyProductAbstract $productAbstractEntity): void { $categoryKeys = $this->getCategoryKeys($dataSet[static::KEY_CATEGORY_KEY]); $categoryProductOrder = $this->getCategoryProductOrder($dataSet[static::KEY_CATEGORY_PRODUCT_ORDER]); @@ -217,7 +217,7 @@ protected function importProductCategories(DataSetInterface $dataSet, SpyProduct throw new DataKeyNotFoundInDataSetException(sprintf( 'The category with key "%s" was not found in categoryKeys. Maybe there is a typo. Given Categories: "%s"', $categoryKey, - implode('', array_values($dataSet[static::KEY_CATEGORY_KEYS])) + implode('', array_values($dataSet[static::KEY_CATEGORY_KEYS])), )); } $productOrder = null; @@ -247,7 +247,7 @@ protected function importProductCategories(DataSetInterface $dataSet, SpyProduct * * @return array */ - protected function getCategoryKeys($categoryKeys) + protected function getCategoryKeys($categoryKeys): array { $categoryKeys = explode(',', $categoryKeys); @@ -259,7 +259,7 @@ protected function getCategoryKeys($categoryKeys) * * @return array */ - protected function getCategoryProductOrder($categoryProductOrder) + protected function getCategoryProductOrder($categoryProductOrder): array { $categoryProductOrder = explode(',', $categoryProductOrder); @@ -272,7 +272,7 @@ protected function getCategoryProductOrder($categoryProductOrder) * * @return void */ - protected function importProductUrls(DataSetInterface $dataSet, SpyProductAbstract $productAbstractEntity) + protected function importProductUrls(DataSetInterface $dataSet, SpyProductAbstract $productAbstractEntity): void { foreach ($dataSet[ProductLocalizedAttributesExtractorStep::KEY_LOCALIZED_ATTRIBUTES] as $idLocale => $localizedAttributes) { $abstractProductUrl = $localizedAttributes[static::KEY_URL]; @@ -299,7 +299,7 @@ protected function importProductUrls(DataSetInterface $dataSet, SpyProductAbstra * * @return void */ - protected function cleanupRedirectUrls($abstractProductUrl) + protected function cleanupRedirectUrls($abstractProductUrl): void { SpyUrlQuery::create() ->filterByUrl($abstractProductUrl) diff --git a/src/Pyz/Zed/DataImport/Business/Model/ProductAbstract/Writer/ProductAbstractPropelDataSetWriter.php b/src/Pyz/Zed/DataImport/Business/Model/ProductAbstract/Writer/ProductAbstractPropelDataSetWriter.php index d8240564f4..e41ab25ec7 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/ProductAbstract/Writer/ProductAbstractPropelDataSetWriter.php +++ b/src/Pyz/Zed/DataImport/Business/Model/ProductAbstract/Writer/ProductAbstractPropelDataSetWriter.php @@ -88,7 +88,7 @@ protected function createOrUpdateProductAbstract(DataSetInterface $dataSet): Spy */ protected function createOrUpdateProductAbstractLocalizedAbstract( DataSetInterface $dataSet, - int $idProductAbstract + int $idProductAbstract, ): void { $productAbstractLocalizedTransfers = $this->getProductAbstractLocalizedTransfers($dataSet); diff --git a/src/Pyz/Zed/DataImport/Business/Model/ProductAbstractStore/Writer/ProductAbstractStorePropelDataSetWriter.php b/src/Pyz/Zed/DataImport/Business/Model/ProductAbstractStore/Writer/ProductAbstractStorePropelDataSetWriter.php index b6ac5b2e4c..e66ced0b64 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/ProductAbstractStore/Writer/ProductAbstractStorePropelDataSetWriter.php +++ b/src/Pyz/Zed/DataImport/Business/Model/ProductAbstractStore/Writer/ProductAbstractStorePropelDataSetWriter.php @@ -19,12 +19,12 @@ class ProductAbstractStorePropelDataSetWriter implements DataSetWriterInterface { /** - * @var int[] Keys are SKUs, values are product abstract ids. + * @var array Keys are SKUs, values are product abstract ids. */ protected static $idProductAbstractBuffer; /** - * @var int[] Keys are store names, values are store ids. + * @var array Keys are store names, values are store ids. */ protected static $idStoreBuffer; diff --git a/src/Pyz/Zed/DataImport/Business/Model/ProductAttributeKey/AddProductAttributeKeysStep.php b/src/Pyz/Zed/DataImport/Business/Model/ProductAttributeKey/AddProductAttributeKeysStep.php index 2a34ead6aa..54b36f3537 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/ProductAttributeKey/AddProductAttributeKeysStep.php +++ b/src/Pyz/Zed/DataImport/Business/Model/ProductAttributeKey/AddProductAttributeKeysStep.php @@ -30,9 +30,9 @@ class AddProductAttributeKeysStep implements DataImportStepInterface * * @return void */ - public function execute(DataSetInterface $dataSet) + public function execute(DataSetInterface $dataSet): void { - if (empty($this->productAttributeKeys)) { + if (!$this->productAttributeKeys) { $query = SpyProductAttributeKeyQuery::create() ->select([ SpyProductAttributeKeyTableMap::COL_ID_PRODUCT_ATTRIBUTE_KEY, diff --git a/src/Pyz/Zed/DataImport/Business/Model/ProductAttributeKey/ProductAttributeKeyWriter.php b/src/Pyz/Zed/DataImport/Business/Model/ProductAttributeKey/ProductAttributeKeyWriter.php index 39e5b564b5..05fd45e4c1 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/ProductAttributeKey/ProductAttributeKeyWriter.php +++ b/src/Pyz/Zed/DataImport/Business/Model/ProductAttributeKey/ProductAttributeKeyWriter.php @@ -28,7 +28,7 @@ class ProductAttributeKeyWriter implements DataImportStepInterface * * @return void */ - public function execute(DataSetInterface $dataSet) + public function execute(DataSetInterface $dataSet): void { $query = SpyProductAttributeKeyQuery::create(); $productAttributeKeyEntity = $query diff --git a/src/Pyz/Zed/DataImport/Business/Model/ProductConcrete/ProductConcreteAttributesUniqueCheckStep.php b/src/Pyz/Zed/DataImport/Business/Model/ProductConcrete/ProductConcreteAttributesUniqueCheckStep.php index d75be6246e..e70050eec5 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/ProductConcrete/ProductConcreteAttributesUniqueCheckStep.php +++ b/src/Pyz/Zed/DataImport/Business/Model/ProductConcrete/ProductConcreteAttributesUniqueCheckStep.php @@ -36,12 +36,14 @@ class ProductConcreteAttributesUniqueCheckStep implements DataImportStepInterfac * @var string */ protected const PRODUCT_COL_ATTRIBUTES = 'spy_product.attributes'; + /** * @uses \Orm\Zed\Product\Persistence\Map\SpyProductTableMap::COL_SKU * * @var string */ protected const PRODUCT_COL_SKU = 'spy_product.sku'; + /** * @uses \Orm\Zed\Product\Persistence\Map\SpyProductAbstractTableMap::COL_SKU * @@ -70,7 +72,7 @@ class ProductConcreteAttributesUniqueCheckStep implements DataImportStepInterfac */ public function __construct( ProductRepositoryInterface $productRepository, - DataImportToUtilEncodingServiceInterface $utilEncodingService + DataImportToUtilEncodingServiceInterface $utilEncodingService, ) { $this->productRepository = $productRepository; $this->utilEncodingService = $utilEncodingService; @@ -107,7 +109,7 @@ public function execute(DataSetInterface $dataSet): void protected function checkProductConcreteAttributesUnique( string $dataSetProductAbstractSku, string $dataSetProductConcreteSku, - array $dataSetProductConcreteAttributes + array $dataSetProductConcreteAttributes, ): void { if (!isset(static::$productConcreteAttributesMap[$dataSetProductAbstractSku])) { return; @@ -124,7 +126,7 @@ protected function checkProductConcreteAttributesUnique( $this->utilEncodingService->encodeJson($dataSetProductConcreteAttributes), $dataSetProductConcreteSku, $this->utilEncodingService->encodeJson($productConcreteAttributes), - $productConcreteSku + $productConcreteSku, )); } } diff --git a/src/Pyz/Zed/DataImport/Business/Model/ProductConcrete/ProductConcreteCheckExistenceStep.php b/src/Pyz/Zed/DataImport/Business/Model/ProductConcrete/ProductConcreteCheckExistenceStep.php index 2e7b59daac..0614839975 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/ProductConcrete/ProductConcreteCheckExistenceStep.php +++ b/src/Pyz/Zed/DataImport/Business/Model/ProductConcrete/ProductConcreteCheckExistenceStep.php @@ -25,12 +25,12 @@ class ProductConcreteCheckExistenceStep implements DataImportStepInterface protected $productRepository; /** - * @var string[] Keys are abstract product sku values. + * @var array Keys are abstract product sku values. */ protected $skuProductAbstractList = []; /** - * @var bool[] Keys are concrete product sku values. Values are set to "true" when concrete product added. + * @var array Keys are concrete product sku values. Values are set to "true" when concrete product added. */ protected $resolved = []; diff --git a/src/Pyz/Zed/DataImport/Business/Model/ProductConcrete/ProductConcreteHydratorStep.php b/src/Pyz/Zed/DataImport/Business/Model/ProductConcrete/ProductConcreteHydratorStep.php index 26a5569a96..53c63dacc4 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/ProductConcrete/ProductConcreteHydratorStep.php +++ b/src/Pyz/Zed/DataImport/Business/Model/ProductConcrete/ProductConcreteHydratorStep.php @@ -129,7 +129,7 @@ class ProductConcreteHydratorStep implements DataImportStepInterface protected $productRepository; /** - * @var bool[] Keys are product column names + * @var array Keys are product column names */ protected static $isProductColumnBuffer = []; diff --git a/src/Pyz/Zed/DataImport/Business/Model/ProductConcrete/Writer/ProductConcretePropelDataSetWriter.php b/src/Pyz/Zed/DataImport/Business/Model/ProductConcrete/Writer/ProductConcretePropelDataSetWriter.php index eed5c484c3..44d2268282 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/ProductConcrete/Writer/ProductConcretePropelDataSetWriter.php +++ b/src/Pyz/Zed/DataImport/Business/Model/ProductConcrete/Writer/ProductConcretePropelDataSetWriter.php @@ -59,7 +59,7 @@ public function write(DataSetInterface $dataSet): void $this->productRepository->addProductConcrete( $productConcreteEntity, - $dataSet[static::COLUMN_ABSTRACT_SKU] + $dataSet[static::COLUMN_ABSTRACT_SKU], ); $this->createOrUpdateProductConcreteLocalizedAttributesEntities($dataSet, $productConcreteEntity->getIdProduct()); @@ -140,7 +140,7 @@ protected function createOrUpdateBundles(DataSetInterface $dataSet, int $idProdu */ protected function createOrUpdateProductConcreteLocalizedAttributesEntities( DataSetInterface $dataSet, - int $idProduct + int $idProduct, ): void { $productConcreteLocalizedTransfers = $this->getProductConcreteLocalizedTransfers($dataSet); @@ -170,7 +170,7 @@ protected function createOrUpdateProductConcreteLocalizedAttributesEntities( */ protected function createOrUpdateProductConcreteSearchEntities( int $idProduct, - SpyProductSearchEntityTransfer $productSearchEntityTransfer + SpyProductSearchEntityTransfer $productSearchEntityTransfer, ): void { $productSearchEntity = SpyProductSearchQuery::create() ->filterByFkProduct($idProduct) diff --git a/src/Pyz/Zed/DataImport/Business/Model/ProductGroup/ProductGroupWriter.php b/src/Pyz/Zed/DataImport/Business/Model/ProductGroup/ProductGroupWriter.php index 9068bc9e44..a38b54ec00 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/ProductGroup/ProductGroupWriter.php +++ b/src/Pyz/Zed/DataImport/Business/Model/ProductGroup/ProductGroupWriter.php @@ -55,7 +55,7 @@ public function __construct(ProductRepository $productRepository) * * @return void */ - public function execute(DataSetInterface $dataSet) + public function execute(DataSetInterface $dataSet): void { $productGroupEntity = SpyProductGroupQuery::create() ->filterByProductGroupKey($dataSet[static::COLUMN_PRODUCT_GROUP_KEY]) diff --git a/src/Pyz/Zed/DataImport/Business/Model/ProductImage/Repository/ProductImageRepository.php b/src/Pyz/Zed/DataImport/Business/Model/ProductImage/Repository/ProductImageRepository.php index d60a5edd20..cf0c99bbd5 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/ProductImage/Repository/ProductImageRepository.php +++ b/src/Pyz/Zed/DataImport/Business/Model/ProductImage/Repository/ProductImageRepository.php @@ -17,17 +17,17 @@ class ProductImageRepository implements ProductImageRepositoryInterface { /** - * @var \Orm\Zed\ProductImage\Persistence\SpyProductImageSet[] + * @var array<\Orm\Zed\ProductImage\Persistence\SpyProductImageSet> */ protected $resolvedProductImageSets = []; /** - * @var \Orm\Zed\ProductImage\Persistence\SpyProductImage[] + * @var array<\Orm\Zed\ProductImage\Persistence\SpyProductImage> */ protected $resolvedProductImages = []; /** - * @var \Orm\Zed\ProductImage\Persistence\SpyProductImageSetToProductImage[] + * @var array<\Orm\Zed\ProductImage\Persistence\SpyProductImageSetToProductImage> */ protected $resolvedProductImageSetToProductImageRelations = []; @@ -45,7 +45,7 @@ public function getProductImageSetEntity( int $localeId, ?int $productAbstractId = null, ?int $productConcreteId = null, - ?string $productImageSetKey = null + ?string $productImageSetKey = null, ): SpyProductImageSet { $key = $this->buildProductImageSetKey($name, $localeId, $productAbstractId, $productConcreteId, $productImageSetKey); @@ -78,7 +78,7 @@ public function getProductImageEntity(string $productImageKey): SpyProductImage */ public function getProductImageSetToProductImageRelationEntity( int $productImageSetId, - int $productImageId + int $productImageId, ): SpyProductImageSetToProductImage { $key = $this->buildProductImageSetToProductImageRelationKey($productImageSetId, $productImageId); @@ -115,7 +115,7 @@ protected function getProductImage(string $productImageKey): SpyProductImage */ protected function buildProductImageSetToProductImageRelationKey( int $productImageSetId, - int $productImageId + int $productImageId, ): string { return sprintf('%d:%d', $productImageSetId, $productImageId); } @@ -128,7 +128,7 @@ protected function buildProductImageSetToProductImageRelationKey( */ protected function getProductImageSetToProductImageRelation( int $productImageSetId, - int $productImageId + int $productImageId, ): SpyProductImageSetToProductImage { return SpyProductImageSetToProductImageQuery::create() ->filterByFkProductImageSet($productImageSetId) @@ -150,14 +150,14 @@ protected function buildProductImageSetKey( int $localeId, ?int $productAbstractId = null, ?int $productConcreteId = null, - ?string $productImageSetKey = null + ?string $productImageSetKey = null, ): string { return $productImageSetKey ?? sprintf( '%s:%d:%d:%d', $name, $localeId, $productAbstractId ?? 0, - $productConcreteId ?? 0 + $productConcreteId ?? 0, ); } @@ -175,7 +175,7 @@ protected function getProductImageSet( int $localeId, ?int $productAbstractId = null, ?int $productConcreteId = null, - ?string $productImageSetKey = null + ?string $productImageSetKey = null, ): SpyProductImageSet { $query = SpyProductImageSetQuery::create() ->filterByName($name) diff --git a/src/Pyz/Zed/DataImport/Business/Model/ProductImage/Repository/ProductImageRepositoryInterface.php b/src/Pyz/Zed/DataImport/Business/Model/ProductImage/Repository/ProductImageRepositoryInterface.php index f64a6a6138..c08ad34ac3 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/ProductImage/Repository/ProductImageRepositoryInterface.php +++ b/src/Pyz/Zed/DataImport/Business/Model/ProductImage/Repository/ProductImageRepositoryInterface.php @@ -27,7 +27,7 @@ public function getProductImageSetEntity( int $localeId, ?int $productAbstractId = null, ?int $productConcreteId = null, - ?string $productImageSetKey = null + ?string $productImageSetKey = null, ): SpyProductImageSet; /** @@ -45,6 +45,6 @@ public function getProductImageEntity(string $productImageKey): SpyProductImage; */ public function getProductImageSetToProductImageRelationEntity( int $productImageSetId, - int $productImageId + int $productImageId, ): SpyProductImageSetToProductImage; } diff --git a/src/Pyz/Zed/DataImport/Business/Model/ProductImage/Writer/ProductImagePropelDataSetWriter.php b/src/Pyz/Zed/DataImport/Business/Model/ProductImage/Writer/ProductImagePropelDataSetWriter.php index b3e3677cfa..018154dd55 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/ProductImage/Writer/ProductImagePropelDataSetWriter.php +++ b/src/Pyz/Zed/DataImport/Business/Model/ProductImage/Writer/ProductImagePropelDataSetWriter.php @@ -68,7 +68,7 @@ protected function createOrUpdateProductImageSet(DataSetInterface $dataSet): Spy $productImageSetEntityTransfer->getFkLocale(), (int)$productImageSetEntityTransfer->getFkProductAbstract(), (int)$productImageSetEntityTransfer->getFkProduct(), - $productImageSetEntityTransfer->getProductImageSetKey() + $productImageSetEntityTransfer->getProductImageSetKey(), ); if ($productImageSetEntity->isNew() || $productImageSetEntity->isModified()) { @@ -88,11 +88,11 @@ protected function createOrUpdateProductImageSet(DataSetInterface $dataSet): Spy */ protected function createOrUpdateProductImage( DataSetInterface $dataSet, - SpyProductImageSet $productImageSetEntity + SpyProductImageSet $productImageSetEntity, ): SpyProductImage { $productImageEntityTransfer = $this->getProductImageTransfer($dataSet); $productImageEntity = $this->findOrCreateProductImageEntityByProductImageKey( - $productImageEntityTransfer->getProductImageKey() + $productImageEntityTransfer->getProductImageKey(), ); $productImageEntity->setExternalUrlLarge($productImageEntityTransfer->getExternalUrlLarge()); @@ -118,11 +118,11 @@ protected function createOrUpdateProductImage( protected function createOrUpdateImageToImageSetRelation( SpyProductImageSet $productImageSetEntity, SpyProductImage $productImageEntity, - DataSetInterface $dataSet + DataSetInterface $dataSet, ): void { $productImageSetToProductImageEntity = $this->productImageRepository->getProductImageSetToProductImageRelationEntity( $productImageSetEntity->getIdProductImageSet(), - $productImageEntity->getIdProductImage() + $productImageEntity->getIdProductImage(), ); $productImageToImageSetRelationTransfer = $this->getProductImageToImageSetRelationTransfer($dataSet); @@ -161,7 +161,7 @@ protected function getProductImageSetTransfer(DataSetInterface $dataSet): SpyPro * @return \Generated\Shared\Transfer\SpyProductImageSetToProductImageEntityTransfer */ protected function getProductImageToImageSetRelationTransfer( - DataSetInterface $dataSet + DataSetInterface $dataSet, ): SpyProductImageSetToProductImageEntityTransfer { return $dataSet[ProductImageHydratorStep::DATA_PRODUCT_IMAGE_TO_IMAGE_SET_RELATION_TRANSFER]; } @@ -176,16 +176,16 @@ protected function addImagePublishEvents(SpyProductImageSet $productImageSetEnti if ($productImageSetEntity->getFkProductAbstract()) { DataImporterPublisher::addEvent( ProductImageEvents::PRODUCT_IMAGE_PRODUCT_ABSTRACT_PUBLISH, - $productImageSetEntity->getFkProductAbstract() + $productImageSetEntity->getFkProductAbstract(), ); DataImporterPublisher::addEvent( ProductEvents::PRODUCT_ABSTRACT_PUBLISH, - $productImageSetEntity->getFkProductAbstract() + $productImageSetEntity->getFkProductAbstract(), ); } elseif ($productImageSetEntity->getFkProduct()) { DataImporterPublisher::addEvent( ProductImageEvents::PRODUCT_IMAGE_PRODUCT_CONCRETE_PUBLISH, - $productImageSetEntity->getFkProduct() + $productImageSetEntity->getFkProduct(), ); } } diff --git a/src/Pyz/Zed/DataImport/Business/Model/ProductManagementAttribute/ProductManagementAttributeWriter.php b/src/Pyz/Zed/DataImport/Business/Model/ProductManagementAttribute/ProductManagementAttributeWriter.php index 62f0a47eb4..2d8107dbe2 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/ProductManagementAttribute/ProductManagementAttributeWriter.php +++ b/src/Pyz/Zed/DataImport/Business/Model/ProductManagementAttribute/ProductManagementAttributeWriter.php @@ -31,7 +31,7 @@ class ProductManagementAttributeWriter extends PublishAwareStep implements DataI * * @return void */ - public function execute(DataSetInterface $dataSet) + public function execute(DataSetInterface $dataSet): void { $productManagementAttributeEntity = SpyProductManagementAttributeQuery::create() ->filterByFkProductAttributeKey($dataSet[AddProductAttributeKeysStep::KEY_TARGET][$dataSet['key']]) diff --git a/src/Pyz/Zed/DataImport/Business/Model/ProductManagementAttribute/ProductManagementLocalizedAttributesExtractorStep.php b/src/Pyz/Zed/DataImport/Business/Model/ProductManagementAttribute/ProductManagementLocalizedAttributesExtractorStep.php index 4a2395f67a..29aa45a2d2 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/ProductManagementAttribute/ProductManagementLocalizedAttributesExtractorStep.php +++ b/src/Pyz/Zed/DataImport/Business/Model/ProductManagementAttribute/ProductManagementLocalizedAttributesExtractorStep.php @@ -23,7 +23,7 @@ class ProductManagementLocalizedAttributesExtractorStep implements DataImportSte * * @return void */ - public function execute(DataSetInterface $dataSet) + public function execute(DataSetInterface $dataSet): void { $localizedAttributes = []; foreach ($dataSet[AddLocalesStep::KEY_LOCALES] as $localeName => $idLocale) { @@ -51,7 +51,7 @@ public function execute(DataSetInterface $dataSet) * * @return array */ - private function toArray($data) + private function toArray($data): array { return array_map('trim', explode(',', $data)); } diff --git a/src/Pyz/Zed/DataImport/Business/Model/ProductOption/ProductOptionWriterStep.php b/src/Pyz/Zed/DataImport/Business/Model/ProductOption/ProductOptionWriterStep.php index 560caae9d0..2a0b208f06 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/ProductOption/ProductOptionWriterStep.php +++ b/src/Pyz/Zed/DataImport/Business/Model/ProductOption/ProductOptionWriterStep.php @@ -84,7 +84,7 @@ class ProductOptionWriterStep extends PublishAwareStep implements DataImportStep * * @return void */ - public function execute(DataSetInterface $dataSet) + public function execute(DataSetInterface $dataSet): void { $productOptionGroupEntity = SpyProductOptionGroupQuery::create() ->filterByKey($dataSet[self::KEY_PRODUCT_OPTION_GROUP_KEY]) @@ -108,7 +108,7 @@ public function execute(DataSetInterface $dataSet) if (!empty($dataSet[static::KEY_ABSTRACT_PRODUCT_SKUS])) { $abstractProductSkuCollection = explode(',', $dataSet[static::KEY_ABSTRACT_PRODUCT_SKUS]); - /** @var int[] $abstractProductIdCollection */ + /** @var array $abstractProductIdCollection */ $abstractProductIdCollection = SpyProductAbstractQuery::create() ->select([SpyProductAbstractTableMap::COL_ID_PRODUCT_ABSTRACT]) ->filterBySku($abstractProductSkuCollection, Criteria::IN) @@ -137,7 +137,7 @@ public function execute(DataSetInterface $dataSet) * * @return bool */ - protected function isActive(DataSetInterface $dataSet, SpyProductOptionGroup $productOptionGroupEntity) + protected function isActive(DataSetInterface $dataSet, SpyProductOptionGroup $productOptionGroupEntity): bool { if (isset($dataSet[self::KEY_IS_ACTIVE])) { return isset($dataSet[self::KEY_IS_ACTIVE]); @@ -153,7 +153,7 @@ protected function isActive(DataSetInterface $dataSet, SpyProductOptionGroup $pr * * @return void */ - protected function findOrCreateTranslation($key, $translation, $idLocale) + protected function findOrCreateTranslation($key, $translation, $idLocale): void { $glossaryKeyEntity = SpyGlossaryKeyQuery::create() ->filterByKey($key) diff --git a/src/Pyz/Zed/DataImport/Business/Model/ProductOptionPrice/ProductOptionPriceWriterStep.php b/src/Pyz/Zed/DataImport/Business/Model/ProductOptionPrice/ProductOptionPriceWriterStep.php index 99d0892fc9..a35cbac988 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/ProductOptionPrice/ProductOptionPriceWriterStep.php +++ b/src/Pyz/Zed/DataImport/Business/Model/ProductOptionPrice/ProductOptionPriceWriterStep.php @@ -51,12 +51,12 @@ class ProductOptionPriceWriterStep extends PublishAwareStep implements DataImpor public const KEY_GROSS_AMOUNT = 'value_gross'; /** - * @var int[] Keys are store names + * @var array Keys are store names */ protected static $idStoreBuffer = []; /** - * @var int[] Keys are currency codes. + * @var array Keys are currency codes. */ protected static $idCurrencyBuffer = []; @@ -67,14 +67,14 @@ class ProductOptionPriceWriterStep extends PublishAwareStep implements DataImpor * * @return void */ - public function execute(DataSetInterface $dataSet) + public function execute(DataSetInterface $dataSet): void { $productOptionValueEntity = SpyProductOptionValueQuery::create() ->findOneBySku($dataSet[static::KEY_PRODUCT_OPTION_SKU]); if ($productOptionValueEntity === null) { throw new InvalidDataException( - sprintf('Product option SKU (%s) not found in permanent storage.', $dataSet[static::KEY_PRODUCT_OPTION_SKU]) + sprintf('Product option SKU (%s) not found in permanent storage.', $dataSet[static::KEY_PRODUCT_OPTION_SKU]), ); } @@ -97,7 +97,7 @@ public function execute(DataSetInterface $dataSet) * * @return void */ - protected function publishRelatedProductAbstracts($idProductOptionValue) + protected function publishRelatedProductAbstracts($idProductOptionValue): void { $productAbstractCollection = SpyProductAbstractQuery::create() ->joinSpyProductAbstractProductOptionGroup() @@ -122,7 +122,7 @@ protected function publishRelatedProductAbstracts($idProductOptionValue) * * @return int|null */ - protected function getIdStore($storeName) + protected function getIdStore($storeName): ?int { if ($storeName === '' || $storeName === null) { return null; @@ -141,7 +141,7 @@ protected function getIdStore($storeName) * * @return int */ - protected function getIdCurrency($currencyIsoCode) + protected function getIdCurrency($currencyIsoCode): int { if (!isset(static::$idCurrencyBuffer[$currencyIsoCode])) { static::$idCurrencyBuffer[$currencyIsoCode] = SpyCurrencyQuery::create() @@ -157,7 +157,7 @@ protected function getIdCurrency($currencyIsoCode) * * @return int|null */ - protected function formatPrice($price) + protected function formatPrice($price): ?int { if ($price === '' || $price === null) { return null; diff --git a/src/Pyz/Zed/DataImport/Business/Model/ProductPrice/ProductPriceHydratorStep.php b/src/Pyz/Zed/DataImport/Business/Model/ProductPrice/ProductPriceHydratorStep.php index 0d1384d9c9..7c056b340f 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/ProductPrice/ProductPriceHydratorStep.php +++ b/src/Pyz/Zed/DataImport/Business/Model/ProductPrice/ProductPriceHydratorStep.php @@ -120,7 +120,7 @@ class ProductPriceHydratorStep implements DataImportStepInterface */ public function __construct( PriceProductFacadeInterface $priceProductFacade, - DataImportToUtilEncodingServiceInterface $utilEncodingService + DataImportToUtilEncodingServiceInterface $utilEncodingService, ) { $this->priceProductFacade = $priceProductFacade; $this->utilEncodingService = $utilEncodingService; @@ -154,7 +154,7 @@ protected function importProductPrice(DataSetInterface $dataSet): void 'One of "%s" or "%s" must be in the data set. Given: "%s"', $dataSet[static::COLUMN_ABSTRACT_SKU], $dataSet[static::COLUMN_ABSTRACT_SKU], - implode(', ', array_keys($dataSet->getArrayCopy())) + implode(', ', array_keys($dataSet->getArrayCopy())), )); } @@ -304,8 +304,8 @@ protected function getPriceDataKey(string $key): string throw new InvalidPriceDataKeyException( sprintf( 'Price data key "%s" has invalid format. Should be in following format: "price_data.some_key"', - $key - ) + $key, + ), ); } @@ -321,7 +321,7 @@ protected function getPriceDataKey(string $key): string */ protected function addPriceDataValue(array $priceData, string $key, string $value): array { - if (empty($value)) { + if (!$value) { return $priceData; } diff --git a/src/Pyz/Zed/DataImport/Business/Model/ProductPrice/Writer/ProductPricePropelDataSetWriter.php b/src/Pyz/Zed/DataImport/Business/Model/ProductPrice/Writer/ProductPricePropelDataSetWriter.php index b8bec3cfc1..f5ee4fa16a 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/ProductPrice/Writer/ProductPricePropelDataSetWriter.php +++ b/src/Pyz/Zed/DataImport/Business/Model/ProductPrice/Writer/ProductPricePropelDataSetWriter.php @@ -92,7 +92,7 @@ class ProductPricePropelDataSetWriter implements DataSetWriterInterface public function __construct( ProductRepository $productRepository, StoreFacadeInterface $storeFacade, - CurrencyFacadeInterface $currencyFacade + CurrencyFacadeInterface $currencyFacade, ) { $this->productRepository = $productRepository; $this->storeFacade = $storeFacade; @@ -143,7 +143,7 @@ protected function findOrCreatePriceType(DataSetInterface $dataSet): SpyPriceTyp */ protected function findOrCreateProductPrice( DataSetInterface $dataSet, - SpyPriceType $priceTypeEntity + SpyPriceType $priceTypeEntity, ): SpyPriceProduct { $query = SpyPriceProductQuery::create(); $query->filterByFkPriceType($priceTypeEntity->getIdPriceType()); @@ -153,7 +153,7 @@ protected function findOrCreateProductPrice( 'One of "%s" or "%s" must be in the data set. Given: "%s"', static::COLUMN_ABSTRACT_SKU, static::COLUMN_CONCRETE_SKU, - implode(', ', array_keys($dataSet->getArrayCopy())) + implode(', ', array_keys($dataSet->getArrayCopy())), )); } @@ -182,7 +182,7 @@ protected function findOrCreateProductPrice( */ protected function findOrCreatePriceProductStore( DataSetInterface $dataSet, - SpyPriceProduct $spyPriceProduct + SpyPriceProduct $spyPriceProduct, ): SpyPriceProductStore { $storeTransfer = $this->storeFacade->getStoreByName($dataSet[static::COLUMN_STORE]); $currencyTransfer = $this->currencyFacade->fromIsoCode($dataSet[static::COLUMN_CURRENCY]); diff --git a/src/Pyz/Zed/DataImport/Business/Model/ProductReview/ProductReviewWriterStep.php b/src/Pyz/Zed/DataImport/Business/Model/ProductReview/ProductReviewWriterStep.php index e9f86a2b6f..d38b4154f0 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/ProductReview/ProductReviewWriterStep.php +++ b/src/Pyz/Zed/DataImport/Business/Model/ProductReview/ProductReviewWriterStep.php @@ -43,7 +43,7 @@ public function __construct(ProductRepositoryInterface $productRepository, Local * * @return void */ - public function execute(DataSetInterface $dataSet) + public function execute(DataSetInterface $dataSet): void { $productReviewEntity = SpyProductReviewQuery::create() ->filterByCustomerReference($dataSet['customer_reference']) @@ -72,7 +72,7 @@ public function execute(DataSetInterface $dataSet) * * @return int */ - protected function getFkProductAbstract(DataSetInterface $dataSet) + protected function getFkProductAbstract(DataSetInterface $dataSet): int { return $this->productRepository->getIdProductAbstractByAbstractSku($dataSet['abstract_product_sku']); } @@ -82,7 +82,7 @@ protected function getFkProductAbstract(DataSetInterface $dataSet) * * @return int */ - protected function getFkLocale(DataSetInterface $dataSet) + protected function getFkLocale(DataSetInterface $dataSet): int { return $this->localeRepository->getIdLocaleByLocale($dataSet['locale_name']); } diff --git a/src/Pyz/Zed/DataImport/Business/Model/ProductSearchAttribute/Hook/ProductSearchAfterImportHook.php b/src/Pyz/Zed/DataImport/Business/Model/ProductSearchAttribute/Hook/ProductSearchAfterImportHook.php index e7d5427934..0b61e4844b 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/ProductSearchAttribute/Hook/ProductSearchAfterImportHook.php +++ b/src/Pyz/Zed/DataImport/Business/Model/ProductSearchAttribute/Hook/ProductSearchAfterImportHook.php @@ -21,7 +21,7 @@ class ProductSearchAfterImportHook implements DataImporterAfterImportInterface /** * @return void */ - public function afterImport() + public function afterImport(): void { DataImporterPublisher::addEvent(ProductSearchEvents::PRODUCT_SEARCH_CONFIG_PUBLISH, static::ID_DEFAULT); } diff --git a/src/Pyz/Zed/DataImport/Business/Model/ProductSearchAttribute/ProductSearchAttributeWriter.php b/src/Pyz/Zed/DataImport/Business/Model/ProductSearchAttribute/ProductSearchAttributeWriter.php index 898161ddbc..2eacad7345 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/ProductSearchAttribute/ProductSearchAttributeWriter.php +++ b/src/Pyz/Zed/DataImport/Business/Model/ProductSearchAttribute/ProductSearchAttributeWriter.php @@ -48,7 +48,7 @@ public function __construct(GlossaryKeyBuilderInterface $glossaryKeyBuilder) * * @return void */ - public function execute(DataSetInterface $dataSet) + public function execute(DataSetInterface $dataSet): void { $productSearchAttributeEntity = SpyProductSearchAttributeQuery::create() ->filterByFkProductAttributeKey($dataSet[AddProductAttributeKeysStep::KEY_TARGET][$dataSet['key']]) diff --git a/src/Pyz/Zed/DataImport/Business/Model/ProductSearchAttributeMap/ProductSearchAttributeMapWriter.php b/src/Pyz/Zed/DataImport/Business/Model/ProductSearchAttributeMap/ProductSearchAttributeMapWriter.php index 78438048ad..4a46192b69 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/ProductSearchAttributeMap/ProductSearchAttributeMapWriter.php +++ b/src/Pyz/Zed/DataImport/Business/Model/ProductSearchAttributeMap/ProductSearchAttributeMapWriter.php @@ -38,7 +38,7 @@ class ProductSearchAttributeMapWriter implements DataImportStepInterface * * @return void */ - public function execute(DataSetInterface $dataSet) + public function execute(DataSetInterface $dataSet): void { $pageIndexMap = new PageIndexMap(); @@ -47,7 +47,7 @@ public function execute(DataSetInterface $dataSet) throw new InvalidArgumentException(sprintf( 'Invalid target field "%s" for attribute "%s"', $dataSet[static::KEY_TARGET_FIELD], - $dataSet[static::KEY_ATTRIBUTE_KEY] + $dataSet[static::KEY_ATTRIBUTE_KEY], )); } diff --git a/src/Pyz/Zed/DataImport/Business/Model/ProductSet/ProductSetImageExtractorStep.php b/src/Pyz/Zed/DataImport/Business/Model/ProductSet/ProductSetImageExtractorStep.php index 1fe2957574..0b019061f0 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/ProductSet/ProductSetImageExtractorStep.php +++ b/src/Pyz/Zed/DataImport/Business/Model/ProductSet/ProductSetImageExtractorStep.php @@ -37,7 +37,7 @@ class ProductSetImageExtractorStep implements DataImportStepInterface * * @return void */ - public function execute(DataSetInterface $dataSet) + public function execute(DataSetInterface $dataSet): void { $imageSets = []; foreach ($dataSet as $key => $value) { diff --git a/src/Pyz/Zed/DataImport/Business/Model/ProductSet/ProductSetWriterStep.php b/src/Pyz/Zed/DataImport/Business/Model/ProductSet/ProductSetWriterStep.php index f369bfd469..c4dc7b0c98 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/ProductSet/ProductSetWriterStep.php +++ b/src/Pyz/Zed/DataImport/Business/Model/ProductSet/ProductSetWriterStep.php @@ -117,7 +117,7 @@ public function __construct(ProductRepositoryInterface $productRepository) * * @return void */ - public function execute(DataSetInterface $dataSet) + public function execute(DataSetInterface $dataSet): void { $productSetEntity = $this->findOrCreateProductSet($dataSet); @@ -131,7 +131,7 @@ public function execute(DataSetInterface $dataSet) * * @return \Orm\Zed\ProductSet\Persistence\SpyProductSet */ - protected function findOrCreateProductSet(DataSetInterface $dataSet) + protected function findOrCreateProductSet(DataSetInterface $dataSet): SpyProductSet { $productSetEntity = SpyProductSetQuery::create() ->filterByProductSetKey($dataSet[static::KEY_PRODUCT_SET_KEY]) @@ -155,7 +155,7 @@ protected function findOrCreateProductSet(DataSetInterface $dataSet) * * @return void */ - protected function findOrCreateProductAbstractSet(DataSetInterface $dataSet, SpyProductSet $productSetEntity) + protected function findOrCreateProductAbstractSet(DataSetInterface $dataSet, SpyProductSet $productSetEntity): void { $productAbstractSkus = explode(',', $dataSet[static::KEY_ABSTRACT_SKUS]); $productAbstractSkus = array_map('trim', $productAbstractSkus); @@ -187,7 +187,7 @@ protected function findOrCreateProductAbstractSet(DataSetInterface $dataSet, Spy * * @return void */ - protected function findOrCreateProductSetData(DataSetInterface $dataSet, SpyProductSet $productSetEntity) + protected function findOrCreateProductSetData(DataSetInterface $dataSet, SpyProductSet $productSetEntity): void { foreach ($dataSet[LocalizedAttributesExtractorStep::KEY_LOCALIZED_ATTRIBUTES] as $idLocale => $localizedAttributes) { $productSetDataEntity = SpyProductSetDataQuery::create() @@ -226,7 +226,7 @@ protected function findOrCreateProductSetData(DataSetInterface $dataSet, SpyProd * * @return void */ - protected function findOrCreateProductImageSet(DataSetInterface $dataSet, SpyProductSet $productSetEntity) + protected function findOrCreateProductImageSet(DataSetInterface $dataSet, SpyProductSet $productSetEntity): void { foreach ($dataSet[ProductSetImageExtractorStep::KEY_TARGET] as $imageSet) { $productImageSetEntity = SpyProductImageSetQuery::create() diff --git a/src/Pyz/Zed/DataImport/Business/Model/ProductStock/Hook/ProductStockAfterImportPublishHook.php b/src/Pyz/Zed/DataImport/Business/Model/ProductStock/Hook/ProductStockAfterImportPublishHook.php index 8230d58c6a..ff8acbcf4c 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/ProductStock/Hook/ProductStockAfterImportPublishHook.php +++ b/src/Pyz/Zed/DataImport/Business/Model/ProductStock/Hook/ProductStockAfterImportPublishHook.php @@ -25,13 +25,13 @@ class ProductStockAfterImportPublishHook implements DataImporterAfterImportInter /** * @return void */ - public function afterImport() + public function afterImport(): void { $availabilities = SpyAvailabilityAbstractQuery::create() ->addJoin( SpyAvailabilityAbstractTableMap::COL_ABSTRACT_SKU, SpyProductAbstractTableMap::COL_SKU, - Criteria::INNER_JOIN + Criteria::INNER_JOIN, ) ->withColumn(SpyProductAbstractTableMap::COL_ID_PRODUCT_ABSTRACT, 'idProductAbstract') ->find(); diff --git a/src/Pyz/Zed/DataImport/Business/Model/ProductStock/Writer/ProductStockPropelDataSetWriter.php b/src/Pyz/Zed/DataImport/Business/Model/ProductStock/Writer/ProductStockPropelDataSetWriter.php index b94c1f760e..6711275100 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/ProductStock/Writer/ProductStockPropelDataSetWriter.php +++ b/src/Pyz/Zed/DataImport/Business/Model/ProductStock/Writer/ProductStockPropelDataSetWriter.php @@ -85,7 +85,7 @@ class ProductStockPropelDataSetWriter implements DataSetWriterInterface protected const COL_STOCK_PRODUCT_TOTAL_QUANTITY = 'stockProductTotalQuantity'; /** - * @var string[] + * @var array */ protected static $productAbstractSkus = []; @@ -119,7 +119,7 @@ public function __construct( ProductBundleFacadeInterface $productBundleFacade, ProductRepositoryInterface $productRepository, StoreFacadeInterface $storeFacade, - StockFacadeInterface $stockFacade + StockFacadeInterface $stockFacade, ) { $this->productBundleFacade = $productBundleFacade; $this->productRepository = $productRepository; @@ -161,7 +161,7 @@ public function flush(): void * * @return \Orm\Zed\Stock\Persistence\SpyStock */ - protected function createOrUpdateStock(DataSetInterface $dataSet) + protected function createOrUpdateStock(DataSetInterface $dataSet): SpyStock { $stockTransfer = $dataSet[ProductStockHydratorStep::STOCK_ENTITY_TRANSFER]; $stockEntity = SpyStockQuery::create() @@ -215,7 +215,7 @@ protected function triggerAvailabilityPublishEvents(): void } /** - * @return int[] + * @return array */ protected function getAvailabilityAbstractIdsForCollectedAbstractSkus(): array { @@ -235,7 +235,7 @@ protected function getAvailabilityAbstractIdsForCollectedAbstractSkus(): array } /** - * @return int[] + * @return array */ protected function getStoreIds(): array { @@ -333,13 +333,13 @@ protected function getStoreWarehouses(string $storeName): array /** * @param int $idProductConcrete - * @param string[] $stockNames + * @param array $stockNames * * @return \Spryker\DecimalObject\Decimal */ protected function getStockProductQuantityByIdProductAndStockNames( int $idProductConcrete, - array $stockNames + array $stockNames, ): Decimal { $stockProductTotalQuantity = SpyStockProductQuery::create() ->filterByFkProduct($idProductConcrete) @@ -488,7 +488,7 @@ protected function createAvailabilityAbstract(string $abstractSku, int $idStore) */ protected function updateAbstractAvailabilityQuantity( SpyAvailabilityAbstract $availabilityAbstractEntity, - int $idStore + int $idStore, ): SpyAvailabilityAbstract { $sumQuantity = SpyAvailabilityQuery::create() ->filterByFkAvailabilityAbstract($availabilityAbstractEntity->getIdAvailabilityAbstract()) diff --git a/src/Pyz/Zed/DataImport/Business/Model/Shipment/ShipmentWriterStep.php b/src/Pyz/Zed/DataImport/Business/Model/Shipment/ShipmentWriterStep.php index 64d0312ccf..97a894cc5a 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/Shipment/ShipmentWriterStep.php +++ b/src/Pyz/Zed/DataImport/Business/Model/Shipment/ShipmentWriterStep.php @@ -44,7 +44,7 @@ class ShipmentWriterStep implements DataImportStepInterface * * @return void */ - public function execute(DataSetInterface $dataSet) + public function execute(DataSetInterface $dataSet): void { $shipmentCarrier = SpyShipmentCarrierQuery::create() ->filterByName($dataSet[static::COL_CARRIER]) diff --git a/src/Pyz/Zed/DataImport/Business/Model/ShipmentPrice/ShipmentPriceWriterStep.php b/src/Pyz/Zed/DataImport/Business/Model/ShipmentPrice/ShipmentPriceWriterStep.php index 8f4340f2d1..21a10b6a01 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/ShipmentPrice/ShipmentPriceWriterStep.php +++ b/src/Pyz/Zed/DataImport/Business/Model/ShipmentPrice/ShipmentPriceWriterStep.php @@ -42,17 +42,17 @@ class ShipmentPriceWriterStep implements DataImportStepInterface public const COL_GROSS_AMOUNT = 'value_gross'; /** - * @var int[] Keys are shipment method keys, values are shipment method ids. + * @var array Keys are shipment method keys, values are shipment method ids. */ protected static $idShipmentMethodCache = []; /** - * @var int[] Keys are currency iso codes, values are currency ids. + * @var array Keys are currency iso codes, values are currency ids. */ protected static $idCurrencyCache = []; /** - * @var int[] Keys are store names, values are store ids. + * @var array Keys are store names, values are store ids. */ protected static $idStoreCache = []; @@ -61,7 +61,7 @@ class ShipmentPriceWriterStep implements DataImportStepInterface * * @return void */ - public function execute(DataSetInterface $dataSet) + public function execute(DataSetInterface $dataSet): void { $shipmentMethodPriceEntity = SpyShipmentMethodPriceQuery::create() ->filterByFkShipmentMethod($this->getIdShipmentMethodByShipmentMethodKey($dataSet[static::COL_SHIPMENT_METHOD_KEY])) @@ -79,7 +79,7 @@ public function execute(DataSetInterface $dataSet) * * @return int */ - protected function getIdShipmentMethodByShipmentMethodKey($shipmentMethodKey) + protected function getIdShipmentMethodByShipmentMethodKey($shipmentMethodKey): int { if (!isset(static::$idShipmentMethodCache[$shipmentMethodKey])) { static::$idShipmentMethodCache[$shipmentMethodKey] = SpyShipmentMethodQuery::create() @@ -95,7 +95,7 @@ protected function getIdShipmentMethodByShipmentMethodKey($shipmentMethodKey) * * @return int */ - protected function getIdCurrencyByIsoCode($currencyIsoCode) + protected function getIdCurrencyByIsoCode($currencyIsoCode): int { if (!isset(static::$idCurrencyCache[$currencyIsoCode])) { static::$idCurrencyCache[$currencyIsoCode] = SpyCurrencyQuery::create() @@ -111,7 +111,7 @@ protected function getIdCurrencyByIsoCode($currencyIsoCode) * * @return int */ - protected function getIdStoreByStoreName($storeName) + protected function getIdStoreByStoreName($storeName): int { if (!isset(static::$idStoreCache[$storeName])) { static::$idStoreCache[$storeName] = SpyStoreQuery::create() diff --git a/src/Pyz/Zed/DataImport/Business/Model/Stock/StockWriterStep.php b/src/Pyz/Zed/DataImport/Business/Model/Stock/StockWriterStep.php index abdd8def40..765e1d26dc 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/Stock/StockWriterStep.php +++ b/src/Pyz/Zed/DataImport/Business/Model/Stock/StockWriterStep.php @@ -23,7 +23,7 @@ class StockWriterStep implements DataImportStepInterface * * @return void */ - public function execute(DataSetInterface $dataSet) + public function execute(DataSetInterface $dataSet): void { $stockEntity = SpyStockQuery::create() ->filterByName($dataSet[static::KEY_NAME]) diff --git a/src/Pyz/Zed/DataImport/Business/Model/Store/StoreReader.php b/src/Pyz/Zed/DataImport/Business/Model/Store/StoreReader.php index c4a10e20e6..9beac749fd 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/Store/StoreReader.php +++ b/src/Pyz/Zed/DataImport/Business/Model/Store/StoreReader.php @@ -44,7 +44,7 @@ public function __construct(DataSetInterface $dataSet) * * @return void */ - public function next() + public function next(): void { ++$this->position; } @@ -73,7 +73,7 @@ public function key() * @return bool The return value will be casted to boolean and then evaluated. * Returns true on success or false on failure. */ - public function valid() + public function valid(): bool { return isset($this->dataSet[$this->position]); } @@ -87,7 +87,7 @@ public function valid() * * @return void */ - public function rewind() + public function rewind(): void { $this->position = 0; } @@ -95,7 +95,7 @@ public function rewind() /** * @return \Spryker\Zed\DataImport\Business\Model\DataSet\DataSetInterface */ - public function current() + public function current(): DataSetInterface { return $this->dataSet; } diff --git a/src/Pyz/Zed/DataImport/Business/Model/Store/StoreWriterStep.php b/src/Pyz/Zed/DataImport/Business/Model/Store/StoreWriterStep.php index 540b594100..d3b38a305d 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/Store/StoreWriterStep.php +++ b/src/Pyz/Zed/DataImport/Business/Model/Store/StoreWriterStep.php @@ -18,7 +18,7 @@ class StoreWriterStep implements DataImportStepInterface * * @return void */ - public function execute(DataSetInterface $dataSet) + public function execute(DataSetInterface $dataSet): void { foreach ($dataSet as $storeName) { $storeEntity = SpyStoreQuery::create() diff --git a/src/Pyz/Zed/DataImport/Business/Model/Tax/TaxSetNameToIdTaxSetStep.php b/src/Pyz/Zed/DataImport/Business/Model/Tax/TaxSetNameToIdTaxSetStep.php index bf557084b9..aab8b733a3 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/Tax/TaxSetNameToIdTaxSetStep.php +++ b/src/Pyz/Zed/DataImport/Business/Model/Tax/TaxSetNameToIdTaxSetStep.php @@ -62,7 +62,7 @@ public function execute(DataSetInterface $dataSet): void throw new DataKeyNotFoundInDataSetException(sprintf( 'Expected a key "%s" in current data set. Available keys: "%s"', $this->source, - implode(', ', array_keys($dataSet->getArrayCopy())) + implode(', ', array_keys($dataSet->getArrayCopy())), )); } diff --git a/src/Pyz/Zed/DataImport/Business/Model/Tax/TaxWriterStep.php b/src/Pyz/Zed/DataImport/Business/Model/Tax/TaxWriterStep.php index 082f8fcebe..8e4e74c019 100644 --- a/src/Pyz/Zed/DataImport/Business/Model/Tax/TaxWriterStep.php +++ b/src/Pyz/Zed/DataImport/Business/Model/Tax/TaxWriterStep.php @@ -12,6 +12,7 @@ use Orm\Zed\Tax\Persistence\SpyTaxRateQuery; use Orm\Zed\Tax\Persistence\SpyTaxSet; use Orm\Zed\Tax\Persistence\SpyTaxSetQuery; +use Orm\Zed\Tax\Persistence\SpyTaxSetTax; use Orm\Zed\Tax\Persistence\SpyTaxSetTaxQuery; use Propel\Runtime\ActiveQuery\Criteria; use Pyz\Zed\DataImport\Business\Model\Country\Repository\CountryRepositoryInterface; @@ -73,7 +74,7 @@ public function __construct(CountryRepositoryInterface $countryRepository) * * @return void */ - public function execute(DataSetInterface $dataSet) + public function execute(DataSetInterface $dataSet): void { $taxRateEntity = $this->findOrCreateTaxRate($dataSet); @@ -95,7 +96,7 @@ public function execute(DataSetInterface $dataSet) * * @return \Orm\Zed\Tax\Persistence\SpyTaxRate */ - protected function findOrCreateTaxRate(DataSetInterface $dataSet) + protected function findOrCreateTaxRate(DataSetInterface $dataSet): SpyTaxRate { $idCountry = null; if ($this->countryRepository->hasCountryByName($dataSet[static::KEY_COUNTRY_NAME])) { @@ -118,7 +119,7 @@ protected function findOrCreateTaxRate(DataSetInterface $dataSet) * * @return \Orm\Zed\Tax\Persistence\SpyTaxSet */ - protected function findOrCreateTaxSet(DataSetInterface $dataSet) + protected function findOrCreateTaxSet(DataSetInterface $dataSet): SpyTaxSet { $taxSetEntity = SpyTaxSetQuery::create() ->filterByName($dataSet[static::KEY_TAX_SET_NAME]) @@ -135,7 +136,7 @@ protected function findOrCreateTaxSet(DataSetInterface $dataSet) * * @return \Orm\Zed\Tax\Persistence\SpyTaxSetTax */ - protected function findOrCreateTaxSetTax(SpyTaxRate $taxRateEntity, SpyTaxSet $taxSetEntity) + protected function findOrCreateTaxSetTax(SpyTaxRate $taxRateEntity, SpyTaxSet $taxSetEntity): SpyTaxSetTax { $taxSetTaxEntity = SpyTaxSetTaxQuery::create() ->filterByFkTaxRate($taxRateEntity->getIdTaxRate()) @@ -152,7 +153,7 @@ protected function findOrCreateTaxSetTax(SpyTaxRate $taxRateEntity, SpyTaxSet $t * * @return void */ - protected function addShipmentTax(SpyTaxSet $taxSetEntity) + protected function addShipmentTax(SpyTaxSet $taxSetEntity): void { if (!isset($this->shipmentSets[$taxSetEntity->getName()])) { return; diff --git a/src/Pyz/Zed/DataImport/Communication/Plugin/CombinedProduct/ProductAbstract/CombinedProductAbstractPropelWriterPlugin.php b/src/Pyz/Zed/DataImport/Communication/Plugin/CombinedProduct/ProductAbstract/CombinedProductAbstractPropelWriterPlugin.php index c90ad6e726..38e5f8188d 100644 --- a/src/Pyz/Zed/DataImport/Communication/Plugin/CombinedProduct/ProductAbstract/CombinedProductAbstractPropelWriterPlugin.php +++ b/src/Pyz/Zed/DataImport/Communication/Plugin/CombinedProduct/ProductAbstract/CombinedProductAbstractPropelWriterPlugin.php @@ -14,6 +14,7 @@ /** * @method \Pyz\Zed\DataImport\Business\DataImportFacadeInterface getFacade() * @method \Pyz\Zed\DataImport\DataImportConfig getConfig() + * @method \Spryker\Zed\DataImport\Communication\DataImportCommunicationFactory getFactory() */ class CombinedProductAbstractPropelWriterPlugin extends AbstractPlugin implements DataSetWriterPluginInterface { diff --git a/src/Pyz/Zed/DataImport/Communication/Plugin/CombinedProduct/ProductAbstractStore/CombinedProductAbstractStorePropelWriterPlugin.php b/src/Pyz/Zed/DataImport/Communication/Plugin/CombinedProduct/ProductAbstractStore/CombinedProductAbstractStorePropelWriterPlugin.php index 581453bc15..d4a857aadc 100644 --- a/src/Pyz/Zed/DataImport/Communication/Plugin/CombinedProduct/ProductAbstractStore/CombinedProductAbstractStorePropelWriterPlugin.php +++ b/src/Pyz/Zed/DataImport/Communication/Plugin/CombinedProduct/ProductAbstractStore/CombinedProductAbstractStorePropelWriterPlugin.php @@ -14,6 +14,7 @@ /** * @method \Pyz\Zed\DataImport\Business\DataImportFacadeInterface getFacade() * @method \Pyz\Zed\DataImport\DataImportConfig getConfig() + * @method \Spryker\Zed\DataImport\Communication\DataImportCommunicationFactory getFactory() */ class CombinedProductAbstractStorePropelWriterPlugin extends AbstractPlugin implements DataSetWriterPluginInterface { diff --git a/src/Pyz/Zed/DataImport/Communication/Plugin/CombinedProduct/ProductConcrete/CombinedProductConcretePropelWriterPlugin.php b/src/Pyz/Zed/DataImport/Communication/Plugin/CombinedProduct/ProductConcrete/CombinedProductConcretePropelWriterPlugin.php index e72554b7cf..54a45cf39a 100644 --- a/src/Pyz/Zed/DataImport/Communication/Plugin/CombinedProduct/ProductConcrete/CombinedProductConcretePropelWriterPlugin.php +++ b/src/Pyz/Zed/DataImport/Communication/Plugin/CombinedProduct/ProductConcrete/CombinedProductConcretePropelWriterPlugin.php @@ -14,6 +14,7 @@ /** * @method \Pyz\Zed\DataImport\Business\DataImportFacadeInterface getFacade() * @method \Pyz\Zed\DataImport\DataImportConfig getConfig() + * @method \Spryker\Zed\DataImport\Communication\DataImportCommunicationFactory getFactory() */ class CombinedProductConcretePropelWriterPlugin extends AbstractPlugin implements DataSetWriterPluginInterface { diff --git a/src/Pyz/Zed/DataImport/Communication/Plugin/CombinedProduct/ProductImage/CombinedProductImagePropelWriterPlugin.php b/src/Pyz/Zed/DataImport/Communication/Plugin/CombinedProduct/ProductImage/CombinedProductImagePropelWriterPlugin.php index 5f8942d4ed..3c1afd6ea0 100644 --- a/src/Pyz/Zed/DataImport/Communication/Plugin/CombinedProduct/ProductImage/CombinedProductImagePropelWriterPlugin.php +++ b/src/Pyz/Zed/DataImport/Communication/Plugin/CombinedProduct/ProductImage/CombinedProductImagePropelWriterPlugin.php @@ -14,6 +14,7 @@ /** * @method \Pyz\Zed\DataImport\Business\DataImportFacadeInterface getFacade() * @method \Pyz\Zed\DataImport\DataImportConfig getConfig() + * @method \Spryker\Zed\DataImport\Communication\DataImportCommunicationFactory getFactory() */ class CombinedProductImagePropelWriterPlugin extends AbstractPlugin implements DataSetWriterPluginInterface { diff --git a/src/Pyz/Zed/DataImport/Communication/Plugin/CombinedProduct/ProductPrice/CombinedProductPricePropelWriterPlugin.php b/src/Pyz/Zed/DataImport/Communication/Plugin/CombinedProduct/ProductPrice/CombinedProductPricePropelWriterPlugin.php index 19fb4f23b3..4c11c4473f 100644 --- a/src/Pyz/Zed/DataImport/Communication/Plugin/CombinedProduct/ProductPrice/CombinedProductPricePropelWriterPlugin.php +++ b/src/Pyz/Zed/DataImport/Communication/Plugin/CombinedProduct/ProductPrice/CombinedProductPricePropelWriterPlugin.php @@ -14,6 +14,7 @@ /** * @method \Pyz\Zed\DataImport\Business\DataImportFacadeInterface getFacade() * @method \Pyz\Zed\DataImport\DataImportConfig getConfig() + * @method \Spryker\Zed\DataImport\Communication\DataImportCommunicationFactory getFactory() */ class CombinedProductPricePropelWriterPlugin extends AbstractPlugin implements DataSetWriterPluginInterface { diff --git a/src/Pyz/Zed/DataImport/Communication/Plugin/CombinedProduct/ProductStock/CombinedProductStockPropelWriterPlugin.php b/src/Pyz/Zed/DataImport/Communication/Plugin/CombinedProduct/ProductStock/CombinedProductStockPropelWriterPlugin.php index 53360e0a72..958c2f6510 100644 --- a/src/Pyz/Zed/DataImport/Communication/Plugin/CombinedProduct/ProductStock/CombinedProductStockPropelWriterPlugin.php +++ b/src/Pyz/Zed/DataImport/Communication/Plugin/CombinedProduct/ProductStock/CombinedProductStockPropelWriterPlugin.php @@ -14,6 +14,7 @@ /** * @method \Pyz\Zed\DataImport\Business\DataImportFacadeInterface getFacade() * @method \Pyz\Zed\DataImport\DataImportConfig getConfig() + * @method \Spryker\Zed\DataImport\Communication\DataImportCommunicationFactory getFactory() */ class CombinedProductStockPropelWriterPlugin extends AbstractPlugin implements DataSetWriterPluginInterface { diff --git a/src/Pyz/Zed/DataImport/Communication/Plugin/ProductAbstract/ProductAbstractPropelWriterPlugin.php b/src/Pyz/Zed/DataImport/Communication/Plugin/ProductAbstract/ProductAbstractPropelWriterPlugin.php index 95eea42d99..a1a6b8f03d 100644 --- a/src/Pyz/Zed/DataImport/Communication/Plugin/ProductAbstract/ProductAbstractPropelWriterPlugin.php +++ b/src/Pyz/Zed/DataImport/Communication/Plugin/ProductAbstract/ProductAbstractPropelWriterPlugin.php @@ -14,6 +14,7 @@ /** * @method \Pyz\Zed\DataImport\Business\DataImportFacadeInterface getFacade() * @method \Pyz\Zed\DataImport\DataImportConfig getConfig() + * @method \Spryker\Zed\DataImport\Communication\DataImportCommunicationFactory getFactory() */ class ProductAbstractPropelWriterPlugin extends AbstractPlugin implements DataSetWriterPluginInterface { diff --git a/src/Pyz/Zed/DataImport/Communication/Plugin/ProductAbstractStore/ProductAbstractStorePropelWriterPlugin.php b/src/Pyz/Zed/DataImport/Communication/Plugin/ProductAbstractStore/ProductAbstractStorePropelWriterPlugin.php index 468fd33d38..db89ca9b12 100644 --- a/src/Pyz/Zed/DataImport/Communication/Plugin/ProductAbstractStore/ProductAbstractStorePropelWriterPlugin.php +++ b/src/Pyz/Zed/DataImport/Communication/Plugin/ProductAbstractStore/ProductAbstractStorePropelWriterPlugin.php @@ -14,6 +14,7 @@ /** * @method \Pyz\Zed\DataImport\Business\DataImportFacadeInterface getFacade() * @method \Pyz\Zed\DataImport\DataImportConfig getConfig() + * @method \Spryker\Zed\DataImport\Communication\DataImportCommunicationFactory getFactory() */ class ProductAbstractStorePropelWriterPlugin extends AbstractPlugin implements DataSetWriterPluginInterface { diff --git a/src/Pyz/Zed/DataImport/Communication/Plugin/ProductConcrete/ProductConcretePropelWriterPlugin.php b/src/Pyz/Zed/DataImport/Communication/Plugin/ProductConcrete/ProductConcretePropelWriterPlugin.php index 8cf688907f..caad5378e5 100644 --- a/src/Pyz/Zed/DataImport/Communication/Plugin/ProductConcrete/ProductConcretePropelWriterPlugin.php +++ b/src/Pyz/Zed/DataImport/Communication/Plugin/ProductConcrete/ProductConcretePropelWriterPlugin.php @@ -14,6 +14,7 @@ /** * @method \Pyz\Zed\DataImport\Business\DataImportFacadeInterface getFacade() * @method \Pyz\Zed\DataImport\DataImportConfig getConfig() + * @method \Spryker\Zed\DataImport\Communication\DataImportCommunicationFactory getFactory() */ class ProductConcretePropelWriterPlugin extends AbstractPlugin implements DataSetWriterPluginInterface { diff --git a/src/Pyz/Zed/DataImport/Communication/Plugin/ProductImage/ProductImagePropelWriterPlugin.php b/src/Pyz/Zed/DataImport/Communication/Plugin/ProductImage/ProductImagePropelWriterPlugin.php index d75edd44c3..aff1f8a1ce 100644 --- a/src/Pyz/Zed/DataImport/Communication/Plugin/ProductImage/ProductImagePropelWriterPlugin.php +++ b/src/Pyz/Zed/DataImport/Communication/Plugin/ProductImage/ProductImagePropelWriterPlugin.php @@ -14,6 +14,7 @@ /** * @method \Pyz\Zed\DataImport\Business\DataImportFacadeInterface getFacade() * @method \Pyz\Zed\DataImport\DataImportConfig getConfig() + * @method \Spryker\Zed\DataImport\Communication\DataImportCommunicationFactory getFactory() */ class ProductImagePropelWriterPlugin extends AbstractPlugin implements DataSetWriterPluginInterface { diff --git a/src/Pyz/Zed/DataImport/Communication/Plugin/ProductStock/ProductStockPropelWriterPlugin.php b/src/Pyz/Zed/DataImport/Communication/Plugin/ProductStock/ProductStockPropelWriterPlugin.php index 534f59b584..d5a702a36e 100644 --- a/src/Pyz/Zed/DataImport/Communication/Plugin/ProductStock/ProductStockPropelWriterPlugin.php +++ b/src/Pyz/Zed/DataImport/Communication/Plugin/ProductStock/ProductStockPropelWriterPlugin.php @@ -14,6 +14,7 @@ /** * @method \Pyz\Zed\DataImport\Business\DataImportFacadeInterface getFacade() * @method \Pyz\Zed\DataImport\DataImportConfig getConfig() + * @method \Spryker\Zed\DataImport\Communication\DataImportCommunicationFactory getFactory() */ class ProductStockPropelWriterPlugin extends AbstractPlugin implements DataSetWriterPluginInterface { @@ -22,7 +23,7 @@ class ProductStockPropelWriterPlugin extends AbstractPlugin implements DataSetWr * * @return void */ - public function write(DataSetInterface $dataSet) + public function write(DataSetInterface $dataSet): void { $this->getFacade()->writeProductStockDataSet($dataSet); } @@ -30,7 +31,7 @@ public function write(DataSetInterface $dataSet) /** * @return void */ - public function flush() + public function flush(): void { $this->getFacade()->flushProductStockDataImporter(); } diff --git a/src/Pyz/Zed/DataImport/DataImportConfig.php b/src/Pyz/Zed/DataImport/DataImportConfig.php index d6a670e48f..7fa4a8947a 100644 --- a/src/Pyz/Zed/DataImport/DataImportConfig.php +++ b/src/Pyz/Zed/DataImport/DataImportConfig.php @@ -22,158 +22,197 @@ class DataImportConfig extends SprykerDataImportConfig * @var string */ public const IMPORT_TYPE_CATEGORY_TEMPLATE = 'category-template'; + /** * @var string */ public const IMPORT_TYPE_CUSTOMER = 'customer'; + /** * @var string */ public const IMPORT_TYPE_GLOSSARY = 'glossary'; + /** * @var string */ public const IMPORT_TYPE_NAVIGATION = 'navigation'; + /** * @var string */ public const IMPORT_TYPE_NAVIGATION_NODE = 'navigation-node'; + /** * @var string */ public const IMPORT_TYPE_PRODUCT_PRICE = 'product-price'; + /** * @var string */ public const IMPORT_TYPE_PRODUCT_STOCK = 'product-stock'; + /** * @var string */ public const IMPORT_TYPE_PRODUCT_ABSTRACT = 'product-abstract'; + /** * @var string */ public const IMPORT_TYPE_PRODUCT_ABSTRACT_STORE = 'product-abstract-store'; + /** * @var string */ public const IMPORT_TYPE_PRODUCT_CONCRETE = 'product-concrete'; + /** * @var string */ public const IMPORT_TYPE_PRODUCT_ATTRIBUTE_KEY = 'product-attribute-key'; + /** * @var string */ public const IMPORT_TYPE_PRODUCT_MANAGEMENT_ATTRIBUTE = 'product-management-attribute'; + /** * @var string */ public const IMPORT_TYPE_PRODUCT_REVIEW = 'product-review'; + /** * @var string */ public const IMPORT_TYPE_PRODUCT_SET = 'product-set'; + /** * @var string */ public const IMPORT_TYPE_PRODUCT_GROUP = 'product-group'; + /** * @var string */ public const IMPORT_TYPE_PRODUCT_OPTION = 'product-option'; + /** * @var string */ public const IMPORT_TYPE_PRODUCT_OPTION_PRICE = 'product-option-price'; + /** * @var string */ public const IMPORT_TYPE_PRODUCT_IMAGE = 'product-image'; + /** * @var string */ public const IMPORT_TYPE_PRODUCT_SEARCH_ATTRIBUTE_MAP = 'product-search-attribute-map'; + /** * @var string */ public const IMPORT_TYPE_PRODUCT_SEARCH_ATTRIBUTE = 'product-search-attribute'; + /** * @var string */ public const IMPORT_TYPE_CMS_TEMPLATE = 'cms-template'; + /** * @var string */ public const IMPORT_TYPE_CMS_BLOCK = 'cms-block'; + /** * @var string */ public const IMPORT_TYPE_CMS_BLOCK_STORE = 'cms-block-store'; + /** * @var string */ public const IMPORT_TYPE_DISCOUNT = 'discount'; + /** * @var string */ public const IMPORT_TYPE_DISCOUNT_STORE = 'discount-store'; + /** * @var string */ public const IMPORT_TYPE_DISCOUNT_AMOUNT = 'discount-amount'; + /** * @var string */ public const IMPORT_TYPE_DISCOUNT_VOUCHER = 'discount-voucher'; + /** * @var string */ public const IMPORT_TYPE_SHIPMENT = 'shipment'; + /** * @var string */ public const IMPORT_TYPE_SHIPMENT_PRICE = 'shipment-price'; + /** * @var string */ public const IMPORT_TYPE_TAX = 'tax'; + /** * @var string */ public const IMPORT_TYPE_CURRENCY = 'currency'; + /** * @var string */ public const IMPORT_TYPE_STORE = 'store'; + /** * @var string */ public const IMPORT_TYPE_COMBINED_PRODUCT_ABSTRACT = 'combined-product-abstract'; + /** * @var string */ public const IMPORT_TYPE_COMBINED_PRODUCT_ABSTRACT_STORE = 'combined-product-abstract-store'; + /** * @var string */ public const IMPORT_TYPE_COMBINED_PRODUCT_CONCRETE = 'combined-product-concrete'; + /** * @var string */ public const IMPORT_TYPE_COMBINED_PRODUCT_IMAGE = 'combined-product-image'; + /** * @var string */ public const IMPORT_TYPE_COMBINED_PRODUCT_PRICE = 'combined-product-price'; + /** * @var string */ public const IMPORT_TYPE_COMBINED_PRODUCT_STOCK = 'combined-product-stock'; + /** * @var string */ public const IMPORT_TYPE_COMBINED_PRODUCT_GROUP = 'combined-product-group'; + /** * @var string */ @@ -188,7 +227,7 @@ public function getDefaultYamlConfigPath(): ?string } /** - * @return string[] + * @return array */ public function getFullImportTypes(): array { diff --git a/src/Pyz/Zed/DataImport/DataImportDependencyProvider.php b/src/Pyz/Zed/DataImport/DataImportDependencyProvider.php index b12e470565..8c37e95da7 100644 --- a/src/Pyz/Zed/DataImport/DataImportDependencyProvider.php +++ b/src/Pyz/Zed/DataImport/DataImportDependencyProvider.php @@ -111,38 +111,47 @@ class DataImportDependencyProvider extends SprykerDataImportDependencyProvider * @var string */ public const FACADE_AVAILABILITY = 'availability facade'; + /** * @var string */ public const FACADE_CATEGORY = 'category facade'; + /** * @var string */ public const FACADE_PRODUCT_BUNDLE = 'product bundle facade'; + /** * @var string */ public const FACADE_PRODUCT_RELATION = 'product relation facade'; + /** * @var string */ public const FACADE_PRODUCT_SEARCH = 'product search facade'; + /** * @var string */ public const FACADE_CURRENCY = 'FACADE_CURRENCY'; + /** * @var string */ public const FACADE_PRICE_PRODUCT = 'FACADE_PRICE_PRODUCT'; + /** * @var string */ public const FACADE_STOCK = 'FACADE_STOCK'; + /** * @var string */ public const FACADE_STORE = 'FACADE_STORE'; + /** * @var string */ diff --git a/src/Pyz/Zed/Development/Communication/Console/AcceptanceCodeTestConsole.php b/src/Pyz/Zed/Development/Communication/Console/AcceptanceCodeTestConsole.php index f9079df8ee..21651789fd 100644 --- a/src/Pyz/Zed/Development/Communication/Console/AcceptanceCodeTestConsole.php +++ b/src/Pyz/Zed/Development/Communication/Console/AcceptanceCodeTestConsole.php @@ -9,6 +9,10 @@ use Spryker\Zed\Development\Communication\Console\CodeTestConsole; +/** + * @method \Spryker\Zed\Development\Business\DevelopmentFacadeInterface getFacade() + * @method \Spryker\Zed\Development\Communication\DevelopmentCommunicationFactory getFactory() + */ class AcceptanceCodeTestConsole extends CodeTestConsole { /** diff --git a/src/Pyz/Zed/Development/Communication/Console/ApiCodeTestConsole.php b/src/Pyz/Zed/Development/Communication/Console/ApiCodeTestConsole.php index cfac74a90e..a40b153ab2 100644 --- a/src/Pyz/Zed/Development/Communication/Console/ApiCodeTestConsole.php +++ b/src/Pyz/Zed/Development/Communication/Console/ApiCodeTestConsole.php @@ -9,6 +9,10 @@ use Spryker\Zed\Development\Communication\Console\CodeTestConsole; +/** + * @method \Spryker\Zed\Development\Business\DevelopmentFacadeInterface getFacade() + * @method \Spryker\Zed\Development\Communication\DevelopmentCommunicationFactory getFactory() + */ class ApiCodeTestConsole extends CodeTestConsole { /** diff --git a/src/Pyz/Zed/Development/Communication/Console/FunctionalCodeTestConsole.php b/src/Pyz/Zed/Development/Communication/Console/FunctionalCodeTestConsole.php index a216dc4839..435ecb4b83 100644 --- a/src/Pyz/Zed/Development/Communication/Console/FunctionalCodeTestConsole.php +++ b/src/Pyz/Zed/Development/Communication/Console/FunctionalCodeTestConsole.php @@ -9,6 +9,10 @@ use Spryker\Zed\Development\Communication\Console\CodeTestConsole; +/** + * @method \Spryker\Zed\Development\Business\DevelopmentFacadeInterface getFacade() + * @method \Spryker\Zed\Development\Communication\DevelopmentCommunicationFactory getFactory() + */ class FunctionalCodeTestConsole extends CodeTestConsole { /** diff --git a/src/Pyz/Zed/Development/DevelopmentConfig.php b/src/Pyz/Zed/Development/DevelopmentConfig.php index e989d82740..e59ec56193 100644 --- a/src/Pyz/Zed/Development/DevelopmentConfig.php +++ b/src/Pyz/Zed/Development/DevelopmentConfig.php @@ -14,10 +14,8 @@ class DevelopmentConfig extends SprykerDevelopmentConfig /** * @return string */ - public function getCodingStandard() + public function getCodingStandard(): string { - $rootDir = APPLICATION_ROOT_DIR . DIRECTORY_SEPARATOR; - - return $rootDir . 'config/ruleset.xml'; + return APPLICATION_ROOT_DIR . DIRECTORY_SEPARATOR . 'phpcs.xml'; } } diff --git a/src/Pyz/Zed/DocumentationGeneratorRestApi/DocumentationGeneratorRestApiDependencyProvider.php b/src/Pyz/Zed/DocumentationGeneratorRestApi/DocumentationGeneratorRestApiDependencyProvider.php index 9d8b7639f4..b5f0bae2d7 100644 --- a/src/Pyz/Zed/DocumentationGeneratorRestApi/DocumentationGeneratorRestApiDependencyProvider.php +++ b/src/Pyz/Zed/DocumentationGeneratorRestApi/DocumentationGeneratorRestApiDependencyProvider.php @@ -14,7 +14,7 @@ class DocumentationGeneratorRestApiDependencyProvider extends SprykerDocumentationGeneratorRestApiDependencyProvider { /** - * @return \Spryker\Glue\DocumentationGeneratorRestApiExtension\Dependency\Plugin\ResourceRoutePluginsProviderPluginInterface[] + * @return array<\Spryker\Glue\DocumentationGeneratorRestApiExtension\Dependency\Plugin\ResourceRoutePluginsProviderPluginInterface> */ protected function getResourceRoutePluginProviderPlugins(): array { @@ -24,7 +24,7 @@ protected function getResourceRoutePluginProviderPlugins(): array } /** - * @return \Spryker\Glue\DocumentationGeneratorRestApiExtension\Dependency\Plugin\ResourceRelationshipCollectionProviderPluginInterface[] + * @return array<\Spryker\Glue\DocumentationGeneratorRestApiExtension\Dependency\Plugin\ResourceRelationshipCollectionProviderPluginInterface> */ protected function getResourceRelationshipCollectionProviderPlugins(): array { diff --git a/src/Pyz/Zed/ErrorHandler/ErrorHandlerDependencyProvider.php b/src/Pyz/Zed/ErrorHandler/ErrorHandlerDependencyProvider.php index fa03e87fd7..ff4e55cd2f 100644 --- a/src/Pyz/Zed/ErrorHandler/ErrorHandlerDependencyProvider.php +++ b/src/Pyz/Zed/ErrorHandler/ErrorHandlerDependencyProvider.php @@ -13,7 +13,7 @@ class ErrorHandlerDependencyProvider extends SprykerErrorHandlerDependencyProvider { /** - * @return \Spryker\Zed\ErrorHandlerExtension\Dependency\Plugin\ExceptionHandlerStrategyPluginInterface[] + * @return array<\Spryker\Zed\ErrorHandlerExtension\Dependency\Plugin\ExceptionHandlerStrategyPluginInterface> */ protected function getExceptionHandlerStrategyPlugins(): array { diff --git a/src/Pyz/Zed/Event/EventDependencyProvider.php b/src/Pyz/Zed/Event/EventDependencyProvider.php index 7fa613d95d..33cf2cba36 100644 --- a/src/Pyz/Zed/Event/EventDependencyProvider.php +++ b/src/Pyz/Zed/Event/EventDependencyProvider.php @@ -24,6 +24,7 @@ use Spryker\Zed\ConfigurableBundleStorage\Communication\Plugin\Event\Subscriber\ConfigurableBundleTemplateImageStorageEventSubscriber; use Spryker\Zed\ContentStorage\Communication\Plugin\Event\Subscriber\ContentStorageEventSubscriber; use Spryker\Zed\CustomerAccessStorage\Communication\Plugin\Event\Subscriber\CustomerAccessStorageEventSubscriber; +use Spryker\Zed\Event\Dependency\EventSubscriberCollectionInterface; use Spryker\Zed\Event\EventDependencyProvider as SprykerEventDependencyProvider; use Spryker\Zed\FileManagerStorage\Communication\Plugin\Event\Subscriber\FileManagerStorageSubscriber; use Spryker\Zed\MerchantProductOfferSearch\Communication\Plugin\Event\Subscriber\MerchantProductOfferSearchEventSubscriber; @@ -66,7 +67,7 @@ class EventDependencyProvider extends SprykerEventDependencyProvider /** * @return \Spryker\Zed\Event\Dependency\EventSubscriberCollectionInterface */ - public function getEventSubscriberCollection() + public function getEventSubscriberCollection(): EventSubscriberCollectionInterface { $eventSubscriberCollection = parent::getEventSubscriberCollection(); diff --git a/src/Pyz/Zed/EventBehavior/EventBehaviorDependencyProvider.php b/src/Pyz/Zed/EventBehavior/EventBehaviorDependencyProvider.php index 2c2d3d85d8..4acc2691f9 100644 --- a/src/Pyz/Zed/EventBehavior/EventBehaviorDependencyProvider.php +++ b/src/Pyz/Zed/EventBehavior/EventBehaviorDependencyProvider.php @@ -50,9 +50,9 @@ class EventBehaviorDependencyProvider extends SprykerEventBehaviorDependencyProvider { /** - * @return \Spryker\Zed\EventBehavior\Dependency\Plugin\EventResourcePluginInterface[] + * @return array<\Spryker\Zed\EventBehavior\Dependency\Plugin\EventResourcePluginInterface> */ - protected function getEventTriggerResourcePlugins() + protected function getEventTriggerResourcePlugins(): array { return [ new CmsPageEventResourceQueryContainerPlugin(), diff --git a/src/Pyz/Zed/EventDispatcher/EventDispatcherDependencyProvider.php b/src/Pyz/Zed/EventDispatcher/EventDispatcherDependencyProvider.php index 228e858f3d..0140795f9d 100644 --- a/src/Pyz/Zed/EventDispatcher/EventDispatcherDependencyProvider.php +++ b/src/Pyz/Zed/EventDispatcher/EventDispatcherDependencyProvider.php @@ -33,7 +33,7 @@ class EventDispatcherDependencyProvider extends SprykerEventDispatcherDependencyProvider { /** - * @return \Spryker\Shared\EventDispatcherExtension\Dependency\Plugin\EventDispatcherPluginInterface[] + * @return array<\Spryker\Shared\EventDispatcherExtension\Dependency\Plugin\EventDispatcherPluginInterface> */ protected function getEventDispatcherPlugins(): array { @@ -61,7 +61,7 @@ protected function getEventDispatcherPlugins(): array } /** - * @return \Spryker\Shared\EventDispatcherExtension\Dependency\Plugin\EventDispatcherPluginInterface[] + * @return array<\Spryker\Shared\EventDispatcherExtension\Dependency\Plugin\EventDispatcherPluginInterface> */ protected function getBackendGatewayEventDispatcherPlugins(): array { @@ -76,7 +76,7 @@ protected function getBackendGatewayEventDispatcherPlugins(): array } /** - * @return \Spryker\Shared\EventDispatcherExtension\Dependency\Plugin\EventDispatcherPluginInterface[] + * @return array<\Spryker\Shared\EventDispatcherExtension\Dependency\Plugin\EventDispatcherPluginInterface> */ protected function getBackendApiEventDispatcherPlugins(): array { diff --git a/src/Pyz/Zed/ExampleProductSalePage/Business/ExampleProductSalePageBusinessFactory.php b/src/Pyz/Zed/ExampleProductSalePage/Business/ExampleProductSalePageBusinessFactory.php index 1337a38eee..6257c70447 100644 --- a/src/Pyz/Zed/ExampleProductSalePage/Business/ExampleProductSalePageBusinessFactory.php +++ b/src/Pyz/Zed/ExampleProductSalePage/Business/ExampleProductSalePageBusinessFactory.php @@ -12,7 +12,7 @@ use Spryker\Zed\Kernel\Business\AbstractBusinessFactory; /** - * @method \Pyz\Zed\ExampleProductSalePage\Persistence\ExampleProductSalePageQueryContainer getQueryContainer() + * @method \Pyz\Zed\ExampleProductSalePage\Persistence\ExampleProductSalePageQueryContainerInterface getQueryContainer() * @method \Pyz\Zed\ExampleProductSalePage\ExampleProductSalePageConfig getConfig() */ class ExampleProductSalePageBusinessFactory extends AbstractBusinessFactory diff --git a/src/Pyz/Zed/ExampleProductSalePage/Business/ExampleProductSalePageFacade.php b/src/Pyz/Zed/ExampleProductSalePage/Business/ExampleProductSalePageFacade.php index 27a0b8156c..0aae226a10 100644 --- a/src/Pyz/Zed/ExampleProductSalePage/Business/ExampleProductSalePageFacade.php +++ b/src/Pyz/Zed/ExampleProductSalePage/Business/ExampleProductSalePageFacade.php @@ -15,7 +15,7 @@ class ExampleProductSalePageFacade extends SprykerProductFacade implements ExampleProductSalePageFacadeInterface { /** - * @return \Generated\Shared\Transfer\ProductLabelProductAbstractRelationsTransfer[] + * @return array<\Generated\Shared\Transfer\ProductLabelProductAbstractRelationsTransfer> */ public function findPyzProductLabelProductAbstractRelationChanges(): array { diff --git a/src/Pyz/Zed/ExampleProductSalePage/Business/ExampleProductSalePageFacadeInterface.php b/src/Pyz/Zed/ExampleProductSalePage/Business/ExampleProductSalePageFacadeInterface.php index 9b7002c31a..141ce7960c 100644 --- a/src/Pyz/Zed/ExampleProductSalePage/Business/ExampleProductSalePageFacadeInterface.php +++ b/src/Pyz/Zed/ExampleProductSalePage/Business/ExampleProductSalePageFacadeInterface.php @@ -10,7 +10,7 @@ interface ExampleProductSalePageFacadeInterface { /** - * @return \Generated\Shared\Transfer\ProductLabelProductAbstractRelationsTransfer[] + * @return array<\Generated\Shared\Transfer\ProductLabelProductAbstractRelationsTransfer> */ public function findPyzProductLabelProductAbstractRelationChanges(): array; } diff --git a/src/Pyz/Zed/ExampleProductSalePage/Business/Label/ProductAbstractRelationReader.php b/src/Pyz/Zed/ExampleProductSalePage/Business/Label/ProductAbstractRelationReader.php index 3ac8f7fdd7..40aa6233e4 100644 --- a/src/Pyz/Zed/ExampleProductSalePage/Business/Label/ProductAbstractRelationReader.php +++ b/src/Pyz/Zed/ExampleProductSalePage/Business/Label/ProductAbstractRelationReader.php @@ -31,14 +31,14 @@ class ProductAbstractRelationReader implements ProductAbstractRelationReaderInte */ public function __construct( ExampleProductSalePageQueryContainerInterface $productSaleQueryContainer, - ExampleProductSalePageConfig $productSaleConfig + ExampleProductSalePageConfig $productSaleConfig, ) { $this->productSaleQueryContainer = $productSaleQueryContainer; $this->productSaleConfig = $productSaleConfig; } /** - * @return \Generated\Shared\Transfer\ProductLabelProductAbstractRelationsTransfer[] + * @return array<\Generated\Shared\Transfer\ProductLabelProductAbstractRelationsTransfer> */ public function findProductLabelProductAbstractRelationChanges(): array { @@ -67,7 +67,7 @@ public function findProductLabelProductAbstractRelationChanges(): array * * @return \Orm\Zed\ProductLabel\Persistence\SpyProductLabel */ - protected function getProductLabelNewEntity() + protected function getProductLabelNewEntity(): SpyProductLabel { $labelNewName = $this->productSaleConfig->getPyzLabelSaleName(); $productLabelNewEntity = $this->productSaleQueryContainer @@ -77,7 +77,7 @@ protected function getProductLabelNewEntity() if (!$productLabelNewEntity) { throw new ProductLabelSaleNotFoundException(sprintf( 'Product Label "%1$s" doesn\'t exists. You can fix this problem by persisting a new Product Label entity into your database with "%1$s" name.', - $labelNewName + $labelNewName, )); } @@ -89,7 +89,7 @@ protected function getProductLabelNewEntity() * * @return array */ - protected function findRelationsBecomingInactive(SpyProductLabel $productLabelEntity) + protected function findRelationsBecomingInactive(SpyProductLabel $productLabelEntity): array { $relations = []; @@ -109,7 +109,7 @@ protected function findRelationsBecomingInactive(SpyProductLabel $productLabelEn * * @return array */ - protected function findRelationsBecomingActive(SpyProductLabel $productLabelEntity) + protected function findRelationsBecomingActive(SpyProductLabel $productLabelEntity): array { $relations = []; @@ -131,8 +131,11 @@ protected function findRelationsBecomingActive(SpyProductLabel $productLabelEnti * * @return \Generated\Shared\Transfer\ProductLabelProductAbstractRelationsTransfer */ - protected function mapRelationTransfer($idProductLabel, array $relationsToAssign, array $relationsToDeAssign) - { + protected function mapRelationTransfer( + $idProductLabel, + array $relationsToAssign, + array $relationsToDeAssign, + ): ProductLabelProductAbstractRelationsTransfer { $productLabelProductAbstractRelationsTransfer = new ProductLabelProductAbstractRelationsTransfer(); $productLabelProductAbstractRelationsTransfer->setIdProductLabel($idProductLabel); diff --git a/src/Pyz/Zed/ExampleProductSalePage/Business/Label/ProductAbstractRelationReaderInterface.php b/src/Pyz/Zed/ExampleProductSalePage/Business/Label/ProductAbstractRelationReaderInterface.php index 119ec5991b..5c46f4efe5 100644 --- a/src/Pyz/Zed/ExampleProductSalePage/Business/Label/ProductAbstractRelationReaderInterface.php +++ b/src/Pyz/Zed/ExampleProductSalePage/Business/Label/ProductAbstractRelationReaderInterface.php @@ -10,7 +10,7 @@ interface ProductAbstractRelationReaderInterface { /** - * @return \Generated\Shared\Transfer\ProductLabelProductAbstractRelationsTransfer[] + * @return array<\Generated\Shared\Transfer\ProductLabelProductAbstractRelationsTransfer> */ public function findProductLabelProductAbstractRelationChanges(): array; } diff --git a/src/Pyz/Zed/ExampleProductSalePage/Communication/Plugin/ExampleProductSalePageLabelUpdaterPlugin.php b/src/Pyz/Zed/ExampleProductSalePage/Communication/Plugin/ExampleProductSalePageLabelUpdaterPlugin.php index ffcd786b70..9f22ac217f 100644 --- a/src/Pyz/Zed/ExampleProductSalePage/Communication/Plugin/ExampleProductSalePageLabelUpdaterPlugin.php +++ b/src/Pyz/Zed/ExampleProductSalePage/Communication/Plugin/ExampleProductSalePageLabelUpdaterPlugin.php @@ -18,9 +18,9 @@ class ExampleProductSalePageLabelUpdaterPlugin extends AbstractPlugin implements ProductLabelRelationUpdaterPluginInterface { /** - * @return \Generated\Shared\Transfer\ProductLabelProductAbstractRelationsTransfer[] + * @return array<\Generated\Shared\Transfer\ProductLabelProductAbstractRelationsTransfer> */ - public function findProductLabelProductAbstractRelationChanges() + public function findProductLabelProductAbstractRelationChanges(): array { return $this->getFacade()->findPyzProductLabelProductAbstractRelationChanges(); } diff --git a/src/Pyz/Zed/ExampleProductSalePage/ExampleProductSalePageDependencyProvider.php b/src/Pyz/Zed/ExampleProductSalePage/ExampleProductSalePageDependencyProvider.php index 2e6963f0b3..a6ed746c98 100644 --- a/src/Pyz/Zed/ExampleProductSalePage/ExampleProductSalePageDependencyProvider.php +++ b/src/Pyz/Zed/ExampleProductSalePage/ExampleProductSalePageDependencyProvider.php @@ -27,7 +27,7 @@ class ExampleProductSalePageDependencyProvider extends AbstractBundleDependencyP * * @return \Spryker\Zed\Kernel\Container */ - public function providePersistenceLayerDependencies(Container $container) + public function providePersistenceLayerDependencies(Container $container): Container { $container = parent::providePersistenceLayerDependencies($container); $container = $this->addPyzProductLabelQueryContainer($container); diff --git a/src/Pyz/Zed/ExampleProductSalePage/Persistence/ExampleProductSalePagePersistenceFactory.php b/src/Pyz/Zed/ExampleProductSalePage/Persistence/ExampleProductSalePagePersistenceFactory.php index c890120462..24274e01f6 100644 --- a/src/Pyz/Zed/ExampleProductSalePage/Persistence/ExampleProductSalePagePersistenceFactory.php +++ b/src/Pyz/Zed/ExampleProductSalePage/Persistence/ExampleProductSalePagePersistenceFactory.php @@ -13,8 +13,8 @@ use Spryker\Zed\ProductLabel\Persistence\ProductLabelQueryContainerInterface; /** - * @method \Spryker\Zed\ProductNew\ProductNewConfig getConfig() - * @method \Spryker\Zed\ProductNew\Persistence\ProductNewQueryContainer getQueryContainer() + * @method \Pyz\Zed\ExampleProductSalePage\ExampleProductSalePageConfig getConfig() + * @method \Pyz\Zed\ExampleProductSalePage\Persistence\ExampleProductSalePageQueryContainerInterface getQueryContainer() */ class ExampleProductSalePagePersistenceFactory extends AbstractPersistenceFactory { diff --git a/src/Pyz/Zed/ExampleProductSalePage/Persistence/ExampleProductSalePageQueryContainer.php b/src/Pyz/Zed/ExampleProductSalePage/Persistence/ExampleProductSalePageQueryContainer.php index eac46048f9..bb82fbdaf4 100644 --- a/src/Pyz/Zed/ExampleProductSalePage/Persistence/ExampleProductSalePageQueryContainer.php +++ b/src/Pyz/Zed/ExampleProductSalePage/Persistence/ExampleProductSalePageQueryContainer.php @@ -63,7 +63,7 @@ public function queryPyzRelationsBecomingInactive($idProductLabel): SpyProductLa ->addJoinCondition( 'priceTypeOrigin', 'priceTypeOrigin.name = ?', - static::PYZ_PRICE_TYPE_ORIGINAL + static::PYZ_PRICE_TYPE_ORIGINAL, ) ->usePriceProductStoreQuery('priceProductStoreOrigin', Criteria::LEFT_JOIN) ->usePriceProductDefaultQuery('priceProductDefaultOriginal', Criteria::LEFT_JOIN) @@ -75,7 +75,7 @@ public function queryPyzRelationsBecomingInactive($idProductLabel): SpyProductLa ->addJoinCondition( 'priceTypeDefault', 'priceTypeDefault.name = ?', - static::PYZ_PRICE_TYPE_DEFAULT + static::PYZ_PRICE_TYPE_DEFAULT, ) ->usePriceProductStoreQuery('priceProductStoreDefault', Criteria::LEFT_JOIN) ->usePriceProductDefaultQuery('priceProductDefaultDefault', Criteria::LEFT_JOIN) @@ -91,7 +91,7 @@ public function queryPyzRelationsBecomingInactive($idProductLabel): SpyProductLa $orCriterion = $this->getPyzBasicModelCriterion( $productLabelProductAbstractQuery, 'priceProductStoreOrigin.gross_price < priceProductStoreDefault.gross_price', - 'priceProductStoreOrigin.gross_price' + 'priceProductStoreOrigin.gross_price', ); $orCriterion->addOr($productLabelProductAbstractQuery->getNewCriterion('priceProductStoreOrigin.gross_price', null, Criteria::ISNULL)); $orCriterion->addOr($productLabelProductAbstractQuery->getNewCriterion('priceProductStoreOrigin.net_price', null, Criteria::ISNULL)); @@ -99,8 +99,8 @@ public function queryPyzRelationsBecomingInactive($idProductLabel): SpyProductLa $this->getPyzBasicModelCriterion( $productLabelProductAbstractQuery, 'priceProductStoreOrigin.net_price < priceProductStoreDefault.net_price', - 'priceProductStoreOrigin.net_price' - ) + 'priceProductStoreOrigin.net_price', + ), ); $orCriterion->addOr($productLabelProductAbstractQuery->getNewCriterion('priceProductStoreDefault.gross_price', null, Criteria::ISNULL)); $orCriterion->addOr($productLabelProductAbstractQuery->getNewCriterion('priceProductStoreDefault.net_price', null, Criteria::ISNULL)); @@ -128,7 +128,7 @@ public function queryPyzRelationsBecomingActive($idProductLabel): SpyProductAbst ->addJoinCondition( 'priceTypeOrigin', 'priceTypeOrigin.name = ?', - static::PYZ_PRICE_TYPE_ORIGINAL + static::PYZ_PRICE_TYPE_ORIGINAL, ) ->usePriceProductStoreQuery('priceProductStoreOrigin', Criteria::LEFT_JOIN) ->usePriceProductDefaultQuery('priceProductDefaultOriginal', Criteria::LEFT_JOIN) @@ -140,7 +140,7 @@ public function queryPyzRelationsBecomingActive($idProductLabel): SpyProductAbst ->addJoinCondition( 'priceTypeDefault', 'priceTypeDefault.name = ?', - static::PYZ_PRICE_TYPE_DEFAULT + static::PYZ_PRICE_TYPE_DEFAULT, ) ->usePriceProductStoreQuery('priceProductStoreDefault', Criteria::LEFT_JOIN) ->usePriceProductDefaultQuery('priceProductDefaultDefault', Criteria::LEFT_JOIN) diff --git a/src/Pyz/Zed/ExampleStateMachine/Business/ExampleStateMachineFacade.php b/src/Pyz/Zed/ExampleStateMachine/Business/ExampleStateMachineFacade.php index 695bb5ee8b..cb2bf31c16 100644 --- a/src/Pyz/Zed/ExampleStateMachine/Business/ExampleStateMachineFacade.php +++ b/src/Pyz/Zed/ExampleStateMachine/Business/ExampleStateMachineFacade.php @@ -26,9 +26,9 @@ public function updatePyzItemPyzState(StateMachineItemTransfer $stateMachineItem } /** - * @param int[] $stateIds + * @param array $stateIds * - * @return \Generated\Shared\Transfer\StateMachineItemTransfer[] + * @return array<\Generated\Shared\Transfer\StateMachineItemTransfer> */ public function getPyzExampleStateMachineItemsByStateIds(array $stateIds = []): array { @@ -36,7 +36,7 @@ public function getPyzExampleStateMachineItemsByStateIds(array $stateIds = []): } /** - * @return \Generated\Shared\Transfer\StateMachineItemTransfer[] + * @return array<\Generated\Shared\Transfer\StateMachineItemTransfer> */ public function getPyzStateMachineItems(): array { diff --git a/src/Pyz/Zed/ExampleStateMachine/Business/ExampleStateMachineFacadeInterface.php b/src/Pyz/Zed/ExampleStateMachine/Business/ExampleStateMachineFacadeInterface.php index 4ed69c1cbb..63017fae86 100644 --- a/src/Pyz/Zed/ExampleStateMachine/Business/ExampleStateMachineFacadeInterface.php +++ b/src/Pyz/Zed/ExampleStateMachine/Business/ExampleStateMachineFacadeInterface.php @@ -22,14 +22,14 @@ interface ExampleStateMachineFacadeInterface public function updatePyzItemPyzState(StateMachineItemTransfer $stateMachineItemTransfer): bool; /** - * @param int[] $stateIds + * @param array $stateIds * - * @return \Generated\Shared\Transfer\StateMachineItemTransfer[] + * @return array<\Generated\Shared\Transfer\StateMachineItemTransfer> */ public function getPyzExampleStateMachineItemsByStateIds(array $stateIds = []): array; /** - * @return \Generated\Shared\Transfer\StateMachineItemTransfer[] + * @return array<\Generated\Shared\Transfer\StateMachineItemTransfer> */ public function getPyzStateMachineItems(): array; diff --git a/src/Pyz/Zed/ExampleStateMachine/Business/Model/ExampleStateMachineItemReader.php b/src/Pyz/Zed/ExampleStateMachine/Business/Model/ExampleStateMachineItemReader.php index e97dc1b8a6..96b53987ef 100644 --- a/src/Pyz/Zed/ExampleStateMachine/Business/Model/ExampleStateMachineItemReader.php +++ b/src/Pyz/Zed/ExampleStateMachine/Business/Model/ExampleStateMachineItemReader.php @@ -26,11 +26,11 @@ public function __construct(ExampleStateMachineQueryContainerInterface $exampleS } /** - * @param int[] $stateIds + * @param array $stateIds * - * @return \Generated\Shared\Transfer\StateMachineItemTransfer[] + * @return array<\Generated\Shared\Transfer\StateMachineItemTransfer> */ - public function getStateMachineItemTransferByItemStateIds(array $stateIds = []) + public function getStateMachineItemTransferByItemStateIds(array $stateIds = []): array { $exampleStateMachineItems = $this->exampleStateMachineQueryContainer ->queryPyzStateMachineItemsByStateIds($stateIds) @@ -40,9 +40,9 @@ public function getStateMachineItemTransferByItemStateIds(array $stateIds = []) } /** - * @return \Generated\Shared\Transfer\StateMachineItemTransfer[] + * @return array<\Generated\Shared\Transfer\StateMachineItemTransfer> */ - public function getStateMachineItems() + public function getStateMachineItems(): array { $exampleStateMachineItems = $this->exampleStateMachineQueryContainer ->queryPyzAllStateMachineItems(); @@ -51,11 +51,11 @@ public function getStateMachineItems() } /** - * @param \Propel\Runtime\Collection\ObjectCollection|\Orm\Zed\ExampleStateMachine\Persistence\PyzExampleStateMachineItem[] $exampleStateMachineItems + * @param \Propel\Runtime\Collection\ObjectCollection<\Orm\Zed\ExampleStateMachine\Persistence\PyzExampleStateMachineItem> $exampleStateMachineItems * - * @return \Generated\Shared\Transfer\StateMachineItemTransfer[] + * @return array<\Generated\Shared\Transfer\StateMachineItemTransfer> */ - protected function hydrateTransferFromPersistence($exampleStateMachineItems) + protected function hydrateTransferFromPersistence($exampleStateMachineItems): array { $stateMachineItems = []; foreach ($exampleStateMachineItems as $exampleStateMachineItemEntity) { diff --git a/src/Pyz/Zed/ExampleStateMachine/Communication/Controller/TestController.php b/src/Pyz/Zed/ExampleStateMachine/Communication/Controller/TestController.php index 262cb1334b..9c77f32395 100644 --- a/src/Pyz/Zed/ExampleStateMachine/Communication/Controller/TestController.php +++ b/src/Pyz/Zed/ExampleStateMachine/Communication/Controller/TestController.php @@ -13,7 +13,7 @@ /** * @method \Pyz\Zed\ExampleStateMachine\Communication\ExampleStateMachineCommunicationFactory getFactory() - * @method \Pyz\Zed\ExampleStateMachine\Business\ExampleStateMachineFacade getFacade() + * @method \Pyz\Zed\ExampleStateMachine\Business\ExampleStateMachineFacadeInterface getFacade() * @method \Pyz\Zed\ExampleStateMachine\Persistence\ExampleStateMachineQueryContainerInterface getQueryContainer() */ class TestController extends AbstractController @@ -74,9 +74,9 @@ public function deletePyzItemAction(Request $request): RedirectResponse } /** - * @param \Generated\Shared\Transfer\StateMachineItemTransfer[] $stateMachineItems + * @param array<\Generated\Shared\Transfer\StateMachineItemTransfer> $stateMachineItems * - * @return \Generated\Shared\Transfer\StateMachineItemTransfer[] + * @return array<\Generated\Shared\Transfer\StateMachineItemTransfer> */ protected function createPyzStateMachineLookupTable(array $stateMachineItems): array { diff --git a/src/Pyz/Zed/ExampleStateMachine/Communication/ExampleStateMachineCommunicationFactory.php b/src/Pyz/Zed/ExampleStateMachine/Communication/ExampleStateMachineCommunicationFactory.php index f59cc44957..9c8225a66c 100644 --- a/src/Pyz/Zed/ExampleStateMachine/Communication/ExampleStateMachineCommunicationFactory.php +++ b/src/Pyz/Zed/ExampleStateMachine/Communication/ExampleStateMachineCommunicationFactory.php @@ -12,7 +12,7 @@ use Spryker\Zed\StateMachine\Business\StateMachineFacadeInterface; /** - * @method \Pyz\Zed\ExampleStateMachine\Persistence\ExampleStateMachineQueryContainer getQueryContainer() + * @method \Pyz\Zed\ExampleStateMachine\Persistence\ExampleStateMachineQueryContainerInterface getQueryContainer() * @method \Pyz\Zed\ExampleStateMachine\Business\ExampleStateMachineFacadeInterface getFacade() */ class ExampleStateMachineCommunicationFactory extends AbstractCommunicationFactory diff --git a/src/Pyz/Zed/ExampleStateMachine/Communication/Plugin/Command/TestCommandPlugin.php b/src/Pyz/Zed/ExampleStateMachine/Communication/Plugin/Command/TestCommandPlugin.php index 02c137cc7e..3fe3922987 100644 --- a/src/Pyz/Zed/ExampleStateMachine/Communication/Plugin/Command/TestCommandPlugin.php +++ b/src/Pyz/Zed/ExampleStateMachine/Communication/Plugin/Command/TestCommandPlugin.php @@ -12,7 +12,7 @@ use Spryker\Zed\StateMachine\Dependency\Plugin\CommandPluginInterface; /** - * @method \Pyz\Zed\ExampleStateMachine\Business\ExampleStateMachineFacade getFacade() + * @method \Pyz\Zed\ExampleStateMachine\Business\ExampleStateMachineFacadeInterface getFacade() * @method \Pyz\Zed\ExampleStateMachine\Communication\ExampleStateMachineCommunicationFactory getFactory() * @method \Pyz\Zed\ExampleStateMachine\Persistence\ExampleStateMachineQueryContainerInterface getQueryContainer() */ @@ -23,7 +23,7 @@ class TestCommandPlugin extends AbstractPlugin implements CommandPluginInterface * * @return bool */ - public function run(StateMachineItemTransfer $stateMachineItemTransfer) + public function run(StateMachineItemTransfer $stateMachineItemTransfer): bool { return true; } diff --git a/src/Pyz/Zed/ExampleStateMachine/Communication/Plugin/Condition/TestConditionPlugin.php b/src/Pyz/Zed/ExampleStateMachine/Communication/Plugin/Condition/TestConditionPlugin.php index 04b8760216..b9dc4aa0ae 100644 --- a/src/Pyz/Zed/ExampleStateMachine/Communication/Plugin/Condition/TestConditionPlugin.php +++ b/src/Pyz/Zed/ExampleStateMachine/Communication/Plugin/Condition/TestConditionPlugin.php @@ -12,7 +12,7 @@ use Spryker\Zed\StateMachine\Dependency\Plugin\ConditionPluginInterface; /** - * @method \Pyz\Zed\ExampleStateMachine\Business\ExampleStateMachineFacade getFacade() + * @method \Pyz\Zed\ExampleStateMachine\Business\ExampleStateMachineFacadeInterface getFacade() * @method \Pyz\Zed\ExampleStateMachine\Communication\ExampleStateMachineCommunicationFactory getFactory() * @method \Pyz\Zed\ExampleStateMachine\Persistence\ExampleStateMachineQueryContainerInterface getQueryContainer() */ @@ -23,7 +23,7 @@ class TestConditionPlugin extends AbstractPlugin implements ConditionPluginInter * * @return bool */ - public function check(StateMachineItemTransfer $stateMachineItemTransfer) + public function check(StateMachineItemTransfer $stateMachineItemTransfer): bool { return (bool)($stateMachineItemTransfer->getIdentifier() % 2); } diff --git a/src/Pyz/Zed/ExampleStateMachine/Communication/Plugin/TestStateMachineHandlerPlugin.php b/src/Pyz/Zed/ExampleStateMachine/Communication/Plugin/TestStateMachineHandlerPlugin.php index 81d32ff89a..8f6b0a63db 100644 --- a/src/Pyz/Zed/ExampleStateMachine/Communication/Plugin/TestStateMachineHandlerPlugin.php +++ b/src/Pyz/Zed/ExampleStateMachine/Communication/Plugin/TestStateMachineHandlerPlugin.php @@ -15,7 +15,7 @@ use Spryker\Zed\StateMachine\Dependency\Plugin\StateMachineHandlerInterface; /** - * @method \Pyz\Zed\ExampleStateMachine\Business\ExampleStateMachineFacade getFacade() + * @method \Pyz\Zed\ExampleStateMachine\Business\ExampleStateMachineFacadeInterface getFacade() * @method \Pyz\Zed\ExampleStateMachine\Communication\ExampleStateMachineCommunicationFactory getFactory() * @method \Pyz\Zed\ExampleStateMachine\Persistence\ExampleStateMachineQueryContainerInterface getQueryContainer() */ @@ -24,9 +24,9 @@ class TestStateMachineHandlerPlugin extends AbstractPlugin implements StateMachi /** * List of command plugins for this state machine for all processes. * - * @return \Spryker\Zed\StateMachine\Dependency\Plugin\CommandPluginInterface[] + * @return array<\Spryker\Zed\StateMachine\Dependency\Plugin\CommandPluginInterface> */ - public function getCommandPlugins() + public function getCommandPlugins(): array { return [ 'Test/Command' => new TestCommandPlugin(), @@ -36,9 +36,9 @@ public function getCommandPlugins() /** * List of condition plugins for this state machine for all processes. * - * @return \Spryker\Zed\StateMachine\Dependency\Plugin\ConditionPluginInterface[] + * @return array<\Spryker\Zed\StateMachine\Dependency\Plugin\ConditionPluginInterface> */ - public function getConditionPlugins() + public function getConditionPlugins(): array { return [ 'Test/Condition' => new TestConditionPlugin(), @@ -50,7 +50,7 @@ public function getConditionPlugins() * * @return string */ - public function getStateMachineName() + public function getStateMachineName(): string { return 'Test'; } @@ -58,9 +58,9 @@ public function getStateMachineName() /** * List of active processes used for this state machine * - * @return string[] + * @return array */ - public function getActiveProcesses() + public function getActiveProcesses(): array { return [ 'Invoice01', @@ -76,7 +76,7 @@ public function getActiveProcesses() * * @return string */ - public function getInitialStateForProcess($processName) + public function getInitialStateForProcess($processName): string { switch ($processName) { case 'Invoice01': @@ -86,8 +86,8 @@ public function getInitialStateForProcess($processName) throw new InvalidArgumentException( sprintf( 'Initial state not found for process "%s".', - $processName - ) + $processName, + ), ); } @@ -99,7 +99,7 @@ public function getInitialStateForProcess($processName) * * @return bool */ - public function itemStateUpdated(StateMachineItemTransfer $stateMachineItemTransfer) + public function itemStateUpdated(StateMachineItemTransfer $stateMachineItemTransfer): bool { return $this->getFacade()->updatePyzItemPyzState($stateMachineItemTransfer); } @@ -109,9 +109,9 @@ public function itemStateUpdated(StateMachineItemTransfer $stateMachineItemTrans * * @param array $stateIds * - * @return \Generated\Shared\Transfer\StateMachineItemTransfer[] + * @return array<\Generated\Shared\Transfer\StateMachineItemTransfer> */ - public function getStateMachineItemsByStateIds(array $stateIds = []) + public function getStateMachineItemsByStateIds(array $stateIds = []): array { return $this->getFacade()->getPyzExampleStateMachineItemsByStateIds($stateIds); } diff --git a/src/Pyz/Zed/ExampleStateMachine/Persistence/ExampleStateMachinePersistenceFactory.php b/src/Pyz/Zed/ExampleStateMachine/Persistence/ExampleStateMachinePersistenceFactory.php index 0acbd8d185..d2f81e8c16 100644 --- a/src/Pyz/Zed/ExampleStateMachine/Persistence/ExampleStateMachinePersistenceFactory.php +++ b/src/Pyz/Zed/ExampleStateMachine/Persistence/ExampleStateMachinePersistenceFactory.php @@ -11,7 +11,7 @@ use Spryker\Zed\Kernel\Persistence\AbstractPersistenceFactory; /** - * @method \Pyz\Zed\ExampleStateMachine\Persistence\ExampleStateMachineQueryContainer getQueryContainer() + * @method \Pyz\Zed\ExampleStateMachine\Persistence\ExampleStateMachineQueryContainerInterface getQueryContainer() */ class ExampleStateMachinePersistenceFactory extends AbstractPersistenceFactory { diff --git a/src/Pyz/Zed/ExampleStateMachine/Persistence/ExampleStateMachineQueryContainer.php b/src/Pyz/Zed/ExampleStateMachine/Persistence/ExampleStateMachineQueryContainer.php index ca5bfc27bd..a51e5b207a 100644 --- a/src/Pyz/Zed/ExampleStateMachine/Persistence/ExampleStateMachineQueryContainer.php +++ b/src/Pyz/Zed/ExampleStateMachine/Persistence/ExampleStateMachineQueryContainer.php @@ -9,6 +9,7 @@ use Orm\Zed\ExampleStateMachine\Persistence\PyzExampleStateMachineItemQuery; use Propel\Runtime\ActiveQuery\Criteria; +use Propel\Runtime\Collection\ObjectCollection; use Spryker\Zed\Kernel\Persistence\AbstractQueryContainer; /** @@ -17,7 +18,7 @@ class ExampleStateMachineQueryContainer extends AbstractQueryContainer implements ExampleStateMachineQueryContainerInterface { /** - * @param int[] $stateIds + * @param array $stateIds * * @return \Orm\Zed\ExampleStateMachine\Persistence\PyzExampleStateMachineItemQuery */ @@ -29,9 +30,9 @@ public function queryPyzStateMachineItemsByStateIds(array $stateIds = []): PyzEx } /** - * @return \Orm\Zed\ExampleStateMachine\Persistence\PyzExampleStateMachineItem[]|\Propel\Runtime\Collection\ObjectCollection + * @return \Propel\Runtime\Collection\ObjectCollection<\Orm\Zed\ExampleStateMachine\Persistence\PyzExampleStateMachineItem> */ - public function queryPyzAllStateMachineItems() + public function queryPyzAllStateMachineItems(): ObjectCollection { return $this->getFactory() ->createPyzExampleStateMachineQuery() diff --git a/src/Pyz/Zed/ExampleStateMachine/Persistence/ExampleStateMachineQueryContainerInterface.php b/src/Pyz/Zed/ExampleStateMachine/Persistence/ExampleStateMachineQueryContainerInterface.php index d480ec0f82..e64fa29d37 100644 --- a/src/Pyz/Zed/ExampleStateMachine/Persistence/ExampleStateMachineQueryContainerInterface.php +++ b/src/Pyz/Zed/ExampleStateMachine/Persistence/ExampleStateMachineQueryContainerInterface.php @@ -8,20 +8,21 @@ namespace Pyz\Zed\ExampleStateMachine\Persistence; use Orm\Zed\ExampleStateMachine\Persistence\PyzExampleStateMachineItemQuery; +use Propel\Runtime\Collection\ObjectCollection; interface ExampleStateMachineQueryContainerInterface { /** - * @param int[] $stateIds + * @param array $stateIds * * @return \Orm\Zed\ExampleStateMachine\Persistence\PyzExampleStateMachineItemQuery */ public function queryPyzStateMachineItemsByStateIds(array $stateIds = []): PyzExampleStateMachineItemQuery; /** - * @return \Orm\Zed\ExampleStateMachine\Persistence\PyzExampleStateMachineItem[]|\Propel\Runtime\Collection\ObjectCollection + * @return \Propel\Runtime\Collection\ObjectCollection<\Orm\Zed\ExampleStateMachine\Persistence\PyzExampleStateMachineItem> */ - public function queryPyzAllStateMachineItems(); + public function queryPyzAllStateMachineItems(): ObjectCollection; /** * @param int $idStateMachineItem diff --git a/src/Pyz/Zed/Form/FormDependencyProvider.php b/src/Pyz/Zed/Form/FormDependencyProvider.php index 769a534feb..db4498d00a 100644 --- a/src/Pyz/Zed/Form/FormDependencyProvider.php +++ b/src/Pyz/Zed/Form/FormDependencyProvider.php @@ -18,7 +18,7 @@ class FormDependencyProvider extends SprykerFormDependencyProvider { /** - * @return \Spryker\Shared\FormExtension\Dependency\Plugin\FormPluginInterface[] + * @return array<\Spryker\Shared\FormExtension\Dependency\Plugin\FormPluginInterface> */ protected function getFormPlugins(): array { diff --git a/src/Pyz/Zed/HealthCheck/HealthCheckDependencyProvider.php b/src/Pyz/Zed/HealthCheck/HealthCheckDependencyProvider.php index 493aea8b82..50b5a4696c 100644 --- a/src/Pyz/Zed/HealthCheck/HealthCheckDependencyProvider.php +++ b/src/Pyz/Zed/HealthCheck/HealthCheckDependencyProvider.php @@ -19,7 +19,7 @@ class HealthCheckDependencyProvider extends SprykerHealthCheckDependencyProvider { /** - * @return \Spryker\Shared\HealthCheckExtension\Dependency\Plugin\HealthCheckPluginInterface[] + * @return array<\Spryker\Shared\HealthCheckExtension\Dependency\Plugin\HealthCheckPluginInterface> */ protected function getHealthCheckPlugins(): array { diff --git a/src/Pyz/Zed/Http/HttpDependencyProvider.php b/src/Pyz/Zed/Http/HttpDependencyProvider.php index 1d5489c376..c274b5e0e7 100644 --- a/src/Pyz/Zed/Http/HttpDependencyProvider.php +++ b/src/Pyz/Zed/Http/HttpDependencyProvider.php @@ -14,7 +14,7 @@ class HttpDependencyProvider extends SprykerHttpDependencyProvider { /** - * @return \Spryker\Shared\HttpExtension\Dependency\Plugin\FragmentHandlerPluginInterface[] + * @return array<\Spryker\Shared\HttpExtension\Dependency\Plugin\FragmentHandlerPluginInterface> */ protected function getFragmentHandlerPlugins(): array { diff --git a/src/Pyz/Zed/Installer/InstallerDependencyProvider.php b/src/Pyz/Zed/Installer/InstallerDependencyProvider.php index a3d2725cc2..718a4e495a 100644 --- a/src/Pyz/Zed/Installer/InstallerDependencyProvider.php +++ b/src/Pyz/Zed/Installer/InstallerDependencyProvider.php @@ -33,9 +33,9 @@ class InstallerDependencyProvider extends SprykerInstallerDependencyProvider { /** - * @return \Spryker\Zed\Installer\Dependency\Plugin\InstallerPluginInterface[] + * @return array<\Spryker\Zed\Installer\Dependency\Plugin\InstallerPluginInterface> */ - public function getInstallerPlugins() + public function getInstallerPlugins(): array { return [ new PriceInstallerPlugin(), diff --git a/src/Pyz/Zed/Log/Communication/Plugin/FilebeatLogListenerPlugin.php b/src/Pyz/Zed/Log/Communication/Plugin/FilebeatLogListenerPlugin.php index 3b0059e08b..08b509967e 100644 --- a/src/Pyz/Zed/Log/Communication/Plugin/FilebeatLogListenerPlugin.php +++ b/src/Pyz/Zed/Log/Communication/Plugin/FilebeatLogListenerPlugin.php @@ -13,13 +13,15 @@ /** * @method \Spryker\Zed\Log\Communication\LogCommunicationFactory getFactory() + * @method \Spryker\Zed\Log\Business\LogFacadeInterface getFacade() + * @method \Spryker\Zed\Log\LogConfig getConfig() */ class FilebeatLogListenerPlugin extends AbstractPlugin implements LogListenerInterface { /** * @return void */ - public function startListener() + public function startListener(): void { $process = new Process(['sudo service filebeat start']); $process->run(); @@ -28,7 +30,7 @@ public function startListener() /** * @return void */ - public function stopListener() + public function stopListener(): void { $process = new Process(['sudo service filebeat stop']); $process->run(); diff --git a/src/Pyz/Zed/Log/LogDependencyProvider.php b/src/Pyz/Zed/Log/LogDependencyProvider.php index 5a06118415..94fb81e629 100644 --- a/src/Pyz/Zed/Log/LogDependencyProvider.php +++ b/src/Pyz/Zed/Log/LogDependencyProvider.php @@ -21,7 +21,7 @@ class LogDependencyProvider extends SprykerLogDependencyProvider { /** - * @return \Spryker\Shared\Log\Dependency\Plugin\LogHandlerPluginInterface[] + * @return array<\Spryker\Shared\Log\Dependency\Plugin\LogHandlerPluginInterface> */ protected function getLogHandlers(): array { @@ -32,7 +32,7 @@ protected function getLogHandlers(): array } /** - * @return \Spryker\Shared\Log\Dependency\Plugin\LogProcessorPluginInterface[] + * @return array<\Spryker\Shared\Log\Dependency\Plugin\LogProcessorPluginInterface> */ protected function getLogProcessors(): array { diff --git a/src/Pyz/Zed/Mail/MailDependencyProvider.php b/src/Pyz/Zed/Mail/MailDependencyProvider.php index edb83aacea..97f051971b 100644 --- a/src/Pyz/Zed/Mail/MailDependencyProvider.php +++ b/src/Pyz/Zed/Mail/MailDependencyProvider.php @@ -37,7 +37,7 @@ class MailDependencyProvider extends SprykerMailDependencyProvider * * @return \Spryker\Zed\Kernel\Container */ - public function provideBusinessLayerDependencies(Container $container) + public function provideBusinessLayerDependencies(Container $container): Container { $container = parent::provideBusinessLayerDependencies($container); diff --git a/src/Pyz/Zed/Merchant/MerchantDependencyProvider.php b/src/Pyz/Zed/Merchant/MerchantDependencyProvider.php index b49749d17b..f12c28655a 100644 --- a/src/Pyz/Zed/Merchant/MerchantDependencyProvider.php +++ b/src/Pyz/Zed/Merchant/MerchantDependencyProvider.php @@ -20,7 +20,7 @@ class MerchantDependencyProvider extends SprykerMerchantDependencyProvider { /** - * @return \Spryker\Zed\MerchantExtension\Dependency\Plugin\MerchantPostCreatePluginInterface[] + * @return array<\Spryker\Zed\MerchantExtension\Dependency\Plugin\MerchantPostCreatePluginInterface> */ protected function getMerchantPostCreatePlugins(): array { @@ -32,7 +32,7 @@ protected function getMerchantPostCreatePlugins(): array } /** - * @return \Spryker\Zed\MerchantExtension\Dependency\Plugin\MerchantPostUpdatePluginInterface[] + * @return array<\Spryker\Zed\MerchantExtension\Dependency\Plugin\MerchantPostUpdatePluginInterface> */ protected function getMerchantPostUpdatePlugins(): array { @@ -43,7 +43,7 @@ protected function getMerchantPostUpdatePlugins(): array } /** - * @return \Spryker\Zed\MerchantExtension\Dependency\Plugin\MerchantExpanderPluginInterface[] + * @return array<\Spryker\Zed\MerchantExtension\Dependency\Plugin\MerchantExpanderPluginInterface> */ protected function getMerchantExpanderPlugins(): array { diff --git a/src/Pyz/Zed/MerchantGui/MerchantGuiDependencyProvider.php b/src/Pyz/Zed/MerchantGui/MerchantGuiDependencyProvider.php index 194202ea2d..dd00268325 100644 --- a/src/Pyz/Zed/MerchantGui/MerchantGuiDependencyProvider.php +++ b/src/Pyz/Zed/MerchantGui/MerchantGuiDependencyProvider.php @@ -29,7 +29,7 @@ protected function getStoreRelationFormTypePlugin(): FormTypeInterface } /** - * @return \Spryker\Zed\MerchantGuiExtension\Dependency\Plugin\MerchantFormExpanderPluginInterface[] + * @return array<\Spryker\Zed\MerchantGuiExtension\Dependency\Plugin\MerchantFormExpanderPluginInterface> */ protected function getMerchantFormExpanderPlugins(): array { @@ -40,7 +40,7 @@ protected function getMerchantFormExpanderPlugins(): array } /** - * @return \Spryker\Zed\MerchantGuiExtension\Dependency\Plugin\MerchantFormTabExpanderPluginInterface[] + * @return array<\Spryker\Zed\MerchantGuiExtension\Dependency\Plugin\MerchantFormTabExpanderPluginInterface> */ protected function getMerchantFormTabsExpanderPlugins(): array { @@ -53,7 +53,7 @@ protected function getMerchantFormTabsExpanderPlugins(): array } /** - * @return \Spryker\Zed\MerchantGuiExtension\Dependency\Plugin\MerchantUpdateFormViewExpanderPluginInterface[] + * @return array<\Spryker\Zed\MerchantGuiExtension\Dependency\Plugin\MerchantUpdateFormViewExpanderPluginInterface> */ protected function getMerchantUpdateFormViewExpanderPlugins(): array { diff --git a/src/Pyz/Zed/MerchantOms/Communication/MerchantOmsCommunicationFactory.php b/src/Pyz/Zed/MerchantOms/Communication/MerchantOmsCommunicationFactory.php index 1951b42b9c..98ef2a0441 100644 --- a/src/Pyz/Zed/MerchantOms/Communication/MerchantOmsCommunicationFactory.php +++ b/src/Pyz/Zed/MerchantOms/Communication/MerchantOmsCommunicationFactory.php @@ -13,7 +13,7 @@ use Spryker\Zed\SalesReturn\Business\SalesReturnFacadeInterface; /** - * @method \Spryker\Zed\MerchantOms\MerchantOmsConfig getConfig() + * @method \Pyz\Zed\MerchantOms\MerchantOmsConfig getConfig() * @method \Spryker\Zed\MerchantOms\Business\MerchantOmsFacadeInterface getFacade() * @method \Spryker\Zed\MerchantOms\Persistence\MerchantOmsRepositoryInterface getRepository() */ diff --git a/src/Pyz/Zed/MerchantOms/Communication/Plugin/Oms/CancelMarketplaceOrderItemCommandPlugin.php b/src/Pyz/Zed/MerchantOms/Communication/Plugin/Oms/CancelMarketplaceOrderItemCommandPlugin.php index b067c12a7b..d6388a24d7 100644 --- a/src/Pyz/Zed/MerchantOms/Communication/Plugin/Oms/CancelMarketplaceOrderItemCommandPlugin.php +++ b/src/Pyz/Zed/MerchantOms/Communication/Plugin/Oms/CancelMarketplaceOrderItemCommandPlugin.php @@ -7,6 +7,11 @@ namespace Pyz\Zed\MerchantOms\Communication\Plugin\Oms; +/** + * @method \Spryker\Zed\MerchantOms\Business\MerchantOmsFacadeInterface getFacade() + * @method \Pyz\Zed\MerchantOms\MerchantOmsConfig getConfig() + * @method \Pyz\Zed\MerchantOms\Communication\MerchantOmsCommunicationFactory getFactory() + */ class CancelMarketplaceOrderItemCommandPlugin extends AbstractTriggerOmsEventCommandPlugin { /** diff --git a/src/Pyz/Zed/MerchantOms/Communication/Plugin/Oms/CancelReturnMarketplaceOrderItemCommandPlugin.php b/src/Pyz/Zed/MerchantOms/Communication/Plugin/Oms/CancelReturnMarketplaceOrderItemCommandPlugin.php index e6e9b37354..501a6d216b 100644 --- a/src/Pyz/Zed/MerchantOms/Communication/Plugin/Oms/CancelReturnMarketplaceOrderItemCommandPlugin.php +++ b/src/Pyz/Zed/MerchantOms/Communication/Plugin/Oms/CancelReturnMarketplaceOrderItemCommandPlugin.php @@ -7,6 +7,11 @@ namespace Pyz\Zed\MerchantOms\Communication\Plugin\Oms; +/** + * @method \Spryker\Zed\MerchantOms\Business\MerchantOmsFacadeInterface getFacade() + * @method \Pyz\Zed\MerchantOms\MerchantOmsConfig getConfig() + * @method \Pyz\Zed\MerchantOms\Communication\MerchantOmsCommunicationFactory getFactory() + */ class CancelReturnMarketplaceOrderItemCommandPlugin extends AbstractTriggerOmsEventCommandPlugin { /** diff --git a/src/Pyz/Zed/MerchantOms/Communication/Plugin/Oms/CloseMerchantOrderItemCommandPlugin.php b/src/Pyz/Zed/MerchantOms/Communication/Plugin/Oms/CloseMerchantOrderItemCommandPlugin.php index 3fc61f6666..2ea2d4b736 100644 --- a/src/Pyz/Zed/MerchantOms/Communication/Plugin/Oms/CloseMerchantOrderItemCommandPlugin.php +++ b/src/Pyz/Zed/MerchantOms/Communication/Plugin/Oms/CloseMerchantOrderItemCommandPlugin.php @@ -17,8 +17,8 @@ /** * @method \Spryker\Zed\MerchantOms\Business\MerchantOmsFacadeInterface getFacade() - * @method \Spryker\Zed\MerchantOms\Communication\MerchantOmsCommunicationFactory getFactory() - * @method \Spryker\Zed\MerchantOms\MerchantOmsConfig getConfig() + * @method \Pyz\Zed\MerchantOms\Communication\MerchantOmsCommunicationFactory getFactory() + * @method \Pyz\Zed\MerchantOms\MerchantOmsConfig getConfig() */ class CloseMerchantOrderItemCommandPlugin extends AbstractPlugin implements CommandByItemInterface { diff --git a/src/Pyz/Zed/MerchantOms/Communication/Plugin/Oms/DeliverMarketplaceOrderItemCommandPlugin.php b/src/Pyz/Zed/MerchantOms/Communication/Plugin/Oms/DeliverMarketplaceOrderItemCommandPlugin.php index e1309eb1c5..0669e4dbe3 100644 --- a/src/Pyz/Zed/MerchantOms/Communication/Plugin/Oms/DeliverMarketplaceOrderItemCommandPlugin.php +++ b/src/Pyz/Zed/MerchantOms/Communication/Plugin/Oms/DeliverMarketplaceOrderItemCommandPlugin.php @@ -7,6 +7,11 @@ namespace Pyz\Zed\MerchantOms\Communication\Plugin\Oms; +/** + * @method \Spryker\Zed\MerchantOms\Business\MerchantOmsFacadeInterface getFacade() + * @method \Pyz\Zed\MerchantOms\MerchantOmsConfig getConfig() + * @method \Pyz\Zed\MerchantOms\Communication\MerchantOmsCommunicationFactory getFactory() + */ class DeliverMarketplaceOrderItemCommandPlugin extends AbstractTriggerOmsEventCommandPlugin { /** diff --git a/src/Pyz/Zed/MerchantOms/Communication/Plugin/Oms/DeliverReturnMarketplaceOrderItemCommandPlugin.php b/src/Pyz/Zed/MerchantOms/Communication/Plugin/Oms/DeliverReturnMarketplaceOrderItemCommandPlugin.php index 67b0166465..2c770d168e 100644 --- a/src/Pyz/Zed/MerchantOms/Communication/Plugin/Oms/DeliverReturnMarketplaceOrderItemCommandPlugin.php +++ b/src/Pyz/Zed/MerchantOms/Communication/Plugin/Oms/DeliverReturnMarketplaceOrderItemCommandPlugin.php @@ -7,6 +7,11 @@ namespace Pyz\Zed\MerchantOms\Communication\Plugin\Oms; +/** + * @method \Spryker\Zed\MerchantOms\Business\MerchantOmsFacadeInterface getFacade() + * @method \Pyz\Zed\MerchantOms\MerchantOmsConfig getConfig() + * @method \Pyz\Zed\MerchantOms\Communication\MerchantOmsCommunicationFactory getFactory() + */ class DeliverReturnMarketplaceOrderItemCommandPlugin extends AbstractTriggerOmsEventCommandPlugin { /** diff --git a/src/Pyz/Zed/MerchantOms/Communication/Plugin/Oms/ExecuteReturnMarketplaceOrderItemCommandPlugin.php b/src/Pyz/Zed/MerchantOms/Communication/Plugin/Oms/ExecuteReturnMarketplaceOrderItemCommandPlugin.php index 2e4a328840..006ec8a653 100644 --- a/src/Pyz/Zed/MerchantOms/Communication/Plugin/Oms/ExecuteReturnMarketplaceOrderItemCommandPlugin.php +++ b/src/Pyz/Zed/MerchantOms/Communication/Plugin/Oms/ExecuteReturnMarketplaceOrderItemCommandPlugin.php @@ -7,6 +7,11 @@ namespace Pyz\Zed\MerchantOms\Communication\Plugin\Oms; +/** + * @method \Spryker\Zed\MerchantOms\Business\MerchantOmsFacadeInterface getFacade() + * @method \Pyz\Zed\MerchantOms\MerchantOmsConfig getConfig() + * @method \Pyz\Zed\MerchantOms\Communication\MerchantOmsCommunicationFactory getFactory() + */ class ExecuteReturnMarketplaceOrderItemCommandPlugin extends AbstractTriggerOmsEventCommandPlugin { /** diff --git a/src/Pyz/Zed/MerchantOms/Communication/Plugin/Oms/RefundMarketplaceOrderItemCommandPlugin.php b/src/Pyz/Zed/MerchantOms/Communication/Plugin/Oms/RefundMarketplaceOrderItemCommandPlugin.php index 68a716ad1a..95fbc95633 100644 --- a/src/Pyz/Zed/MerchantOms/Communication/Plugin/Oms/RefundMarketplaceOrderItemCommandPlugin.php +++ b/src/Pyz/Zed/MerchantOms/Communication/Plugin/Oms/RefundMarketplaceOrderItemCommandPlugin.php @@ -7,6 +7,11 @@ namespace Pyz\Zed\MerchantOms\Communication\Plugin\Oms; +/** + * @method \Spryker\Zed\MerchantOms\Business\MerchantOmsFacadeInterface getFacade() + * @method \Pyz\Zed\MerchantOms\MerchantOmsConfig getConfig() + * @method \Pyz\Zed\MerchantOms\Communication\MerchantOmsCommunicationFactory getFactory() + */ class RefundMarketplaceOrderItemCommandPlugin extends AbstractTriggerOmsEventCommandPlugin { /** diff --git a/src/Pyz/Zed/MerchantOms/Communication/Plugin/Oms/ReturnMerchantOrderItemCommandPlugin.php b/src/Pyz/Zed/MerchantOms/Communication/Plugin/Oms/ReturnMerchantOrderItemCommandPlugin.php index 3841821c82..7dcae49213 100644 --- a/src/Pyz/Zed/MerchantOms/Communication/Plugin/Oms/ReturnMerchantOrderItemCommandPlugin.php +++ b/src/Pyz/Zed/MerchantOms/Communication/Plugin/Oms/ReturnMerchantOrderItemCommandPlugin.php @@ -19,7 +19,7 @@ /** * @method \Pyz\Zed\MerchantOms\Communication\MerchantOmsCommunicationFactory getFactory() * @method \Pyz\Zed\MerchantOms\MerchantOmsConfig getConfig() - * @method \Spryker\Zed\MerchantOms\Business\MerchantOmsFacade getFacade()() + * @method \Spryker\Zed\MerchantOms\Business\MerchantOmsFacadeInterface getFacade() */ class ReturnMerchantOrderItemCommandPlugin extends AbstractPlugin implements CommandByItemInterface { diff --git a/src/Pyz/Zed/MerchantOms/Communication/Plugin/Oms/ShipByMerchantMarketplaceOrderItemCommandPlugin.php b/src/Pyz/Zed/MerchantOms/Communication/Plugin/Oms/ShipByMerchantMarketplaceOrderItemCommandPlugin.php index d673de2990..39c5565a50 100644 --- a/src/Pyz/Zed/MerchantOms/Communication/Plugin/Oms/ShipByMerchantMarketplaceOrderItemCommandPlugin.php +++ b/src/Pyz/Zed/MerchantOms/Communication/Plugin/Oms/ShipByMerchantMarketplaceOrderItemCommandPlugin.php @@ -7,6 +7,11 @@ namespace Pyz\Zed\MerchantOms\Communication\Plugin\Oms; +/** + * @method \Spryker\Zed\MerchantOms\Business\MerchantOmsFacadeInterface getFacade() + * @method \Pyz\Zed\MerchantOms\MerchantOmsConfig getConfig() + * @method \Pyz\Zed\MerchantOms\Communication\MerchantOmsCommunicationFactory getFactory() + */ class ShipByMerchantMarketplaceOrderItemCommandPlugin extends AbstractTriggerOmsEventCommandPlugin { /** diff --git a/src/Pyz/Zed/MerchantOms/Communication/Plugin/Oms/ShipReturnMarketplaceOrderItemCommandPlugin.php b/src/Pyz/Zed/MerchantOms/Communication/Plugin/Oms/ShipReturnMarketplaceOrderItemCommandPlugin.php index a6970b40d5..ef6773efe8 100644 --- a/src/Pyz/Zed/MerchantOms/Communication/Plugin/Oms/ShipReturnMarketplaceOrderItemCommandPlugin.php +++ b/src/Pyz/Zed/MerchantOms/Communication/Plugin/Oms/ShipReturnMarketplaceOrderItemCommandPlugin.php @@ -7,6 +7,11 @@ namespace Pyz\Zed\MerchantOms\Communication\Plugin\Oms; +/** + * @method \Spryker\Zed\MerchantOms\Business\MerchantOmsFacadeInterface getFacade() + * @method \Pyz\Zed\MerchantOms\MerchantOmsConfig getConfig() + * @method \Pyz\Zed\MerchantOms\Communication\MerchantOmsCommunicationFactory getFactory() + */ class ShipReturnMarketplaceOrderItemCommandPlugin extends AbstractTriggerOmsEventCommandPlugin { /** diff --git a/src/Pyz/Zed/MerchantOms/MerchantOmsConfig.php b/src/Pyz/Zed/MerchantOms/MerchantOmsConfig.php index de47554649..ef8d089ab7 100644 --- a/src/Pyz/Zed/MerchantOms/MerchantOmsConfig.php +++ b/src/Pyz/Zed/MerchantOms/MerchantOmsConfig.php @@ -22,7 +22,7 @@ class MerchantOmsConfig extends SprykerMerchantOmsConfig protected const PYZ_MAIN_MERCHANT_STATE_MACHINE_INITIAL_STATE = 'created'; /** - * @return string[] + * @return array */ public function getMerchantProcessInitialStateMap(): array { @@ -30,14 +30,14 @@ public function getMerchantProcessInitialStateMap(): array parent::getMerchantProcessInitialStateMap(), [ static::PYZ_MAIN_MERCHANT_OMS_PROCESS_NAME => static::PYZ_MAIN_MERCHANT_STATE_MACHINE_INITIAL_STATE, - ] + ], ); } /** * @api * - * @return string[] + * @return array */ public function getMerchantOmsProcesses(): array { @@ -45,7 +45,7 @@ public function getMerchantOmsProcesses(): array parent::getMerchantOmsProcesses(), [ static::PYZ_MAIN_MERCHANT_OMS_PROCESS_NAME, - ] + ], ); } } diff --git a/src/Pyz/Zed/MerchantPortalApplication/Communication/MerchantPortalApplicationCommunicationFactory.php b/src/Pyz/Zed/MerchantPortalApplication/Communication/MerchantPortalApplicationCommunicationFactory.php index bed0749d1c..8b0fdfec35 100644 --- a/src/Pyz/Zed/MerchantPortalApplication/Communication/MerchantPortalApplicationCommunicationFactory.php +++ b/src/Pyz/Zed/MerchantPortalApplication/Communication/MerchantPortalApplicationCommunicationFactory.php @@ -9,6 +9,9 @@ use Spryker\Zed\MerchantPortalApplication\Communication\MerchantPortalApplicationCommunicationFactory as SprykerMerchantPortalApplicationCommunicationFactory; +/** + * @method \Spryker\Zed\MerchantPortalApplication\MerchantPortalApplicationConfig getConfig() + */ class MerchantPortalApplicationCommunicationFactory extends SprykerMerchantPortalApplicationCommunicationFactory { } diff --git a/src/Pyz/Zed/MerchantProductOfferDataImport/Business/MerchantProductOfferDataImportBusinessFactory.php b/src/Pyz/Zed/MerchantProductOfferDataImport/Business/MerchantProductOfferDataImportBusinessFactory.php index d20ca18723..beb2241aa7 100644 --- a/src/Pyz/Zed/MerchantProductOfferDataImport/Business/MerchantProductOfferDataImportBusinessFactory.php +++ b/src/Pyz/Zed/MerchantProductOfferDataImport/Business/MerchantProductOfferDataImportBusinessFactory.php @@ -34,7 +34,7 @@ class MerchantProductOfferDataImportBusinessFactory extends SprykerMerchantProdu public function getPyzCombinedMerchantProductOfferDataImporter(): DataImporterInterface { $dataImporter = $this->getPyzConditionalCsvDataImporterFromConfig( - $this->getConfig()->getPyzCombinedMerchantProductOfferDataImporterConfiguration() + $this->getConfig()->getPyzCombinedMerchantProductOfferDataImporterConfiguration(), ); $dataSetStepBroker = $this->createTransactionAwareDataSetStepBroker(); @@ -58,7 +58,7 @@ public function getPyzCombinedMerchantProductOfferDataImporter(): DataImporterIn public function getPyzCombinedMerchantProductOfferStoreDataImporter(): DataImporterInterface { $dataImporter = $this->getPyzConditionalCsvDataImporterFromConfig( - $this->getConfig()->getPyzCombinedMerchantProductOfferStoreDataImporterConfiguration() + $this->getConfig()->getPyzCombinedMerchantProductOfferStoreDataImporterConfiguration(), ); $dataSetStepBroker = $this->createTransactionAwareDataSetStepBroker(); @@ -80,7 +80,7 @@ public function getPyzCombinedMerchantProductOfferStoreDataImporter(): DataImpor * @return \Pyz\Zed\DataImport\Business\Model\DataImporterConditional */ public function getPyzConditionalCsvDataImporterFromConfig( - DataImporterConfigurationTransfer $dataImporterConfigurationTransfer + DataImporterConfigurationTransfer $dataImporterConfigurationTransfer, ): DataImporterConditional { $csvReader = $this->createCsvReaderFromConfig($dataImporterConfigurationTransfer->getReaderConfiguration()); @@ -95,7 +95,7 @@ public function getPyzConditionalCsvDataImporterFromConfig( */ public function createPyzDataImporterConditional( string $importType, - DataReaderInterface $reader + DataReaderInterface $reader, ): DataImporterConditional { return new DataImporterConditional($importType, $reader, $this->getGracefulRunnerFacade()); } diff --git a/src/Pyz/Zed/MerchantProductOfferDataImport/Business/MerchantProductOfferDataImportFacade.php b/src/Pyz/Zed/MerchantProductOfferDataImport/Business/MerchantProductOfferDataImportFacade.php index a68b3c2355..48ae16492f 100644 --- a/src/Pyz/Zed/MerchantProductOfferDataImport/Business/MerchantProductOfferDataImportFacade.php +++ b/src/Pyz/Zed/MerchantProductOfferDataImport/Business/MerchantProductOfferDataImportFacade.php @@ -22,7 +22,7 @@ class MerchantProductOfferDataImportFacade extends SprykerMerchantProductOfferDa * @return \Generated\Shared\Transfer\DataImporterReportTransfer */ public function importPyzCombinedMerchantProductOfferData( - ?DataImporterConfigurationTransfer $dataImporterConfigurationTransfer = null + ?DataImporterConfigurationTransfer $dataImporterConfigurationTransfer = null, ): DataImporterReportTransfer { return $this->getFactory() ->getPyzCombinedMerchantProductOfferDataImporter() @@ -35,7 +35,7 @@ public function importPyzCombinedMerchantProductOfferData( * @return \Generated\Shared\Transfer\DataImporterReportTransfer */ public function importPyzCombinedMerchantProductOfferStoreData( - ?DataImporterConfigurationTransfer $dataImporterConfigurationTransfer = null + ?DataImporterConfigurationTransfer $dataImporterConfigurationTransfer = null, ): DataImporterReportTransfer { return $this->getFactory() ->getPyzCombinedMerchantProductOfferStoreDataImporter() diff --git a/src/Pyz/Zed/MerchantProductOfferDataImport/Business/MerchantProductOfferDataImportFacadeInterface.php b/src/Pyz/Zed/MerchantProductOfferDataImport/Business/MerchantProductOfferDataImportFacadeInterface.php index 22087b569f..4b02edc0cc 100644 --- a/src/Pyz/Zed/MerchantProductOfferDataImport/Business/MerchantProductOfferDataImportFacadeInterface.php +++ b/src/Pyz/Zed/MerchantProductOfferDataImport/Business/MerchantProductOfferDataImportFacadeInterface.php @@ -19,7 +19,7 @@ interface MerchantProductOfferDataImportFacadeInterface extends SprykerMerchantP * @return \Generated\Shared\Transfer\DataImporterReportTransfer */ public function importPyzCombinedMerchantProductOfferData( - ?DataImporterConfigurationTransfer $dataImporterConfigurationTransfer = null + ?DataImporterConfigurationTransfer $dataImporterConfigurationTransfer = null, ): DataImporterReportTransfer; /** @@ -28,6 +28,6 @@ public function importPyzCombinedMerchantProductOfferData( * @return \Generated\Shared\Transfer\DataImporterReportTransfer */ public function importPyzCombinedMerchantProductOfferStoreData( - ?DataImporterConfigurationTransfer $dataImporterConfigurationTransfer = null + ?DataImporterConfigurationTransfer $dataImporterConfigurationTransfer = null, ): DataImporterReportTransfer; } diff --git a/src/Pyz/Zed/MerchantProductOfferDataImport/MerchantProductOfferDataImportConfig.php b/src/Pyz/Zed/MerchantProductOfferDataImport/MerchantProductOfferDataImportConfig.php index 4bc8c47b60..bd0808e408 100644 --- a/src/Pyz/Zed/MerchantProductOfferDataImport/MerchantProductOfferDataImportConfig.php +++ b/src/Pyz/Zed/MerchantProductOfferDataImport/MerchantProductOfferDataImportConfig.php @@ -29,7 +29,7 @@ public function getPyzCombinedMerchantProductOfferDataImporterConfiguration(): D { return $this->buildImporterConfiguration( $this->getPyzCombinedMerchantProductOfferFilePath(), - static::PYZ_IMPORT_TYPE_COMBINED_MERCHANT_PRODUCT_OFFER + static::PYZ_IMPORT_TYPE_COMBINED_MERCHANT_PRODUCT_OFFER, ); } @@ -40,7 +40,7 @@ public function getPyzCombinedMerchantProductOfferStoreDataImporterConfiguration { return $this->buildImporterConfiguration( $this->getPyzCombinedMerchantProductOfferFilePath(), - static::PYZ_IMPORT_TYPE_COMBINED_MERCHANT_PRODUCT_OFFER_STORE + static::PYZ_IMPORT_TYPE_COMBINED_MERCHANT_PRODUCT_OFFER_STORE, ); } diff --git a/src/Pyz/Zed/MerchantRelationship/MerchantRelationshipDependencyProvider.php b/src/Pyz/Zed/MerchantRelationship/MerchantRelationshipDependencyProvider.php index 3d29ee658d..948701edb7 100644 --- a/src/Pyz/Zed/MerchantRelationship/MerchantRelationshipDependencyProvider.php +++ b/src/Pyz/Zed/MerchantRelationship/MerchantRelationshipDependencyProvider.php @@ -16,7 +16,7 @@ class MerchantRelationshipDependencyProvider extends SprykerMerchantRelationshipDependencyProvider { /** - * @return \Spryker\Zed\MerchantRelationshipExtension\Dependency\Plugin\MerchantRelationshipPreDeletePluginInterface[] + * @return array<\Spryker\Zed\MerchantRelationshipExtension\Dependency\Plugin\MerchantRelationshipPreDeletePluginInterface> */ protected function getMerchantRelationshipPreDeletePlugins(): array { @@ -27,7 +27,7 @@ protected function getMerchantRelationshipPreDeletePlugins(): array } /** - * @return \Spryker\Zed\MerchantRelationshipExtension\Dependency\Plugin\MerchantRelationshipPostCreatePluginInterface[] + * @return array<\Spryker\Zed\MerchantRelationshipExtension\Dependency\Plugin\MerchantRelationshipPostCreatePluginInterface> */ protected function getMerchantRelationshipPostCreatePlugins(): array { @@ -37,7 +37,7 @@ protected function getMerchantRelationshipPostCreatePlugins(): array } /** - * @return \Spryker\Zed\MerchantRelationshipExtension\Dependency\Plugin\MerchantRelationshipPostUpdatePluginInterface[] + * @return array<\Spryker\Zed\MerchantRelationshipExtension\Dependency\Plugin\MerchantRelationshipPostUpdatePluginInterface> */ protected function getMerchantRelationshipPostUpdatePlugins(): array { diff --git a/src/Pyz/Zed/MerchantRelationshipGui/MerchantRelationshipGuiDependencyProvider.php b/src/Pyz/Zed/MerchantRelationshipGui/MerchantRelationshipGuiDependencyProvider.php index c3743dd521..1840f6943a 100644 --- a/src/Pyz/Zed/MerchantRelationshipGui/MerchantRelationshipGuiDependencyProvider.php +++ b/src/Pyz/Zed/MerchantRelationshipGui/MerchantRelationshipGuiDependencyProvider.php @@ -14,7 +14,7 @@ class MerchantRelationshipGuiDependencyProvider extends SprykerMerchantRelationshipGuiDependencyProvider { /** - * @return \Spryker\Zed\MerchantRelationshipGuiExtension\Dependency\Plugin\MerchantRelationshipCreateFormExpanderPluginInterface[] + * @return array<\Spryker\Zed\MerchantRelationshipGuiExtension\Dependency\Plugin\MerchantRelationshipCreateFormExpanderPluginInterface> */ protected function getMerchantRelationshipCreateFormExpanderPlugins(): array { @@ -24,7 +24,7 @@ protected function getMerchantRelationshipCreateFormExpanderPlugins(): array } /** - * @return \Spryker\Zed\MerchantRelationshipGuiExtension\Dependency\Plugin\MerchantRelationshipEditFormExpanderPluginInterface[] + * @return array<\Spryker\Zed\MerchantRelationshipGuiExtension\Dependency\Plugin\MerchantRelationshipEditFormExpanderPluginInterface> */ protected function getMerchantRelationshipEditFormExpanderPlugins(): array { diff --git a/src/Pyz/Zed/MerchantRelationshipSalesOrderThresholdGui/MerchantRelationshipSalesOrderThresholdGuiDependencyProvider.php b/src/Pyz/Zed/MerchantRelationshipSalesOrderThresholdGui/MerchantRelationshipSalesOrderThresholdGuiDependencyProvider.php index 01e608307e..b4ef47a8a1 100644 --- a/src/Pyz/Zed/MerchantRelationshipSalesOrderThresholdGui/MerchantRelationshipSalesOrderThresholdGuiDependencyProvider.php +++ b/src/Pyz/Zed/MerchantRelationshipSalesOrderThresholdGui/MerchantRelationshipSalesOrderThresholdGuiDependencyProvider.php @@ -17,7 +17,7 @@ class MerchantRelationshipSalesOrderThresholdGuiDependencyProvider extends SprykerMerchantRelationshipSalesOrderThresholdGuiDependencyProvider { /** - * @return \Spryker\Zed\MerchantRelationshipSalesOrderThresholdGuiExtension\Dependency\Plugin\SalesOrderThresholdFormExpanderPluginInterface[] + * @return array<\Spryker\Zed\MerchantRelationshipSalesOrderThresholdGuiExtension\Dependency\Plugin\SalesOrderThresholdFormExpanderPluginInterface> */ protected function getSalesOrderThresholdFormExpanderPlugins(): array { diff --git a/src/Pyz/Zed/MerchantSalesOrder/Communication/MerchantSalesOrderCommunicationFactory.php b/src/Pyz/Zed/MerchantSalesOrder/Communication/MerchantSalesOrderCommunicationFactory.php index 32dafd5925..f8e870ff40 100644 --- a/src/Pyz/Zed/MerchantSalesOrder/Communication/MerchantSalesOrderCommunicationFactory.php +++ b/src/Pyz/Zed/MerchantSalesOrder/Communication/MerchantSalesOrderCommunicationFactory.php @@ -11,6 +11,12 @@ use Spryker\Zed\Kernel\Communication\AbstractCommunicationFactory; use Spryker\Zed\MerchantSalesOrder\Dependency\Facade\MerchantSalesOrderToSalesFacadeInterface; +/** + * @method \Spryker\Zed\MerchantSalesOrder\Persistence\MerchantSalesOrderEntityManagerInterface getEntityManager() + * @method \Spryker\Zed\MerchantSalesOrder\Business\MerchantSalesOrderFacadeInterface getFacade() + * @method \Spryker\Zed\MerchantSalesOrder\MerchantSalesOrderConfig getConfig() + * @method \Spryker\Zed\MerchantSalesOrder\Persistence\MerchantSalesOrderRepositoryInterface getRepository() + */ class MerchantSalesOrderCommunicationFactory extends AbstractCommunicationFactory { /** diff --git a/src/Pyz/Zed/MerchantSalesOrder/Communication/Plugin/Oms/Condition/IsOrderPaidConditionPlugin.php b/src/Pyz/Zed/MerchantSalesOrder/Communication/Plugin/Oms/Condition/IsOrderPaidConditionPlugin.php index b15615052e..ec9491fc9b 100644 --- a/src/Pyz/Zed/MerchantSalesOrder/Communication/Plugin/Oms/Condition/IsOrderPaidConditionPlugin.php +++ b/src/Pyz/Zed/MerchantSalesOrder/Communication/Plugin/Oms/Condition/IsOrderPaidConditionPlugin.php @@ -14,6 +14,7 @@ /** * @method \Pyz\Zed\MerchantSalesOrder\Communication\MerchantSalesOrderCommunicationFactory getFactory() * @method \Spryker\Zed\MerchantSalesOrder\Business\MerchantSalesOrderFacadeInterface getFacade() + * @method \Spryker\Zed\MerchantSalesOrder\MerchantSalesOrderConfig getConfig() */ class IsOrderPaidConditionPlugin extends AbstractPlugin implements ConditionInterface { diff --git a/src/Pyz/Zed/MerchantSalesOrder/Communication/Plugin/Oms/CreateMerchantOrdersCommandPlugin.php b/src/Pyz/Zed/MerchantSalesOrder/Communication/Plugin/Oms/CreateMerchantOrdersCommandPlugin.php index c2580c433d..c7697abfef 100644 --- a/src/Pyz/Zed/MerchantSalesOrder/Communication/Plugin/Oms/CreateMerchantOrdersCommandPlugin.php +++ b/src/Pyz/Zed/MerchantSalesOrder/Communication/Plugin/Oms/CreateMerchantOrdersCommandPlugin.php @@ -15,7 +15,8 @@ /** * @method \Pyz\Zed\MerchantSalesOrder\Communication\MerchantSalesOrderCommunicationFactory getFactory() - * @method \Spryker\Zed\MerchantSalesOrder\Business\MerchantSalesOrderFacade getFacade() + * @method \Spryker\Zed\MerchantSalesOrder\Business\MerchantSalesOrderFacadeInterface getFacade() + * @method \Spryker\Zed\MerchantSalesOrder\MerchantSalesOrderConfig getConfig() */ class CreateMerchantOrdersCommandPlugin extends AbstractPlugin implements CommandByOrderInterface { diff --git a/src/Pyz/Zed/MerchantSalesOrder/MerchantSalesOrderDependencyProvider.php b/src/Pyz/Zed/MerchantSalesOrder/MerchantSalesOrderDependencyProvider.php index 7df0d2d091..d81da51b81 100644 --- a/src/Pyz/Zed/MerchantSalesOrder/MerchantSalesOrderDependencyProvider.php +++ b/src/Pyz/Zed/MerchantSalesOrder/MerchantSalesOrderDependencyProvider.php @@ -30,7 +30,7 @@ public function provideCommunicationLayerDependencies(Container $container): Con } /** - * @return \Spryker\Zed\MerchantSalesOrderExtension\Dependency\Plugin\MerchantOrderPostCreatePluginInterface[] + * @return array<\Spryker\Zed\MerchantSalesOrderExtension\Dependency\Plugin\MerchantOrderPostCreatePluginInterface> */ protected function getMerchantOrderPostCreatePlugins(): array { @@ -40,7 +40,7 @@ protected function getMerchantOrderPostCreatePlugins(): array } /** - * @return \Spryker\Zed\MerchantSalesOrderExtension\Dependency\Plugin\MerchantOrderExpanderPluginInterface[] + * @return array<\Spryker\Zed\MerchantSalesOrderExtension\Dependency\Plugin\MerchantOrderExpanderPluginInterface> */ protected function getMerchantOrderExpanderPlugins(): array { diff --git a/src/Pyz/Zed/MerchantSearch/MerchantSearchDependencyProvider.php b/src/Pyz/Zed/MerchantSearch/MerchantSearchDependencyProvider.php index 29d6b32c5b..ecd954fb5b 100644 --- a/src/Pyz/Zed/MerchantSearch/MerchantSearchDependencyProvider.php +++ b/src/Pyz/Zed/MerchantSearch/MerchantSearchDependencyProvider.php @@ -13,7 +13,7 @@ class MerchantSearchDependencyProvider extends SprykerMerchantSearchDependencyProvider { /** - * @return \Spryker\Zed\MerchantSearchExtension\Dependency\Plugin\MerchantSearchDataExpanderPluginInterface[] + * @return array<\Spryker\Zed\MerchantSearchExtension\Dependency\Plugin\MerchantSearchDataExpanderPluginInterface> */ protected function getMerchantSearchDataExpanderPlugins(): array { diff --git a/src/Pyz/Zed/MerchantUser/MerchantUserDependencyProvider.php b/src/Pyz/Zed/MerchantUser/MerchantUserDependencyProvider.php index 534d314245..1eb864bfa0 100644 --- a/src/Pyz/Zed/MerchantUser/MerchantUserDependencyProvider.php +++ b/src/Pyz/Zed/MerchantUser/MerchantUserDependencyProvider.php @@ -14,7 +14,7 @@ class MerchantUserDependencyProvider extends SprykerMerchantUserDependencyProvider { /** - * @return \Spryker\Zed\MerchantUserExtension\Dependency\Plugin\MerchantUserPostCreatePluginInterface[] + * @return array<\Spryker\Zed\MerchantUserExtension\Dependency\Plugin\MerchantUserPostCreatePluginInterface> */ protected function getMerchantUserPostCreatePlugins(): array { diff --git a/src/Pyz/Zed/Messenger/MessengerDependencyProvider.php b/src/Pyz/Zed/Messenger/MessengerDependencyProvider.php index 501a181b6c..1bd1be1648 100644 --- a/src/Pyz/Zed/Messenger/MessengerDependencyProvider.php +++ b/src/Pyz/Zed/Messenger/MessengerDependencyProvider.php @@ -14,7 +14,7 @@ class MessengerDependencyProvider extends SprykerMessengerDependencyProvider { /** - * @return \Spryker\Zed\MessengerExtension\Dependency\Plugin\TranslationPluginInterface[] + * @return array<\Spryker\Zed\MessengerExtension\Dependency\Plugin\TranslationPluginInterface> */ protected function getTranslationPlugins(): array { diff --git a/src/Pyz/Zed/Newsletter/NewsletterConfig.php b/src/Pyz/Zed/Newsletter/NewsletterConfig.php index 4066ddd1a3..68cf864381 100644 --- a/src/Pyz/Zed/Newsletter/NewsletterConfig.php +++ b/src/Pyz/Zed/Newsletter/NewsletterConfig.php @@ -13,9 +13,9 @@ class NewsletterConfig extends SprykerNewsletterConfig { /** - * @return string[] + * @return array */ - public function getNewsletterTypes() + public function getNewsletterTypes(): array { return [ NewsletterConstants::DEFAULT_NEWSLETTER_TYPE, diff --git a/src/Pyz/Zed/Oauth/OauthDependencyProvider.php b/src/Pyz/Zed/Oauth/OauthDependencyProvider.php index 71e515c748..67138b3878 100644 --- a/src/Pyz/Zed/Oauth/OauthDependencyProvider.php +++ b/src/Pyz/Zed/Oauth/OauthDependencyProvider.php @@ -32,7 +32,7 @@ class OauthDependencyProvider extends SprykerOauthDependencyProvider { /** - * @return \Spryker\Zed\OauthExtension\Dependency\Plugin\OauthUserProviderPluginInterface[] + * @return array<\Spryker\Zed\OauthExtension\Dependency\Plugin\OauthUserProviderPluginInterface> */ protected function getUserProviderPlugins(): array { @@ -45,7 +45,7 @@ protected function getUserProviderPlugins(): array } /** - * @return \Spryker\Zed\OauthExtension\Dependency\Plugin\OauthScopeProviderPluginInterface[] + * @return array<\Spryker\Zed\OauthExtension\Dependency\Plugin\OauthScopeProviderPluginInterface> */ protected function getScopeProviderPlugins(): array { @@ -58,7 +58,7 @@ protected function getScopeProviderPlugins(): array } /** - * @return \Spryker\Zed\OauthExtension\Dependency\Plugin\OauthGrantTypeConfigurationProviderPluginInterface[] + * @return array<\Spryker\Zed\OauthExtension\Dependency\Plugin\OauthGrantTypeConfigurationProviderPluginInterface> */ protected function getGrantTypeConfigurationProviderPlugins(): array { @@ -71,7 +71,7 @@ protected function getGrantTypeConfigurationProviderPlugins(): array } /** - * @return \Spryker\Zed\OauthExtension\Dependency\Plugin\OauthUserIdentifierFilterPluginInterface[] + * @return array<\Spryker\Zed\OauthExtension\Dependency\Plugin\OauthUserIdentifierFilterPluginInterface> */ protected function getOauthUserIdentifierFilterPlugins(): array { @@ -81,7 +81,7 @@ protected function getOauthUserIdentifierFilterPlugins(): array } /** - * @return \Spryker\Zed\OauthExtension\Dependency\Plugin\OauthRefreshTokenRevokerPluginInterface[] + * @return array<\Spryker\Zed\OauthExtension\Dependency\Plugin\OauthRefreshTokenRevokerPluginInterface> */ protected function getOauthRefreshTokenRevokerPlugins(): array { @@ -91,7 +91,7 @@ protected function getOauthRefreshTokenRevokerPlugins(): array } /** - * @return \Spryker\Zed\OauthExtension\Dependency\Plugin\OauthRefreshTokensRevokerPluginInterface[] + * @return array<\Spryker\Zed\OauthExtension\Dependency\Plugin\OauthRefreshTokensRevokerPluginInterface> */ protected function getOauthRefreshTokensRevokerPlugins(): array { @@ -101,7 +101,7 @@ protected function getOauthRefreshTokensRevokerPlugins(): array } /** - * @return \Spryker\Zed\OauthExtension\Dependency\Plugin\OauthRefreshTokenPersistencePluginInterface[] + * @return array<\Spryker\Zed\OauthExtension\Dependency\Plugin\OauthRefreshTokenPersistencePluginInterface> */ protected function getOauthRefreshTokenPersistencePlugins(): array { @@ -111,7 +111,7 @@ protected function getOauthRefreshTokenPersistencePlugins(): array } /** - * @return \Spryker\Zed\OauthExtension\Dependency\Plugin\OauthRefreshTokenCheckerPluginInterface[] + * @return array<\Spryker\Zed\OauthExtension\Dependency\Plugin\OauthRefreshTokenCheckerPluginInterface> */ protected function getOauthRefreshTokenCheckerPlugins(): array { @@ -121,7 +121,7 @@ protected function getOauthRefreshTokenCheckerPlugins(): array } /** - * @return \Spryker\Zed\OauthExtension\Dependency\Plugin\OauthExpiredRefreshTokenRemoverPluginInterface[] + * @return array<\Spryker\Zed\OauthExtension\Dependency\Plugin\OauthExpiredRefreshTokenRemoverPluginInterface> */ protected function getOauthExpiredRefreshTokenRemoverPlugins(): array { @@ -131,7 +131,7 @@ protected function getOauthExpiredRefreshTokenRemoverPlugins(): array } /** - * @return \Spryker\Zed\OauthExtension\Dependency\Plugin\OauthRefreshTokenReaderPluginInterface[] + * @return array<\Spryker\Zed\OauthExtension\Dependency\Plugin\OauthRefreshTokenReaderPluginInterface> */ protected function getOauthRefreshTokenReaderPlugins(): array { @@ -141,7 +141,7 @@ protected function getOauthRefreshTokenReaderPlugins(): array } /** - * @return \Spryker\Zed\OauthExtension\Dependency\Plugin\OauthRefreshTokensReaderPluginInterface[] + * @return array<\Spryker\Zed\OauthExtension\Dependency\Plugin\OauthRefreshTokensReaderPluginInterface> */ protected function getOauthRefreshTokensReaderPlugins(): array { diff --git a/src/Pyz/Zed/OauthCompanyUser/OauthCompanyUserDependencyProvider.php b/src/Pyz/Zed/OauthCompanyUser/OauthCompanyUserDependencyProvider.php index baeffc628f..797dd92b9c 100644 --- a/src/Pyz/Zed/OauthCompanyUser/OauthCompanyUserDependencyProvider.php +++ b/src/Pyz/Zed/OauthCompanyUser/OauthCompanyUserDependencyProvider.php @@ -13,7 +13,7 @@ class OauthCompanyUserDependencyProvider extends SprykerOauthCompanyUserDependencyProvider { /** - * @return \Spryker\Zed\OauthCompanyUserExtension\Dependency\Plugin\OauthCompanyUserIdentifierExpanderPluginInterface[] + * @return array<\Spryker\Zed\OauthCompanyUserExtension\Dependency\Plugin\OauthCompanyUserIdentifierExpanderPluginInterface> */ protected function getOauthCompanyUserIdentifierExpanderPlugins(): array { diff --git a/src/Pyz/Zed/OauthCustomerConnector/OauthCustomerConnectorDependencyProvider.php b/src/Pyz/Zed/OauthCustomerConnector/OauthCustomerConnectorDependencyProvider.php index b50234d2ce..0c3a49ea5a 100644 --- a/src/Pyz/Zed/OauthCustomerConnector/OauthCustomerConnectorDependencyProvider.php +++ b/src/Pyz/Zed/OauthCustomerConnector/OauthCustomerConnectorDependencyProvider.php @@ -17,7 +17,7 @@ class OauthCustomerConnectorDependencyProvider extends SprykerOauthCustomerConnectorDependencyProvider { /** - * @return \Spryker\Zed\OauthCustomerConnectorExtension\Dependency\Plugin\OauthCustomerIdentifierExpanderPluginInterface[] + * @return array<\Spryker\Zed\OauthCustomerConnectorExtension\Dependency\Plugin\OauthCustomerIdentifierExpanderPluginInterface> */ protected function getOauthCustomerIdentifierExpanderPlugins(): array { diff --git a/src/Pyz/Zed/OauthPermission/OauthPermissionConfig.php b/src/Pyz/Zed/OauthPermission/OauthPermissionConfig.php index 35ed25102c..b425da7b5b 100644 --- a/src/Pyz/Zed/OauthPermission/OauthPermissionConfig.php +++ b/src/Pyz/Zed/OauthPermission/OauthPermissionConfig.php @@ -13,7 +13,7 @@ class OauthPermissionConfig extends SprykerOauthPermissionConfig { /** - * @return string[] + * @return array */ public function getOauthUserIdentifierFilterKeys(): array { diff --git a/src/Pyz/Zed/OauthRevoke/OauthRevokeDependencyProvider.php b/src/Pyz/Zed/OauthRevoke/OauthRevokeDependencyProvider.php index 76a0b133e3..bff7d270a9 100644 --- a/src/Pyz/Zed/OauthRevoke/OauthRevokeDependencyProvider.php +++ b/src/Pyz/Zed/OauthRevoke/OauthRevokeDependencyProvider.php @@ -13,7 +13,7 @@ class OauthRevokeDependencyProvider extends SprykerRevokeOauthDependencyProvider { /** - * @return \Spryker\Zed\OauthRevokeExtension\Dependency\Plugin\OauthUserIdentifierFilterPluginInterface[] + * @return array<\Spryker\Zed\OauthRevokeExtension\Dependency\Plugin\OauthUserIdentifierFilterPluginInterface> */ protected function getOauthUserIdentifierFilterPlugins(): array { diff --git a/src/Pyz/Zed/Oms/Business/OmsBusinessFactory.php b/src/Pyz/Zed/Oms/Business/OmsBusinessFactory.php index 6bd31c3f2a..f678e0414e 100644 --- a/src/Pyz/Zed/Oms/Business/OmsBusinessFactory.php +++ b/src/Pyz/Zed/Oms/Business/OmsBusinessFactory.php @@ -11,6 +11,12 @@ use Pyz\Zed\Oms\Business\Calculator\TimeoutProcessorTimeoutCalculatorInterface; use Spryker\Zed\Oms\Business\OmsBusinessFactory as SprykerOmsBusinessFactory; +/** + * @method \Spryker\Zed\Oms\Persistence\OmsQueryContainerInterface getQueryContainer() + * @method \Spryker\Zed\Oms\Persistence\OmsEntityManagerInterface getEntityManager() + * @method \Pyz\Zed\Oms\OmsConfig getConfig() + * @method \Spryker\Zed\Oms\Persistence\OmsRepositoryInterface getRepository() + */ class OmsBusinessFactory extends SprykerOmsBusinessFactory { /** diff --git a/src/Pyz/Zed/Oms/Business/OmsFacade.php b/src/Pyz/Zed/Oms/Business/OmsFacade.php index 075746df14..c1f3858abe 100644 --- a/src/Pyz/Zed/Oms/Business/OmsFacade.php +++ b/src/Pyz/Zed/Oms/Business/OmsFacade.php @@ -13,6 +13,8 @@ /** * @method \Pyz\Zed\Oms\Business\OmsBusinessFactory getFactory() + * @method \Spryker\Zed\Oms\Persistence\OmsEntityManagerInterface getEntityManager() + * @method \Spryker\Zed\Oms\Persistence\OmsRepositoryInterface getRepository() */ class OmsFacade extends SprykerOmsFacade implements OmsFacadeInterface { @@ -26,7 +28,7 @@ class OmsFacade extends SprykerOmsFacade implements OmsFacadeInterface * @return \Generated\Shared\Transfer\TimeoutProcessorTimeoutResponseTransfer */ public function calculatePyzInitiationTimeout( - TimeoutProcessorTimeoutRequestTransfer $timeoutProcessorTimeoutRequestTransfer + TimeoutProcessorTimeoutRequestTransfer $timeoutProcessorTimeoutRequestTransfer, ): TimeoutProcessorTimeoutResponseTransfer { return $this->getFactory()->createPyzInitiationTimeoutCalculator()->calculateTimeout($timeoutProcessorTimeoutRequestTransfer); } diff --git a/src/Pyz/Zed/Oms/Business/OmsFacadeInterface.php b/src/Pyz/Zed/Oms/Business/OmsFacadeInterface.php index ffee4031fd..69ba16607a 100644 --- a/src/Pyz/Zed/Oms/Business/OmsFacadeInterface.php +++ b/src/Pyz/Zed/Oms/Business/OmsFacadeInterface.php @@ -26,6 +26,6 @@ interface OmsFacadeInterface extends SprykerOmsFacadeInterface * @return \Generated\Shared\Transfer\TimeoutProcessorTimeoutResponseTransfer */ public function calculatePyzInitiationTimeout( - TimeoutProcessorTimeoutRequestTransfer $timeoutProcessorTimeoutRequestTransfer + TimeoutProcessorTimeoutRequestTransfer $timeoutProcessorTimeoutRequestTransfer, ): TimeoutProcessorTimeoutResponseTransfer; } diff --git a/src/Pyz/Zed/Oms/Communication/OmsCommunicationFactory.php b/src/Pyz/Zed/Oms/Communication/OmsCommunicationFactory.php index e172da8162..aa9c78e64a 100644 --- a/src/Pyz/Zed/Oms/Communication/OmsCommunicationFactory.php +++ b/src/Pyz/Zed/Oms/Communication/OmsCommunicationFactory.php @@ -13,6 +13,10 @@ /** * @method \Pyz\Zed\Oms\Business\OmsFacadeInterface getFacade() + * @method \Spryker\Zed\Oms\Persistence\OmsQueryContainerInterface getQueryContainer() + * @method \Spryker\Zed\Oms\Persistence\OmsEntityManagerInterface getEntityManager() + * @method \Pyz\Zed\Oms\OmsConfig getConfig() + * @method \Spryker\Zed\Oms\Persistence\OmsRepositoryInterface getRepository() */ class OmsCommunicationFactory extends SprykerOmsCommunicationFactory { diff --git a/src/Pyz/Zed/Oms/Communication/Plugin/Oms/InitiationTimeoutProcessorPlugin.php b/src/Pyz/Zed/Oms/Communication/Plugin/Oms/InitiationTimeoutProcessorPlugin.php index 21cf1f4793..6dcfedd7a6 100644 --- a/src/Pyz/Zed/Oms/Communication/Plugin/Oms/InitiationTimeoutProcessorPlugin.php +++ b/src/Pyz/Zed/Oms/Communication/Plugin/Oms/InitiationTimeoutProcessorPlugin.php @@ -17,6 +17,7 @@ * @method \Pyz\Zed\Oms\Business\OmsFacadeInterface getFacade() * @method \Pyz\Zed\Oms\Communication\OmsCommunicationFactory getFactory() * @method \Pyz\Zed\Oms\OmsConfig getConfig() + * @method \Spryker\Zed\Oms\Persistence\OmsQueryContainerInterface getQueryContainer() */ class InitiationTimeoutProcessorPlugin extends AbstractPlugin implements TimeoutProcessorPluginInterface { @@ -45,7 +46,7 @@ public function getLabel(OmsEventTransfer $omsEventTransfer): string { return sprintf( $this->getFactory()->getPyzTranslatorFacade()->trans('Starts when defined timeout (%s) is over.'), - $omsEventTransfer->getTimeout() + $omsEventTransfer->getTimeout(), ); } diff --git a/src/Pyz/Zed/Oms/OmsDependencyProvider.php b/src/Pyz/Zed/Oms/OmsDependencyProvider.php index f5ac050bde..6e504477e3 100644 --- a/src/Pyz/Zed/Oms/OmsDependencyProvider.php +++ b/src/Pyz/Zed/Oms/OmsDependencyProvider.php @@ -75,7 +75,7 @@ protected function extendConditionPlugins(Container $container): Container } /** - * @return \Spryker\Zed\OmsExtension\Dependency\Plugin\ReservationPostSaveTerminationAwareStrategyPluginInterface[] + * @return array<\Spryker\Zed\OmsExtension\Dependency\Plugin\ReservationPostSaveTerminationAwareStrategyPluginInterface> */ protected function getReservationPostSaveTerminationAwareStrategyPlugins(): array { @@ -90,7 +90,7 @@ protected function getReservationPostSaveTerminationAwareStrategyPlugins(): arra /** * @param \Spryker\Zed\Kernel\Container $container * - * @return \Spryker\Zed\OmsExtension\Dependency\Plugin\OmsOrderMailExpanderPluginInterface[] + * @return array<\Spryker\Zed\OmsExtension\Dependency\Plugin\OmsOrderMailExpanderPluginInterface> */ protected function getOmsOrderMailExpanderPlugins(Container $container): array { @@ -102,7 +102,7 @@ protected function getOmsOrderMailExpanderPlugins(Container $container): array /** * @param \Spryker\Zed\Kernel\Container $container * - * @return \Spryker\Zed\OmsExtension\Dependency\Plugin\OmsManualEventGrouperPluginInterface[] + * @return array<\Spryker\Zed\OmsExtension\Dependency\Plugin\OmsManualEventGrouperPluginInterface> */ protected function getOmsManualEventGrouperPlugins(Container $container): array { @@ -112,7 +112,7 @@ protected function getOmsManualEventGrouperPlugins(Container $container): array } /** - * @return \Spryker\Zed\OmsExtension\Dependency\Plugin\OmsReservationAggregationPluginInterface[] + * @return array<\Spryker\Zed\OmsExtension\Dependency\Plugin\OmsReservationAggregationPluginInterface> */ protected function getOmsReservationAggregationPlugins(): array { @@ -151,7 +151,7 @@ protected function addPyzTranslatorFacade(Container $container): Container } /** - * @return \Spryker\Zed\OmsExtension\Dependency\Plugin\TimeoutProcessorPluginInterface[] + * @return array<\Spryker\Zed\OmsExtension\Dependency\Plugin\TimeoutProcessorPluginInterface> */ protected function getTimeoutProcessorPlugins(): array { @@ -161,7 +161,7 @@ protected function getTimeoutProcessorPlugins(): array } /** - * @return \Spryker\Zed\OmsExtension\Dependency\Plugin\OmsReservationWriterStrategyPluginInterface[] + * @return array<\Spryker\Zed\OmsExtension\Dependency\Plugin\OmsReservationWriterStrategyPluginInterface> */ protected function getOmsReservationWriterStrategyPlugins(): array { @@ -171,7 +171,7 @@ protected function getOmsReservationWriterStrategyPlugins(): array } /** - * @return \Spryker\Zed\OmsExtension\Dependency\Plugin\OmsReservationReaderStrategyPluginInterface[] + * @return array<\Spryker\Zed\OmsExtension\Dependency\Plugin\OmsReservationReaderStrategyPluginInterface> */ protected function getOmsReservationReaderStrategyPlugins(): array { diff --git a/src/Pyz/Zed/Payment/PaymentDependencyProvider.php b/src/Pyz/Zed/Payment/PaymentDependencyProvider.php index ec76500afd..75b678bc07 100644 --- a/src/Pyz/Zed/Payment/PaymentDependencyProvider.php +++ b/src/Pyz/Zed/Payment/PaymentDependencyProvider.php @@ -14,7 +14,7 @@ class PaymentDependencyProvider extends SprykerPaymentDependencyProvider { /** - * @return \Spryker\Zed\PaymentExtension\Dependency\Plugin\PaymentMethodFilterPluginInterface[] + * @return array<\Spryker\Zed\PaymentExtension\Dependency\Plugin\PaymentMethodFilterPluginInterface> */ protected function getPaymentMethodFilterPlugins(): array { diff --git a/src/Pyz/Zed/Permission/PermissionDependencyProvider.php b/src/Pyz/Zed/Permission/PermissionDependencyProvider.php index 5b4fc1d30e..6ad0ee63a8 100644 --- a/src/Pyz/Zed/Permission/PermissionDependencyProvider.php +++ b/src/Pyz/Zed/Permission/PermissionDependencyProvider.php @@ -31,7 +31,7 @@ class PermissionDependencyProvider extends SprykerPermissionDependencyProvider { /** - * @return \Spryker\Zed\PermissionExtension\Dependency\Plugin\PermissionStoragePluginInterface[] + * @return array<\Spryker\Zed\PermissionExtension\Dependency\Plugin\PermissionStoragePluginInterface> */ protected function getPermissionStoragePlugins(): array { @@ -43,7 +43,7 @@ protected function getPermissionStoragePlugins(): array } /** - * @return \Spryker\Shared\PermissionExtension\Dependency\Plugin\PermissionPluginInterface[] + * @return array<\Spryker\Shared\PermissionExtension\Dependency\Plugin\PermissionPluginInterface> */ protected function getPermissionPlugins(): array { diff --git a/src/Pyz/Zed/PersistentCart/PersistentCartDependencyProvider.php b/src/Pyz/Zed/PersistentCart/PersistentCartDependencyProvider.php index 930e4dc475..21a1db4411 100644 --- a/src/Pyz/Zed/PersistentCart/PersistentCartDependencyProvider.php +++ b/src/Pyz/Zed/PersistentCart/PersistentCartDependencyProvider.php @@ -19,7 +19,7 @@ class PersistentCartDependencyProvider extends SprykerPersistentCartDependencyProvider { /** - * @return \Spryker\Zed\PersistentCartExtension\Dependency\Plugin\QuoteResponseExpanderPluginInterface[] + * @return array<\Spryker\Zed\PersistentCartExtension\Dependency\Plugin\QuoteResponseExpanderPluginInterface> */ protected function getQuoteResponseExpanderPlugins(): array { @@ -38,7 +38,7 @@ protected function getQuoteItemFinderPlugin(): QuoteItemFinderPluginInterface } /** - * @return \Spryker\Zed\PersistentCartExtension\Dependency\Plugin\CartChangeRequestExpandPluginInterface[] + * @return array<\Spryker\Zed\PersistentCartExtension\Dependency\Plugin\CartChangeRequestExpandPluginInterface> */ protected function getRemoveItemsRequestExpanderPlugins(): array { @@ -50,7 +50,7 @@ protected function getRemoveItemsRequestExpanderPlugins(): array /** * @param \Spryker\Zed\Kernel\Container $container * - * @return \Spryker\Zed\CartExtension\Dependency\Plugin\CartOperationStrategyPluginInterface[] + * @return array<\Spryker\Zed\CartExtension\Dependency\Plugin\CartOperationStrategyPluginInterface> */ protected function getCartAddItemStrategyPlugins(Container $container): array { diff --git a/src/Pyz/Zed/PriceProduct/PriceProductDependencyProvider.php b/src/Pyz/Zed/PriceProduct/PriceProductDependencyProvider.php index 1eb6869c66..b8cdb721d1 100644 --- a/src/Pyz/Zed/PriceProduct/PriceProductDependencyProvider.php +++ b/src/Pyz/Zed/PriceProduct/PriceProductDependencyProvider.php @@ -30,7 +30,7 @@ class PriceProductDependencyProvider extends SprykerPriceProductDependencyProvid /** * {@inheritDoc} * - * @return \Spryker\Zed\PriceProductExtension\Dependency\Plugin\PriceDimensionQueryCriteriaPluginInterface[] + * @return array<\Spryker\Zed\PriceProductExtension\Dependency\Plugin\PriceDimensionQueryCriteriaPluginInterface> */ protected function getPriceDimensionQueryCriteriaPlugins(): array { @@ -43,7 +43,7 @@ protected function getPriceDimensionQueryCriteriaPlugins(): array /** * {@inheritDoc} * - * @return \Spryker\Zed\PriceProductExtension\Dependency\Plugin\PriceDimensionAbstractSaverPluginInterface[] + * @return array<\Spryker\Zed\PriceProductExtension\Dependency\Plugin\PriceDimensionAbstractSaverPluginInterface> */ protected function getPriceDimensionAbstractSaverPlugins(): array { @@ -55,7 +55,7 @@ protected function getPriceDimensionAbstractSaverPlugins(): array /** * {@inheritDoc} * - * @return \Spryker\Zed\PriceProductExtension\Dependency\Plugin\PriceDimensionConcreteSaverPluginInterface[] + * @return array<\Spryker\Zed\PriceProductExtension\Dependency\Plugin\PriceDimensionConcreteSaverPluginInterface> */ protected function getPriceDimensionConcreteSaverPlugins(): array { @@ -66,7 +66,7 @@ protected function getPriceDimensionConcreteSaverPlugins(): array } /** - * @return \Spryker\Service\PriceProductExtension\Dependency\Plugin\PriceProductDimensionExpanderStrategyPluginInterface[] + * @return array<\Spryker\Service\PriceProductExtension\Dependency\Plugin\PriceProductDimensionExpanderStrategyPluginInterface> */ protected function getPriceProductDimensionExpanderStrategyPlugins(): array { @@ -77,7 +77,7 @@ protected function getPriceProductDimensionExpanderStrategyPlugins(): array } /** - * @return \Spryker\Zed\PriceProductExtension\Dependency\Plugin\PriceProductReaderPricesExtractorPluginInterface[] + * @return array<\Spryker\Zed\PriceProductExtension\Dependency\Plugin\PriceProductReaderPricesExtractorPluginInterface> */ protected function getPriceProductPricesExtractorPlugins(): array { @@ -87,7 +87,7 @@ protected function getPriceProductPricesExtractorPlugins(): array } /** - * @return \Spryker\Zed\PriceProductExtension\Dependency\Plugin\PriceProductValidatorPluginInterface[] + * @return array<\Spryker\Zed\PriceProductExtension\Dependency\Plugin\PriceProductValidatorPluginInterface> */ protected function getPriceProductValidatorPlugins(): array { diff --git a/src/Pyz/Zed/PriceProductOffer/PriceProductOfferDependencyProvider.php b/src/Pyz/Zed/PriceProductOffer/PriceProductOfferDependencyProvider.php index a60a43bacb..44ceb0d2e2 100644 --- a/src/Pyz/Zed/PriceProductOffer/PriceProductOfferDependencyProvider.php +++ b/src/Pyz/Zed/PriceProductOffer/PriceProductOfferDependencyProvider.php @@ -15,7 +15,7 @@ class PriceProductOfferDependencyProvider extends SprykerPriceProductOfferDependencyProvider { /** - * @return \Spryker\Zed\PriceProductOfferExtension\Dependency\Plugin\PriceProductOfferExtractorPluginInterface[] + * @return array<\Spryker\Zed\PriceProductOfferExtension\Dependency\Plugin\PriceProductOfferExtractorPluginInterface> */ protected function getPriceProductOfferExtractorPlugins(): array { @@ -25,7 +25,7 @@ protected function getPriceProductOfferExtractorPlugins(): array } /** - * @return \Spryker\Zed\PriceProductOfferExtension\Dependency\Plugin\PriceProductOfferExpanderPluginInterface[] + * @return array<\Spryker\Zed\PriceProductOfferExtension\Dependency\Plugin\PriceProductOfferExpanderPluginInterface> */ protected function getPriceProductOfferExpanderPlugins(): array { @@ -35,7 +35,7 @@ protected function getPriceProductOfferExpanderPlugins(): array } /** - * @return \Spryker\Zed\PriceProductOfferExtension\Dependency\Plugin\PriceProductOfferValidatorPluginInterface[] + * @return array<\Spryker\Zed\PriceProductOfferExtension\Dependency\Plugin\PriceProductOfferValidatorPluginInterface> */ protected function getPriceProductOfferValidatorPlugins(): array { diff --git a/src/Pyz/Zed/PriceProductOfferDataImport/Business/PriceProductOfferDataImportBusinessFactory.php b/src/Pyz/Zed/PriceProductOfferDataImport/Business/PriceProductOfferDataImportBusinessFactory.php index 5832ac1dab..a7d1354551 100644 --- a/src/Pyz/Zed/PriceProductOfferDataImport/Business/PriceProductOfferDataImportBusinessFactory.php +++ b/src/Pyz/Zed/PriceProductOfferDataImport/Business/PriceProductOfferDataImportBusinessFactory.php @@ -35,7 +35,7 @@ class PriceProductOfferDataImportBusinessFactory extends SprykerPriceProductOffe public function getPyzCombinedPriceProductOfferDataImport(): DataImporterInterface { $dataImporter = $this->getPyzConditionalCsvDataImporterFromConfig( - $this->getConfig()->getPyzCombinedPriceProductOfferDataImporterConfiguration() + $this->getConfig()->getPyzCombinedPriceProductOfferDataImporterConfiguration(), ); $dataSetStepBroker = $this->createTransactionAwareDataSetStepBroker(); @@ -63,7 +63,7 @@ public function getPyzCombinedPriceProductOfferDataImport(): DataImporterInterfa * @return \Pyz\Zed\DataImport\Business\Model\DataImporterConditional */ public function getPyzConditionalCsvDataImporterFromConfig( - DataImporterConfigurationTransfer $dataImporterConfigurationTransfer + DataImporterConfigurationTransfer $dataImporterConfigurationTransfer, ): DataImporterConditional { $csvReader = $this->createCsvReaderFromConfig($dataImporterConfigurationTransfer->getReaderConfiguration()); @@ -78,7 +78,7 @@ public function getPyzConditionalCsvDataImporterFromConfig( */ public function createPyzDataImporterConditional( string $importType, - DataReaderInterface $reader + DataReaderInterface $reader, ): DataImporterConditional { return new DataImporterConditional($importType, $reader, $this->getGracefulRunnerFacade()); } diff --git a/src/Pyz/Zed/PriceProductOfferDataImport/Business/PriceProductOfferDataImportFacade.php b/src/Pyz/Zed/PriceProductOfferDataImport/Business/PriceProductOfferDataImportFacade.php index 5cc7db4491..7a12773ddb 100644 --- a/src/Pyz/Zed/PriceProductOfferDataImport/Business/PriceProductOfferDataImportFacade.php +++ b/src/Pyz/Zed/PriceProductOfferDataImport/Business/PriceProductOfferDataImportFacade.php @@ -22,7 +22,7 @@ class PriceProductOfferDataImportFacade extends SprykerPriceProductOfferDataImpo * @return \Generated\Shared\Transfer\DataImporterReportTransfer */ public function importPyzCombinedPriceProductOfferData( - ?DataImporterConfigurationTransfer $dataImporterConfigurationTransfer = null + ?DataImporterConfigurationTransfer $dataImporterConfigurationTransfer = null, ): DataImporterReportTransfer { return $this->getFactory() ->getPyzCombinedPriceProductOfferDataImport() diff --git a/src/Pyz/Zed/PriceProductOfferDataImport/Business/PriceProductOfferDataImportFacadeInterface.php b/src/Pyz/Zed/PriceProductOfferDataImport/Business/PriceProductOfferDataImportFacadeInterface.php index 8aa6175257..9ff0879381 100644 --- a/src/Pyz/Zed/PriceProductOfferDataImport/Business/PriceProductOfferDataImportFacadeInterface.php +++ b/src/Pyz/Zed/PriceProductOfferDataImport/Business/PriceProductOfferDataImportFacadeInterface.php @@ -19,6 +19,6 @@ interface PriceProductOfferDataImportFacadeInterface extends SprykerPriceProduct * @return \Generated\Shared\Transfer\DataImporterReportTransfer */ public function importPyzCombinedPriceProductOfferData( - ?DataImporterConfigurationTransfer $dataImporterConfigurationTransfer = null + ?DataImporterConfigurationTransfer $dataImporterConfigurationTransfer = null, ): DataImporterReportTransfer; } diff --git a/src/Pyz/Zed/PriceProductOfferDataImport/PriceProductOfferDataImportConfig.php b/src/Pyz/Zed/PriceProductOfferDataImport/PriceProductOfferDataImportConfig.php index 7b1ef2f068..1ec3fe661c 100644 --- a/src/Pyz/Zed/PriceProductOfferDataImport/PriceProductOfferDataImportConfig.php +++ b/src/Pyz/Zed/PriceProductOfferDataImport/PriceProductOfferDataImportConfig.php @@ -26,7 +26,7 @@ public function getPyzCombinedPriceProductOfferDataImporterConfiguration(): Data return $this->buildImporterConfiguration( $moduleDataImportDirectory . 'combined_merchant_product_offer.csv', - static::PYZ_IMPORT_TYPE_COMBINED_PRICE_PRODUCT_OFFER + static::PYZ_IMPORT_TYPE_COMBINED_PRICE_PRODUCT_OFFER, ); } } diff --git a/src/Pyz/Zed/Product/ProductDependencyProvider.php b/src/Pyz/Zed/Product/ProductDependencyProvider.php index c3b36e6499..a34014b9db 100644 --- a/src/Pyz/Zed/Product/ProductDependencyProvider.php +++ b/src/Pyz/Zed/Product/ProductDependencyProvider.php @@ -53,7 +53,7 @@ class ProductDependencyProvider extends SprykerProductDependencyProvider { /** - * @return \Spryker\Zed\ProductExtension\Dependency\Plugin\ProductAbstractPostCreatePluginInterface[] + * @return array<\Spryker\Zed\ProductExtension\Dependency\Plugin\ProductAbstractPostCreatePluginInterface> */ protected function getProductAbstractPostCreatePlugins(): array { @@ -68,7 +68,7 @@ protected function getProductAbstractPostCreatePlugins(): array /** * @param \Spryker\Zed\Kernel\Container $container * - * @return \Spryker\Zed\Product\Dependency\Plugin\ProductAbstractPluginCreateInterface[] + * @return array<\Spryker\Zed\Product\Dependency\Plugin\ProductAbstractPluginCreateInterface> */ protected function getProductAbstractBeforeCreatePlugins(Container $container): array { @@ -78,7 +78,7 @@ protected function getProductAbstractBeforeCreatePlugins(Container $container): /** * @param \Spryker\Zed\Kernel\Container $container * - * @return \Spryker\Zed\Product\Dependency\Plugin\ProductAbstractPluginUpdateInterface[] + * @return array<\Spryker\Zed\Product\Dependency\Plugin\ProductAbstractPluginUpdateInterface> */ protected function getProductAbstractBeforeUpdatePlugins(Container $container): array { @@ -88,7 +88,7 @@ protected function getProductAbstractBeforeUpdatePlugins(Container $container): /** * @param \Spryker\Zed\Kernel\Container $container * - * @return \Spryker\Zed\Product\Dependency\Plugin\ProductAbstractPluginUpdateInterface[] + * @return array<\Spryker\Zed\Product\Dependency\Plugin\ProductAbstractPluginUpdateInterface> */ protected function getProductAbstractAfterUpdatePlugins(Container $container): array { @@ -102,7 +102,7 @@ protected function getProductAbstractAfterUpdatePlugins(Container $container): a /** * @param \Spryker\Zed\Kernel\Container $container * - * @return \Spryker\Zed\ProductExtension\Dependency\Plugin\ProductConcreteCreatePluginInterface[] + * @return array<\Spryker\Zed\ProductExtension\Dependency\Plugin\ProductConcreteCreatePluginInterface> */ protected function getProductConcreteAfterCreatePlugins(Container $container): array { @@ -120,7 +120,7 @@ protected function getProductConcreteAfterCreatePlugins(Container $container): a /** * @param \Spryker\Zed\Kernel\Container $container * - * @return \Spryker\Zed\Product\Dependency\Plugin\ProductConcretePluginReadInterface[] + * @return array<\Spryker\Zed\Product\Dependency\Plugin\ProductConcretePluginReadInterface> */ protected function getProductConcreteReadPlugins(Container $container): array { @@ -137,9 +137,9 @@ protected function getProductConcreteReadPlugins(Container $container): array /** * @param \Spryker\Zed\Kernel\Container $container * - * @return \Spryker\Zed\Product\Dependency\Plugin\ProductConcretePluginUpdateInterface[] + * @return array<\Spryker\Zed\Product\Dependency\Plugin\ProductConcretePluginUpdateInterface> */ - protected function getProductConcreteBeforeUpdatePlugins(Container $container) + protected function getProductConcreteBeforeUpdatePlugins(Container $container): array { return [ new ProductAlternativeGuiProductConcretePluginUpdate(), #ProductAlternativeFeature @@ -149,9 +149,9 @@ protected function getProductConcreteBeforeUpdatePlugins(Container $container) /** * @param \Spryker\Zed\Kernel\Container $container * - * @return \Spryker\Zed\Product\Dependency\Plugin\ProductConcretePluginUpdateInterface[] + * @return array<\Spryker\Zed\Product\Dependency\Plugin\ProductConcretePluginUpdateInterface> */ - protected function getProductConcreteAfterUpdatePlugins(Container $container) + protected function getProductConcreteAfterUpdatePlugins(Container $container): array { return [ new ImageSetProductConcreteAfterUpdatePlugin(), diff --git a/src/Pyz/Zed/ProductAlternative/ProductAlternativeDependencyProvider.php b/src/Pyz/Zed/ProductAlternative/ProductAlternativeDependencyProvider.php index 4d684f1402..8edc6cf9b7 100644 --- a/src/Pyz/Zed/ProductAlternative/ProductAlternativeDependencyProvider.php +++ b/src/Pyz/Zed/ProductAlternative/ProductAlternativeDependencyProvider.php @@ -16,7 +16,7 @@ class ProductAlternativeDependencyProvider extends SprykerProductAlternativeDependencyProvider { /** - * @return \Spryker\Zed\ProductAlternativeExtension\Dependency\Plugin\PostProductAlternativeCreatePluginInterface[] + * @return array<\Spryker\Zed\ProductAlternativeExtension\Dependency\Plugin\PostProductAlternativeCreatePluginInterface> */ protected function getPostProductAlternativeCreatePlugins(): array { @@ -26,7 +26,7 @@ protected function getPostProductAlternativeCreatePlugins(): array } /** - * @return \Spryker\Zed\ProductAlternativeExtension\Dependency\Plugin\PostProductAlternativeDeletePluginInterface[] + * @return array<\Spryker\Zed\ProductAlternativeExtension\Dependency\Plugin\PostProductAlternativeDeletePluginInterface> */ protected function getPostProductAlternativeDeletePlugins(): array { @@ -36,7 +36,7 @@ protected function getPostProductAlternativeDeletePlugins(): array } /** - * @return \Spryker\Zed\ProductAlternativeExtension\Dependency\Plugin\AlternativeProductApplicablePluginInterface[] + * @return array<\Spryker\Zed\ProductAlternativeExtension\Dependency\Plugin\AlternativeProductApplicablePluginInterface> */ protected function getAlternativeProductApplicablePlugins(): array { diff --git a/src/Pyz/Zed/ProductDiscontinued/ProductDiscontinuedDependencyProvider.php b/src/Pyz/Zed/ProductDiscontinued/ProductDiscontinuedDependencyProvider.php index 4818eeaeb1..6f393481bd 100644 --- a/src/Pyz/Zed/ProductDiscontinued/ProductDiscontinuedDependencyProvider.php +++ b/src/Pyz/Zed/ProductDiscontinued/ProductDiscontinuedDependencyProvider.php @@ -16,7 +16,7 @@ class ProductDiscontinuedDependencyProvider extends SprykerProductDiscontinuedDependencyProvider { /** - * @return \Spryker\Zed\ProductDiscontinuedExtension\Dependency\Plugin\PostProductDiscontinuePluginInterface[] + * @return array<\Spryker\Zed\ProductDiscontinuedExtension\Dependency\Plugin\PostProductDiscontinuePluginInterface> */ protected function getPostProductDiscontinuePlugins(): array { @@ -27,7 +27,7 @@ protected function getPostProductDiscontinuePlugins(): array } /** - * @return \Spryker\Zed\ProductDiscontinuedExtension\Dependency\Plugin\PostDeleteBulkProductDiscontinuedPluginInterface[] + * @return array<\Spryker\Zed\ProductDiscontinuedExtension\Dependency\Plugin\PostDeleteBulkProductDiscontinuedPluginInterface> */ protected function getPostDeleteBulkProductDiscontinuedPlugins(): array { @@ -37,7 +37,7 @@ protected function getPostDeleteBulkProductDiscontinuedPlugins(): array } /** - * @return \Spryker\Zed\ProductDiscontinuedExtension\Dependency\Plugin\ProductDiscontinuedPreDeleteCheckPluginInterface[] + * @return array<\Spryker\Zed\ProductDiscontinuedExtension\Dependency\Plugin\ProductDiscontinuedPreDeleteCheckPluginInterface> */ protected function getProductDiscontinuedPreDeleteCheckPlugins(): array { diff --git a/src/Pyz/Zed/ProductLabel/ProductLabelDependencyProvider.php b/src/Pyz/Zed/ProductLabel/ProductLabelDependencyProvider.php index df8d4b6287..49e522cde2 100644 --- a/src/Pyz/Zed/ProductLabel/ProductLabelDependencyProvider.php +++ b/src/Pyz/Zed/ProductLabel/ProductLabelDependencyProvider.php @@ -16,9 +16,9 @@ class ProductLabelDependencyProvider extends SprykerProductLabelDependencyProvider { /** - * @return \Spryker\Zed\ProductLabel\Dependency\Plugin\ProductLabelRelationUpdaterPluginInterface[] + * @return array<\Spryker\Zed\ProductLabel\Dependency\Plugin\ProductLabelRelationUpdaterPluginInterface> */ - protected function getProductLabelRelationUpdaterPlugins() + protected function getProductLabelRelationUpdaterPlugins(): array { return [ new ProductNewLabelUpdaterPlugin(), diff --git a/src/Pyz/Zed/ProductList/ProductListDependencyProvider.php b/src/Pyz/Zed/ProductList/ProductListDependencyProvider.php index ac04c4e549..f7f96da135 100644 --- a/src/Pyz/Zed/ProductList/ProductListDependencyProvider.php +++ b/src/Pyz/Zed/ProductList/ProductListDependencyProvider.php @@ -16,7 +16,7 @@ class ProductListDependencyProvider extends SprykerProductListDependencyProvider { /** - * @return \Spryker\Zed\ProductListExtension\Dependency\Plugin\ProductListPreCreatePluginInterface[] + * @return array<\Spryker\Zed\ProductListExtension\Dependency\Plugin\ProductListPreCreatePluginInterface> */ protected function getProductListPreCreatePlugins(): array { @@ -26,7 +26,7 @@ protected function getProductListPreCreatePlugins(): array } /** - * @return \Spryker\Zed\ProductListExtension\Dependency\Plugin\ProductListPreUpdatePluginInterface[] + * @return array<\Spryker\Zed\ProductListExtension\Dependency\Plugin\ProductListPreUpdatePluginInterface> */ protected function getProductListPreUpdatePlugins(): array { @@ -36,7 +36,7 @@ protected function getProductListPreUpdatePlugins(): array } /** - * @return \Spryker\Zed\ProductListExtension\Dependency\Plugin\ProductListDeletePreCheckPluginInterface[] + * @return array<\Spryker\Zed\ProductListExtension\Dependency\Plugin\ProductListDeletePreCheckPluginInterface> */ protected function getProductListDeletePreCheckPlugins(): array { diff --git a/src/Pyz/Zed/ProductListGui/ProductListGuiDependencyProvider.php b/src/Pyz/Zed/ProductListGui/ProductListGuiDependencyProvider.php index bd7b996870..2e08c6797e 100644 --- a/src/Pyz/Zed/ProductListGui/ProductListGuiDependencyProvider.php +++ b/src/Pyz/Zed/ProductListGui/ProductListGuiDependencyProvider.php @@ -16,7 +16,7 @@ class ProductListGuiDependencyProvider extends SprykerProductListGuiDependencyProvider { /** - * @return \Spryker\Zed\ProductListGuiExtension\Dependency\Plugin\ProductListTopButtonsExpanderPluginInterface[] + * @return array<\Spryker\Zed\ProductListGuiExtension\Dependency\Plugin\ProductListTopButtonsExpanderPluginInterface> */ protected function getProductListTopButtonsExpanderPlugins(): array { @@ -27,7 +27,7 @@ protected function getProductListTopButtonsExpanderPlugins(): array } /** - * @return \Spryker\Zed\ProductListGuiExtension\Dependency\Plugin\ProductListUsedByTableExpanderPluginInterface[] + * @return array<\Spryker\Zed\ProductListGuiExtension\Dependency\Plugin\ProductListUsedByTableExpanderPluginInterface> */ protected function getProductListUsedByTableExpanderPlugins(): array { diff --git a/src/Pyz/Zed/ProductManagement/ProductManagementDependencyProvider.php b/src/Pyz/Zed/ProductManagement/ProductManagementDependencyProvider.php index 43b4beedee..207e76c115 100644 --- a/src/Pyz/Zed/ProductManagement/ProductManagementDependencyProvider.php +++ b/src/Pyz/Zed/ProductManagement/ProductManagementDependencyProvider.php @@ -43,7 +43,7 @@ class ProductManagementDependencyProvider extends SprykerProductManagementDepend /** * @return array<\Spryker\Zed\ProductManagement\Communication\Plugin\ProductAbstractViewPluginInterface> */ - protected function getProductAbstractViewPlugins() + protected function getProductAbstractViewPlugins(): array { return [ new CmsBlockProductAbstractBlockListViewPlugin(), @@ -53,7 +53,7 @@ protected function getProductAbstractViewPlugins() /** * @return \Spryker\Zed\Kernel\Communication\Form\FormTypeInterface */ - protected function getStoreRelationFormTypePlugin() + protected function getStoreRelationFormTypePlugin(): FormTypeInterface { return new StoreRelationToggleFormTypePlugin(); } @@ -69,7 +69,7 @@ protected function createMoneyFormTypePlugin(Container $container): FormTypeInte } /** - * @return \Spryker\Zed\ProductManagementExtension\Dependency\Plugin\ProductConcreteFormEditTabsExpanderPluginInterface[] + * @return array<\Spryker\Zed\ProductManagementExtension\Dependency\Plugin\ProductConcreteFormEditTabsExpanderPluginInterface> */ protected function getProductConcreteFormEditTabsExpanderPlugins(): array { @@ -81,7 +81,7 @@ protected function getProductConcreteFormEditTabsExpanderPlugins(): array } /** - * @return \Spryker\Zed\ProductManagementExtension\Dependency\Plugin\ProductConcreteEditFormExpanderPluginInterface[] + * @return array<\Spryker\Zed\ProductManagementExtension\Dependency\Plugin\ProductConcreteEditFormExpanderPluginInterface> */ protected function getProductConcreteEditFormExpanderPlugins(): array { @@ -92,7 +92,7 @@ protected function getProductConcreteEditFormExpanderPlugins(): array } /** - * @return \Spryker\Zed\ProductManagementExtension\Dependency\Plugin\ProductConcreteFormEditDataProviderExpanderPluginInterface[] + * @return array<\Spryker\Zed\ProductManagementExtension\Dependency\Plugin\ProductConcreteFormEditDataProviderExpanderPluginInterface> */ protected function getProductConcreteFormEditDataProviderExpanderPlugins(): array { @@ -103,7 +103,7 @@ protected function getProductConcreteFormEditDataProviderExpanderPlugins(): arra } /** - * @return \Spryker\Zed\ProductManagementExtension\Dependency\Plugin\ProductFormTransferMapperExpanderPluginInterface[] + * @return array<\Spryker\Zed\ProductManagementExtension\Dependency\Plugin\ProductFormTransferMapperExpanderPluginInterface> */ protected function getProductFormTransferMapperExpanderPlugins(): array { @@ -114,7 +114,7 @@ protected function getProductFormTransferMapperExpanderPlugins(): array } /** - * @return \Spryker\Zed\ProductManagementExtension\Dependency\Plugin\ProductAbstractFormExpanderPluginInterface[] + * @return array<\Spryker\Zed\ProductManagementExtension\Dependency\Plugin\ProductAbstractFormExpanderPluginInterface> */ protected function getProductAbstractFormExpanderPlugins(): array { @@ -124,7 +124,7 @@ protected function getProductAbstractFormExpanderPlugins(): array } /** - * @return \Spryker\Zed\ProductManagementExtension\Dependency\Plugin\ProductConcreteFormExpanderPluginInterface[] + * @return array<\Spryker\Zed\ProductManagementExtension\Dependency\Plugin\ProductConcreteFormExpanderPluginInterface> */ protected function getProductConcreteFormExpanderPlugins(): array { @@ -134,7 +134,7 @@ protected function getProductConcreteFormExpanderPlugins(): array } /** - * @return \Spryker\Zed\ProductManagementExtension\Dependency\Plugin\ProductAbstractFormEditTabsExpanderPluginInterface[] + * @return array<\Spryker\Zed\ProductManagementExtension\Dependency\Plugin\ProductAbstractFormEditTabsExpanderPluginInterface> */ protected function getProductAbstractFormEditTabsExpanderPlugins(): array { @@ -144,7 +144,7 @@ protected function getProductAbstractFormEditTabsExpanderPlugins(): array } /** - * @return \Spryker\Zed\ProductManagementExtension\Dependency\Plugin\ProductAbstractEditViewExpanderPluginInterface[] + * @return array<\Spryker\Zed\ProductManagementExtension\Dependency\Plugin\ProductAbstractEditViewExpanderPluginInterface> */ protected function getProductAbstractEditViewExpanderPlugins(): array { @@ -156,7 +156,7 @@ protected function getProductAbstractEditViewExpanderPlugins(): array } /** - * @return \Spryker\Zed\ProductManagementExtension\Dependency\Plugin\ProductConcreteEditViewExpanderPluginInterface[] + * @return array<\Spryker\Zed\ProductManagementExtension\Dependency\Plugin\ProductConcreteEditViewExpanderPluginInterface> */ protected function getProductConcreteEditViewExpanderPlugins(): array { @@ -166,7 +166,7 @@ protected function getProductConcreteEditViewExpanderPlugins(): array } /** - * @return \Spryker\Zed\ProductManagementExtension\Dependency\Plugin\ProductAbstractViewActionViewDataExpanderPluginInterface[] + * @return array<\Spryker\Zed\ProductManagementExtension\Dependency\Plugin\ProductAbstractViewActionViewDataExpanderPluginInterface> */ protected function getProductAbstractViewActionViewDataExpanderPlugins(): array { @@ -176,7 +176,7 @@ protected function getProductAbstractViewActionViewDataExpanderPlugins(): array } /** - * @return \Spryker\Zed\ProductManagementExtension\Dependency\Plugin\ProductTableQueryCriteriaExpanderPluginInterface[] + * @return array<\Spryker\Zed\ProductManagementExtension\Dependency\Plugin\ProductTableQueryCriteriaExpanderPluginInterface> */ protected function getProductTableQueryCriteriaExpanderPluginInterfaces(): array { @@ -187,7 +187,7 @@ protected function getProductTableQueryCriteriaExpanderPluginInterfaces(): array } /** - * @return \Spryker\Zed\ProductManagementExtension\Dependency\Plugin\ProductAbstractListActionViewDataExpanderPluginInterface[] + * @return array<\Spryker\Zed\ProductManagementExtension\Dependency\Plugin\ProductAbstractListActionViewDataExpanderPluginInterface> */ protected function getProductAbstractListActionViewDataExpanderPlugins(): array { diff --git a/src/Pyz/Zed/ProductOffer/ProductOfferDependencyProvider.php b/src/Pyz/Zed/ProductOffer/ProductOfferDependencyProvider.php index d13fcf44f3..e26096b623 100644 --- a/src/Pyz/Zed/ProductOffer/ProductOfferDependencyProvider.php +++ b/src/Pyz/Zed/ProductOffer/ProductOfferDependencyProvider.php @@ -21,7 +21,7 @@ class ProductOfferDependencyProvider extends SprykerProductOfferDependencyProvider { /** - * @return \Spryker\Zed\ProductOfferExtension\Dependency\Plugin\ProductOfferPostCreatePluginInterface[] + * @return array<\Spryker\Zed\ProductOfferExtension\Dependency\Plugin\ProductOfferPostCreatePluginInterface> */ protected function getProductOfferPostCreatePlugins(): array { @@ -33,7 +33,7 @@ protected function getProductOfferPostCreatePlugins(): array } /** - * @return \Spryker\Zed\ProductOfferExtension\Dependency\Plugin\ProductOfferPostUpdatePluginInterface[] + * @return array<\Spryker\Zed\ProductOfferExtension\Dependency\Plugin\ProductOfferPostUpdatePluginInterface> */ protected function getProductOfferPostUpdatePlugins(): array { @@ -45,7 +45,7 @@ protected function getProductOfferPostUpdatePlugins(): array } /** - * @return \Spryker\Zed\ProductOfferExtension\Dependency\Plugin\ProductOfferExpanderPluginInterface[] + * @return array<\Spryker\Zed\ProductOfferExtension\Dependency\Plugin\ProductOfferExpanderPluginInterface> */ protected function getProductOfferExpanderPlugins(): array { diff --git a/src/Pyz/Zed/ProductOfferGui/ProductOfferGuiDependencyProvider.php b/src/Pyz/Zed/ProductOfferGui/ProductOfferGuiDependencyProvider.php index 2903cb16d5..4ca87c7729 100644 --- a/src/Pyz/Zed/ProductOfferGui/ProductOfferGuiDependencyProvider.php +++ b/src/Pyz/Zed/ProductOfferGui/ProductOfferGuiDependencyProvider.php @@ -18,7 +18,7 @@ class ProductOfferGuiDependencyProvider extends SprykerProductOfferGuiDependencyProvider { /** - * @return \Spryker\Zed\ProductOfferGuiExtension\Dependency\Plugin\ProductOfferListActionViewDataExpanderPluginInterface[] + * @return array<\Spryker\Zed\ProductOfferGuiExtension\Dependency\Plugin\ProductOfferListActionViewDataExpanderPluginInterface> */ protected function getProductOfferListActionViewDataExpanderPlugins(): array { @@ -28,7 +28,7 @@ protected function getProductOfferListActionViewDataExpanderPlugins(): array } /** - * @return \Spryker\Zed\ProductOfferGuiExtension\Dependency\Plugin\ProductOfferTableExpanderPluginInterface[] + * @return array<\Spryker\Zed\ProductOfferGuiExtension\Dependency\Plugin\ProductOfferTableExpanderPluginInterface> */ protected function getProductOfferTableExpanderPlugins(): array { @@ -38,7 +38,7 @@ protected function getProductOfferTableExpanderPlugins(): array } /** - * @return \Spryker\Zed\ProductOfferGuiExtension\Dependency\Plugin\ProductOfferViewSectionPluginInterface[] + * @return array<\Spryker\Zed\ProductOfferGuiExtension\Dependency\Plugin\ProductOfferViewSectionPluginInterface> */ public function getProductOfferViewSectionPlugins(): array { diff --git a/src/Pyz/Zed/ProductOfferStockDataImport/Business/ProductOfferStockDataImportBusinessFactory.php b/src/Pyz/Zed/ProductOfferStockDataImport/Business/ProductOfferStockDataImportBusinessFactory.php index 550922a726..e4e22ee9cf 100644 --- a/src/Pyz/Zed/ProductOfferStockDataImport/Business/ProductOfferStockDataImportBusinessFactory.php +++ b/src/Pyz/Zed/ProductOfferStockDataImport/Business/ProductOfferStockDataImportBusinessFactory.php @@ -30,7 +30,7 @@ class ProductOfferStockDataImportBusinessFactory extends SprykerProductOfferStoc public function getPyzCombinedProductOfferStockDataImporter(): DataImporterInterface { $dataImporter = $this->getPyzConditionalCsvDataImporterFromConfig( - $this->getConfig()->getPyzCombinedProductOfferStockDataImporterConfiguration() + $this->getConfig()->getPyzCombinedProductOfferStockDataImporterConfiguration(), ); $dataSetStepBroker = $this->createTransactionAwareDataSetStepBroker(); @@ -52,7 +52,7 @@ public function getPyzCombinedProductOfferStockDataImporter(): DataImporterInter * @return \Pyz\Zed\DataImport\Business\Model\DataImporterConditional */ public function getPyzConditionalCsvDataImporterFromConfig( - DataImporterConfigurationTransfer $dataImporterConfigurationTransfer + DataImporterConfigurationTransfer $dataImporterConfigurationTransfer, ): DataImporterConditional { $csvReader = $this->createCsvReaderFromConfig($dataImporterConfigurationTransfer->getReaderConfiguration()); @@ -67,7 +67,7 @@ public function getPyzConditionalCsvDataImporterFromConfig( */ public function createPyzDataImporterConditional( string $importType, - DataReaderInterface $reader + DataReaderInterface $reader, ): DataImporterConditional { return new DataImporterConditional($importType, $reader, $this->getGracefulRunnerFacade()); } @@ -78,7 +78,7 @@ public function createPyzDataImporterConditional( public function createPyzCombinedProductOfferReferenceToIdProductOfferStep(): DataImportStepInterface { return new CombinedProductOfferReferenceToIdProductOfferStep( - $this->getProductOfferFacade() + $this->getProductOfferFacade(), ); } diff --git a/src/Pyz/Zed/ProductOfferStockDataImport/Business/ProductOfferStockDataImportFacade.php b/src/Pyz/Zed/ProductOfferStockDataImport/Business/ProductOfferStockDataImportFacade.php index f4f08df832..70396160ae 100644 --- a/src/Pyz/Zed/ProductOfferStockDataImport/Business/ProductOfferStockDataImportFacade.php +++ b/src/Pyz/Zed/ProductOfferStockDataImport/Business/ProductOfferStockDataImportFacade.php @@ -22,7 +22,7 @@ class ProductOfferStockDataImportFacade extends SprykerProductOfferStockDataImpo * @return \Generated\Shared\Transfer\DataImporterReportTransfer */ public function importPyzCombinedProductOfferStock( - ?DataImporterConfigurationTransfer $dataImporterConfigurationTransfer + ?DataImporterConfigurationTransfer $dataImporterConfigurationTransfer, ): DataImporterReportTransfer { return $this->getFactory() ->getPyzCombinedProductOfferStockDataImporter() diff --git a/src/Pyz/Zed/ProductOfferStockDataImport/Business/ProductOfferStockDataImportFacadeInterface.php b/src/Pyz/Zed/ProductOfferStockDataImport/Business/ProductOfferStockDataImportFacadeInterface.php index 3665207575..4cc9df53cf 100644 --- a/src/Pyz/Zed/ProductOfferStockDataImport/Business/ProductOfferStockDataImportFacadeInterface.php +++ b/src/Pyz/Zed/ProductOfferStockDataImport/Business/ProductOfferStockDataImportFacadeInterface.php @@ -19,6 +19,6 @@ interface ProductOfferStockDataImportFacadeInterface extends SprykerProductOffer * @return \Generated\Shared\Transfer\DataImporterReportTransfer */ public function importPyzCombinedProductOfferStock( - ?DataImporterConfigurationTransfer $dataImporterConfigurationTransfer + ?DataImporterConfigurationTransfer $dataImporterConfigurationTransfer, ): DataImporterReportTransfer; } diff --git a/src/Pyz/Zed/ProductOfferStockDataImport/Communication/Plugin/CombinedProductOfferStockDataImportPlugin.php b/src/Pyz/Zed/ProductOfferStockDataImport/Communication/Plugin/CombinedProductOfferStockDataImportPlugin.php index 1faa2436bf..5adee534ac 100644 --- a/src/Pyz/Zed/ProductOfferStockDataImport/Communication/Plugin/CombinedProductOfferStockDataImportPlugin.php +++ b/src/Pyz/Zed/ProductOfferStockDataImport/Communication/Plugin/CombinedProductOfferStockDataImportPlugin.php @@ -15,7 +15,7 @@ /** * @method \Pyz\Zed\ProductOfferStockDataImport\ProductOfferStockDataImportConfig getConfig() - * @method \Pyz\Zed\ProductOfferStockDataImport\Business\ProductOfferStockDataImportFacade getFacade() + * @method \Pyz\Zed\ProductOfferStockDataImport\Business\ProductOfferStockDataImportFacadeInterface getFacade() */ class CombinedProductOfferStockDataImportPlugin extends AbstractPlugin implements DataImportPluginInterface { @@ -33,7 +33,7 @@ public function getImportType(): string * @return \Generated\Shared\Transfer\DataImporterReportTransfer */ public function import( - ?DataImporterConfigurationTransfer $dataImporterConfigurationTransfer = null + ?DataImporterConfigurationTransfer $dataImporterConfigurationTransfer = null, ): DataImporterReportTransfer { return $this->getFacade()->importPyzCombinedProductOfferStock($dataImporterConfigurationTransfer); } diff --git a/src/Pyz/Zed/ProductOfferStockDataImport/ProductOfferStockDataImportConfig.php b/src/Pyz/Zed/ProductOfferStockDataImport/ProductOfferStockDataImportConfig.php index afcd4c3b2b..e84e2aec6c 100644 --- a/src/Pyz/Zed/ProductOfferStockDataImport/ProductOfferStockDataImportConfig.php +++ b/src/Pyz/Zed/ProductOfferStockDataImport/ProductOfferStockDataImportConfig.php @@ -26,7 +26,7 @@ public function getPyzCombinedProductOfferStockDataImporterConfiguration(): Data return $this->buildImporterConfiguration( $moduleDataImportDirectory . 'combined_merchant_product_offer.csv', - static::PYZ_IMPORT_TYPE_COMBINED_PRODUCT_OFFER_STOCK + static::PYZ_IMPORT_TYPE_COMBINED_PRODUCT_OFFER_STOCK, ); } } diff --git a/src/Pyz/Zed/ProductOfferStockGui/ProductOfferStockGuiDependencyProvider.php b/src/Pyz/Zed/ProductOfferStockGui/ProductOfferStockGuiDependencyProvider.php index f819183160..03ff13ba28 100644 --- a/src/Pyz/Zed/ProductOfferStockGui/ProductOfferStockGuiDependencyProvider.php +++ b/src/Pyz/Zed/ProductOfferStockGui/ProductOfferStockGuiDependencyProvider.php @@ -13,7 +13,7 @@ class ProductOfferStockGuiDependencyProvider extends SprykerProductOfferStockGuiDependencyProvider { /** - * @return \Spryker\Zed\ProductOfferStockGuiExtension\Dependeency\Plugin\ProductOfferStockTableExpanderPluginInterface[] + * @return array<\Spryker\Zed\ProductOfferStockGuiExtension\Dependeency\Plugin\ProductOfferStockTableExpanderPluginInterface> */ protected function getProductOfferStockTableExpanderPlugins(): array { diff --git a/src/Pyz/Zed/ProductOfferValidityDataImport/Business/ProductOfferValidityDataImportBusinessFactory.php b/src/Pyz/Zed/ProductOfferValidityDataImport/Business/ProductOfferValidityDataImportBusinessFactory.php index c8aaf38ae5..3e7ba1586a 100644 --- a/src/Pyz/Zed/ProductOfferValidityDataImport/Business/ProductOfferValidityDataImportBusinessFactory.php +++ b/src/Pyz/Zed/ProductOfferValidityDataImport/Business/ProductOfferValidityDataImportBusinessFactory.php @@ -29,7 +29,7 @@ class ProductOfferValidityDataImportBusinessFactory extends SprykerProductOfferV public function getPyzCombinedProductOfferValidityDataImporter(): DataImporterInterface { $dataImporter = $this->getPyzConditionalCsvDataImporterFromConfig( - $this->getConfig()->getPyzCombinedProductOfferValidityDataImporterConfiguration() + $this->getConfig()->getPyzCombinedProductOfferValidityDataImporterConfiguration(), ); $dataSetStepBroker = $this->createTransactionAwareDataSetStepBroker(); @@ -50,7 +50,7 @@ public function getPyzCombinedProductOfferValidityDataImporter(): DataImporterIn * @return \Pyz\Zed\DataImport\Business\Model\DataImporterConditional */ public function getPyzConditionalCsvDataImporterFromConfig( - DataImporterConfigurationTransfer $dataImporterConfigurationTransfer + DataImporterConfigurationTransfer $dataImporterConfigurationTransfer, ): DataImporterConditional { $csvReader = $this->createCsvReaderFromConfig($dataImporterConfigurationTransfer->getReaderConfiguration()); @@ -65,7 +65,7 @@ public function getPyzConditionalCsvDataImporterFromConfig( */ public function createPyzDataImporterConditional( string $importType, - DataReaderInterface $reader + DataReaderInterface $reader, ): DataImporterConditional { return new DataImporterConditional($importType, $reader, $this->getGracefulRunnerFacade()); } @@ -76,7 +76,7 @@ public function createPyzDataImporterConditional( public function createPyzCombinedProductOfferReferenceToIdProductOfferStep(): DataImportStepInterface { return new CombinedProductOfferReferenceToIdProductOfferStep( - $this->getProductOfferFacade() + $this->getProductOfferFacade(), ); } diff --git a/src/Pyz/Zed/ProductOfferValidityDataImport/Business/ProductOfferValidityDataImportFacade.php b/src/Pyz/Zed/ProductOfferValidityDataImport/Business/ProductOfferValidityDataImportFacade.php index 5f03ab25c9..a5ee1c45a5 100644 --- a/src/Pyz/Zed/ProductOfferValidityDataImport/Business/ProductOfferValidityDataImportFacade.php +++ b/src/Pyz/Zed/ProductOfferValidityDataImport/Business/ProductOfferValidityDataImportFacade.php @@ -22,7 +22,7 @@ class ProductOfferValidityDataImportFacade extends SprykerProductOfferValidityDa * @return \Generated\Shared\Transfer\DataImporterReportTransfer */ public function importPyzCombinedProductOfferValidity( - ?DataImporterConfigurationTransfer $dataImporterConfigurationTransfer = null + ?DataImporterConfigurationTransfer $dataImporterConfigurationTransfer = null, ): DataImporterReportTransfer { return $this->getFactory() ->getPyzCombinedProductOfferValidityDataImporter() diff --git a/src/Pyz/Zed/ProductOfferValidityDataImport/Business/ProductOfferValidityDataImportFacadeInterface.php b/src/Pyz/Zed/ProductOfferValidityDataImport/Business/ProductOfferValidityDataImportFacadeInterface.php index 7ecc9dfee0..80e9c51f7a 100644 --- a/src/Pyz/Zed/ProductOfferValidityDataImport/Business/ProductOfferValidityDataImportFacadeInterface.php +++ b/src/Pyz/Zed/ProductOfferValidityDataImport/Business/ProductOfferValidityDataImportFacadeInterface.php @@ -19,6 +19,6 @@ interface ProductOfferValidityDataImportFacadeInterface extends SprykerProductOf * @return \Generated\Shared\Transfer\DataImporterReportTransfer */ public function importPyzCombinedProductOfferValidity( - ?DataImporterConfigurationTransfer $dataImporterConfigurationTransfer = null + ?DataImporterConfigurationTransfer $dataImporterConfigurationTransfer = null, ): DataImporterReportTransfer; } diff --git a/src/Pyz/Zed/ProductOfferValidityDataImport/Communication/Plugin/CombinedProductOfferValidityDataImportPlugin.php b/src/Pyz/Zed/ProductOfferValidityDataImport/Communication/Plugin/CombinedProductOfferValidityDataImportPlugin.php index e48e6bce13..eadac60414 100644 --- a/src/Pyz/Zed/ProductOfferValidityDataImport/Communication/Plugin/CombinedProductOfferValidityDataImportPlugin.php +++ b/src/Pyz/Zed/ProductOfferValidityDataImport/Communication/Plugin/CombinedProductOfferValidityDataImportPlugin.php @@ -33,7 +33,7 @@ public function getImportType(): string * @return \Generated\Shared\Transfer\DataImporterReportTransfer */ public function import( - ?DataImporterConfigurationTransfer $dataImporterConfigurationTransfer = null + ?DataImporterConfigurationTransfer $dataImporterConfigurationTransfer = null, ): DataImporterReportTransfer { return $this->getFacade()->importPyzCombinedProductOfferValidity($dataImporterConfigurationTransfer); } diff --git a/src/Pyz/Zed/ProductOfferValidityDataImport/ProductOfferValidityDataImportConfig.php b/src/Pyz/Zed/ProductOfferValidityDataImport/ProductOfferValidityDataImportConfig.php index 8d045cb6f4..f7d82560d2 100644 --- a/src/Pyz/Zed/ProductOfferValidityDataImport/ProductOfferValidityDataImportConfig.php +++ b/src/Pyz/Zed/ProductOfferValidityDataImport/ProductOfferValidityDataImportConfig.php @@ -26,7 +26,7 @@ public function getPyzCombinedProductOfferValidityDataImporterConfiguration(): D return $this->buildImporterConfiguration( $moduleDataImportDirectory . 'combined_merchant_product_offer.csv', - static::PYZ_IMPORT_TYPE_COMBINED_PRODUCT_OFFER_VALIDITY + static::PYZ_IMPORT_TYPE_COMBINED_PRODUCT_OFFER_VALIDITY, ); } } diff --git a/src/Pyz/Zed/ProductOption/ProductOptionDependencyProvider.php b/src/Pyz/Zed/ProductOption/ProductOptionDependencyProvider.php index 5c0fdefbd3..f6297fe49e 100644 --- a/src/Pyz/Zed/ProductOption/ProductOptionDependencyProvider.php +++ b/src/Pyz/Zed/ProductOption/ProductOptionDependencyProvider.php @@ -29,7 +29,7 @@ protected function createMoneyCollectionFormTypePlugin(Container $container): Fo } /** - * @return \Spryker\Zed\ProductOptionExtension\Dependency\Plugin\ProductOptionValuesPreRemovePluginInterface[] + * @return array<\Spryker\Zed\ProductOptionExtension\Dependency\Plugin\ProductOptionValuesPreRemovePluginInterface> */ protected function getProductOptionValuesPreRemovePlugins(): array { @@ -39,7 +39,7 @@ protected function getProductOptionValuesPreRemovePlugins(): array } /** - * @return \Spryker\Zed\ProductOptionGuiExtension\Dependency\Plugin\ProductOptionListActionViewDataExpanderPluginInterface[] + * @return array<\Spryker\Zed\ProductOptionGuiExtension\Dependency\Plugin\ProductOptionListActionViewDataExpanderPluginInterface> */ protected function getProductOptionListActionViewDataExpanderPlugins(): array { @@ -49,7 +49,7 @@ protected function getProductOptionListActionViewDataExpanderPlugins(): array } /** - * @return \Spryker\Zed\ProductOptionGuiExtension\Dependency\Plugin\ProductOptionListTableQueryCriteriaExpanderPluginInterface[] + * @return array<\Spryker\Zed\ProductOptionGuiExtension\Dependency\Plugin\ProductOptionListTableQueryCriteriaExpanderPluginInterface> */ protected function getProductOptionListTableQueryCriteriaExpanderPlugins(): array { @@ -59,7 +59,7 @@ protected function getProductOptionListTableQueryCriteriaExpanderPlugins(): arra } /** - * @return \Spryker\Zed\ProductOptionExtension\Dependency\Plugin\ProductOptionGroupExpanderPluginInterface[] + * @return array<\Spryker\Zed\ProductOptionExtension\Dependency\Plugin\ProductOptionGroupExpanderPluginInterface> */ protected function getProductOptionGroupExpanderPlugins(): array { diff --git a/src/Pyz/Zed/ProductOptionStorage/ProductOptionStorageDependencyProvider.php b/src/Pyz/Zed/ProductOptionStorage/ProductOptionStorageDependencyProvider.php index 082dcf4c58..b115ba7280 100644 --- a/src/Pyz/Zed/ProductOptionStorage/ProductOptionStorageDependencyProvider.php +++ b/src/Pyz/Zed/ProductOptionStorage/ProductOptionStorageDependencyProvider.php @@ -13,7 +13,7 @@ class ProductOptionStorageDependencyProvider extends SprykerProductOptionStorageDependencyProvider { /** - * @return \Spryker\Zed\ProductOptionStorageExtension\Dependency\Plugin\ProductOptionCollectionFilterPluginInterface[] + * @return array<\Spryker\Zed\ProductOptionStorageExtension\Dependency\Plugin\ProductOptionCollectionFilterPluginInterface> */ protected function getProductOptionCollectionFilterPlugins(): array { diff --git a/src/Pyz/Zed/ProductPageSearch/ProductPageSearchDependencyProvider.php b/src/Pyz/Zed/ProductPageSearch/ProductPageSearchDependencyProvider.php index e41dd148e5..980952c434 100644 --- a/src/Pyz/Zed/ProductPageSearch/ProductPageSearchDependencyProvider.php +++ b/src/Pyz/Zed/ProductPageSearch/ProductPageSearchDependencyProvider.php @@ -59,7 +59,7 @@ class ProductPageSearchDependencyProvider extends SprykerProductPageSearchDepend public const PYZ_PLUGIN_PRODUCT_LABEL_DATA = 'PYZ_PLUGIN_PRODUCT_LABEL_DATA'; /** - * @return \Spryker\Zed\ProductPageSearch\Dependency\Plugin\ProductPageDataExpanderInterface[] + * @return array<\Spryker\Zed\ProductPageSearch\Dependency\Plugin\ProductPageDataExpanderInterface> */ protected function getDataExpanderPlugins(): array { @@ -78,7 +78,7 @@ protected function getDataExpanderPlugins(): array } /** - * @return \Spryker\Zed\ProductPageSearchExtension\Dependency\Plugin\ProductPageDataLoaderPluginInterface[] + * @return array<\Spryker\Zed\ProductPageSearchExtension\Dependency\Plugin\ProductPageDataLoaderPluginInterface> */ protected function getDataLoaderPlugins(): array { @@ -95,7 +95,7 @@ protected function getDataLoaderPlugins(): array } /** - * @return \Spryker\Zed\ProductPageSearchExtension\Dependency\Plugin\ProductConcretePageMapExpanderPluginInterface[] + * @return array<\Spryker\Zed\ProductPageSearchExtension\Dependency\Plugin\ProductConcretePageMapExpanderPluginInterface> */ protected function getConcreteProductMapExpanderPlugins(): array { @@ -108,7 +108,7 @@ protected function getConcreteProductMapExpanderPlugins(): array } /** - * @return \Spryker\Zed\ProductPageSearchExtension\Dependency\Plugin\ProductConcretePageDataExpanderPluginInterface[] + * @return array<\Spryker\Zed\ProductPageSearchExtension\Dependency\Plugin\ProductConcretePageDataExpanderPluginInterface> */ protected function getProductConcretePageDataExpanderPlugins(): array { @@ -119,7 +119,7 @@ protected function getProductConcretePageDataExpanderPlugins(): array } /** - * @return \Spryker\Zed\ProductPageSearchExtension\Dependency\Plugin\ProductAbstractMapExpanderPluginInterface[] + * @return array<\Spryker\Zed\ProductPageSearchExtension\Dependency\Plugin\ProductAbstractMapExpanderPluginInterface> */ protected function getProductAbstractMapExpanderPlugins(): array { @@ -137,7 +137,7 @@ protected function getProductAbstractMapExpanderPlugins(): array } /** - * @return \Spryker\Zed\ProductPageSearchExtension\Dependency\Plugin\ProductAbstractAddToCartPluginInterface[] + * @return array<\Spryker\Zed\ProductPageSearchExtension\Dependency\Plugin\ProductAbstractAddToCartPluginInterface> */ protected function getProductAbstractAddToCartPlugins(): array { diff --git a/src/Pyz/Zed/ProductStorage/ProductStorageDependencyProvider.php b/src/Pyz/Zed/ProductStorage/ProductStorageDependencyProvider.php index 5955d13a67..533fd401e3 100644 --- a/src/Pyz/Zed/ProductStorage/ProductStorageDependencyProvider.php +++ b/src/Pyz/Zed/ProductStorage/ProductStorageDependencyProvider.php @@ -16,7 +16,7 @@ class ProductStorageDependencyProvider extends SprykerProductStorageDependencyProvider { /** - * @return \Spryker\Zed\ProductStorageExtension\Dependency\Plugin\ProductAbstractStorageExpanderPluginInterface[] + * @return array<\Spryker\Zed\ProductStorageExtension\Dependency\Plugin\ProductAbstractStorageExpanderPluginInterface> */ protected function getProductAbstractStorageExpanderPlugins(): array { diff --git a/src/Pyz/Zed/ProductUrlCartConnector/Business/Expander/ProductUrlExpander.php b/src/Pyz/Zed/ProductUrlCartConnector/Business/Expander/ProductUrlExpander.php index fbd7690904..fce1ac2316 100644 --- a/src/Pyz/Zed/ProductUrlCartConnector/Business/Expander/ProductUrlExpander.php +++ b/src/Pyz/Zed/ProductUrlCartConnector/Business/Expander/ProductUrlExpander.php @@ -31,7 +31,7 @@ class ProductUrlExpander implements ProductUrlExpanderInterface */ public function __construct( ProductFacadeInterface $productFacade, - LocaleFacadeInterface $localeFacade + LocaleFacadeInterface $localeFacade, ) { $this->productFacade = $productFacade; $this->localeFacade = $localeFacade; diff --git a/src/Pyz/Zed/ProductUrlCartConnector/Business/ProductUrlCartConnectorBusinessFactory.php b/src/Pyz/Zed/ProductUrlCartConnector/Business/ProductUrlCartConnectorBusinessFactory.php index df92c31dbf..585a6a182a 100644 --- a/src/Pyz/Zed/ProductUrlCartConnector/Business/ProductUrlCartConnectorBusinessFactory.php +++ b/src/Pyz/Zed/ProductUrlCartConnector/Business/ProductUrlCartConnectorBusinessFactory.php @@ -26,7 +26,7 @@ public function createPyzProductExpander(): ProductUrlExpanderInterface { return new ProductUrlExpander( $this->getPyzProductFacade(), - $this->getPyzLocaleFacade() + $this->getPyzLocaleFacade(), ); } diff --git a/src/Pyz/Zed/ProductUrlCartConnector/Communication/Plugin/ProductUrlCartPlugin.php b/src/Pyz/Zed/ProductUrlCartConnector/Communication/Plugin/ProductUrlCartPlugin.php index d39d21ce2d..c6cdb9f0c4 100644 --- a/src/Pyz/Zed/ProductUrlCartConnector/Communication/Plugin/ProductUrlCartPlugin.php +++ b/src/Pyz/Zed/ProductUrlCartConnector/Communication/Plugin/ProductUrlCartPlugin.php @@ -12,7 +12,7 @@ use Spryker\Zed\Kernel\Communication\AbstractPlugin; /** - * @method \Pyz\Zed\ProductUrlCartConnector\Business\ProductUrlCartConnectorFacade getFacade() + * @method \Pyz\Zed\ProductUrlCartConnector\Business\ProductUrlCartConnectorFacadeInterface getFacade() * @method \Pyz\Zed\ProductUrlCartConnector\Communication\ProductUrlCartConnectorCommunicationFactory getFactory() * @method \Pyz\Zed\ProductUrlCartConnector\ProductUrlCartConnectorConfig getConfig() */ @@ -23,7 +23,7 @@ class ProductUrlCartPlugin extends AbstractPlugin implements ItemExpanderPluginI * * @return \Generated\Shared\Transfer\CartChangeTransfer */ - public function expandItems(CartChangeTransfer $cartChangeTransfer) + public function expandItems(CartChangeTransfer $cartChangeTransfer): CartChangeTransfer { $this->getFacade()->expandPyzItems($cartChangeTransfer); diff --git a/src/Pyz/Zed/Propel/PropelDependencyProvider.php b/src/Pyz/Zed/Propel/PropelDependencyProvider.php index b122552288..e3be0d64fc 100644 --- a/src/Pyz/Zed/Propel/PropelDependencyProvider.php +++ b/src/Pyz/Zed/Propel/PropelDependencyProvider.php @@ -13,7 +13,7 @@ class PropelDependencyProvider extends SprykerPropelDependencyProvider { /** - * @return \Spryker\Zed\Propel\Dependency\Plugin\PropelSchemaElementFilterPluginInterface[] + * @return array<\Spryker\Zed\Propel\Dependency\Plugin\PropelSchemaElementFilterPluginInterface> */ protected function getPropelSchemaElementFilterPlugins(): array { diff --git a/src/Pyz/Zed/Publisher/PublisherDependencyProvider.php b/src/Pyz/Zed/Publisher/PublisherDependencyProvider.php index 4c05058862..63d471da27 100644 --- a/src/Pyz/Zed/Publisher/PublisherDependencyProvider.php +++ b/src/Pyz/Zed/Publisher/PublisherDependencyProvider.php @@ -325,7 +325,7 @@ protected function getProductCategoryStoragePlugins(): array } /** - * @return \Spryker\Zed\PublisherExtension\Dependency\Plugin\PublisherPluginInterface[] + * @return array<\Spryker\Zed\PublisherExtension\Dependency\Plugin\PublisherPluginInterface> */ protected function getMerchantStoragePlugins(): array { @@ -335,7 +335,7 @@ protected function getMerchantStoragePlugins(): array } /** - * @return \Spryker\Zed\PublisherExtension\Dependency\Plugin\PublisherPluginInterface[] + * @return array<\Spryker\Zed\PublisherExtension\Dependency\Plugin\PublisherPluginInterface> */ protected function getMerchantSearchPlugins(): array { @@ -346,7 +346,7 @@ protected function getMerchantSearchPlugins(): array } /** - * @return \Spryker\Zed\PublisherExtension\Dependency\Plugin\PublisherPluginInterface[] + * @return array<\Spryker\Zed\PublisherExtension\Dependency\Plugin\PublisherPluginInterface> */ protected function getMerchantOpeningHoursStoragePlugins(): array { @@ -358,7 +358,7 @@ protected function getMerchantOpeningHoursStoragePlugins(): array } /** - * @return \Spryker\Zed\PublisherExtension\Dependency\Plugin\PublisherPluginInterface[] + * @return array<\Spryker\Zed\PublisherExtension\Dependency\Plugin\PublisherPluginInterface> */ protected function getMerchantProductPlugins(): array { @@ -380,7 +380,7 @@ protected function getMerchantProductSearchPlugins(): array } /** - * @return \Spryker\Zed\PublisherExtension\Dependency\Plugin\PublisherPluginInterface[] + * @return array<\Spryker\Zed\PublisherExtension\Dependency\Plugin\PublisherPluginInterface> */ protected function getMerchantCategorySearchPlugins(): array { @@ -391,7 +391,7 @@ protected function getMerchantCategorySearchPlugins(): array } /** - * @return \Spryker\Zed\PublisherExtension\Dependency\Plugin\PublisherPluginInterface[] + * @return array<\Spryker\Zed\PublisherExtension\Dependency\Plugin\PublisherPluginInterface> */ protected function getPriceProductOfferStoragePlugins(): array { @@ -401,7 +401,7 @@ protected function getPriceProductOfferStoragePlugins(): array } /** - * @return \Spryker\Zed\PublisherExtension\Dependency\Plugin\PublisherPluginInterface[] + * @return array<\Spryker\Zed\PublisherExtension\Dependency\Plugin\PublisherPluginInterface> */ protected function getMerchantProductOptionStoragePlugins(): array { diff --git a/src/Pyz/Zed/Queue/QueueConfig.php b/src/Pyz/Zed/Queue/QueueConfig.php index af0e33b38f..1b2f7bd679 100644 --- a/src/Pyz/Zed/Queue/QueueConfig.php +++ b/src/Pyz/Zed/Queue/QueueConfig.php @@ -22,7 +22,7 @@ class QueueConfig extends SprykerQueueConfig public const PYZ_RABBITMQ = 'rabbitmq'; /** - * @return int[] + * @return array */ public function getSignalsForGracefulWorkerShutdown(): array { diff --git a/src/Pyz/Zed/Queue/QueueDependencyProvider.php b/src/Pyz/Zed/Queue/QueueDependencyProvider.php index 233f0932ee..372524da2b 100644 --- a/src/Pyz/Zed/Queue/QueueDependencyProvider.php +++ b/src/Pyz/Zed/Queue/QueueDependencyProvider.php @@ -61,7 +61,7 @@ class QueueDependencyProvider extends SprykerDependencyProvider /** * @param \Spryker\Zed\Kernel\Container $container * - * @return \Spryker\Zed\Queue\Dependency\Plugin\QueueMessageProcessorPluginInterface[] + * @return array<\Spryker\Zed\Queue\Dependency\Plugin\QueueMessageProcessorPluginInterface> */ protected function getProcessorMessagePlugins(Container $container): array { diff --git a/src/Pyz/Zed/Quote/QuoteConfig.php b/src/Pyz/Zed/Quote/QuoteConfig.php index 8c4f438aa5..44f6e857f2 100644 --- a/src/Pyz/Zed/Quote/QuoteConfig.php +++ b/src/Pyz/Zed/Quote/QuoteConfig.php @@ -15,7 +15,7 @@ class QuoteConfig extends SprykerQuoteConfig /** * @return array */ - public function getQuoteFieldsAllowedForSaving() + public function getQuoteFieldsAllowedForSaving(): array { return array_merge(parent::getQuoteFieldsAllowedForSaving(), [ QuoteTransfer::BUNDLE_ITEMS, diff --git a/src/Pyz/Zed/Quote/QuoteDependencyProvider.php b/src/Pyz/Zed/Quote/QuoteDependencyProvider.php index 397a500419..ed8847cdce 100644 --- a/src/Pyz/Zed/Quote/QuoteDependencyProvider.php +++ b/src/Pyz/Zed/Quote/QuoteDependencyProvider.php @@ -37,7 +37,7 @@ class QuoteDependencyProvider extends SprykerQuoteDependencyProvider { /** - * @return \Spryker\Zed\QuoteExtension\Dependency\Plugin\QuoteWritePluginInterface[] + * @return array<\Spryker\Zed\QuoteExtension\Dependency\Plugin\QuoteWritePluginInterface> */ protected function getQuoteCreateAfterPlugins(): array { @@ -47,7 +47,7 @@ protected function getQuoteCreateAfterPlugins(): array } /** - * @return \Spryker\Zed\QuoteExtension\Dependency\Plugin\QuoteWritePluginInterface[] + * @return array<\Spryker\Zed\QuoteExtension\Dependency\Plugin\QuoteWritePluginInterface> */ protected function getQuoteCreateBeforePlugins(): array { @@ -61,7 +61,7 @@ protected function getQuoteCreateBeforePlugins(): array } /** - * @return \Spryker\Zed\QuoteExtension\Dependency\Plugin\QuoteWritePluginInterface[] + * @return array<\Spryker\Zed\QuoteExtension\Dependency\Plugin\QuoteWritePluginInterface> */ protected function getQuoteUpdateAfterPlugins(): array { @@ -72,7 +72,7 @@ protected function getQuoteUpdateAfterPlugins(): array } /** - * @return \Spryker\Zed\QuoteExtension\Dependency\Plugin\QuoteExpanderPluginInterface[] + * @return array<\Spryker\Zed\QuoteExtension\Dependency\Plugin\QuoteExpanderPluginInterface> */ protected function getQuoteExpanderPlugins(): array { @@ -85,7 +85,7 @@ protected function getQuoteExpanderPlugins(): array } /** - * @return \Spryker\Zed\QuoteExtension\Dependency\Plugin\QuoteWritePluginInterface[] + * @return array<\Spryker\Zed\QuoteExtension\Dependency\Plugin\QuoteWritePluginInterface> */ protected function getQuoteUpdateBeforePlugins(): array { @@ -101,7 +101,7 @@ protected function getQuoteUpdateBeforePlugins(): array } /** - * @return \Spryker\Zed\QuoteExtension\Dependency\Plugin\QuoteWritePluginInterface[] + * @return array<\Spryker\Zed\QuoteExtension\Dependency\Plugin\QuoteWritePluginInterface> */ protected function getQuoteDeleteBeforePlugins(): array { @@ -112,7 +112,7 @@ protected function getQuoteDeleteBeforePlugins(): array } /** - * @return \Spryker\Zed\QuoteExtension\Dependency\Plugin\QuoteDeleteAfterPluginInterface[] + * @return array<\Spryker\Zed\QuoteExtension\Dependency\Plugin\QuoteDeleteAfterPluginInterface> */ protected function getQuoteDeleteAfterPlugins(): array { @@ -122,7 +122,7 @@ protected function getQuoteDeleteAfterPlugins(): array } /** - * @return \Spryker\Zed\QuoteExtension\Dependency\Plugin\QuoteValidatorPluginInterface[] + * @return array<\Spryker\Zed\QuoteExtension\Dependency\Plugin\QuoteValidatorPluginInterface> */ protected function getQuoteValidatorPlugins(): array { @@ -134,7 +134,7 @@ protected function getQuoteValidatorPlugins(): array } /** - * @return \Spryker\Zed\QuoteExtension\Dependency\Plugin\QuoteExpandBeforeCreatePluginInterface[] + * @return array<\Spryker\Zed\QuoteExtension\Dependency\Plugin\QuoteExpandBeforeCreatePluginInterface> */ protected function getQuoteExpandBeforeCreatePlugins(): array { @@ -144,7 +144,7 @@ protected function getQuoteExpandBeforeCreatePlugins(): array } /** - * @return \Spryker\Zed\QuoteExtension\Dependency\Plugin\QuoteFieldsAllowedForSavingProviderPluginInterface[] + * @return array<\Spryker\Zed\QuoteExtension\Dependency\Plugin\QuoteFieldsAllowedForSavingProviderPluginInterface> */ protected function getQuoteFieldsAllowedForSavingProviderPlugins(): array { diff --git a/src/Pyz/Zed/QuoteApproval/QuoteApprovalDependencyProvider.php b/src/Pyz/Zed/QuoteApproval/QuoteApprovalDependencyProvider.php index 2d3c218f9e..b9a7a16346 100644 --- a/src/Pyz/Zed/QuoteApproval/QuoteApprovalDependencyProvider.php +++ b/src/Pyz/Zed/QuoteApproval/QuoteApprovalDependencyProvider.php @@ -13,7 +13,7 @@ class QuoteApprovalDependencyProvider extends SprykerQuoteApprovalDependencyProvider { /** - * @return \Spryker\Zed\QuoteApprovalExtension\Dependency\Plugin\QuoteApprovalUnlockPreCheckPluginInterface[] + * @return array<\Spryker\Zed\QuoteApprovalExtension\Dependency\Plugin\QuoteApprovalUnlockPreCheckPluginInterface> */ protected function getQuoteApprovalUnlockPreCheckPlugins(): array { diff --git a/src/Pyz/Zed/QuoteRequest/QuoteRequestConfig.php b/src/Pyz/Zed/QuoteRequest/QuoteRequestConfig.php index 740510daee..b0c9db7284 100644 --- a/src/Pyz/Zed/QuoteRequest/QuoteRequestConfig.php +++ b/src/Pyz/Zed/QuoteRequest/QuoteRequestConfig.php @@ -13,7 +13,7 @@ class QuoteRequestConfig extends SprykerQuoteRequestConfig { /** - * @return string[] + * @return array */ public function getQuoteFieldsAllowedForSaving(): array { diff --git a/src/Pyz/Zed/ResourceShare/ResourceShareDependencyProvider.php b/src/Pyz/Zed/ResourceShare/ResourceShareDependencyProvider.php index 9a855d521b..9c3a0610ac 100644 --- a/src/Pyz/Zed/ResourceShare/ResourceShareDependencyProvider.php +++ b/src/Pyz/Zed/ResourceShare/ResourceShareDependencyProvider.php @@ -13,7 +13,7 @@ class ResourceShareDependencyProvider extends SprykerResourceShareDependencyProvider { /** - * @return \Spryker\Zed\ResourceShareExtension\Dependency\Plugin\ResourceShareZedActivatorStrategyPluginInterface[] + * @return array<\Spryker\Zed\ResourceShareExtension\Dependency\Plugin\ResourceShareZedActivatorStrategyPluginInterface> */ protected function getResourceShareActivatorStrategyPlugins(): array { diff --git a/src/Pyz/Zed/Router/RouterConfig.php b/src/Pyz/Zed/Router/RouterConfig.php index 497d792db0..ca34526224 100644 --- a/src/Pyz/Zed/Router/RouterConfig.php +++ b/src/Pyz/Zed/Router/RouterConfig.php @@ -12,7 +12,7 @@ class RouterConfig extends SprykerRouterConfig { /** - * @return string[] + * @return array */ public function getControllerDirectories(): array { diff --git a/src/Pyz/Zed/Router/RouterDependencyProvider.php b/src/Pyz/Zed/Router/RouterDependencyProvider.php index be177fd3bb..70d8317cbe 100644 --- a/src/Pyz/Zed/Router/RouterDependencyProvider.php +++ b/src/Pyz/Zed/Router/RouterDependencyProvider.php @@ -15,7 +15,7 @@ class RouterDependencyProvider extends SprykerRouterDependencyProvider { /** - * @return \Spryker\Zed\RouterExtension\Dependency\Plugin\RouterPluginInterface[] + * @return array<\Spryker\Zed\RouterExtension\Dependency\Plugin\RouterPluginInterface> */ protected function getBackofficeRouterPlugins(): array { @@ -25,7 +25,7 @@ protected function getBackofficeRouterPlugins(): array } /** - * @return \Spryker\Zed\RouterExtension\Dependency\Plugin\RouterPluginInterface[] + * @return array<\Spryker\Zed\RouterExtension\Dependency\Plugin\RouterPluginInterface> */ protected function getBackendGatewayRouterPlugins(): array { @@ -35,7 +35,7 @@ protected function getBackendGatewayRouterPlugins(): array } /** - * @return \Spryker\Zed\RouterExtension\Dependency\Plugin\RouterPluginInterface[] + * @return array<\Spryker\Zed\RouterExtension\Dependency\Plugin\RouterPluginInterface> */ protected function getBackendApiRouterPlugins(): array { diff --git a/src/Pyz/Zed/Sales/SalesConfig.php b/src/Pyz/Zed/Sales/SalesConfig.php index f4f5d69acb..cf731a7453 100644 --- a/src/Pyz/Zed/Sales/SalesConfig.php +++ b/src/Pyz/Zed/Sales/SalesConfig.php @@ -21,9 +21,9 @@ class SalesConfig extends SprykerSalesConfig * 'discount' => '/discount/sales/index', * ] * - * @return string[] + * @return array */ - public function getSalesDetailExternalBlocksUrls() + public function getSalesDetailExternalBlocksUrls(): array { $projectExternalBlocks = [ 'cart_note' => '/cart-note/sales/list', #CartNoteFeature diff --git a/src/Pyz/Zed/Sales/SalesDependencyProvider.php b/src/Pyz/Zed/Sales/SalesDependencyProvider.php index 7e38a16734..4d05d16a61 100644 --- a/src/Pyz/Zed/Sales/SalesDependencyProvider.php +++ b/src/Pyz/Zed/Sales/SalesDependencyProvider.php @@ -74,7 +74,7 @@ class SalesDependencyProvider extends SprykerSalesDependencyProvider { /** - * @return \Spryker\Zed\Sales\Dependency\Plugin\OrderExpanderPreSavePluginInterface[] + * @return array<\Spryker\Zed\Sales\Dependency\Plugin\OrderExpanderPreSavePluginInterface> */ protected function getOrderExpanderPreSavePlugins(): array { @@ -84,7 +84,7 @@ protected function getOrderExpanderPreSavePlugins(): array } /** - * @return \Spryker\Zed\SalesExtension\Dependency\Plugin\OrderExpanderPluginInterface[] + * @return array<\Spryker\Zed\SalesExtension\Dependency\Plugin\OrderExpanderPluginInterface> */ protected function getOrderHydrationPlugins(): array { @@ -108,7 +108,7 @@ protected function getOrderHydrationPlugins(): array } /** - * @return \Spryker\Zed\SalesExtension\Dependency\Plugin\OrderItemExpanderPreSavePluginInterface[] + * @return array<\Spryker\Zed\SalesExtension\Dependency\Plugin\OrderItemExpanderPreSavePluginInterface> */ protected function getOrderItemExpanderPreSavePlugins(): array { @@ -124,7 +124,7 @@ protected function getOrderItemExpanderPreSavePlugins(): array } /** - * @return \Spryker\Zed\SalesExtension\Dependency\Plugin\ItemTransformerStrategyPluginInterface[] + * @return array<\Spryker\Zed\SalesExtension\Dependency\Plugin\ItemTransformerStrategyPluginInterface> */ public function getItemTransformerStrategyPlugins(): array { @@ -135,7 +135,7 @@ public function getItemTransformerStrategyPlugins(): array } /** - * @return \Spryker\Zed\SalesExtension\Dependency\Plugin\SalesTablePluginInterface[] + * @return array<\Spryker\Zed\SalesExtension\Dependency\Plugin\SalesTablePluginInterface> */ protected function getSalesTablePlugins(): array { @@ -145,7 +145,7 @@ protected function getSalesTablePlugins(): array } /** - * @return \Spryker\Zed\SalesExtension\Dependency\Plugin\OrderPostSavePluginInterface[] + * @return array<\Spryker\Zed\SalesExtension\Dependency\Plugin\OrderPostSavePluginInterface> */ protected function getOrderPostSavePlugins(): array { @@ -158,7 +158,7 @@ protected function getOrderPostSavePlugins(): array } /** - * @return \Spryker\Zed\SalesExtension\Dependency\Plugin\ItemPreTransformerPluginInterface[] + * @return array<\Spryker\Zed\SalesExtension\Dependency\Plugin\ItemPreTransformerPluginInterface> */ protected function getItemPreTransformerPlugins(): array { @@ -168,7 +168,7 @@ protected function getItemPreTransformerPlugins(): array } /** - * @return \Spryker\Zed\SalesExtension\Dependency\Plugin\UniqueOrderItemsExpanderPluginInterface[] + * @return array<\Spryker\Zed\SalesExtension\Dependency\Plugin\UniqueOrderItemsExpanderPluginInterface> */ protected function getUniqueOrderItemsExpanderPlugins(): array { @@ -178,7 +178,7 @@ protected function getUniqueOrderItemsExpanderPlugins(): array } /** - * @return \Spryker\Zed\SalesExtension\Dependency\Plugin\OrderItemExpanderPluginInterface[] + * @return array<\Spryker\Zed\SalesExtension\Dependency\Plugin\OrderItemExpanderPluginInterface> */ protected function getOrderItemExpanderPlugins(): array { @@ -202,7 +202,7 @@ protected function getOrderItemExpanderPlugins(): array } /** - * @return \Spryker\Zed\SalesExtension\Dependency\Plugin\SearchOrderExpanderPluginInterface[] + * @return array<\Spryker\Zed\SalesExtension\Dependency\Plugin\SearchOrderExpanderPluginInterface> */ protected function getSearchOrderExpanderPlugins(): array { @@ -214,7 +214,7 @@ protected function getSearchOrderExpanderPlugins(): array } /** - * @return \Spryker\Zed\SalesExtension\Dependency\Plugin\SearchOrderQueryExpanderPluginInterface[] + * @return array<\Spryker\Zed\SalesExtension\Dependency\Plugin\SearchOrderQueryExpanderPluginInterface> */ protected function getOrderSearchQueryExpanderPlugins(): array { @@ -229,7 +229,7 @@ protected function getOrderSearchQueryExpanderPlugins(): array } /** - * @return \Spryker\Zed\SalesExtension\Dependency\Plugin\CustomerOrderAccessCheckPluginInterface[] + * @return array<\Spryker\Zed\SalesExtension\Dependency\Plugin\CustomerOrderAccessCheckPluginInterface> */ protected function getCustomerOrderAccessCheckPlugins(): array { @@ -240,7 +240,7 @@ protected function getCustomerOrderAccessCheckPlugins(): array } /** - * @return \Spryker\Zed\SalesExtension\Dependency\Plugin\OrderItemsTableExpanderPluginInterface[] + * @return array<\Spryker\Zed\SalesExtension\Dependency\Plugin\OrderItemsTableExpanderPluginInterface> */ protected function getOrderItemsTableExpanderPlugins(): array { @@ -250,7 +250,7 @@ protected function getOrderItemsTableExpanderPlugins(): array } /** - * @return \Spryker\Zed\SalesExtension\Dependency\Plugin\OrderItemsPostSavePluginInterface[] + * @return array<\Spryker\Zed\SalesExtension\Dependency\Plugin\OrderItemsPostSavePluginInterface> */ protected function getOrderItemsPostSavePlugins(): array { diff --git a/src/Pyz/Zed/SalesOrderThreshold/SalesOrderThresholdDependencyProvider.php b/src/Pyz/Zed/SalesOrderThreshold/SalesOrderThresholdDependencyProvider.php index d0312018e4..5a10fb1bc3 100644 --- a/src/Pyz/Zed/SalesOrderThreshold/SalesOrderThresholdDependencyProvider.php +++ b/src/Pyz/Zed/SalesOrderThreshold/SalesOrderThresholdDependencyProvider.php @@ -19,7 +19,7 @@ class SalesOrderThresholdDependencyProvider extends SprykerSalesOrderThresholdDependencyProvider { /** - * @return \Spryker\Zed\SalesOrderThresholdExtension\Dependency\Plugin\SalesOrderThresholdDataSourceStrategyPluginInterface[] + * @return array<\Spryker\Zed\SalesOrderThresholdExtension\Dependency\Plugin\SalesOrderThresholdDataSourceStrategyPluginInterface> */ protected function getSalesOrderThresholdDataSourceStrategies(): array { @@ -30,7 +30,7 @@ protected function getSalesOrderThresholdDataSourceStrategies(): array } /** - * @return \Spryker\Zed\SalesOrderThresholdExtension\Dependency\Plugin\SalesOrderThresholdStrategyPluginInterface[] + * @return array<\Spryker\Zed\SalesOrderThresholdExtension\Dependency\Plugin\SalesOrderThresholdStrategyPluginInterface> */ protected function getSalesOrderThresholdStrategyPlugins(): array { diff --git a/src/Pyz/Zed/SalesOrderThresholdGui/SalesOrderThresholdGuiDependencyProvider.php b/src/Pyz/Zed/SalesOrderThresholdGui/SalesOrderThresholdGuiDependencyProvider.php index 8c24911553..084e7343f4 100644 --- a/src/Pyz/Zed/SalesOrderThresholdGui/SalesOrderThresholdGuiDependencyProvider.php +++ b/src/Pyz/Zed/SalesOrderThresholdGui/SalesOrderThresholdGuiDependencyProvider.php @@ -17,7 +17,7 @@ class SalesOrderThresholdGuiDependencyProvider extends SprykerSalesOrderThresholdGuiDependencyProvider { /** - * @return \Spryker\Zed\SalesOrderThresholdGuiExtension\Dependency\Plugin\SalesOrderThresholdFormExpanderPluginInterface[] + * @return array<\Spryker\Zed\SalesOrderThresholdGuiExtension\Dependency\Plugin\SalesOrderThresholdFormExpanderPluginInterface> */ protected function getSalesOrderThresholdFormExpanderPlugins(): array { diff --git a/src/Pyz/Zed/SalesReturn/SalesReturnDependencyProvider.php b/src/Pyz/Zed/SalesReturn/SalesReturnDependencyProvider.php index a964866c3e..24821a5b88 100644 --- a/src/Pyz/Zed/SalesReturn/SalesReturnDependencyProvider.php +++ b/src/Pyz/Zed/SalesReturn/SalesReturnDependencyProvider.php @@ -35,7 +35,7 @@ protected function getReturnCreateRequestValidatorPlugins(): array } /** - * @return \Spryker\Zed\SalesReturnExtension\Dependency\Plugin\ReturnExpanderPluginInterface[] + * @return array<\Spryker\Zed\SalesReturnExtension\Dependency\Plugin\ReturnExpanderPluginInterface> */ protected function getReturnExpanderPlugins(): array { diff --git a/src/Pyz/Zed/SalesReturnGui/SalesReturnGuiDependencyProvider.php b/src/Pyz/Zed/SalesReturnGui/SalesReturnGuiDependencyProvider.php index 3410635308..d3a66cbe21 100644 --- a/src/Pyz/Zed/SalesReturnGui/SalesReturnGuiDependencyProvider.php +++ b/src/Pyz/Zed/SalesReturnGui/SalesReturnGuiDependencyProvider.php @@ -14,7 +14,7 @@ class SalesReturnGuiDependencyProvider extends SprykerSalesReturnGuiDependencyProvider { /** - * @return \Spryker\Zed\SalesReturnGuiExtension\Dependency\Plugin\ReturnCreateFormHandlerPluginInterface[] + * @return array<\Spryker\Zed\SalesReturnGuiExtension\Dependency\Plugin\ReturnCreateFormHandlerPluginInterface> */ protected function getReturnCreateFormHandlerPlugins(): array { @@ -24,7 +24,7 @@ protected function getReturnCreateFormHandlerPlugins(): array } /** - * @return \Spryker\Zed\SalesReturnGuiExtension\Dependency\Plugin\ReturnCreateTemplatePluginInterface[] + * @return array<\Spryker\Zed\SalesReturnGuiExtension\Dependency\Plugin\ReturnCreateTemplatePluginInterface> */ protected function getReturnCreateTemplatePlugins(): array { diff --git a/src/Pyz/Zed/Scheduler/SchedulerDependencyProvider.php b/src/Pyz/Zed/Scheduler/SchedulerDependencyProvider.php index 14c6b042c2..af6910169e 100644 --- a/src/Pyz/Zed/Scheduler/SchedulerDependencyProvider.php +++ b/src/Pyz/Zed/Scheduler/SchedulerDependencyProvider.php @@ -15,7 +15,7 @@ class SchedulerDependencyProvider extends SprykerSchedulerDependencyProvider { /** - * @return \Spryker\Zed\SchedulerExtension\Dependency\Plugin\ScheduleReaderPluginInterface[] + * @return array<\Spryker\Zed\SchedulerExtension\Dependency\Plugin\ScheduleReaderPluginInterface> */ protected function getScheduleReaderPlugins(): array { @@ -25,7 +25,7 @@ protected function getScheduleReaderPlugins(): array } /** - * @return \Spryker\Zed\SchedulerExtension\Dependency\Plugin\SchedulerAdapterPluginInterface[] + * @return array<\Spryker\Zed\SchedulerExtension\Dependency\Plugin\SchedulerAdapterPluginInterface> */ protected function getSchedulerAdapterPlugins(): array { diff --git a/src/Pyz/Zed/Search/SearchDependencyProvider.php b/src/Pyz/Zed/Search/SearchDependencyProvider.php index 22075dfc6b..f3c368a97f 100644 --- a/src/Pyz/Zed/Search/SearchDependencyProvider.php +++ b/src/Pyz/Zed/Search/SearchDependencyProvider.php @@ -20,7 +20,7 @@ class SearchDependencyProvider extends SprykerSearchDependencyProvider { /** - * @return \Spryker\Zed\Search\Dependency\Plugin\PageMapInterface[] + * @return array<\Spryker\Zed\Search\Dependency\Plugin\PageMapInterface> */ protected function getSearchPageMapPlugins(): array { @@ -35,7 +35,7 @@ protected function getSearchPageMapPlugins(): array } /** - * @return \Spryker\Zed\SearchExtension\Dependency\Plugin\InstallPluginInterface[] + * @return array<\Spryker\Zed\SearchExtension\Dependency\Plugin\InstallPluginInterface> */ protected function getSearchSourceInstallerPlugins(): array { @@ -45,7 +45,7 @@ protected function getSearchSourceInstallerPlugins(): array } /** - * @return \Spryker\Zed\SearchExtension\Dependency\Plugin\InstallPluginInterface[] + * @return array<\Spryker\Zed\SearchExtension\Dependency\Plugin\InstallPluginInterface> */ protected function getSearchMapInstallerPlugins(): array { diff --git a/src/Pyz/Zed/Security/SecurityDependencyProvider.php b/src/Pyz/Zed/Security/SecurityDependencyProvider.php index db63c63f56..9251580ad1 100644 --- a/src/Pyz/Zed/Security/SecurityDependencyProvider.php +++ b/src/Pyz/Zed/Security/SecurityDependencyProvider.php @@ -19,7 +19,7 @@ class SecurityDependencyProvider extends SprykerSecurityDependencyProvider { /** - * @return \Spryker\Shared\SecurityExtension\Dependency\Plugin\SecurityPluginInterface[] + * @return array<\Spryker\Shared\SecurityExtension\Dependency\Plugin\SecurityPluginInterface> */ protected function getSecurityPlugins(): array { diff --git a/src/Pyz/Zed/Session/SessionDependencyProvider.php b/src/Pyz/Zed/Session/SessionDependencyProvider.php index c412a8fab3..60244af19b 100644 --- a/src/Pyz/Zed/Session/SessionDependencyProvider.php +++ b/src/Pyz/Zed/Session/SessionDependencyProvider.php @@ -17,7 +17,7 @@ class SessionDependencyProvider extends SprykerSessionDependencyProvider { /** - * @return \Spryker\Shared\SessionExtension\Dependency\Plugin\SessionHandlerProviderPluginInterface[] + * @return array<\Spryker\Shared\SessionExtension\Dependency\Plugin\SessionHandlerProviderPluginInterface> */ protected function getSessionHandlerPlugins(): array { @@ -29,7 +29,7 @@ protected function getSessionHandlerPlugins(): array } /** - * @return \Spryker\Zed\SessionExtension\Dependency\Plugin\SessionLockReleaserPluginInterface[] + * @return array<\Spryker\Zed\SessionExtension\Dependency\Plugin\SessionLockReleaserPluginInterface> */ protected function getYvesSessionLockReleaserPlugins(): array { @@ -39,7 +39,7 @@ protected function getYvesSessionLockReleaserPlugins(): array } /** - * @return \Spryker\Zed\SessionExtension\Dependency\Plugin\SessionLockReleaserPluginInterface[] + * @return array<\Spryker\Zed\SessionExtension\Dependency\Plugin\SessionLockReleaserPluginInterface> */ protected function getZedSessionLockReleaserPlugins(): array { diff --git a/src/Pyz/Zed/Setup/SetupConfig.php b/src/Pyz/Zed/Setup/SetupConfig.php index 6bd80aee00..8c4c49865c 100644 --- a/src/Pyz/Zed/Setup/SetupConfig.php +++ b/src/Pyz/Zed/Setup/SetupConfig.php @@ -25,7 +25,7 @@ class SetupConfig extends SprykerSetupConfig * * @return array */ - public function getSetupInstallCommandNames() + public function getSetupInstallCommandNames(): array { return [ EmptyAllCachesConsole::COMMAND_NAME, diff --git a/src/Pyz/Zed/Shipment/ShipmentDependencyProvider.php b/src/Pyz/Zed/Shipment/ShipmentDependencyProvider.php index 3ad1923483..e1fcc19195 100644 --- a/src/Pyz/Zed/Shipment/ShipmentDependencyProvider.php +++ b/src/Pyz/Zed/Shipment/ShipmentDependencyProvider.php @@ -7,6 +7,7 @@ namespace Pyz\Zed\Shipment; +use Spryker\Zed\Kernel\Communication\Form\FormTypeInterface; use Spryker\Zed\Kernel\Container; use Spryker\Zed\MerchantSalesOrder\Communication\Plugin\Shipment\MerchantReferenceShipmentExpenseExpanderPlugin; use Spryker\Zed\Money\Communication\Plugin\Form\MoneyCollectionFormTypePlugin; @@ -17,7 +18,7 @@ class ShipmentDependencyProvider extends SprykerShipmentDependencyProvider /** * @param \Spryker\Zed\Kernel\Container $container * - * @return \Spryker\Zed\ShipmentExtension\Dependency\Plugin\ShipmentMethodAvailabilityPluginInterface[]|\Spryker\Zed\Shipment\Communication\Plugin\ShipmentMethodAvailabilityPluginInterface[] + * @return array<\Spryker\Zed\Shipment\Communication\Plugin\ShipmentMethodAvailabilityPluginInterface>|array<\Spryker\Zed\ShipmentExtension\Dependency\Plugin\ShipmentMethodAvailabilityPluginInterface> */ protected function getAvailabilityPlugins(Container $container): array { @@ -27,7 +28,7 @@ protected function getAvailabilityPlugins(Container $container): array /** * @param \Spryker\Zed\Kernel\Container $container * - * @return \Spryker\Zed\ShipmentExtension\Dependency\Plugin\ShipmentMethodPricePluginInterface[]|\Spryker\Zed\Shipment\Communication\Plugin\ShipmentMethodPricePluginInterface[] + * @return array<\Spryker\Zed\Shipment\Communication\Plugin\ShipmentMethodPricePluginInterface>|array<\Spryker\Zed\ShipmentExtension\Dependency\Plugin\ShipmentMethodPricePluginInterface> */ protected function getPricePlugins(Container $container): array { @@ -37,7 +38,7 @@ protected function getPricePlugins(Container $container): array /** * @param \Spryker\Zed\Kernel\Container $container * - * @return \Spryker\Zed\ShipmentExtension\Dependency\Plugin\ShipmentMethodDeliveryTimePluginInterface[]|\Spryker\Zed\Shipment\Communication\Plugin\ShipmentMethodDeliveryTimePluginInterface[] + * @return array<\Spryker\Zed\Shipment\Communication\Plugin\ShipmentMethodDeliveryTimePluginInterface>|array<\Spryker\Zed\ShipmentExtension\Dependency\Plugin\ShipmentMethodDeliveryTimePluginInterface> */ protected function getDeliveryTimePlugins(Container $container): array { @@ -49,13 +50,13 @@ protected function getDeliveryTimePlugins(Container $container): array * * @return \Spryker\Zed\Kernel\Communication\Form\FormTypeInterface */ - protected function createPyzMoneyCollectionFormTypePlugin(Container $container) + protected function createPyzMoneyCollectionFormTypePlugin(Container $container): FormTypeInterface { return new MoneyCollectionFormTypePlugin(); } /** - * @return \Spryker\Zed\ShipmentExtension\Dependency\Plugin\ShipmentExpenseExpanderPluginInterface[] + * @return array<\Spryker\Zed\ShipmentExtension\Dependency\Plugin\ShipmentExpenseExpanderPluginInterface> */ protected function getShipmentExpenseExpanderPlugins(): array { diff --git a/src/Pyz/Zed/ShipmentGui/ShipmentGuiDependencyProvider.php b/src/Pyz/Zed/ShipmentGui/ShipmentGuiDependencyProvider.php index cef2d9d828..7374bddd48 100644 --- a/src/Pyz/Zed/ShipmentGui/ShipmentGuiDependencyProvider.php +++ b/src/Pyz/Zed/ShipmentGui/ShipmentGuiDependencyProvider.php @@ -35,7 +35,7 @@ protected function getStoreRelationFormTypePlugin(): FormTypeInterface } /** - * @return \Spryker\Zed\ShipmentGuiExtension\Dependency\Plugin\ShipmentOrderItemTemplatePluginInterface[] + * @return array<\Spryker\Zed\ShipmentGuiExtension\Dependency\Plugin\ShipmentOrderItemTemplatePluginInterface> */ protected function getShipmentOrderItemTemplatePlugins(): array { diff --git a/src/Pyz/Zed/ShipmentsRestApi/ShipmentsRestApiDependencyProvider.php b/src/Pyz/Zed/ShipmentsRestApi/ShipmentsRestApiDependencyProvider.php index 54787c1a9a..777c91841f 100644 --- a/src/Pyz/Zed/ShipmentsRestApi/ShipmentsRestApiDependencyProvider.php +++ b/src/Pyz/Zed/ShipmentsRestApi/ShipmentsRestApiDependencyProvider.php @@ -17,7 +17,7 @@ class ShipmentsRestApiDependencyProvider extends SprykerShipmentsRestApiDependencyProvider { /** - * @return \Spryker\Zed\ShipmentsRestApiExtension\Dependency\Plugin\AddressProviderStrategyPluginInterface[] + * @return array<\Spryker\Zed\ShipmentsRestApiExtension\Dependency\Plugin\AddressProviderStrategyPluginInterface> */ protected function getAddressProviderStrategyPlugins(): array { diff --git a/src/Pyz/Zed/ShoppingList/ShoppingListDependencyProvider.php b/src/Pyz/Zed/ShoppingList/ShoppingListDependencyProvider.php index 8c04443b00..0df4ee7feb 100644 --- a/src/Pyz/Zed/ShoppingList/ShoppingListDependencyProvider.php +++ b/src/Pyz/Zed/ShoppingList/ShoppingListDependencyProvider.php @@ -37,7 +37,7 @@ class ShoppingListDependencyProvider extends SprykerShoppingListDependencyProvider { /** - * @return \Spryker\Zed\ShoppingListExtension\Dependency\Plugin\AddItemPreCheckPluginInterface[] + * @return array<\Spryker\Zed\ShoppingListExtension\Dependency\Plugin\AddItemPreCheckPluginInterface> */ protected function getAddItemPreCheckPlugins(): array { @@ -54,7 +54,7 @@ protected function getAddItemPreCheckPlugins(): array } /** - * @return \Spryker\Zed\ShoppingListExtension\Dependency\Plugin\QuoteItemsPreConvertPluginInterface[] + * @return array<\Spryker\Zed\ShoppingListExtension\Dependency\Plugin\QuoteItemsPreConvertPluginInterface> */ protected function getQuoteItemExpanderPlugins(): array { @@ -64,7 +64,7 @@ protected function getQuoteItemExpanderPlugins(): array } /** - * @return \Spryker\Zed\ShoppingListExtension\Dependency\Plugin\ShoppingListItemBulkPostSavePluginInterface[] + * @return array<\Spryker\Zed\ShoppingListExtension\Dependency\Plugin\ShoppingListItemBulkPostSavePluginInterface> */ protected function getShoppingListItemBulkPostSavePlugins(): array { @@ -78,7 +78,7 @@ protected function getShoppingListItemBulkPostSavePlugins(): array } /** - * @return \Spryker\Zed\ShoppingListExtension\Dependency\Plugin\ShoppingListItemBeforeDeletePluginInterface[] + * @return array<\Spryker\Zed\ShoppingListExtension\Dependency\Plugin\ShoppingListItemBeforeDeletePluginInterface> */ protected function getBeforeDeleteShoppingListItemPlugins(): array { @@ -89,7 +89,7 @@ protected function getBeforeDeleteShoppingListItemPlugins(): array } /** - * @return \Spryker\Zed\ShoppingListExtension\Dependency\Plugin\ShoppingListItemCollectionExpanderPluginInterface[] + * @return array<\Spryker\Zed\ShoppingListExtension\Dependency\Plugin\ShoppingListItemCollectionExpanderPluginInterface> */ protected function getItemCollectionExpanderPlugins(): array { @@ -103,7 +103,7 @@ protected function getItemCollectionExpanderPlugins(): array } /** - * @return \Spryker\Zed\ShoppingListExtension\Dependency\Plugin\ItemToShoppingListItemMapperPluginInterface[] + * @return array<\Spryker\Zed\ShoppingListExtension\Dependency\Plugin\ItemToShoppingListItemMapperPluginInterface> */ protected function getItemToShoppingListItemMapperPlugins(): array { diff --git a/src/Pyz/Zed/StateMachine/StateMachineDependencyProvider.php b/src/Pyz/Zed/StateMachine/StateMachineDependencyProvider.php index 0c88fbbf60..1dfae17974 100644 --- a/src/Pyz/Zed/StateMachine/StateMachineDependencyProvider.php +++ b/src/Pyz/Zed/StateMachine/StateMachineDependencyProvider.php @@ -14,9 +14,9 @@ class StateMachineDependencyProvider extends SprykerStateMachineDependencyProvider { /** - * @return \Spryker\Zed\StateMachine\Dependency\Plugin\StateMachineHandlerInterface[] + * @return array<\Spryker\Zed\StateMachine\Dependency\Plugin\StateMachineHandlerInterface> */ - protected function getStateMachineHandlers() + protected function getStateMachineHandlers(): array { return [ new TestStateMachineHandlerPlugin(), diff --git a/src/Pyz/Zed/Stock/StockDependencyProvider.php b/src/Pyz/Zed/Stock/StockDependencyProvider.php index bf80d92e3a..4b4b984977 100644 --- a/src/Pyz/Zed/Stock/StockDependencyProvider.php +++ b/src/Pyz/Zed/Stock/StockDependencyProvider.php @@ -21,7 +21,7 @@ class StockDependencyProvider extends SprykerStockDependencyProvider /** * @param \Spryker\Zed\Kernel\Container $container * - * @return \Spryker\Zed\StockExtension\Dependency\Plugin\StockUpdateHandlerPluginInterface[] + * @return array<\Spryker\Zed\StockExtension\Dependency\Plugin\StockUpdateHandlerPluginInterface> */ protected function getStockUpdateHandlerPlugins(Container $container): array { @@ -33,7 +33,7 @@ protected function getStockUpdateHandlerPlugins(Container $container): array } /** - * @return \Spryker\Zed\StockExtension\Dependency\Plugin\StockCollectionExpanderPluginInterface[] + * @return array<\Spryker\Zed\StockExtension\Dependency\Plugin\StockCollectionExpanderPluginInterface> */ protected function getStockCollectionExpanderPlugins(): array { @@ -43,7 +43,7 @@ protected function getStockCollectionExpanderPlugins(): array } /** - * @return \Spryker\Zed\StockExtension\Dependency\Plugin\StockPostCreatePluginInterface[] + * @return array<\Spryker\Zed\StockExtension\Dependency\Plugin\StockPostCreatePluginInterface> */ protected function getStockPostCreatePlugins(): array { @@ -53,7 +53,7 @@ protected function getStockPostCreatePlugins(): array } /** - * @return \Spryker\Zed\StockExtension\Dependency\Plugin\StockPostUpdatePluginInterface[] + * @return array<\Spryker\Zed\StockExtension\Dependency\Plugin\StockPostUpdatePluginInterface> */ protected function getStockPostUpdatePlugins(): array { diff --git a/src/Pyz/Zed/Store/StoreConfig.php b/src/Pyz/Zed/Store/StoreConfig.php index b330fcbd17..fb623f1bfe 100644 --- a/src/Pyz/Zed/Store/StoreConfig.php +++ b/src/Pyz/Zed/Store/StoreConfig.php @@ -14,7 +14,7 @@ class StoreConfig extends SprykerStoreConfig /** * @return bool */ - public function isMultiStorePerZedEnabled() + public function isMultiStorePerZedEnabled(): bool { return true; } diff --git a/src/Pyz/Zed/Synchronization/SynchronizationDependencyProvider.php b/src/Pyz/Zed/Synchronization/SynchronizationDependencyProvider.php index 1c42084a96..51b726fb00 100644 --- a/src/Pyz/Zed/Synchronization/SynchronizationDependencyProvider.php +++ b/src/Pyz/Zed/Synchronization/SynchronizationDependencyProvider.php @@ -82,7 +82,7 @@ class SynchronizationDependencyProvider extends SprykerSynchronizationDependencyProvider { /** - * @return \Spryker\Zed\SynchronizationExtension\Dependency\Plugin\SynchronizationDataPluginInterface[] + * @return array<\Spryker\Zed\SynchronizationExtension\Dependency\Plugin\SynchronizationDataPluginInterface> */ protected function getSynchronizationDataPlugins(): array { diff --git a/src/Pyz/Zed/Transfer/TransferConfig.php b/src/Pyz/Zed/Transfer/TransferConfig.php index a9467ad5b3..87f108fa42 100644 --- a/src/Pyz/Zed/Transfer/TransferConfig.php +++ b/src/Pyz/Zed/Transfer/TransferConfig.php @@ -14,7 +14,7 @@ class TransferConfig extends SprykerTransferConfig /** * @return array */ - public function getEntitiesSourceDirectories() + public function getEntitiesSourceDirectories(): array { return [ APPLICATION_SOURCE_DIR . '/Orm/Propel/*/Schema/', diff --git a/src/Pyz/Zed/Twig/TwigDependencyProvider.php b/src/Pyz/Zed/Twig/TwigDependencyProvider.php index 9bfca87ba6..f685f693fd 100644 --- a/src/Pyz/Zed/Twig/TwigDependencyProvider.php +++ b/src/Pyz/Zed/Twig/TwigDependencyProvider.php @@ -56,7 +56,7 @@ class TwigDependencyProvider extends SprykerTwigDependencyProvider { /** - * @return \Spryker\Shared\TwigExtension\Dependency\Plugin\TwigPluginInterface[] + * @return array<\Spryker\Shared\TwigExtension\Dependency\Plugin\TwigPluginInterface> */ protected function getTwigPlugins(): array { @@ -109,7 +109,7 @@ protected function getTwigPlugins(): array } /** - * @return \Spryker\Shared\TwigExtension\Dependency\Plugin\TwigLoaderPluginInterface[] + * @return array<\Spryker\Shared\TwigExtension\Dependency\Plugin\TwigLoaderPluginInterface> */ protected function getTwigLoaderPlugins(): array { diff --git a/src/Pyz/Zed/Url/UrlDependencyProvider.php b/src/Pyz/Zed/Url/UrlDependencyProvider.php index c1863fc9cf..5f86f14f45 100644 --- a/src/Pyz/Zed/Url/UrlDependencyProvider.php +++ b/src/Pyz/Zed/Url/UrlDependencyProvider.php @@ -13,7 +13,7 @@ class UrlDependencyProvider extends SprykerUrlDependencyProvider { /** - * @return \Spryker\Zed\Url\Dependency\Plugin\UrlDeletePluginInterface[] + * @return array<\Spryker\Zed\Url\Dependency\Plugin\UrlDeletePluginInterface> */ protected function getUrlBeforeDeletePlugins(): array { diff --git a/src/Pyz/Zed/User/UserConfig.php b/src/Pyz/Zed/User/UserConfig.php index d76b12e298..5a4ba1af97 100644 --- a/src/Pyz/Zed/User/UserConfig.php +++ b/src/Pyz/Zed/User/UserConfig.php @@ -14,7 +14,7 @@ class UserConfig extends SprykerUserConfig /** * @return array */ - public function getInstallerUsers() + public function getInstallerUsers(): array { return [ [ diff --git a/src/Pyz/Zed/User/UserDependencyProvider.php b/src/Pyz/Zed/User/UserDependencyProvider.php index 2b966487d8..b3d05381f8 100644 --- a/src/Pyz/Zed/User/UserDependencyProvider.php +++ b/src/Pyz/Zed/User/UserDependencyProvider.php @@ -25,7 +25,7 @@ class UserDependencyProvider extends SprykerUserDependencyProvider * * @return \Spryker\Zed\Kernel\Container */ - protected function addGroupPlugin(Container $container) + protected function addGroupPlugin(Container $container): Container { $container->set(static::PLUGIN_GROUP, function (Container $container) { return new GroupPlugin(); @@ -35,7 +35,7 @@ protected function addGroupPlugin(Container $container) } /** - * @return \Spryker\Zed\UserExtension\Dependency\Plugin\UserTableActionExpanderPluginInterface[] + * @return array<\Spryker\Zed\UserExtension\Dependency\Plugin\UserTableActionExpanderPluginInterface> */ protected function getUserTableActionExpanderPlugins(): array { @@ -45,7 +45,7 @@ protected function getUserTableActionExpanderPlugins(): array } /** - * @return \Spryker\Zed\UserExtension\Dependency\Plugin\UserFormExpanderPluginInterface[] + * @return array<\Spryker\Zed\UserExtension\Dependency\Plugin\UserFormExpanderPluginInterface> */ protected function getUserFormExpanderPlugins(): array { @@ -56,7 +56,7 @@ protected function getUserFormExpanderPlugins(): array } /** - * @return \Spryker\Zed\UserExtension\Dependency\Plugin\UserTableConfigExpanderPluginInterface[] + * @return array<\Spryker\Zed\UserExtension\Dependency\Plugin\UserTableConfigExpanderPluginInterface> */ protected function getUserTableConfigExpanderPlugins(): array { @@ -66,7 +66,7 @@ protected function getUserTableConfigExpanderPlugins(): array } /** - * @return \Spryker\Zed\UserExtension\Dependency\Plugin\UserTableDataExpanderPluginInterface[] + * @return array<\Spryker\Zed\UserExtension\Dependency\Plugin\UserTableDataExpanderPluginInterface> */ protected function getUserTableDataExpanderPlugins(): array { @@ -76,7 +76,7 @@ protected function getUserTableDataExpanderPlugins(): array } /** - * @return \Spryker\Zed\UserExtension\Dependency\Plugin\UserPreSavePluginInterface[] + * @return array<\Spryker\Zed\UserExtension\Dependency\Plugin\UserPreSavePluginInterface> */ protected function getUserPreSavePlugins(): array { @@ -86,7 +86,7 @@ protected function getUserPreSavePlugins(): array } /** - * @return \Spryker\Zed\UserExtension\Dependency\Plugin\UserTransferExpanderPluginInterface[] + * @return array<\Spryker\Zed\UserExtension\Dependency\Plugin\UserTransferExpanderPluginInterface> */ protected function getUserTransferExpanderPlugins(): array { diff --git a/src/Pyz/Zed/UserPasswordReset/UserPasswordResetDependencyProvider.php b/src/Pyz/Zed/UserPasswordReset/UserPasswordResetDependencyProvider.php index 93fc7bfb60..f22ab3efcc 100644 --- a/src/Pyz/Zed/UserPasswordReset/UserPasswordResetDependencyProvider.php +++ b/src/Pyz/Zed/UserPasswordReset/UserPasswordResetDependencyProvider.php @@ -14,7 +14,7 @@ class UserPasswordResetDependencyProvider extends SprykerUserPasswordResetDependencyProvider { /** - * @return \Spryker\Zed\UserPasswordResetExtension\Dependency\Plugin\UserPasswordResetRequestStrategyPluginInterface[] + * @return array<\Spryker\Zed\UserPasswordResetExtension\Dependency\Plugin\UserPasswordResetRequestStrategyPluginInterface> */ public function getUserPasswordResetRequestStrategyPlugins(): array { diff --git a/src/Pyz/Zed/Validator/ValidatorDependencyProvider.php b/src/Pyz/Zed/Validator/ValidatorDependencyProvider.php index d08637d24a..fedd4de979 100644 --- a/src/Pyz/Zed/Validator/ValidatorDependencyProvider.php +++ b/src/Pyz/Zed/Validator/ValidatorDependencyProvider.php @@ -16,7 +16,7 @@ class ValidatorDependencyProvider extends SprykerValidatorDependencyProvider { /** - * @return \Spryker\Shared\ValidatorExtension\Dependency\Plugin\ValidatorPluginInterface[] + * @return array<\Spryker\Shared\ValidatorExtension\Dependency\Plugin\ValidatorPluginInterface> */ protected function getValidatorPlugins(): array { @@ -28,7 +28,7 @@ protected function getValidatorPlugins(): array } /** - * @return \Spryker\Shared\ValidatorExtension\Dependency\Plugin\ConstraintPluginInterface[] + * @return array<\Spryker\Shared\ValidatorExtension\Dependency\Plugin\ConstraintPluginInterface> */ protected function getConstraintPlugins(): array { diff --git a/src/Pyz/Zed/WebProfiler/WebProfilerDependencyProvider.php b/src/Pyz/Zed/WebProfiler/WebProfilerDependencyProvider.php index 0e3b1c2626..675431d9f0 100644 --- a/src/Pyz/Zed/WebProfiler/WebProfilerDependencyProvider.php +++ b/src/Pyz/Zed/WebProfiler/WebProfilerDependencyProvider.php @@ -23,7 +23,7 @@ class WebProfilerDependencyProvider extends SprykerWebProfilerDependencyProvider { /** - * @return \Spryker\Shared\WebProfilerExtension\Dependency\Plugin\WebProfilerDataCollectorPluginInterface[] + * @return array<\Spryker\Shared\WebProfilerExtension\Dependency\Plugin\WebProfilerDataCollectorPluginInterface> */ public function getDataCollectorPlugins(): array { diff --git a/src/Pyz/Zed/ZedNavigation/ZedNavigationDependencyProvider.php b/src/Pyz/Zed/ZedNavigation/ZedNavigationDependencyProvider.php index ce117d643e..045351fbb9 100644 --- a/src/Pyz/Zed/ZedNavigation/ZedNavigationDependencyProvider.php +++ b/src/Pyz/Zed/ZedNavigation/ZedNavigationDependencyProvider.php @@ -14,7 +14,7 @@ class ZedNavigationDependencyProvider extends SprykerZedNavigationDependencyProvider { /** - * @return \Spryker\Zed\ZedNavigationExtension\Dependency\Plugin\NavigationItemCollectionFilterPluginInterface[] + * @return array<\Spryker\Zed\ZedNavigationExtension\Dependency\Plugin\NavigationItemCollectionFilterPluginInterface> */ protected function getNavigationItemCollectionFilterPlugins(): array { diff --git a/src/SprykerConfig/CodeBucketConfig.php b/src/SprykerConfig/CodeBucketConfig.php index b790dcb473..e6a7550f8b 100644 --- a/src/SprykerConfig/CodeBucketConfig.php +++ b/src/SprykerConfig/CodeBucketConfig.php @@ -12,7 +12,7 @@ class CodeBucketConfig extends AbstractCodeBucketConfig { /** - * @return string[] + * @return array */ public function getCodeBuckets(): array { diff --git a/test-autoload.php b/test-autoload.php index ea1c001b02..97f1df73de 100644 --- a/test-autoload.php +++ b/test-autoload.php @@ -4,6 +4,7 @@ $className = ltrim($className, '\\'); $classNameParts = explode('\\', $className); + $filePathPartsSupport = []; if ($classNameParts[0] === 'PyzTest') { array_shift($classNameParts); $application = array_shift($classNameParts); @@ -31,7 +32,7 @@ ]; } - if (isset($filePathPartsSupport)) { + if ($filePathPartsSupport) { $filePath = implode(DIRECTORY_SEPARATOR, $filePathPartsSupport); if (file_exists($filePath)) { require $filePath; diff --git a/tests/PyzTest/Shared/Testify/_support/Helper/Environment.php b/tests/PyzTest/Shared/Testify/_support/Helper/Environment.php index 35ebc431e2..0340a4425a 100644 --- a/tests/PyzTest/Shared/Testify/_support/Helper/Environment.php +++ b/tests/PyzTest/Shared/Testify/_support/Helper/Environment.php @@ -13,15 +13,23 @@ class Environment extends Module { + /** + * @var string + */ + protected const TESTING_APPLICATION_ENV_NAME = 'devtest'; + /** * @return void */ - public function _initialize() + public function _initialize(): void { $rootDir = realpath(__DIR__ . '/../../../../../../'); + $applicationEnv = $this->getApplicationEnv(); - defined('APPLICATION_ENV') || define('APPLICATION_ENV', 'devtest'); + defined('APPLICATION_ENV') || define('APPLICATION_ENV', $applicationEnv); defined('APPLICATION_STORE') || define('APPLICATION_STORE', (isset($_SERVER['APPLICATION_STORE'])) ? $_SERVER['APPLICATION_STORE'] : 'DE'); + putenv('APPLICATION_STORE=' . APPLICATION_STORE); + defined('APPLICATION') || define('APPLICATION', ''); defined('APPLICATION_ROOT_DIR') || define('APPLICATION_ROOT_DIR', $rootDir); @@ -32,6 +40,18 @@ public function _initialize() putenv('APPLICATION_CODE_BUCKET=' . APPLICATION_CODE_BUCKET); } + /** + * @return string + */ + protected function getApplicationEnv(): string + { + if (getenv('SPRYKER_TESTING_ENABLED')) { + return getenv('APPLICATION_ENV'); + } + + return static::TESTING_APPLICATION_ENV_NAME; + } + /** * @return \Spryker\Shared\Kernel\CodeBucket\Config\CodeBucketConfigInterface */ diff --git a/tests/PyzTest/Shared/Testify/_support/Helper/YvesBootstrap.php b/tests/PyzTest/Shared/Testify/_support/Helper/YvesBootstrap.php index 9ac0e835cf..610c9675a7 100644 --- a/tests/PyzTest/Shared/Testify/_support/Helper/YvesBootstrap.php +++ b/tests/PyzTest/Shared/Testify/_support/Helper/YvesBootstrap.php @@ -10,15 +10,11 @@ use Codeception\Exception\ModuleConfigException; use Codeception\Lib\Framework; use Pyz\Yves\ShopApplication\YvesBootstrap as PyzYvesBootstrap; -use Spryker\Shared\ErrorHandler\ErrorHandlerConstants; -use SprykerTest\Shared\Testify\Helper\ConfigHelperTrait; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpKernel\HttpKernelBrowser; class YvesBootstrap extends Framework { - use ConfigHelperTrait; - /** * @var \Pyz\Yves\ShopApplication\YvesBootstrap */ @@ -27,7 +23,7 @@ class YvesBootstrap extends Framework /** * @return void */ - public function _initialize() + public function _initialize(): void { $this->loadApplication(); } @@ -37,9 +33,8 @@ public function _initialize() * * @return void */ - public function _beforeSuite($settings = []) + public function _beforeSuite($settings = []): void { - $this->disableWhoopsErrorHandler(); $this->client = new HttpKernelBrowser($this->yvesBootstrap->boot()); } @@ -48,7 +43,7 @@ public function _beforeSuite($settings = []) * * @return void */ - protected function loadApplication() + protected function loadApplication(): void { $this->yvesBootstrap = new PyzYvesBootstrap(); @@ -60,16 +55,8 @@ protected function loadApplication() }; Request::setFactory($requestFactory); - if (!isset($this->yvesBootstrap)) { + if ($this->yvesBootstrap === null) { throw new ModuleConfigException(self::class, 'Application instance was not received from bootstrap file'); } } - - /** - * @return void - */ - protected function disableWhoopsErrorHandler(): void - { - $this->getConfigHelper()->setConfig(ErrorHandlerConstants::IS_PRETTY_ERROR_HANDLER_ENABLED, false); - } } diff --git a/tests/PyzTest/Yves/Application/Communication/Controller/HomepageCest.php b/tests/PyzTest/Yves/Application/Communication/Controller/HomepageCest.php deleted file mode 100644 index 2e4989941d..0000000000 --- a/tests/PyzTest/Yves/Application/Communication/Controller/HomepageCest.php +++ /dev/null @@ -1,37 +0,0 @@ -wantTo('See that i can open the homepage'); - $i->amOnPage(Homepage::URL); - $i->canSeeElement(['class' => '__page']); - } -} diff --git a/tests/PyzTest/Yves/Application/Controller/HomepageCest.php b/tests/PyzTest/Yves/Application/Controller/HomepageCest.php index 9ab2e31cfe..43e25bafba 100644 --- a/tests/PyzTest/Yves/Application/Controller/HomepageCest.php +++ b/tests/PyzTest/Yves/Application/Controller/HomepageCest.php @@ -27,7 +27,7 @@ class HomepageCest * * @return void */ - public function testICanOpenHomepage(ApplicationControllerTester $i) + public function testICanOpenHomepage(ApplicationControllerTester $i): void { $i->wantTo('See that i can open the homepage'); $i->amOnPage(Homepage::URL); diff --git a/tests/PyzTest/Yves/Application/Presentation/Controller/HomepageCest.php b/tests/PyzTest/Yves/Application/Presentation/Controller/HomepageCest.php deleted file mode 100644 index ff7f1f869a..0000000000 --- a/tests/PyzTest/Yves/Application/Presentation/Controller/HomepageCest.php +++ /dev/null @@ -1,37 +0,0 @@ -wantTo('See that i can open the homepage'); - $i->amOnPage(Homepage::URL); - $i->canSeeElement('[data-qa="page"]'); - } -} diff --git a/tests/PyzTest/Yves/Application/_support/ApplicationCommunicationTester.php b/tests/PyzTest/Yves/Application/_support/ApplicationCommunicationTester.php deleted file mode 100644 index 1d2655d215..0000000000 --- a/tests/PyzTest/Yves/Application/_support/ApplicationCommunicationTester.php +++ /dev/null @@ -1,35 +0,0 @@ -wantTo('Checkout item with stock'); $i->expectTo('Availability changed during SM processing.'); diff --git a/tests/PyzTest/Yves/Availability/_support/AvailabilityPresentationTester.php b/tests/PyzTest/Yves/Availability/_support/AvailabilityPresentationTester.php index 80e500adfb..e2f2a1d80d 100644 --- a/tests/PyzTest/Yves/Availability/_support/AvailabilityPresentationTester.php +++ b/tests/PyzTest/Yves/Availability/_support/AvailabilityPresentationTester.php @@ -63,7 +63,7 @@ public function __construct(Scenario $scenario) /** * @return void */ - public function processCheckout() + public function processCheckout(): void { $this->processAllCheckoutSteps(); } diff --git a/tests/PyzTest/Yves/Cart/_support/PageObject/CartListPage.php b/tests/PyzTest/Yves/Cart/_support/PageObject/CartListPage.php index 5318c4d323..7345a340bf 100644 --- a/tests/PyzTest/Yves/Cart/_support/PageObject/CartListPage.php +++ b/tests/PyzTest/Yves/Cart/_support/PageObject/CartListPage.php @@ -13,10 +13,12 @@ class CartListPage * @var string */ public const START_CHECKOUT_XPATH = '[data-qa="cart-go-to-checkout"]'; + /** * @var string */ public const CART_HEADER = 'Cart'; + /** * @var string */ @@ -26,6 +28,7 @@ class CartListPage * @var string */ public const FIRST_CART_ITEM_QUANTITY_INPUT_XPATH = '[data-qa*="product-item-quantity"] [data-qa="quantity-input"]'; + /** * @var string */ diff --git a/tests/PyzTest/Yves/Checkout/Controller/CheckoutControllerTest.php b/tests/PyzTest/Yves/Checkout/Controller/CheckoutControllerTest.php index 5babc539a3..17632b7c5c 100644 --- a/tests/PyzTest/Yves/Checkout/Controller/CheckoutControllerTest.php +++ b/tests/PyzTest/Yves/Checkout/Controller/CheckoutControllerTest.php @@ -51,18 +51,22 @@ class CheckoutControllerTest extends Unit * @var string */ public const CUSTOMER_URL = '/checkout/customer'; + /** * @var string */ public const CUSTOMER_ACTION = 'customerAction'; + /** * @var string */ public const CUSTOMER_ROUTE = 'checkout-customer'; + /** * @var string */ public const GUEST_FORM = 'guestForm'; + /** * @var string */ @@ -72,14 +76,17 @@ class CheckoutControllerTest extends Unit * @var string */ public const ADDRESS_URL = '/checkout/address'; + /** * @var string */ public const ADDRESS_ACTION = 'addressAction'; + /** * @var string */ public const ADDRESS_ROUTE = 'checkout-address'; + /** * @var string */ @@ -89,14 +96,17 @@ class CheckoutControllerTest extends Unit * @var string */ public const SHIPMENT_URL = '/checkout/shipment'; + /** * @var string */ public const SHIPMENT_ACTION = 'shipmentAction'; + /** * @var string */ public const SHIPMENT_ROUTE = 'checkout-shipment'; + /** * @var string */ @@ -106,14 +116,17 @@ class CheckoutControllerTest extends Unit * @var string */ public const PAYMENT_URL = '/checkout/payment'; + /** * @var string */ public const PAYMENT_ACTION = 'paymentAction'; + /** * @var string */ public const PAYMENT_ROUTE = 'checkout-payment'; + /** * @var string */ @@ -123,14 +136,17 @@ class CheckoutControllerTest extends Unit * @var string */ public const SUMMARY_URL = '/checkout/summary'; + /** * @var string */ public const SUMMARY_ACTION = 'summaryAction'; + /** * @var string */ public const SUMMARY_ROUTE = 'checkout-summary'; + /** * @var string */ @@ -140,10 +156,12 @@ class CheckoutControllerTest extends Unit * @var string */ public const PLACE_ORDER_URL = '/checkout/place-order'; + /** * @var string */ public const PLACE_ORDER_ACTION = 'placeOrderAction'; + /** * @var string */ @@ -173,7 +191,7 @@ protected function setUp(): void /** * @return void */ - public function testIndexAction() + public function testIndexAction(): void { $this->markTestSkipped('Move this to function controller tests'); $checkoutController = new CheckoutController(); @@ -191,7 +209,7 @@ public function testIndexAction() /** * @return void */ - public function testCustomerActionShouldRenderRegisterAndLoginForms() + public function testCustomerActionShouldRenderRegisterAndLoginForms(): void { $this->markTestSkipped('Move this to function controller tests'); $request = Request::createFromGlobals(); @@ -207,7 +225,7 @@ public function testCustomerActionShouldRenderRegisterAndLoginForms() /** * @return void */ - public function testCustomerAction() + public function testCustomerAction(): void { $this->markTestSkipped('Move this to function controller tests'); $this->setQuoteForCustomer(); @@ -235,7 +253,7 @@ public function testCustomerAction() /** * @return void */ - public function testAddressActionShouldRenderAddressForms() + public function testAddressActionShouldRenderAddressForms(): void { $this->markTestSkipped('Move this to function controller tests'); $this->setQuoteForAddress(); @@ -252,7 +270,7 @@ public function testAddressActionShouldRenderAddressForms() /** * @return void */ - public function testAddressAction() + public function testAddressAction(): void { $this->markTestSkipped('Move this to function controller tests'); $this->setQuoteForAddress(); @@ -286,7 +304,7 @@ public function testAddressAction() /** * @return void */ - public function testShipmentActionShouldRenderShipmentForms() + public function testShipmentActionShouldRenderShipmentForms(): void { $this->markTestSkipped('Move this to function controller tests'); $this->setQuoteForShipment(); @@ -303,7 +321,7 @@ public function testShipmentActionShouldRenderShipmentForms() /** * @return void */ - public function testShipmentAction() + public function testShipmentAction(): void { $this->markTestSkipped('Move this to function controller tests'); $this->setQuoteForShipment(); @@ -326,7 +344,7 @@ public function testShipmentAction() /** * @return void */ - public function testPaymentActionShouldRenderPaymentForms() + public function testPaymentActionShouldRenderPaymentForms(): void { $this->markTestSkipped('Move this to function controller tests'); $this->allowMoreThenOneRequestToZed(); @@ -347,7 +365,7 @@ public function testPaymentActionShouldRenderPaymentForms() * * @return void */ - public function testPaymentAction() + public function testPaymentAction(): void { $this->markTestSkipped('Move this to function controller tests'); $this->allowMoreThenOneRequestToZed(); @@ -377,7 +395,7 @@ public function testPaymentAction() /** * @return void */ - public function testSummaryActionShouldRenderSummaryPage() + public function testSummaryActionShouldRenderSummaryPage(): void { $this->markTestSkipped('Move this to function controller tests'); $this->setQuoteForSummary(); @@ -395,7 +413,7 @@ public function testSummaryActionShouldRenderSummaryPage() /** * @return void */ - public function testSummaryAction() + public function testSummaryAction(): void { $this->markTestSkipped('Move this to function controller tests'); $this->allowMoreThenOneRequestToZed(); @@ -419,7 +437,7 @@ public function testSummaryAction() /** * @return void */ - public function testPlaceOrder() + public function testPlaceOrder(): void { $this->markTestSkipped('Move this to function controller tests'); $this->markTestIncomplete('Request data missing'); @@ -436,7 +454,7 @@ public function testPlaceOrder() /** * @return void */ - private function setQuoteForCustomer() + private function setQuoteForCustomer(): void { $quoteTransfer = new QuoteTransfer(); $quoteTransfer->setPriceMode(PriceConfig::PRICE_MODE_GROSS); @@ -451,7 +469,7 @@ private function setQuoteForCustomer() /** * @return void */ - private function setQuoteForAddress() + private function setQuoteForAddress(): void { $quoteTransfer = new QuoteTransfer(); $quoteTransfer->setPriceMode(PriceConfig::PRICE_MODE_GROSS); @@ -470,7 +488,7 @@ private function setQuoteForAddress() /** * @return void */ - private function setQuoteForShipment() + private function setQuoteForShipment(): void { $quoteTransfer = new QuoteTransfer(); $quoteTransfer->setPriceMode(PriceConfig::PRICE_MODE_GROSS); @@ -504,7 +522,7 @@ private function setQuoteForShipment() /** * @return void */ - private function setQuoteForPayment() + private function setQuoteForPayment(): void { $quoteTransfer = new QuoteTransfer(); $quoteTransfer->setPriceMode(PriceConfig::PRICE_MODE_GROSS); @@ -550,7 +568,7 @@ private function setQuoteForPayment() /** * @return void */ - private function setQuoteForSummary() + private function setQuoteForSummary(): void { $quoteTransfer = new QuoteTransfer(); $quoteTransfer->setPriceMode(PriceConfig::PRICE_MODE_GROSS); @@ -606,7 +624,7 @@ private function setQuoteForSummary() * * @return array */ - protected function getFormData($url, $actionName, $routeName, $formName) + protected function getFormData($url, $actionName, $routeName, $formName): array { $request = Request::create($url, 'GET'); $request->request->set('_route', $routeName); @@ -621,7 +639,7 @@ protected function getFormData($url, $actionName, $routeName, $formName) * * @return array */ - protected function getFormDataFromResult(FormView $formView) + protected function getFormDataFromResult(FormView $formView): array { $customerData = []; foreach ($formView->getIterator() as $item) { @@ -634,7 +652,7 @@ protected function getFormDataFromResult(FormView $formView) /** * @return void */ - protected function allowMoreThenOneRequestToZed() + protected function allowMoreThenOneRequestToZed(): void { $reflectionProperty = new ReflectionProperty(HttpClient::class, 'alreadyRequested'); $reflectionProperty->setAccessible(true); diff --git a/tests/PyzTest/Yves/Checkout/Process/Steps/AddressStepTest.php b/tests/PyzTest/Yves/Checkout/Process/Steps/AddressStepTest.php index 64f91abd5b..38ac0101c1 100644 --- a/tests/PyzTest/Yves/Checkout/Process/Steps/AddressStepTest.php +++ b/tests/PyzTest/Yves/Checkout/Process/Steps/AddressStepTest.php @@ -54,7 +54,7 @@ class AddressStepTest extends Unit /** * @return void */ - public function testExecuteAddressStepWhenGuestIsSubmittedShouldUseDataFromAddressFromForm() + public function testExecuteAddressStepWhenGuestIsSubmittedShouldUseDataFromAddressFromForm(): void { $customerClientMock = $this->createCustomerClientMock(); $addressStep = $this->createAddressStep($customerClientMock); @@ -74,7 +74,7 @@ public function testExecuteAddressStepWhenGuestIsSubmittedShouldUseDataFromAddre /** * @return void */ - public function testExecuteAddressStepWhenGuestIsSubmittedShouldUseDataFromAddressFromFormWithItemLevelShippingAddresses() + public function testExecuteAddressStepWhenGuestIsSubmittedShouldUseDataFromAddressFromFormWithItemLevelShippingAddresses(): void { $addressStep = $this->createAddressStep(); @@ -96,7 +96,7 @@ public function testExecuteAddressStepWhenGuestIsSubmittedShouldUseDataFromAddre /** * @return void */ - public function testExecuteAddressStepWhenLoggedInUserCreatesNewAddress() + public function testExecuteAddressStepWhenLoggedInUserCreatesNewAddress(): void { $addressTransfer = new AddressTransfer(); $addressTransfer->setIdCustomerAddress(1); @@ -136,7 +136,7 @@ public function testExecuteAddressStepWhenLoggedInUserCreatesNewAddress() /** * @return void */ - public function testExecuteAddressStepWhenLoggedInUserCreatesNewAddressWithItemLevelShippingAddresses() + public function testExecuteAddressStepWhenLoggedInUserCreatesNewAddressWithItemLevelShippingAddresses(): void { $addressTransfer = new AddressTransfer(); $addressTransfer->setIdCustomerAddress(1); @@ -175,7 +175,7 @@ public function testExecuteAddressStepWhenLoggedInUserCreatesNewAddressWithItemL /** * @return void */ - public function testExecuteWhenBillingAddressSameAsShippingSelectedShouldCopyShipmentIntoBilling() + public function testExecuteWhenBillingAddressSameAsShippingSelectedShouldCopyShipmentIntoBilling(): void { $addressTransfer = new AddressTransfer(); $addressTransfer->setIdCustomerAddress(1); @@ -207,7 +207,7 @@ public function testExecuteWhenBillingAddressSameAsShippingSelectedShouldCopyShi /** * @return void */ - public function testExecuteWhenBillingAddressSameAsShippingSelectedShouldCopyShipmentIntoBillingWithItemLevelShippingAddresses() + public function testExecuteWhenBillingAddressSameAsShippingSelectedShouldCopyShipmentIntoBillingWithItemLevelShippingAddresses(): void { $addressTransfer = (new AddressBuilder([ AddressTransfer::ID_CUSTOMER_ADDRESS => 1, @@ -242,7 +242,7 @@ public function testExecuteWhenBillingAddressSameAsShippingSelectedShouldCopyShi /** * @return void */ - public function testPostConditionWhenNoAddressesSetShouldReturnFalse() + public function testPostConditionWhenNoAddressesSetShouldReturnFalse(): void { $addressStep = $this->createAddressStep(); $this->assertFalse($addressStep->postCondition(new QuoteTransfer())); @@ -251,7 +251,7 @@ public function testPostConditionWhenNoAddressesSetShouldReturnFalse() /** * @return void */ - public function testPostConditionIfShippingIsEmptyShouldReturnFalse() + public function testPostConditionIfShippingIsEmptyShouldReturnFalse(): void { $addressStep = $this->createAddressStep(); $quoteTransfer = new QuoteTransfer(); @@ -263,7 +263,7 @@ public function testPostConditionIfShippingIsEmptyShouldReturnFalse() /** * @return void */ - public function testPostConditionIfBillingIsEmptyShouldReturnFalse() + public function testPostConditionIfBillingIsEmptyShouldReturnFalse(): void { $addressStep = $this->createAddressStep(); $quoteTransfer = new QuoteTransfer(); @@ -275,7 +275,7 @@ public function testPostConditionIfBillingIsEmptyShouldReturnFalse() /** * @return void */ - public function testPostConditionIfBillingIsEmptyShouldReturnFalseWithItemLevelShippingAddresses() + public function testPostConditionIfBillingIsEmptyShouldReturnFalseWithItemLevelShippingAddresses(): void { $addressStep = $this->createAddressStep(); @@ -293,7 +293,7 @@ public function testPostConditionIfBillingIsEmptyShouldReturnFalseWithItemLevelS /** * @return void */ - public function testPostConditionIfEmptyAddressesIsSetShouldReturnFalse() + public function testPostConditionIfEmptyAddressesIsSetShouldReturnFalse(): void { // Arrange $addressStep = $this->createAddressStep(); @@ -311,7 +311,7 @@ public function testPostConditionIfEmptyAddressesIsSetShouldReturnFalse() /** * @return void */ - public function testPostConditionIfNotEmptyAddressesIsSetShouldReturnTrue() + public function testPostConditionIfNotEmptyAddressesIsSetShouldReturnTrue(): void { // Arrange $addressStep = $this->createAddressStep(); @@ -331,7 +331,7 @@ public function testPostConditionIfNotEmptyAddressesIsSetShouldReturnTrue() /** * @return void */ - public function testPostConditionIfAddressesIsSetShouldReturnTrueWithItemLevelShippingAddresses() + public function testPostConditionIfAddressesIsSetShouldReturnTrueWithItemLevelShippingAddresses(): void { // Arrange $addressStep = $this->createAddressStep(); @@ -355,7 +355,7 @@ public function testPostConditionIfAddressesIsSetShouldReturnTrueWithItemLevelSh /** * @return void */ - public function testRequireInputShouldReturnTrue() + public function testRequireInputShouldReturnTrue(): void { $addressStep = $this->createAddressStep(); $this->assertTrue($addressStep->requireInput(new QuoteTransfer())); @@ -439,7 +439,7 @@ protected function createConfigMock(): CheckoutPageConfig /** * @return \Symfony\Component\HttpFoundation\Request */ - protected function createRequest() + protected function createRequest(): Request { return Request::createFromGlobals(); } @@ -484,7 +484,7 @@ protected function createCompanyUnitAddressExpanderPluginMock(): AddressTransfer } /** - * @return \SprykerShop\Yves\CheckoutPageExtension\Dependency\Plugin\AddressTransferExpanderPluginInterface[] + * @return array<\SprykerShop\Yves\CheckoutPageExtension\Dependency\Plugin\AddressTransferExpanderPluginInterface> */ public function getShoppingListItemExpanderPlugins(): array { @@ -495,7 +495,7 @@ public function getShoppingListItemExpanderPlugins(): array } /** - * @return \SprykerShop\Yves\CheckoutPageExtension\Dependency\Plugin\CheckoutAddressStepEnterPreCheckPluginInterface[] + * @return array<\SprykerShop\Yves\CheckoutPageExtension\Dependency\Plugin\CheckoutAddressStepEnterPreCheckPluginInterface> */ public function getCheckoutAddressStepEnterPreCheckPlugins(): array { diff --git a/tests/PyzTest/Yves/Checkout/Process/Steps/CustomerStepTest.php b/tests/PyzTest/Yves/Checkout/Process/Steps/CustomerStepTest.php index 6c768933b5..5025409f23 100644 --- a/tests/PyzTest/Yves/Checkout/Process/Steps/CustomerStepTest.php +++ b/tests/PyzTest/Yves/Checkout/Process/Steps/CustomerStepTest.php @@ -31,7 +31,7 @@ class CustomerStepTest extends Unit /** * @return void */ - public function testExecuteShouldTriggerAuthHandler() + public function testExecuteShouldTriggerAuthHandler(): void { $authHandlerMock = $this->createAuthHandlerMock(); $authHandlerMock->expects($this->once())->method('addToDataClass')->willReturnArgument(1); @@ -43,7 +43,7 @@ public function testExecuteShouldTriggerAuthHandler() /** * @return void */ - public function testPostConditionWhenCustomerTransferNotSetShouldReturnFalse() + public function testPostConditionWhenCustomerTransferNotSetShouldReturnFalse(): void { $customerStep = $this->createCustomerStep(); $this->assertFalse($customerStep->postCondition(new QuoteTransfer())); @@ -52,7 +52,7 @@ public function testPostConditionWhenCustomerTransferNotSetShouldReturnFalse() /** * @return void */ - public function testPostConditionWhenCustomerIsLoggedInAndTriesToLoginAsAGuestShouldReturnFalse() + public function testPostConditionWhenCustomerIsLoggedInAndTriesToLoginAsAGuestShouldReturnFalse(): void { $customerClientMock = $this->createCustomerClientMock(); $customerClientMock->expects($this->once())->method('getCustomer')->willReturn(new CustomerTransfer()); @@ -69,7 +69,7 @@ public function testPostConditionWhenCustomerIsLoggedInAndTriesToLoginAsAGuestSh /** * @return void */ - public function testPostConditionWhenInvalidCustomerSetShouldReturnFalse() + public function testPostConditionWhenInvalidCustomerSetShouldReturnFalse(): void { $customerStep = $this->createCustomerStep(); $quoteTransfer = new QuoteTransfer(); @@ -81,7 +81,7 @@ public function testPostConditionWhenInvalidCustomerSetShouldReturnFalse() /** * @return void */ - public function testPostConditionWhenGuestCustomerSetShouldReturnTrue() + public function testPostConditionWhenGuestCustomerSetShouldReturnTrue(): void { $customerStep = $this->createCustomerStep(); $quoteTransfer = new QuoteTransfer(); @@ -95,7 +95,7 @@ public function testPostConditionWhenGuestCustomerSetShouldReturnTrue() /** * @return void */ - public function testRequireInputWhenCustomerIsSetShouldReturnTrue() + public function testRequireInputWhenCustomerIsSetShouldReturnTrue(): void { $customerStep = $this->createCustomerStep(); $quoteTransfer = new QuoteTransfer(); @@ -107,7 +107,7 @@ public function testRequireInputWhenCustomerIsSetShouldReturnTrue() /** * @return void */ - public function testRequireInputWhenCustomerLoggedInShouldReturnFalse() + public function testRequireInputWhenCustomerLoggedInShouldReturnFalse(): void { $customerClientMock = $this->createCustomerClientMock(); $customerClientMock->expects($this->once())->method('getCustomer')->willReturn(new CustomerTransfer()); @@ -121,7 +121,7 @@ public function testRequireInputWhenCustomerLoggedInShouldReturnFalse() /** * @return void */ - public function testRequireInputWhenNotLoggedInAndNotYetSetInQuoteShouldReturnTrue() + public function testRequireInputWhenNotLoggedInAndNotYetSetInQuoteShouldReturnTrue(): void { $customerStep = $this->createCustomerStep(); $this->assertTrue($customerStep->requireInput(new QuoteTransfer())); @@ -133,7 +133,7 @@ public function testRequireInputWhenNotLoggedInAndNotYetSetInQuoteShouldReturnTr * * @return \SprykerShop\Yves\CheckoutPage\Process\Steps\CustomerStep */ - protected function createCustomerStep($customerClientMock = null, $authHandlerMock = null) + protected function createCustomerStep($customerClientMock = null, $authHandlerMock = null): CustomerStep { if ($customerClientMock === null) { $customerClientMock = $this->createCustomerClientMock(); @@ -147,7 +147,7 @@ protected function createCustomerStep($customerClientMock = null, $authHandlerMo $authHandlerMock, 'customer_step', 'escape_route', - '/logout' + '/logout', ); } @@ -162,7 +162,7 @@ protected function createAuthHandlerMock(): StepHandlerPluginInterface /** * @return \Symfony\Component\HttpFoundation\Request */ - protected function createRequest() + protected function createRequest(): Request { return Request::createFromGlobals(); } diff --git a/tests/PyzTest/Yves/Checkout/Process/Steps/EntryStepTest.php b/tests/PyzTest/Yves/Checkout/Process/Steps/EntryStepTest.php index f276b9a965..ff0e083a63 100644 --- a/tests/PyzTest/Yves/Checkout/Process/Steps/EntryStepTest.php +++ b/tests/PyzTest/Yves/Checkout/Process/Steps/EntryStepTest.php @@ -29,7 +29,7 @@ class EntryStepTest extends Unit /** * @return void */ - public function testRequireInputShouldReturnFalse() + public function testRequireInputShouldReturnFalse(): void { $entryStep = $this->createEntryStep(); $this->assertFalse($entryStep->requireInput(new QuoteTransfer())); @@ -38,7 +38,7 @@ public function testRequireInputShouldReturnFalse() /** * @return void */ - public function testPostConditionShouldReturnTrue() + public function testPostConditionShouldReturnTrue(): void { $entryStep = $this->createEntryStep(); @@ -48,7 +48,7 @@ public function testPostConditionShouldReturnTrue() /** * @return void */ - public function testPreConditionShouldReturnFalseIfCarIsEmpty() + public function testPreConditionShouldReturnFalseIfCarIsEmpty(): void { $entryStep = $this->createEntryStep(); $this->assertFalse($entryStep->preCondition(new QuoteTransfer())); @@ -57,18 +57,18 @@ public function testPreConditionShouldReturnFalseIfCarIsEmpty() /** * @return \SprykerShop\Yves\CheckoutPage\Process\Steps\EntryStep */ - protected function createEntryStep() + protected function createEntryStep(): EntryStep { return new EntryStep( 'entry_route', - 'escape_route' + 'escape_route', ); } /** * @return \Symfony\Component\HttpFoundation\Request */ - protected function createRequest() + protected function createRequest(): Request { return Request::createFromGlobals(); } @@ -76,7 +76,7 @@ protected function createRequest() /** * @return \Spryker\Client\Customer\CustomerClient */ - protected function createCustomerClient() + protected function createCustomerClient(): CustomerClient { return new CustomerClient(); } diff --git a/tests/PyzTest/Yves/Checkout/Process/Steps/PaymentStepTest.php b/tests/PyzTest/Yves/Checkout/Process/Steps/PaymentStepTest.php index 4b23d579c8..9dddb5f0a8 100644 --- a/tests/PyzTest/Yves/Checkout/Process/Steps/PaymentStepTest.php +++ b/tests/PyzTest/Yves/Checkout/Process/Steps/PaymentStepTest.php @@ -87,7 +87,7 @@ public function testShipmentRequireInputShouldReturnTrue(): void * * @return \SprykerShop\Yves\CheckoutPage\Process\Steps\PaymentStep */ - protected function createPaymentStep(StepHandlerPluginCollection $paymentPlugins) + protected function createPaymentStep(StepHandlerPluginCollection $paymentPlugins): PaymentStep { return new PaymentStep( $this->getPaymentClientMock(), @@ -97,7 +97,7 @@ protected function createPaymentStep(StepHandlerPluginCollection $paymentPlugins $this->getFlashMessengerMock(), $this->getCalculationClientMock(), $this->getCheckoutPaymentStepEnterPreCheckPlugins(), - new PaymentMethodKeyExtractor() + new PaymentMethodKeyExtractor(), ); } @@ -140,7 +140,7 @@ protected function getPaymentClientMock(): CheckoutPageToPaymentClientInterface { $availablePaymentMethods = (new PaymentMethodsTransfer()) ->addMethod( - (new PaymentMethodTransfer())->setMethodName('test') + (new PaymentMethodTransfer())->setMethodName('test'), ); $paymentClientMock = $this->createMock(CheckoutPageToPaymentClientInterface::class); @@ -151,7 +151,7 @@ protected function getPaymentClientMock(): CheckoutPageToPaymentClientInterface } /** - * @return \SprykerShop\Yves\CheckoutPageExtension\Dependency\Plugin\CheckoutPaymentStepEnterPreCheckPluginInterface[] + * @return array<\SprykerShop\Yves\CheckoutPageExtension\Dependency\Plugin\CheckoutPaymentStepEnterPreCheckPluginInterface> */ public function getCheckoutPaymentStepEnterPreCheckPlugins(): array { diff --git a/tests/PyzTest/Yves/Checkout/Process/Steps/PlaceOrderStepTest.php b/tests/PyzTest/Yves/Checkout/Process/Steps/PlaceOrderStepTest.php index 54b543fb26..5e4abbb7cd 100644 --- a/tests/PyzTest/Yves/Checkout/Process/Steps/PlaceOrderStepTest.php +++ b/tests/PyzTest/Yves/Checkout/Process/Steps/PlaceOrderStepTest.php @@ -36,6 +36,7 @@ class PlaceOrderStepTest extends Unit * @var string */ protected const LOCALE_NAME_PLACE_ORDER_STEP = 'en_US'; + /** * @var string */ @@ -44,7 +45,7 @@ class PlaceOrderStepTest extends Unit /** * @return void */ - public function testPlaceOrderExecuteWhenExternalRedirectProvidedShouldSetIt() + public function testPlaceOrderExecuteWhenExternalRedirectProvidedShouldSetIt(): void { $checkoutClientMock = $this->createCheckoutClientMock(); $redirectUrl = 'http://www.ten-kur-toli.lt'; @@ -63,7 +64,7 @@ public function testPlaceOrderExecuteWhenExternalRedirectProvidedShouldSetIt() /** * @return void */ - public function testPlaceOrderExecuteWhenOrderSuccessfullyPlacedShouldHaveStoreOrderData() + public function testPlaceOrderExecuteWhenOrderSuccessfullyPlacedShouldHaveStoreOrderData(): void { $checkoutClientMock = $this->createCheckoutClientMock(); @@ -86,16 +87,16 @@ public function testPlaceOrderExecuteWhenOrderSuccessfullyPlacedShouldHaveStoreO /** * @return void */ - public function testPlaceOrderExecuteWhenOrderHaveErrorsShouldLogToFlashMessenger() + public function testPlaceOrderExecuteWhenOrderHaveErrorsShouldLogToFlashMessenger(): void { $checkoutClientMock = $this->createCheckoutClientMock(); $checkoutResponseTransfer = new CheckoutResponseTransfer(); $checkoutResponseTransfer->addError( - (new CheckoutErrorTransfer())->setMessage(static::MESSAGE_CHECKOUT_ERROR_TRANSFER) + (new CheckoutErrorTransfer())->setMessage(static::MESSAGE_CHECKOUT_ERROR_TRANSFER), ); $checkoutResponseTransfer->addError( - (new CheckoutErrorTransfer())->setMessage(static::MESSAGE_CHECKOUT_ERROR_TRANSFER) + (new CheckoutErrorTransfer())->setMessage(static::MESSAGE_CHECKOUT_ERROR_TRANSFER), ); $checkoutClientMock->expects($this->once())->method('placeOrder')->willReturn($checkoutResponseTransfer); @@ -112,7 +113,7 @@ public function testPlaceOrderExecuteWhenOrderHaveErrorsShouldLogToFlashMessenge /** * @return void */ - public function testPostConditionsShouldReturnTrueWhenOrderPlaceIsReady() + public function testPostConditionsShouldReturnTrueWhenOrderPlaceIsReady(): void { $checkoutResponseTransfer = new CheckoutResponseTransfer(); $checkoutResponseTransfer->setIsSuccess(true); @@ -129,7 +130,7 @@ public function testPostConditionsShouldReturnTrueWhenOrderPlaceIsReady() /** * @return void */ - public function testRequireInputShouldBeFalse() + public function testRequireInputShouldBeFalse(): void { $checkoutClientMock = $this->createCheckoutClientMock(); $placeOrderStep = $this->createPlaceOrderStep($checkoutClientMock); @@ -144,8 +145,10 @@ public function testRequireInputShouldBeFalse() * * @return \SprykerShop\Yves\CheckoutPage\Process\Steps\PlaceOrderStep */ - protected function createPlaceOrderStep(CheckoutPageToCheckoutClientInterface $checkoutClientMock, $flashMessengerMock = null) - { + protected function createPlaceOrderStep( + CheckoutPageToCheckoutClientInterface $checkoutClientMock, + $flashMessengerMock = null, + ): PlaceOrderStep { if ($flashMessengerMock === null) { $flashMessengerMock = $this->createFlashMessengerMock(); } @@ -156,7 +159,7 @@ protected function createPlaceOrderStep(CheckoutPageToCheckoutClientInterface $c static::LOCALE_NAME_PLACE_ORDER_STEP, $this->createGlossaryStorageClientMock(), 'place_order', - 'escape_route' + 'escape_route', ); } @@ -171,7 +174,7 @@ protected function createGlossaryStorageClientMock(): CheckoutPageToGlossaryStor /** * @return \Symfony\Component\HttpFoundation\Request */ - protected function createRequest() + protected function createRequest(): Request { return Request::createFromGlobals(); } @@ -203,7 +206,7 @@ protected function createShipmentMock(): StepHandlerPluginInterface /** * @return \Generated\Shared\Transfer\QuoteTransfer */ - protected function createQuoteTransfer() + protected function createQuoteTransfer(): QuoteTransfer { $quoteTransfer = new QuoteTransfer(); $quoteTransfer->setCheckoutConfirmed(true); diff --git a/tests/PyzTest/Yves/Checkout/Process/Steps/ShipmentStepTest.php b/tests/PyzTest/Yves/Checkout/Process/Steps/ShipmentStepTest.php index fe75fd448e..40f70b5971 100644 --- a/tests/PyzTest/Yves/Checkout/Process/Steps/ShipmentStepTest.php +++ b/tests/PyzTest/Yves/Checkout/Process/Steps/ShipmentStepTest.php @@ -97,7 +97,7 @@ protected function createShipmentStep(StepHandlerPluginCollection $shipmentPlugi $giftCardItemsCheckerMock, CheckoutPageDependencyProvider::PLUGIN_SHIPMENT_STEP_HANDLER, 'escape_route', - $this->getCheckoutShipmentStepEnterPreCheckPlugins() + $this->getCheckoutShipmentStepEnterPreCheckPlugins(), ); } @@ -164,7 +164,7 @@ protected function createShipmentServiceMock(): CheckoutPageToShipmentServiceInt } /** - * @return \SprykerShop\Yves\CheckoutPageExtension\Dependency\Plugin\CheckoutShipmentStepEnterPreCheckPluginInterface[] + * @return array<\SprykerShop\Yves\CheckoutPageExtension\Dependency\Plugin\CheckoutShipmentStepEnterPreCheckPluginInterface> */ public function getCheckoutShipmentStepEnterPreCheckPlugins(): array { diff --git a/tests/PyzTest/Yves/Checkout/Process/Steps/SuccessStepTest.php b/tests/PyzTest/Yves/Checkout/Process/Steps/SuccessStepTest.php index d679bc86b2..ff78fef06c 100644 --- a/tests/PyzTest/Yves/Checkout/Process/Steps/SuccessStepTest.php +++ b/tests/PyzTest/Yves/Checkout/Process/Steps/SuccessStepTest.php @@ -32,7 +32,7 @@ class SuccessStepTest extends Unit /** * @return void */ - public function testExecuteShouldEmptyQuoteTransfer() + public function testExecuteShouldEmptyQuoteTransfer(): void { $customerClientMock = $this->createCustomerClientMock(); $customerClientMock->expects($this->once())->method('markCustomerAsDirty'); @@ -51,7 +51,7 @@ public function testExecuteShouldEmptyQuoteTransfer() /** * @return void */ - public function testPostConditionsWhenOrderReferenceIsSetShouldReturnTrue() + public function testPostConditionsWhenOrderReferenceIsSetShouldReturnTrue(): void { $successStep = $this->createSuccessStep(); @@ -64,7 +64,7 @@ public function testPostConditionsWhenOrderReferenceIsSetShouldReturnTrue() /** * @return void */ - public function testPostConditionsWhenOrderReferenceIsMissingShouldReturnFalse() + public function testPostConditionsWhenOrderReferenceIsMissingShouldReturnFalse(): void { $successStep = $this->createSuccessStep(); $quoteTransfer = new QuoteTransfer(); @@ -77,7 +77,7 @@ public function testPostConditionsWhenOrderReferenceIsMissingShouldReturnFalse() * * @return \SprykerShop\Yves\CheckoutPage\Process\Steps\SuccessStep */ - protected function createSuccessStep($customerClientMock = null) + protected function createSuccessStep($customerClientMock = null): SuccessStep { if ($customerClientMock === null) { $customerClientMock = $this->createCustomerClientMock(); @@ -91,7 +91,7 @@ protected function createSuccessStep($customerClientMock = null) $cartClientMock, $checkoutPageConfigMock, 'success_route', - 'escape_route' + 'escape_route', ); } @@ -106,7 +106,7 @@ protected function createCartClientMock(): CheckoutPageToCartClientInterface /** * @return \Symfony\Component\HttpFoundation\Request */ - protected function createRequest() + protected function createRequest(): Request { return Request::createFromGlobals(); } diff --git a/tests/PyzTest/Yves/Checkout/Process/Steps/SummaryStepTest.php b/tests/PyzTest/Yves/Checkout/Process/Steps/SummaryStepTest.php index 19360b5a7a..7ba704f5b4 100644 --- a/tests/PyzTest/Yves/Checkout/Process/Steps/SummaryStepTest.php +++ b/tests/PyzTest/Yves/Checkout/Process/Steps/SummaryStepTest.php @@ -41,7 +41,7 @@ class SummaryStepTest extends Unit /** * @return void */ - public function testPostConditionShouldReturnWhenQuoteReadyForSummaryDisplay() + public function testPostConditionShouldReturnWhenQuoteReadyForSummaryDisplay(): void { $summaryStep = $this->createSummaryStep(); @@ -60,7 +60,7 @@ public function testPostConditionShouldReturnWhenQuoteReadyForSummaryDisplay() /** * @return void */ - public function testRequireInputShouldBeTrue() + public function testRequireInputShouldBeTrue(): void { $summaryStep = $this->createSummaryStep(); @@ -70,7 +70,7 @@ public function testRequireInputShouldBeTrue() /** * @return \SprykerShop\Yves\CheckoutPage\Process\Steps\SummaryStep */ - protected function createSummaryStep() + protected function createSummaryStep(): SummaryStep { $productBundleClient = $this->createProductBundleClient(); @@ -80,7 +80,7 @@ protected function createSummaryStep() $this->createConfigMock(), 'shipment', 'escape_route', - $this->getCheckoutClientMock() + $this->getCheckoutClientMock(), ); } @@ -95,7 +95,7 @@ protected function createProductBundleClient(): CheckoutPageToProductBundleClien /** * @return \Symfony\Component\HttpFoundation\Request */ - protected function createRequest() + protected function createRequest(): Request { return Request::createFromGlobals(); } diff --git a/tests/PyzTest/Yves/CompanyUser/_support/PageObject/CompanyRegistrationPage.php b/tests/PyzTest/Yves/CompanyUser/_support/PageObject/CompanyRegistrationPage.php index 855924a02b..ac7aabd746 100644 --- a/tests/PyzTest/Yves/CompanyUser/_support/PageObject/CompanyRegistrationPage.php +++ b/tests/PyzTest/Yves/CompanyUser/_support/PageObject/CompanyRegistrationPage.php @@ -23,10 +23,12 @@ class CompanyRegistrationPage * @var string */ public const FORM_FIELD_SALUTATION = '//form[@name=\'company_register_form\']//select[@name=\'company_register_form[salutation]\']'; + /** * @var string */ public const FORM_FIELD_FIRST_NAME = '//form[@name=\'company_register_form\']//input[@name=\'company_register_form[first_name]\']'; + /** * @var string */ @@ -36,6 +38,7 @@ class CompanyRegistrationPage * @var string */ public const FORM_FIELD_COMPANY_NAME = '//form[@name=\'company_register_form\']//input[@name=\'company_register_form[company_name]\']'; + /** * @var string */ @@ -45,6 +48,7 @@ class CompanyRegistrationPage * @var string */ public const FORM_FIELD_PASSWORD = '//form[@name=\'company_register_form\']//input[@id = \'company_register_form_password_pass\']'; + /** * @var string */ @@ -54,6 +58,7 @@ class CompanyRegistrationPage * @var string */ public const FORM_FIELD_ACCEPT_TERMS = '//form[@name=\'company_register_form\']//input[@name=\'company_register_form[accept_terms]\']'; + /** * @var string */ diff --git a/tests/PyzTest/Yves/Customer/Presentation/CustomerLoginCest.php b/tests/PyzTest/Yves/Customer/Presentation/CustomerLoginCest.php index cae041124e..ffb5ce27d2 100644 --- a/tests/PyzTest/Yves/Customer/Presentation/CustomerLoginCest.php +++ b/tests/PyzTest/Yves/Customer/Presentation/CustomerLoginCest.php @@ -29,7 +29,7 @@ class CustomerLoginCest * * @return void */ - public function testICanOpenLoginPage(CustomerPresentationTester $i) + public function testICanOpenLoginPage(CustomerPresentationTester $i): void { $i->amOnPage(CustomerLoginPage::URL); $i->see(CustomerLoginPage::TITLE_LOGIN); @@ -40,7 +40,7 @@ public function testICanOpenLoginPage(CustomerPresentationTester $i) * * @return void */ - public function testICanOpenForgotPasswordPage(CustomerPresentationTester $i) + public function testICanOpenForgotPasswordPage(CustomerPresentationTester $i): void { $i->amOnPage(CustomerLoginPage::URL); $i->click(CustomerLoginPage::FORGOT_PASSWORD_LINK); @@ -52,7 +52,7 @@ public function testICanOpenForgotPasswordPage(CustomerPresentationTester $i) * * @return void */ - public function testICanLoginWithValidData(CustomerPresentationTester $i) + public function testICanLoginWithValidData(CustomerPresentationTester $i): void { $i->amOnPage(CustomerLoginPage::URL); $customerTransfer = $i->haveRegisteredCustomer(); diff --git a/tests/PyzTest/Yves/Customer/Presentation/CustomerLogoutCest.php b/tests/PyzTest/Yves/Customer/Presentation/CustomerLogoutCest.php index f9781b1d28..d45a45ded4 100644 --- a/tests/PyzTest/Yves/Customer/Presentation/CustomerLogoutCest.php +++ b/tests/PyzTest/Yves/Customer/Presentation/CustomerLogoutCest.php @@ -29,7 +29,7 @@ class CustomerLogoutCest * * @return void */ - public function testICanLogoutWhenLoggedIn(CustomerPresentationTester $i) + public function testICanLogoutWhenLoggedIn(CustomerPresentationTester $i): void { $i->amOnPage(CustomerLoginPage::URL); $customerTransfer = $i->haveRegisteredCustomer(); diff --git a/tests/PyzTest/Yves/Customer/_support/CustomerCustomerTester.php b/tests/PyzTest/Yves/Customer/_support/CustomerCustomerTester.php deleted file mode 100644 index beb4feea3e..0000000000 --- a/tests/PyzTest/Yves/Customer/_support/CustomerCustomerTester.php +++ /dev/null @@ -1,35 +0,0 @@ -submitForm(['name' => 'loginForm'], [ @@ -60,7 +60,7 @@ public function submitLoginForm($email, $password) /** * @return void */ - public function fillOutRegistrationForm() + public function fillOutRegistrationForm(): void { $i = $this; $customerTransfer = CustomerRegistrationPage::getCustomerData(CustomerRegistrationPage::NEW_CUSTOMER_EMAIL); diff --git a/tests/PyzTest/Yves/Customer/_support/PageObject/CustomerAddressPage.php b/tests/PyzTest/Yves/Customer/_support/PageObject/CustomerAddressPage.php index 2603e22f9d..c465c715e3 100644 --- a/tests/PyzTest/Yves/Customer/_support/PageObject/CustomerAddressPage.php +++ b/tests/PyzTest/Yves/Customer/_support/PageObject/CustomerAddressPage.php @@ -18,50 +18,62 @@ class CustomerAddressPage * @var string */ public const FORM_FIELD_SELECTOR_SALUTATION = 'addressForm[salutation]'; + /** * @var string */ public const FORM_FIELD_SELECTOR_FIRST_NAME = 'addressForm[first_name]'; + /** * @var string */ public const FORM_FIELD_SELECTOR_LAST_NAME = 'addressForm[last_name]'; + /** * @var string */ public const FORM_FIELD_SELECTOR_COMPANY = 'addressForm[company]'; + /** * @var string */ public const FORM_FIELD_SELECTOR_PHONE = 'addressForm[phone]'; + /** * @var string */ public const FORM_FIELD_SELECTOR_STREET = 'addressForm[address1]'; + /** * @var string */ public const FORM_FIELD_SELECTOR_NUMBER = 'addressForm[address2]'; + /** * @var string */ public const FORM_FIELD_SELECTOR_ADDITION_TO_ADDRESS = 'addressForm[address3]'; + /** * @var string */ public const FORM_FIELD_SELECTOR_ZIP_CODE = 'addressForm[zip_code]'; + /** * @var string */ public const FORM_FIELD_SELECTOR_CITY = 'addressForm[city]'; + /** * @var string */ public const FORM_FIELD_SELECTOR_COUNTRY = 'addressForm[iso2_code]'; + /** * @var string */ public const FORM_FIELD_SELECTOR_DEFAULT_SHIPPING = 'addressForm[is_default_shipping]'; + /** * @var string */ @@ -71,6 +83,7 @@ class CustomerAddressPage * @var string */ public const BUTTON_BACK = 'Back'; + /** * @var string */ diff --git a/tests/PyzTest/Yves/Customer/_support/PageObject/CustomerAddressesPage.php b/tests/PyzTest/Yves/Customer/_support/PageObject/CustomerAddressesPage.php index 6d40903395..1a4be65f47 100644 --- a/tests/PyzTest/Yves/Customer/_support/PageObject/CustomerAddressesPage.php +++ b/tests/PyzTest/Yves/Customer/_support/PageObject/CustomerAddressesPage.php @@ -25,6 +25,7 @@ class CustomerAddressesPage * @var string */ public const ADDRESS_A = 'address a'; + /** * @var string */ diff --git a/tests/PyzTest/Yves/Customer/_support/PageObject/CustomerLoginPage.php b/tests/PyzTest/Yves/Customer/_support/PageObject/CustomerLoginPage.php index eed80d270c..14dc0d28a2 100644 --- a/tests/PyzTest/Yves/Customer/_support/PageObject/CustomerLoginPage.php +++ b/tests/PyzTest/Yves/Customer/_support/PageObject/CustomerLoginPage.php @@ -23,6 +23,7 @@ class CustomerLoginPage * @var string */ public const TITLE_LOGIN = 'Please Login'; + /** * @var string */ @@ -32,6 +33,7 @@ class CustomerLoginPage * @var string */ public const FORM_FIELD_SELECTOR_EMAIL = 'loginForm[email]'; + /** * @var string */ diff --git a/tests/PyzTest/Yves/Customer/_support/PageObject/CustomerNewsletterPage.php b/tests/PyzTest/Yves/Customer/_support/PageObject/CustomerNewsletterPage.php index 061e27852a..4daf492111 100644 --- a/tests/PyzTest/Yves/Customer/_support/PageObject/CustomerNewsletterPage.php +++ b/tests/PyzTest/Yves/Customer/_support/PageObject/CustomerNewsletterPage.php @@ -18,6 +18,7 @@ class CustomerNewsletterPage * @var string */ public const FORM_FIELD_SELECTOR_NEWSLETTER_SUBSCRIPTION = '[data-qa*="newsletterSubscriptionForm_subscribe"] label'; + /** * @var string */ @@ -32,10 +33,12 @@ class CustomerNewsletterPage * @var string */ public const SUCCESS_MESSAGE_SUBSCRIBED = 'You successfully subscribed to the newsletter'; + /** * @var string */ public const SUCCESS_MESSAGE_UN_SUBSCRIBED = 'You successfully unsubscribed from the newsletter'; + /** * @var string */ diff --git a/tests/PyzTest/Yves/Customer/_support/PageObject/CustomerOverviewPage.php b/tests/PyzTest/Yves/Customer/_support/PageObject/CustomerOverviewPage.php index 544dff1915..c23a261450 100644 --- a/tests/PyzTest/Yves/Customer/_support/PageObject/CustomerOverviewPage.php +++ b/tests/PyzTest/Yves/Customer/_support/PageObject/CustomerOverviewPage.php @@ -18,10 +18,12 @@ class CustomerOverviewPage * @var string */ public const BOX_HEADLINE_ORDERS = 'Last orders'; + /** * @var string */ public const BOX_HEADLINE_PROFILE = 'Profile'; + /** * @var string */ @@ -36,14 +38,17 @@ class CustomerOverviewPage * @var string */ public const LINK_TO_PROFILE_PAGE = '//a[@class=\'navigation-sidebar-item__link\' and @href=\'/en/customer/profile\']'; + /** * @var string */ public const LINK_TO_ADDRESSES_PAGE = '//a[@class=\'navigation-sidebar-item__link\' and @href=\'/en/customer/address\']'; + /** * @var string */ public const LINK_TO_ORDERS_PAGE = '//a[@class=\'navigation-sidebar-item__link\' and @href=\'/en/customer/order\']'; + /** * @var string */ diff --git a/tests/PyzTest/Yves/Customer/_support/PageObject/CustomerPasswordForgottenPage.php b/tests/PyzTest/Yves/Customer/_support/PageObject/CustomerPasswordForgottenPage.php index b13d7ec550..5d8787b088 100644 --- a/tests/PyzTest/Yves/Customer/_support/PageObject/CustomerPasswordForgottenPage.php +++ b/tests/PyzTest/Yves/Customer/_support/PageObject/CustomerPasswordForgottenPage.php @@ -23,6 +23,7 @@ class CustomerPasswordForgottenPage * @var string */ public const BUTTON_BACK = 'Back'; + /** * @var string */ diff --git a/tests/PyzTest/Yves/Customer/_support/PageObject/CustomerProfilePage.php b/tests/PyzTest/Yves/Customer/_support/PageObject/CustomerProfilePage.php index 3e09d0c1da..2a35aab2cd 100644 --- a/tests/PyzTest/Yves/Customer/_support/PageObject/CustomerProfilePage.php +++ b/tests/PyzTest/Yves/Customer/_support/PageObject/CustomerProfilePage.php @@ -18,14 +18,17 @@ class CustomerProfilePage * @var string */ public const FORM_FIELD_SELECTOR_SALUTATION = '//select[@name="profileForm[salutation]"]'; + /** * @var string */ public const FORM_FIELD_SELECTOR_FIRST_NAME = '//input[@name="profileForm[first_name]"]'; + /** * @var string */ public const FORM_FIELD_SELECTOR_LAST_NAME = '//input[@name="profileForm[last_name]"]'; + /** * @var string */ @@ -35,6 +38,7 @@ class CustomerProfilePage * @var string */ public const FORM_FIELD_SELECTOR_PASSWORD = '//input[@name="profileForm[password][pass]"]'; + /** * @var string */ @@ -44,6 +48,7 @@ class CustomerProfilePage * @var array */ public const BUTTON_PROFILE_FORM_SUBMIT_SELECTOR = ['name' => 'profileForm']; + /** * @var string */ @@ -53,6 +58,7 @@ class CustomerProfilePage * @var string */ public const SUCCESS_MESSAGE = 'Profile was successfully saved'; + /** * @var string */ @@ -62,6 +68,7 @@ class CustomerProfilePage * @var string */ public const FORM_FIELD_CHANGE_PASSWORD_SELECTOR_PASSWORD = '//input[@name="passwordForm[password]"]'; + /** * @var string */ @@ -71,6 +78,7 @@ class CustomerProfilePage * @var string */ public const FORM_FIELD_CHANGE_PASSWORD_SELECTOR_NEW_PASSWORD_CONFIRM = '//input[@name="passwordForm[new_password][confirm]"]'; + /** * @var string */ @@ -85,6 +93,7 @@ class CustomerProfilePage * @var string */ public const SUCCESS_MESSAGE_CHANGE_PASSWORD = 'Password change successful'; + /** * @var string */ diff --git a/tests/PyzTest/Yves/Newsletter/_support/NewsletterPresentationTester.php b/tests/PyzTest/Yves/Newsletter/_support/NewsletterPresentationTester.php index 8aab68747b..244a7410ba 100644 --- a/tests/PyzTest/Yves/Newsletter/_support/NewsletterPresentationTester.php +++ b/tests/PyzTest/Yves/Newsletter/_support/NewsletterPresentationTester.php @@ -49,7 +49,7 @@ public function __construct(Scenario $scenario) * * @return void */ - public function haveAnAlreadySubscribedEmail($email) + public function haveAnAlreadySubscribedEmail($email): void { $newsletterSubscriberEntity = new SpyNewsletterSubscriber(); $newsletterSubscriberEntity diff --git a/tests/PyzTest/Yves/Newsletter/_support/PageObject/NewsletterSubscriptionHomePage.php b/tests/PyzTest/Yves/Newsletter/_support/PageObject/NewsletterSubscriptionHomePage.php index 2681c8b35a..b17be18ace 100644 --- a/tests/PyzTest/Yves/Newsletter/_support/PageObject/NewsletterSubscriptionHomePage.php +++ b/tests/PyzTest/Yves/Newsletter/_support/PageObject/NewsletterSubscriptionHomePage.php @@ -13,6 +13,7 @@ class NewsletterSubscriptionHomePage * @var string */ public const NEW_EMAIL = 'foo@bar.com'; + /** * @var string */ @@ -22,6 +23,7 @@ class NewsletterSubscriptionHomePage * @var string */ public const FORM_FIELD_EMAIL = '//form[@name=\'newsletterSubscriptionWidgetForm\']//input[@type=\'email\']'; + /** * @var string */ @@ -31,6 +33,7 @@ class NewsletterSubscriptionHomePage * @var string */ public const ERROR_MESSAGE = 'You are already subscribed to the newsletter'; + /** * @var string */ diff --git a/tests/PyzTest/Yves/Testify/_support/Helper/BootstrapHelper.php b/tests/PyzTest/Yves/Testify/_support/Helper/BootstrapHelper.php new file mode 100644 index 0000000000..34b6a60475 --- /dev/null +++ b/tests/PyzTest/Yves/Testify/_support/Helper/BootstrapHelper.php @@ -0,0 +1,53 @@ +disableWhoopsErrorHandler(); + + $requestFactory = function (array $query = [], array $request = [], array $attributes = [], array $cookies = [], array $files = [], array $server = [], $content = null) { + $request = new Request($query, $request, $attributes, $cookies, $files, $server, $content); + $request->server->set('SERVER_NAME', 'localhost'); + + return $request; + }; + + Request::setFactory($requestFactory); + + $application = new YvesBootstrap(); + $this->client = new HttpKernelBrowser($application->boot()); + } + + /** + * The WhoopsErrorHandler converts E_USER_DEPRECATED into exception, we need to disable it for controller tests. + * + * @return void + */ + protected function disableWhoopsErrorHandler(): void + { + $this->getConfigHelper()->setConfig(ErrorHandlerConstants::IS_PRETTY_ERROR_HANDLER_ENABLED, false); + } +} diff --git a/tests/PyzTest/Yves/Testify/_support/Helper/DebugHelper.php b/tests/PyzTest/Yves/Testify/_support/Helper/DebugHelper.php new file mode 100644 index 0000000000..799595b658 --- /dev/null +++ b/tests/PyzTest/Yves/Testify/_support/Helper/DebugHelper.php @@ -0,0 +1,31 @@ +getConfigHelper()->setConfig(ZedRequestConstants::TRANSFER_DEBUG_SESSION_FORWARD_ENABLED, true); + } +} diff --git a/tests/PyzTest/Yves/Testify/_support/Helper/LoginHelper.php b/tests/PyzTest/Yves/Testify/_support/Helper/LoginHelper.php new file mode 100644 index 0000000000..8c7f218496 --- /dev/null +++ b/tests/PyzTest/Yves/Testify/_support/Helper/LoginHelper.php @@ -0,0 +1,38 @@ +getClient(); + + $i->amOnPage('/login'); + + $i->fillField('#loginForm_email', $username); + $i->fillField('#loginForm_password', $password); + $i->click('Login'); + } + + /** + * @return \Codeception\Module|\Codeception\Lib\Framework + */ + protected function getClient() + { + return $this->getModule('\\' . BootstrapHelper::class); + } +} diff --git a/tests/PyzTest/Zed/AclEntity/_support/AclQueryDirectorTester.php b/tests/PyzTest/Zed/AclEntity/_support/AclQueryDirectorTester.php index a264021109..7c5fec80e7 100644 --- a/tests/PyzTest/Zed/AclEntity/_support/AclQueryDirectorTester.php +++ b/tests/PyzTest/Zed/AclEntity/_support/AclQueryDirectorTester.php @@ -321,7 +321,7 @@ public function getProductAbstractMerchantAclEntityMetadataConfigExpanderPlugin( public function createAclQueryDirector( RolesTransfer $rolesTransfer, ?AclEntityMetadataCollectionTransfer $aclEntityMetadataCollectionTransfer = null, - ?AbstractBundleConfig $bundleConfig = null + ?AbstractBundleConfig $bundleConfig = null, ): AclQueryDirectorInterface { $factory = new AclEntityPersistenceFactory(); if ($bundleConfig) { @@ -352,7 +352,7 @@ public function createAclQueryDirector( public function createAclModelDirector( RolesTransfer $rolesTransfer, ?AclEntityMetadataCollectionTransfer $aclEntityMetadataCollectionTransfer = null, - ?AbstractBundleConfig $bundleConfig = null + ?AbstractBundleConfig $bundleConfig = null, ): AclModelDirectorInterface { $factory = new AclEntityPersistenceFactory(); if ($bundleConfig) { @@ -379,7 +379,7 @@ public function createAclModelDirector( */ public function createMerchantCategoryRules( MerchantTransfer $merchantTransfer, - RoleTransfer $roleTransfer + RoleTransfer $roleTransfer, ): void { $aclEntitySegmentMerchant = $this->haveAclEntitySegment( [ @@ -416,7 +416,7 @@ public function createMerchantCategoryRules( */ public function createProductOfferRules( MerchantTransfer $merchantTransfer, - RoleTransfer $roleTransfer + RoleTransfer $roleTransfer, ): void { $aclEntitySegmentMerchant = $this->haveAclEntitySegment( [ diff --git a/tests/PyzTest/Zed/AclEntity/_support/Plugin/AclEntityMetadataConfigExpanderPluginMock.php b/tests/PyzTest/Zed/AclEntity/_support/Plugin/AclEntityMetadataConfigExpanderPluginMock.php index 666acf5f3b..938a986db7 100644 --- a/tests/PyzTest/Zed/AclEntity/_support/Plugin/AclEntityMetadataConfigExpanderPluginMock.php +++ b/tests/PyzTest/Zed/AclEntity/_support/Plugin/AclEntityMetadataConfigExpanderPluginMock.php @@ -22,7 +22,7 @@ class AclEntityMetadataConfigExpanderPluginMock implements AclEntityMetadataConf * @return \Generated\Shared\Transfer\AclEntityMetadataConfigTransfer */ public function expand( - AclEntityMetadataConfigTransfer $aclEntityMetadataConfigTransfer + AclEntityMetadataConfigTransfer $aclEntityMetadataConfigTransfer, ): AclEntityMetadataConfigTransfer { $aclEntityMetadataConfigTransfer->getAclEntityMetadataCollectionOrFail()->addAclEntityMetadata( SpyMerchantProductAbstract::class, diff --git a/tests/PyzTest/Zed/Availability/_support/PageObject/AvailabilityViewPage.php b/tests/PyzTest/Zed/Availability/_support/PageObject/AvailabilityViewPage.php index 4d07ccab8b..41ae49ae5e 100644 --- a/tests/PyzTest/Zed/Availability/_support/PageObject/AvailabilityViewPage.php +++ b/tests/PyzTest/Zed/Availability/_support/PageObject/AvailabilityViewPage.php @@ -13,6 +13,7 @@ class AvailabilityViewPage * @var string */ public const VIEW_PRODUCT_AVAILABILITY_URL = '/availability-gui/index/view?id-product=%d&id-store=1'; + /** * @var string */ diff --git a/tests/PyzTest/Zed/Calculation/Business/CalculationWithCalculableObjectFacadeTest.php b/tests/PyzTest/Zed/Calculation/Business/CalculationWithCalculableObjectFacadeTest.php index 4c9ecacfbe..180b95a7e0 100644 --- a/tests/PyzTest/Zed/Calculation/Business/CalculationWithCalculableObjectFacadeTest.php +++ b/tests/PyzTest/Zed/Calculation/Business/CalculationWithCalculableObjectFacadeTest.php @@ -609,7 +609,7 @@ protected function createFixtureDataForTestCases($priceMode, $items, $expense): $quoteTransfer->addItem($itemTransfer); } - if (!empty($expense)) { + if ($expense) { $quoteTransfer->addExpense($this->tester->createExpenseTransfer($expense[0], $priceMode, $expense[2], $expense[1])); } diff --git a/tests/PyzTest/Zed/Calculation/_support/CalculationBusinessTester.php b/tests/PyzTest/Zed/Calculation/_support/CalculationBusinessTester.php index 8890a0ec09..be6595fdca 100644 --- a/tests/PyzTest/Zed/Calculation/_support/CalculationBusinessTester.php +++ b/tests/PyzTest/Zed/Calculation/_support/CalculationBusinessTester.php @@ -152,7 +152,7 @@ public function createExpenseTransfer(int $price, string $priceMode, float $taxR */ public function createCalculationFacade(array $calculatorPlugins = []): CalculationFacade { - if (empty($calculatorPlugins)) { + if (!$calculatorPlugins) { return new CalculationFacade(); } @@ -189,7 +189,7 @@ public function resetCurrentDiscounts(): void } /** - * @param \Generated\Shared\Transfer\ItemTransfer[] $items + * @param array<\Generated\Shared\Transfer\ItemTransfer> $items * @param \Generated\Shared\Transfer\QuoteTransfer $quoteTransfer * * @return \Generated\Shared\Transfer\QuoteTransfer @@ -210,7 +210,7 @@ public function recalculateCanceledAmount(array $items, QuoteTransfer $quoteTran new RefundableAmountCalculatorPlugin(), new RefundTotalCalculatorPlugin(), new GrandTotalCalculatorPlugin(), - ] + ], ); return $calculationFacade->recalculateQuote($quoteTransfer); diff --git a/tests/PyzTest/Zed/CmsGui/Presentation/CmsGuiCreatePageCest.php b/tests/PyzTest/Zed/CmsGui/Presentation/CmsGuiCreatePageCest.php index 99d7abe788..1bcb2ac451 100644 --- a/tests/PyzTest/Zed/CmsGui/Presentation/CmsGuiCreatePageCest.php +++ b/tests/PyzTest/Zed/CmsGui/Presentation/CmsGuiCreatePageCest.php @@ -33,7 +33,7 @@ class CmsGuiCreatePageCest * * @return void */ - public function testICanCreateCmsPageWithTranslatedPlaceholders(CmsGuiPresentationTester $i, Scenario $scenario) + public function testICanCreateCmsPageWithTranslatedPlaceholders(CmsGuiPresentationTester $i, Scenario $scenario): void { $i->wantTo('Create cms page with multiple translations'); $i->expect('Page is persisted in Zed, exported to Yves and is accessible.'); diff --git a/tests/PyzTest/Zed/CmsGui/Presentation/CmsGuiPageListCest.php b/tests/PyzTest/Zed/CmsGui/Presentation/CmsGuiPageListCest.php index 8ec95f39e4..b982ebeac7 100644 --- a/tests/PyzTest/Zed/CmsGui/Presentation/CmsGuiPageListCest.php +++ b/tests/PyzTest/Zed/CmsGui/Presentation/CmsGuiPageListCest.php @@ -27,7 +27,7 @@ class CmsGuiPageListCest * * @return void */ - public function testICanOpenCmsPageList(CmsGuiPresentationTester $i) + public function testICanOpenCmsPageList(CmsGuiPresentationTester $i): void { $i->amLoggedInUser(); $i->amOnPage(CmsListPage::URL); diff --git a/tests/PyzTest/Zed/CmsGui/_support/CmsGuiPresentationTester.php b/tests/PyzTest/Zed/CmsGui/_support/CmsGuiPresentationTester.php index a28c76d088..4d237db52c 100644 --- a/tests/PyzTest/Zed/CmsGui/_support/CmsGuiPresentationTester.php +++ b/tests/PyzTest/Zed/CmsGui/_support/CmsGuiPresentationTester.php @@ -109,7 +109,7 @@ public function fillLocalizedUrlForm($formIndex, $name, $url) * * @return void */ - public function fillPlaceholderContents($placeHolderIndex, $localeIndex, $contents) + public function fillPlaceholderContents($placeHolderIndex, $localeIndex, $contents): void { $translationElementId = 'cms_glossary_glossaryAttributes_' . $placeHolderIndex . '_translations_' . $localeIndex . '_translation'; @@ -156,7 +156,7 @@ public function includeJquery() var jq = document.createElement("script"); jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"; document.getElementsByTagName("head")[0].appendChild(jq); - ' + ', ); $this->wait(3); @@ -167,7 +167,7 @@ public function includeJquery() /** * @return int */ - public function grabCmsPageId() + public function grabCmsPageId(): int { return $this->grabFromCurrentUrl('/id-cms-page=(\d+)/'); } diff --git a/tests/PyzTest/Zed/CmsGui/_support/PageObject/CmsCreateGlossaryPage.php b/tests/PyzTest/Zed/CmsGui/_support/PageObject/CmsCreateGlossaryPage.php index 7c537c7766..2c1807d4fd 100644 --- a/tests/PyzTest/Zed/CmsGui/_support/PageObject/CmsCreateGlossaryPage.php +++ b/tests/PyzTest/Zed/CmsGui/_support/PageObject/CmsCreateGlossaryPage.php @@ -34,7 +34,7 @@ class CmsCreateGlossaryPage * * @return string */ - public static function getLocalizedPlaceholderData($placeholder, $locale) + public static function getLocalizedPlaceholderData($placeholder, $locale): string { return static::$localizedPlaceholders[$placeholder][$locale]; } diff --git a/tests/PyzTest/Zed/CmsGui/_support/PageObject/CmsCreatePage.php b/tests/PyzTest/Zed/CmsGui/_support/PageObject/CmsCreatePage.php index 443f947cb0..9343a8d646 100644 --- a/tests/PyzTest/Zed/CmsGui/_support/PageObject/CmsCreatePage.php +++ b/tests/PyzTest/Zed/CmsGui/_support/PageObject/CmsCreatePage.php @@ -13,6 +13,7 @@ class CmsCreatePage * @var string */ public const URL = '/cms-gui/create-page'; + /** * @var string */ diff --git a/tests/PyzTest/Zed/CmsGui/_support/PageObject/CmsEditPage.php b/tests/PyzTest/Zed/CmsGui/_support/PageObject/CmsEditPage.php index 3551925e31..05b304b5eb 100644 --- a/tests/PyzTest/Zed/CmsGui/_support/PageObject/CmsEditPage.php +++ b/tests/PyzTest/Zed/CmsGui/_support/PageObject/CmsEditPage.php @@ -18,6 +18,7 @@ class CmsEditPage * @var string */ public const PAGE_ACTIVATE_SUCCESS_MESSAGE = 'Page was created successfully.'; + /** * @var string */ diff --git a/tests/PyzTest/Zed/CmsGui/_support/PageObject/CmsListPage.php b/tests/PyzTest/Zed/CmsGui/_support/PageObject/CmsListPage.php index 1c0b40a480..3a7142e4eb 100644 --- a/tests/PyzTest/Zed/CmsGui/_support/PageObject/CmsListPage.php +++ b/tests/PyzTest/Zed/CmsGui/_support/PageObject/CmsListPage.php @@ -13,6 +13,7 @@ class CmsListPage * @var string */ public const URL = '/cms-gui/list-page'; + /** * @var string */ diff --git a/tests/PyzTest/Zed/Console/Console/ConsoleCest.php b/tests/PyzTest/Zed/Console/Console/ConsoleCest.php index 912978e2f6..88b817c8e3 100644 --- a/tests/PyzTest/Zed/Console/Console/ConsoleCest.php +++ b/tests/PyzTest/Zed/Console/Console/ConsoleCest.php @@ -27,7 +27,7 @@ class ConsoleCest * * @return void */ - public function testICanRunConsoleApplication(ConsoleConsoleTester $i) + public function testICanRunConsoleApplication(ConsoleConsoleTester $i): void { $i->wantTo('See that console is running'); diff --git a/tests/PyzTest/Zed/Console/Console/GenerateDataBuildersCest.php b/tests/PyzTest/Zed/Console/Console/GenerateDataBuildersCest.php index df2760d93a..b28da36aee 100644 --- a/tests/PyzTest/Zed/Console/Console/GenerateDataBuildersCest.php +++ b/tests/PyzTest/Zed/Console/Console/GenerateDataBuildersCest.php @@ -26,7 +26,7 @@ class GenerateDataBuildersCest * * @return void */ - public function dataBuilder(ConsoleConsoleTester $i) + public function dataBuilder(ConsoleConsoleTester $i): void { $i->runSprykerCommand('transfer:databuilder:generate -vvv'); $i->seeInShellOutput('CustomerBuilder.php was generated'); diff --git a/tests/PyzTest/Zed/Console/_data/cli_sandbox/config/Shared/config_default-development.php b/tests/PyzTest/Zed/Console/_data/cli_sandbox/config/Shared/config_default-development.php index d0635c7b7f..007d2a74b0 100644 --- a/tests/PyzTest/Zed/Console/_data/cli_sandbox/config/Shared/config_default-development.php +++ b/tests/PyzTest/Zed/Console/_data/cli_sandbox/config/Shared/config_default-development.php @@ -30,9 +30,9 @@ '%s/data/%s/cache/%s/twig', APPLICATION_ROOT_DIR, $CURRENT_STORE, - APPLICATION + APPLICATION, ), - FilesystemCache::FORCE_BYTECODE_INVALIDATION + FilesystemCache::FORCE_BYTECODE_INVALIDATION, ), ]; @@ -42,9 +42,9 @@ '%s/data/%s/cache/%s/twig', APPLICATION_ROOT_DIR, $CURRENT_STORE, - APPLICATION + APPLICATION, ), - FilesystemCache::FORCE_BYTECODE_INVALIDATION + FilesystemCache::FORCE_BYTECODE_INVALIDATION, ), ]; diff --git a/tests/PyzTest/Zed/Console/_data/cli_sandbox/config/Shared/config_propel.php b/tests/PyzTest/Zed/Console/_data/cli_sandbox/config/Shared/config_propel.php index 714dfb12ff..fe425a7c3a 100644 --- a/tests/PyzTest/Zed/Console/_data/cli_sandbox/config/Shared/config_propel.php +++ b/tests/PyzTest/Zed/Console/_data/cli_sandbox/config/Shared/config_propel.php @@ -11,7 +11,7 @@ $config[PropelConstants::ZED_DB_ENGINE], $config[PropelConstants::ZED_DB_HOST], $config[PropelConstants::ZED_DB_PORT], - $config[PropelConstants::ZED_DB_DATABASE] + $config[PropelConstants::ZED_DB_DATABASE], ); $connections = [ diff --git a/tests/PyzTest/Zed/Console/_support/CalculationBusinessTester.php b/tests/PyzTest/Zed/Console/_support/CalculationBusinessTester.php deleted file mode 100644 index e24a9b6e5f..0000000000 --- a/tests/PyzTest/Zed/Console/_support/CalculationBusinessTester.php +++ /dev/null @@ -1,35 +0,0 @@ -config['cleanup_dirs'] as $dir) { $dir = codecept_data_dir() . self::SANDBOX_DIR . $dir; @@ -44,7 +45,7 @@ public function _after(TestInterface $test) * * @return void */ - public function runSprykerCommand($command) + public function runSprykerCommand($command): void { $command = 'php ' . codecept_data_dir() . self::RUNNER . " $command"; $this->getCli()->runShellCommand($command); diff --git a/tests/PyzTest/Zed/NavigationGui/Presentation/NavigationTreeCest.php b/tests/PyzTest/Zed/NavigationGui/Presentation/NavigationTreeCest.php index acb390bcf0..04f7f537e7 100644 --- a/tests/PyzTest/Zed/NavigationGui/Presentation/NavigationTreeCest.php +++ b/tests/PyzTest/Zed/NavigationGui/Presentation/NavigationTreeCest.php @@ -269,7 +269,7 @@ public function testChangeNavigationTreeStructure(NavigationGuiPresentationTeste $i->waitForNavigationTree(); - $i->repeatUnstableActions(function () use ($i, $idNavigationNode, $idTargetNavigationNode) { + $i->repeatUnstableActions(function () use ($i, $idNavigationNode, $idTargetNavigationNode): void { $i->moveNavigationNode($idNavigationNode, $idTargetNavigationNode); $i->seeNavigationNodeHierarchy($idTargetNavigationNode, $idNavigationNode); }); diff --git a/tests/PyzTest/Zed/NavigationGui/_support/NavigationGuiPresentationTester.php b/tests/PyzTest/Zed/NavigationGui/_support/NavigationGuiPresentationTester.php index bc89da4a4a..1bd4bd4c87 100644 --- a/tests/PyzTest/Zed/NavigationGui/_support/NavigationGuiPresentationTester.php +++ b/tests/PyzTest/Zed/NavigationGui/_support/NavigationGuiPresentationTester.php @@ -300,7 +300,7 @@ public function waitForNavigationTree(): void * * @return void */ - public function seeNumberOfNavigationNodes($count) + public function seeNumberOfNavigationNodes($count): void { $this->seeNumberOfElements(self::NAVIGATION_NODE_SELECTOR, $count); } @@ -311,12 +311,12 @@ public function seeNumberOfNavigationNodes($count) * * @return void */ - public function seeNavigationNodeHierarchy($idParentNavigationNode, $idChildNavigationNode) + public function seeNavigationNodeHierarchy($idParentNavigationNode, $idChildNavigationNode): void { $this->waitForElement(sprintf( self::NODE_CHILD_SELECTOR, $idParentNavigationNode, - $idChildNavigationNode + $idChildNavigationNode, ), 1); } @@ -497,7 +497,7 @@ public function prepareTestNavigationTreeEntities(NavigationTreeTransfer $naviga protected function createNavigationNodesRecursively( NavigationTreeNodeTransfer $navigationTreeNodeTransfer, $idNavigation, - $idParentNavigationNode = null + $idParentNavigationNode = null, ): void { $navigationNodeTransfer = $navigationTreeNodeTransfer->getNavigationNode(); $navigationNodeTransfer @@ -585,7 +585,7 @@ public function submitCreateNodeFormWithCmsPageTypeWithFormData(array $data): vo /** * @param string $defaultSlug - * @param string[] $localizedSlugs + * @param array $localizedSlugs * * @return array */ diff --git a/tests/PyzTest/Zed/NavigationGui/_support/PageObject/NavigationCreatePage.php b/tests/PyzTest/Zed/NavigationGui/_support/PageObject/NavigationCreatePage.php index ea71aa0b35..b666113470 100644 --- a/tests/PyzTest/Zed/NavigationGui/_support/PageObject/NavigationCreatePage.php +++ b/tests/PyzTest/Zed/NavigationGui/_support/PageObject/NavigationCreatePage.php @@ -13,6 +13,7 @@ class NavigationCreatePage * @var string */ public const URL = '/navigation-gui/create'; + /** * @var string */ diff --git a/tests/PyzTest/Zed/NavigationGui/_support/PageObject/NavigationDeletePage.php b/tests/PyzTest/Zed/NavigationGui/_support/PageObject/NavigationDeletePage.php index bc0e989bb4..d8c3391b71 100644 --- a/tests/PyzTest/Zed/NavigationGui/_support/PageObject/NavigationDeletePage.php +++ b/tests/PyzTest/Zed/NavigationGui/_support/PageObject/NavigationDeletePage.php @@ -13,6 +13,7 @@ class NavigationDeletePage * @var string */ public const URL = '/navigation-gui/delete?id-navigation=%d'; + /** * @var string */ diff --git a/tests/PyzTest/Zed/NavigationGui/_support/PageObject/NavigationNodeCreatePage.php b/tests/PyzTest/Zed/NavigationGui/_support/PageObject/NavigationNodeCreatePage.php index 2e95fb49c7..0d7b9ebabf 100644 --- a/tests/PyzTest/Zed/NavigationGui/_support/PageObject/NavigationNodeCreatePage.php +++ b/tests/PyzTest/Zed/NavigationGui/_support/PageObject/NavigationNodeCreatePage.php @@ -13,6 +13,7 @@ class NavigationNodeCreatePage * @var string */ public const URL = '/navigation-gui/node/create'; + /** * @var string */ diff --git a/tests/PyzTest/Zed/NavigationGui/_support/PageObject/NavigationPage.php b/tests/PyzTest/Zed/NavigationGui/_support/PageObject/NavigationPage.php index 1a735fe426..b5480e3e51 100644 --- a/tests/PyzTest/Zed/NavigationGui/_support/PageObject/NavigationPage.php +++ b/tests/PyzTest/Zed/NavigationGui/_support/PageObject/NavigationPage.php @@ -13,6 +13,7 @@ class NavigationPage * @var string */ public const URL = '/navigation-gui'; + /** * @var string */ @@ -22,6 +23,7 @@ class NavigationPage * @var string */ public const URL_EN_CREATE_NAVIGATION_CATEGORY = '/en/stationery/paper'; + /** * @var string */ diff --git a/tests/PyzTest/Zed/NavigationGui/_support/PageObject/NavigationUpdatePage.php b/tests/PyzTest/Zed/NavigationGui/_support/PageObject/NavigationUpdatePage.php index 07e0664061..766ac890bd 100644 --- a/tests/PyzTest/Zed/NavigationGui/_support/PageObject/NavigationUpdatePage.php +++ b/tests/PyzTest/Zed/NavigationGui/_support/PageObject/NavigationUpdatePage.php @@ -13,6 +13,7 @@ class NavigationUpdatePage * @var string */ public const URL = '/navigation-gui/update?id-navigation=%d'; + /** * @var string */ diff --git a/tests/PyzTest/Zed/Product/Business/ProductAbstractManagerTest.php b/tests/PyzTest/Zed/Product/Business/ProductAbstractManagerTest.php index 56bfcff375..ee38cf7c16 100644 --- a/tests/PyzTest/Zed/Product/Business/ProductAbstractManagerTest.php +++ b/tests/PyzTest/Zed/Product/Business/ProductAbstractManagerTest.php @@ -27,7 +27,7 @@ class ProductAbstractManagerTest extends ProductTestAbstract /** * @return void */ - public function testCreateProductAbstractShouldCreateProductAbstractAndTriggerPlugins() + public function testCreateProductAbstractShouldCreateProductAbstractAndTriggerPlugins(): void { $idProductAbstract = $this->productAbstractManager->createProductAbstract($this->productAbstractTransfer); @@ -39,14 +39,14 @@ public function testCreateProductAbstractShouldCreateProductAbstractAndTriggerPl /** * @return void */ - public function testSaveProductAbstractShouldUpdateProductAbstractAndTriggerPlugins() + public function testSaveProductAbstractShouldUpdateProductAbstractAndTriggerPlugins(): void { $idProductAbstract = $this->productAbstractManager->createProductAbstract($this->productAbstractTransfer); $this->productAbstractTransfer->setIdProductAbstract($idProductAbstract); foreach ($this->productAbstractTransfer->getLocalizedAttributes() as $localizedAttribute) { $localizedAttribute->setName( - self::UPDATED_PRODUCT_ABSTRACT_NAME[$localizedAttribute->getLocale()->getLocaleName()] + self::UPDATED_PRODUCT_ABSTRACT_NAME[$localizedAttribute->getLocale()->getLocaleName()], ); } @@ -59,12 +59,12 @@ public function testSaveProductAbstractShouldUpdateProductAbstractAndTriggerPlug /** * @return void */ - public function testGetProductAbstractByIdShouldReturnFullyLoadedTransferObject() + public function testGetProductAbstractByIdShouldReturnFullyLoadedTransferObject(): void { $this->setupDefaultProducts(); $productAbstract = $this->productAbstractManager->findProductAbstractById( - $this->productAbstractTransfer->getIdProductAbstract() + $this->productAbstractTransfer->getIdProductAbstract(), ); $this->assertReadProductAbstract($productAbstract); @@ -75,7 +75,7 @@ public function testGetProductAbstractByIdShouldReturnFullyLoadedTransferObject( * * @return void */ - protected function assertCreateProductAbstract(ProductAbstractTransfer $productAbstractTransfer) + protected function assertCreateProductAbstract(ProductAbstractTransfer $productAbstractTransfer): void { $createdProductEntity = $this->productQueryContainer ->queryProductAbstract() @@ -92,7 +92,7 @@ protected function assertCreateProductAbstract(ProductAbstractTransfer $productA * * @return void */ - protected function assertSaveProductAbstract(ProductAbstractTransfer $productAbstractTransfer) + protected function assertSaveProductAbstract(ProductAbstractTransfer $productAbstractTransfer): void { $updatedProductEntity = $this->productQueryContainer ->queryProductAbstract() @@ -114,7 +114,7 @@ protected function assertSaveProductAbstract(ProductAbstractTransfer $productAbs * * @return void */ - protected function assertReadProductAbstract(ProductAbstractTransfer $productAbstractTransfer) + protected function assertReadProductAbstract(ProductAbstractTransfer $productAbstractTransfer): void { $this->assertProductPrice($productAbstractTransfer); $this->assertProductImages($productAbstractTransfer); @@ -125,7 +125,7 @@ protected function assertReadProductAbstract(ProductAbstractTransfer $productAbs * * @return void */ - protected function assertProductPrice(ProductAbstractTransfer $productAbstractTransfer) + protected function assertProductPrice(ProductAbstractTransfer $productAbstractTransfer): void { foreach ($productAbstractTransfer->getPrices() as $priceProductTransfer) { $this->assertInstanceOf(PriceProductTransfer::class, $priceProductTransfer); @@ -139,9 +139,9 @@ protected function assertProductPrice(ProductAbstractTransfer $productAbstractTr * * @return void */ - protected function assertProductImages(ProductAbstractTransfer $productAbstractTransfer) + protected function assertProductImages(ProductAbstractTransfer $productAbstractTransfer): void { - /** @var \Generated\Shared\Transfer\ProductImageSetTransfer $imageSet */ + /** @var array<\Generated\Shared\Transfer\ProductImageSetTransfer> $imageSetCollection */ $imageSetCollection = (array)$productAbstractTransfer->getImageSets(); $this->assertNotEmpty($imageSetCollection); $imageSet = $imageSetCollection[0]; diff --git a/tests/PyzTest/Zed/Product/Business/ProductConcreteManagerTest.php b/tests/PyzTest/Zed/Product/Business/ProductConcreteManagerTest.php index ab2c06f439..23995cdbfa 100644 --- a/tests/PyzTest/Zed/Product/Business/ProductConcreteManagerTest.php +++ b/tests/PyzTest/Zed/Product/Business/ProductConcreteManagerTest.php @@ -12,6 +12,7 @@ use Generated\Shared\Transfer\ProductImageSetTransfer; use Generated\Shared\Transfer\ProductImageTransfer; use Generated\Shared\Transfer\StockProductTransfer; +use Orm\Zed\Product\Persistence\SpyProduct; /** * Auto-generated group annotations @@ -28,7 +29,7 @@ class ProductConcreteManagerTest extends ProductTestAbstract /** * @return void */ - public function testCreateProductConcreteShouldCreateProductAndTriggerPlugins() + public function testCreateProductConcreteShouldCreateProductAndTriggerPlugins(): void { $idProductAbstract = $this->productAbstractManager->createProductAbstract($this->productAbstractTransfer); $this->productConcreteTransfer->setFkProductAbstract($idProductAbstract); @@ -45,7 +46,7 @@ public function testCreateProductConcreteShouldCreateProductAndTriggerPlugins() /** * @return void */ - public function testSaveProductConcreteShouldUpdateProductAndTriggerPlugins() + public function testSaveProductConcreteShouldUpdateProductAndTriggerPlugins(): void { $idProductAbstract = $this->productAbstractManager->createProductAbstract($this->productAbstractTransfer); $this->productConcreteTransfer->setFkProductAbstract($idProductAbstract); @@ -56,7 +57,7 @@ public function testSaveProductConcreteShouldUpdateProductAndTriggerPlugins() foreach ($this->productConcreteTransfer->getLocalizedAttributes() as $localizedAttribute) { $localizedAttribute->setName( - self::UPDATED_PRODUCT_ABSTRACT_NAME[$localizedAttribute->getLocale()->getLocaleName()] + self::UPDATED_PRODUCT_ABSTRACT_NAME[$localizedAttribute->getLocale()->getLocaleName()], ); } @@ -69,12 +70,12 @@ public function testSaveProductConcreteShouldUpdateProductAndTriggerPlugins() /** * @return void */ - public function testGetConcreteProductsByAbstractProductIdShouldReturnFullyLoadedTransferObject() + public function testGetConcreteProductsByAbstractProductIdShouldReturnFullyLoadedTransferObject(): void { $this->setupDefaultProducts(); $concreteCollection = $this->productConcreteManager->getConcreteProductsByAbstractProductId( - $this->productAbstractTransfer->getIdProductAbstract() + $this->productAbstractTransfer->getIdProductAbstract(), ); foreach ($concreteCollection as $concreteProduct) { @@ -87,7 +88,7 @@ public function testGetConcreteProductsByAbstractProductIdShouldReturnFullyLoade * * @return \Orm\Zed\Product\Persistence\SpyProduct */ - protected function getProductConcreteEntityById($idProductConcrete) + protected function getProductConcreteEntityById($idProductConcrete): SpyProduct { return $this->productQueryContainer ->queryProduct() @@ -100,7 +101,7 @@ protected function getProductConcreteEntityById($idProductConcrete) * * @return void */ - protected function assertCreateProductConcrete(ProductConcreteTransfer $productConcreteTransfer) + protected function assertCreateProductConcrete(ProductConcreteTransfer $productConcreteTransfer): void { $createdProductEntity = $this->getProductConcreteEntityById($productConcreteTransfer->getIdProductConcrete()); @@ -113,7 +114,7 @@ protected function assertCreateProductConcrete(ProductConcreteTransfer $productC * * @return void */ - protected function assertSaveProductConcrete(ProductConcreteTransfer $productConcreteTransfer) + protected function assertSaveProductConcrete(ProductConcreteTransfer $productConcreteTransfer): void { $updatedProductEntity = $this->getProductConcreteEntityById($productConcreteTransfer->getIdProductConcrete()); @@ -132,7 +133,7 @@ protected function assertSaveProductConcrete(ProductConcreteTransfer $productCon * * @return void */ - protected function assertReadProductConcrete(ProductConcreteTransfer $productConcreteTransfer) + protected function assertReadProductConcrete(ProductConcreteTransfer $productConcreteTransfer): void { $this->assertProductPrice($productConcreteTransfer); $this->assertProductStock($productConcreteTransfer); @@ -144,7 +145,7 @@ protected function assertReadProductConcrete(ProductConcreteTransfer $productCon * * @return void */ - protected function assertProductPrice(ProductConcreteTransfer $productConcreteTransfer) + protected function assertProductPrice(ProductConcreteTransfer $productConcreteTransfer): void { foreach ($productConcreteTransfer->getPrices() as $priceProductTransfer) { $this->assertInstanceOf(PriceProductTransfer::class, $priceProductTransfer); @@ -158,7 +159,7 @@ protected function assertProductPrice(ProductConcreteTransfer $productConcreteTr * * @return void */ - protected function assertProductStock(ProductConcreteTransfer $productConcreteTransfer) + protected function assertProductStock(ProductConcreteTransfer $productConcreteTransfer): void { $stockCollection = $productConcreteTransfer->getStocks(); @@ -172,9 +173,9 @@ protected function assertProductStock(ProductConcreteTransfer $productConcreteTr * * @return void */ - protected function assertProductImages(ProductConcreteTransfer $productConcreteTransfer) + protected function assertProductImages(ProductConcreteTransfer $productConcreteTransfer): void { - /** @var \Generated\Shared\Transfer\ProductImageSetTransfer $imageSet */ + /** @var array<\Generated\Shared\Transfer\ProductImageSetTransfer> $imageSetCollection */ $imageSetCollection = (array)$productConcreteTransfer->getImageSets(); $this->assertNotEmpty($imageSetCollection); $imageSet = $imageSetCollection[0]; diff --git a/tests/PyzTest/Zed/Product/Business/ProductTestAbstract.php b/tests/PyzTest/Zed/Product/Business/ProductTestAbstract.php index 670dfa1813..d069528a73 100644 --- a/tests/PyzTest/Zed/Product/Business/ProductTestAbstract.php +++ b/tests/PyzTest/Zed/Product/Business/ProductTestAbstract.php @@ -20,6 +20,8 @@ use Generated\Shared\Transfer\ProductImageTransfer; use Generated\Shared\Transfer\StockProductTransfer; use Generated\Shared\Transfer\StoreRelationTransfer; +use Orm\Zed\Product\Persistence\SpyProduct; +use Orm\Zed\Product\Persistence\SpyProductAbstract; use Orm\Zed\Stock\Persistence\SpyStock; use Orm\Zed\Tax\Persistence\SpyTaxRate; use Orm\Zed\Tax\Persistence\SpyTaxSet; @@ -79,37 +81,44 @@ abstract class ProductTestAbstract extends Unit * @var string */ public const ABSTRACT_SKU = 'foo'; + /** * @var string */ public const CONCRETE_SKU = 'foo-concrete'; + /** * @var string */ public const IMAGE_SET_NAME = 'Default'; + /** * @var string */ public const IMAGE_URL_LARGE = 'large'; + /** * @var string */ public const IMAGE_URL_SMALL = 'small'; + /** * @var int */ public const PRICE = 1234; + /** * @var int */ public const STOCK_QUANTITY = 99; + /** * @var string */ public const CURRENCY_ISO_CODE = 'EUR'; /** - * @var \Generated\Shared\Transfer\LocaleTransfer[] + * @var array<\Generated\Shared\Transfer\LocaleTransfer> */ protected $locales; @@ -246,14 +255,14 @@ protected function setUp(): void $this->productManager = new ProductManager( $this->productAbstractManager, $this->productConcreteManager, - $this->productQueryContainer + $this->productQueryContainer, ); } /** * @return void */ - protected function setupLocales() + protected function setupLocales(): void { $this->locales['de_DE'] = new LocaleTransfer(); $this->locales['de_DE']->setIdLocale(46)->setIsActive(true)->setLocaleName('de_DE'); @@ -265,7 +274,7 @@ protected function setupLocales() /** * @return void */ - protected function setupProductAbstract() + protected function setupProductAbstract(): void { $this->productAbstractTransfer = new ProductAbstractTransfer(); $this->productAbstractTransfer->setSku(self::ABSTRACT_SKU); @@ -286,7 +295,7 @@ protected function setupProductAbstract() /** * @return void */ - protected function setupProductConcrete() + protected function setupProductConcrete(): void { $this->productConcreteTransfer = new ProductConcreteTransfer(); $this->productConcreteTransfer->setSku(self::CONCRETE_SKU); @@ -305,7 +314,7 @@ protected function setupProductConcrete() /** * @return void */ - protected function setupTaxes() + protected function setupTaxes(): void { $taxSet = new SpyTaxSet(); $taxSet->setName('DEFAULT'); @@ -325,7 +334,7 @@ protected function setupTaxes() /** * @return void */ - protected function setupStocks() + protected function setupStocks(): void { $stockEntity = new SpyStock(); $stockEntity->setName('TEST'); @@ -341,7 +350,7 @@ protected function setupStocks() /** * @return void */ - protected function setupPluginImages() + protected function setupPluginImages(): void { $imageSetTransfer = (new ProductImageSetTransfer()) ->setName(self::IMAGE_SET_NAME); @@ -351,22 +360,22 @@ protected function setupPluginImages() ->setExternalUrlSmall(self::IMAGE_URL_SMALL); $imageSetTransfer->setProductImages( - new ArrayObject([$imageTransfer]) + new ArrayObject([$imageTransfer]), ); $this->productAbstractTransfer->setImageSets( - new ArrayObject([$imageSetTransfer]) + new ArrayObject([$imageSetTransfer]), ); $this->productConcreteTransfer->setImageSets( - new ArrayObject([$imageSetTransfer]) + new ArrayObject([$imageSetTransfer]), ); } /** * @return void */ - protected function setupPluginPrices() + protected function setupPluginPrices(): void { $currencyTransfer = $this->currencyFacade->fromIsoCode(static::CURRENCY_ISO_CODE); $storeTransfer = $this->storeFacade->getCurrentStore(); @@ -399,7 +408,7 @@ protected function setupPluginPrices() /** * @return void */ - protected function setupAbstractPluginData() + protected function setupAbstractPluginData(): void { $this->setupTaxes(); } @@ -407,7 +416,7 @@ protected function setupAbstractPluginData() /** * @return void */ - protected function setupConcretePluginData() + protected function setupConcretePluginData(): void { $this->setupStocks(); } @@ -415,7 +424,7 @@ protected function setupConcretePluginData() /** * @return void */ - protected function setupDefaultProducts() + protected function setupDefaultProducts(): void { $this->productManager->addProduct($this->productAbstractTransfer, [$this->productConcreteTransfer]); } @@ -425,7 +434,7 @@ protected function setupDefaultProducts() * * @return \Orm\Zed\Product\Persistence\SpyProductAbstract */ - protected function getProductAbstractEntityById($idProductAbstract) + protected function getProductAbstractEntityById($idProductAbstract): SpyProductAbstract { return $this->productQueryContainer ->queryProductAbstract() @@ -438,7 +447,7 @@ protected function getProductAbstractEntityById($idProductAbstract) * * @return \Orm\Zed\Product\Persistence\SpyProduct */ - protected function getProductConcreteEntityByAbstractId($idProductAbstract) + protected function getProductConcreteEntityByAbstractId($idProductAbstract): SpyProduct { return $this->productQueryContainer ->queryProduct() diff --git a/tests/PyzTest/Zed/ProductOption/Business/ProductOptionFacadeAggregatorTest.php b/tests/PyzTest/Zed/ProductOption/Business/ProductOptionFacadeAggregatorTest.php index 814c9acf7c..b507e6d5dd 100644 --- a/tests/PyzTest/Zed/ProductOption/Business/ProductOptionFacadeAggregatorTest.php +++ b/tests/PyzTest/Zed/ProductOption/Business/ProductOptionFacadeAggregatorTest.php @@ -40,7 +40,7 @@ class ProductOptionFacadeAggregatorTest extends Unit /** * @return void */ - public function testSaveSaleOrderProductOptionsShouldPersistProvidedOptions() + public function testSaveSaleOrderProductOptionsShouldPersistProvidedOptions(): void { $productOptionFacade = $this->createProductOptionFacade(); @@ -68,7 +68,7 @@ public function testSaveSaleOrderProductOptionsShouldPersistProvidedOptions() /** * @return \Orm\Zed\Sales\Persistence\SpySalesOrderAddress */ - protected function createSalesOrderAddress() + protected function createSalesOrderAddress(): SpySalesOrderAddress { $salesOrderAddressEntity = new SpySalesOrderAddress(); $salesOrderAddressEntity->setAddress1(1); @@ -94,7 +94,7 @@ protected function createSalesOrderAddress() /** * @return \Orm\Zed\Oms\Persistence\SpyOmsOrderProcess */ - protected function createOmsProcess() + protected function createOmsProcess(): SpyOmsOrderProcess { $omsProcessEntity = new SpyOmsOrderProcess(); $omsProcessEntity->setName('test'); @@ -106,7 +106,7 @@ protected function createOmsProcess() /** * @return \Orm\Zed\Oms\Persistence\SpyOmsOrderItemState */ - protected function createOmsState() + protected function createOmsState(): SpyOmsOrderItemState { $omsStateEntity = new SpyOmsOrderItemState(); $omsStateEntity->setName('test'); @@ -118,7 +118,7 @@ protected function createOmsState() /** * @return \Spryker\Zed\ProductOption\Business\ProductOptionFacade */ - protected function createProductOptionFacade() + protected function createProductOptionFacade(): ProductOptionFacade { $productOptionFacade = new ProductOptionFacade(); @@ -131,7 +131,7 @@ protected function createProductOptionFacade() * * @return \Orm\Zed\Sales\Persistence\SpySalesOrder */ - protected function createSalesOrderEntity(SpySalesOrderAddress $address1, SpySalesOrderAddress $address2) + protected function createSalesOrderEntity(SpySalesOrderAddress $address1, SpySalesOrderAddress $address2): SpySalesOrder { $salesOrderEntity = new SpySalesOrder(); $salesOrderEntity->setFkSalesOrderAddressBilling($address1->getIdSalesOrderAddress()); @@ -155,8 +155,8 @@ protected function createSalesOrderEntity(SpySalesOrderAddress $address1, SpySal protected function createSalesOrderItemEntity( SpyOmsOrderItemState $testStateEntity, SpyOmsOrderProcess $omsProcessEntity, - SpySalesOrder $salesOrderEntity - ) { + SpySalesOrder $salesOrderEntity, + ): SpySalesOrderItem { $salesOrderItemEntity = new SpySalesOrderItem(); $salesOrderItemEntity->setFkOmsOrderItemState($testStateEntity->getIdOmsOrderItemState()); $salesOrderItemEntity->setFkOmsOrderProcess($omsProcessEntity->getIdOmsOrderProcess()); @@ -177,7 +177,7 @@ protected function createSalesOrderItemEntity( * * @return \Orm\Zed\Sales\Persistence\SpySalesOrderItemOption */ - protected function createSalesOrderItemOptionEntity(SpySalesOrderItem $salesOrderItemEntity) + protected function createSalesOrderItemOptionEntity(SpySalesOrderItem $salesOrderItemEntity): SpySalesOrderItemOption { $salesOrderItemOptionEntity = new SpySalesOrderItemOption(); $salesOrderItemOptionEntity->setFkSalesOrderItem($salesOrderItemEntity->getIdSalesOrderItem()); @@ -196,7 +196,7 @@ protected function createSalesOrderItemOptionEntity(SpySalesOrderItem $salesOrde * * @return \Generated\Shared\Transfer\OrderTransfer */ - protected function createOrderTransferWithRelatedPersistedData($createOptions = true) + protected function createOrderTransferWithRelatedPersistedData($createOptions = true): OrderTransfer { $address1 = $this->createSalesOrderAddress(); $address2 = $this->createSalesOrderAddress(); diff --git a/tests/PyzTest/Zed/ProductRelation/Presentation/ProductRelationCreateRelationCest.php b/tests/PyzTest/Zed/ProductRelation/Presentation/ProductRelationCreateRelationCest.php index 568509972e..71573824af 100644 --- a/tests/PyzTest/Zed/ProductRelation/Presentation/ProductRelationCreateRelationCest.php +++ b/tests/PyzTest/Zed/ProductRelation/Presentation/ProductRelationCreateRelationCest.php @@ -50,7 +50,7 @@ public function testICanCreateProductRelationAndSeeInYves(ProductRelationPresent $i->selectProductRule( ProductRelationCreatePage::PRODUCT_RULE_NAME, ProductRelationCreatePage::PRODUCT_RULE_OPERATOR, - ProductRelationCreatePage::PRODUCT_RELATION_PRODUCT_2_SKU + ProductRelationCreatePage::PRODUCT_RELATION_PRODUCT_2_SKU, ); $i->clickSaveButton(); diff --git a/tests/PyzTest/Zed/ProductRelation/_support/PageObject/ProductRelationCreatePage.php b/tests/PyzTest/Zed/ProductRelation/_support/PageObject/ProductRelationCreatePage.php index edbc68a9a3..c8fde83794 100644 --- a/tests/PyzTest/Zed/ProductRelation/_support/PageObject/ProductRelationCreatePage.php +++ b/tests/PyzTest/Zed/ProductRelation/_support/PageObject/ProductRelationCreatePage.php @@ -18,6 +18,7 @@ class ProductRelationCreatePage * @var string */ public const PRODUCT_RELATION_PRODUCT_1_NAME = 'Mauser sliding door'; + /** * @var string */ @@ -27,6 +28,7 @@ class ProductRelationCreatePage * @var string */ public const PRODUCT_RULE_NAME = 'sku'; + /** * @var string */ @@ -46,6 +48,7 @@ class ProductRelationCreatePage * @var string */ public const MESSAGE_SUCCESS_PRODUCT_RELATION_CREATED = 'Product relation successfully created'; + /** * @var string */ diff --git a/tests/PyzTest/Zed/ProductRelation/_support/ProductRelationPresentationTester.php b/tests/PyzTest/Zed/ProductRelation/_support/ProductRelationPresentationTester.php index adda57e0ba..b625e3a661 100644 --- a/tests/PyzTest/Zed/ProductRelation/_support/ProductRelationPresentationTester.php +++ b/tests/PyzTest/Zed/ProductRelation/_support/ProductRelationPresentationTester.php @@ -34,30 +34,37 @@ class ProductRelationPresentationTester extends Actor * @var int */ public const ELEMENT_TIMEOUT = 45; + /** * @var string */ public const PRODUCT_RELATION_TYPE_SELECTOR = '//*[@id="product_relation_productRelationType"]'; + /** * @var string */ public const PRODUCT_TABLE_FILTER_LABEL_INPUT_SELECTOR = '//*[@id="product-table_filter"]/label/input'; + /** * @var string */ public const PRODUCT_TAB_SELECTOR = '//*[@id="form-product-relation"]/div/ul/li[2]/a'; + /** * @var string */ public const SUBMIT_RELATION_BUTTON_SELECTOR = '//*[@id="submit-relation"]'; + /** * @var string */ public const ACTIVATE_RELATION_BUTTON_SELECTOR = '//*[@id="activate-relation"]'; + /** * @var string */ public const PRODUCT_RELATION_KEY_FIELD_SELECTOR = '//*[@id="product_relation_productRelationKey"]'; + /** * @var string */ diff --git a/tests/PyzTest/Zed/PropelOrm/Business/PropelOrmTransactionHandlerTest.php b/tests/PyzTest/Zed/PropelOrm/Business/PropelOrmTransactionHandlerTest.php index 6736d20bc1..d02fcbc579 100644 --- a/tests/PyzTest/Zed/PropelOrm/Business/PropelOrmTransactionHandlerTest.php +++ b/tests/PyzTest/Zed/PropelOrm/Business/PropelOrmTransactionHandlerTest.php @@ -9,6 +9,8 @@ use Codeception\Test\Unit; use Exception; +use Orm\Zed\Product\Persistence\SpyProductAbstract; +use Orm\Zed\Product\Persistence\SpyProductAbstractLocalizedAttributes; use PyzTest\Zed\PropelOrm\Stub\ProductManagerStub; use Spryker\Zed\Product\Business\ProductFacade; use Spryker\Zed\Product\Persistence\ProductQueryContainer; @@ -30,6 +32,7 @@ class PropelOrmTransactionHandlerTest extends Unit * @var string */ public const TEST_SKU = 'foo'; + /** * @var string */ @@ -67,11 +70,11 @@ protected function setUp(): void /** * @return void */ - public function testAddProductWithoutTransactionHandling() + public function testAddProductWithoutTransactionHandling(): void { self::markTestSkipped(); $productManager = new ProductManagerStub( - $this->productQueryContainer + $this->productQueryContainer, ); $idProductAbstract = $productManager->addProductWithoutTransactionHandling(static::TEST_SKU, static::TEST_NAME); @@ -90,10 +93,10 @@ public function testAddProductWithoutTransactionHandling() * * @return void */ - public function testAddProductWithoutTransactionHandlingShouldThrowException() + public function testAddProductWithoutTransactionHandlingShouldThrowException(): void { $productManager = new ProductManagerStub( - $this->productQueryContainer + $this->productQueryContainer, ); try { @@ -111,10 +114,10 @@ public function testAddProductWithoutTransactionHandlingShouldThrowException() * * @return void */ - public function testAddProductWithTransactionHandlingShouldRollbackAndThrowException() + public function testAddProductWithTransactionHandlingShouldRollbackAndThrowException(): void { $productManager = new ProductManagerStub( - $this->productQueryContainer + $this->productQueryContainer, ); $this->expectException(Exception::class); @@ -128,10 +131,10 @@ public function testAddProductWithTransactionHandlingShouldRollbackAndThrowExcep * * @return void */ - public function testAddProductWithTransactionHandlingShouldCommitAndReturnValue() + public function testAddProductWithTransactionHandlingShouldCommitAndReturnValue(): void { $productManager = new ProductManagerStub( - $this->productQueryContainer + $this->productQueryContainer, ); $localizedAttributeEntity = $productManager->addProductWithTransactionHandlingShouldCommitAndReturnValue(static::TEST_SKU, static::TEST_NAME); @@ -145,7 +148,7 @@ public function testAddProductWithTransactionHandlingShouldCommitAndReturnValue( * * @return \Orm\Zed\Product\Persistence\SpyProductAbstract */ - protected function getProductAbstractToAssert($idProductAbstract) + protected function getProductAbstractToAssert($idProductAbstract): SpyProductAbstract { return $this->productQueryContainer ->queryProductAbstract() @@ -158,7 +161,7 @@ protected function getProductAbstractToAssert($idProductAbstract) * * @return \Orm\Zed\Product\Persistence\SpyProductAbstractLocalizedAttributes */ - protected function getLocalizedAttributesToAssert($idProductAbstract) + protected function getLocalizedAttributesToAssert($idProductAbstract): SpyProductAbstractLocalizedAttributes { return $this->productQueryContainer ->queryProductAbstractLocalizedAttributes($idProductAbstract) @@ -169,7 +172,7 @@ protected function getLocalizedAttributesToAssert($idProductAbstract) /** * @return void */ - protected function assertEntityNotCreatedOutsideTransaction() + protected function assertEntityNotCreatedOutsideTransaction(): void { $this->outsideConnection->forceRollBack(); @@ -184,7 +187,7 @@ protected function assertEntityNotCreatedOutsideTransaction() /** * @return void */ - protected function assertEntityNotCreatedWithinTransaction() + protected function assertEntityNotCreatedWithinTransaction(): void { $entityToAssert = $this->productQueryContainer ->queryProductAbstract() @@ -197,7 +200,7 @@ protected function assertEntityNotCreatedWithinTransaction() /** * @return void */ - protected function assertEntityCreatedWithinTransaction() + protected function assertEntityCreatedWithinTransaction(): void { $entityToAssert = $this->productQueryContainer ->queryProductAbstract() diff --git a/tests/PyzTest/Zed/PropelOrm/_support/Stub/ProductManagerStub.php b/tests/PyzTest/Zed/PropelOrm/_support/Stub/ProductManagerStub.php index 8b6d822fff..50230896b9 100644 --- a/tests/PyzTest/Zed/PropelOrm/_support/Stub/ProductManagerStub.php +++ b/tests/PyzTest/Zed/PropelOrm/_support/Stub/ProductManagerStub.php @@ -35,7 +35,7 @@ public function __construct(ProductQueryContainerInterface $productQueryContaine * * @return \Orm\Zed\Product\Persistence\SpyProductAbstract */ - protected function createProductAbstractEntity($sku) + protected function createProductAbstractEntity($sku): SpyProductAbstract { $productAbstractEntity = new SpyProductAbstract(); $productAbstractEntity->setSku($sku); @@ -51,7 +51,7 @@ protected function createProductAbstractEntity($sku) * * @return \Orm\Zed\Product\Persistence\SpyProductAbstractLocalizedAttributes */ - protected function createLocalizedAttributeEntity($name, $idProductAbstract) + protected function createLocalizedAttributeEntity($name, $idProductAbstract): SpyProductAbstractLocalizedAttributes { $localizedAttributeEntity = new SpyProductAbstractLocalizedAttributes(); $localizedAttributeEntity->setAttributes('{}'); @@ -69,7 +69,7 @@ protected function createLocalizedAttributeEntity($name, $idProductAbstract) * * @return int */ - public function addProductWithoutTransactionHandling($sku, $name) + public function addProductWithoutTransactionHandling($sku, $name): int { $this->productQueryContainer->getConnection()->beginTransaction(); @@ -87,7 +87,7 @@ public function addProductWithoutTransactionHandling($sku, $name) * * @return void */ - public function addProductWithoutTransactionHandlingShouldThrowException($sku, $name) + public function addProductWithoutTransactionHandlingShouldThrowException($sku, $name): void { $this->productQueryContainer->getConnection()->beginTransaction(); @@ -114,9 +114,9 @@ public function addProductWithoutTransactionHandlingShouldThrowException($sku, $ * * @return void */ - public function addProductWithTransactionHandlingShouldRollbackAndThrowException($sku, $name) + public function addProductWithTransactionHandlingShouldRollbackAndThrowException($sku, $name): void { - $this->handleDatabaseTransaction(function () use ($sku, $name) { + $this->handleDatabaseTransaction(function () use ($sku, $name): void { $productAbstractEntity = new SpyProductAbstract(); $productAbstractEntity->setSku($sku); $productAbstractEntity->setAttributes('{}'); @@ -139,7 +139,7 @@ public function addProductWithTransactionHandlingShouldRollbackAndThrowException * * @return \Orm\Zed\Product\Persistence\SpyProductAbstractLocalizedAttributes */ - public function addProductWithTransactionHandlingShouldCommitAndReturnValue($sku, $name) + public function addProductWithTransactionHandlingShouldCommitAndReturnValue($sku, $name): SpyProductAbstractLocalizedAttributes { return $this->handleDatabaseTransaction(function () use ($sku, $name) { $productAbstractEntity = new SpyProductAbstract(); @@ -163,7 +163,7 @@ public function addProductWithTransactionHandlingShouldCommitAndReturnValue($sku * * @return void */ - protected function throwSampleException() + protected function throwSampleException(): void { throw new Exception('DB error occured'); } diff --git a/tests/PyzTest/Zed/Tax/Presentation/TaxRateCreateCest.php b/tests/PyzTest/Zed/Tax/Presentation/TaxRateCreateCest.php index 20879a850e..ac5f9b2aa4 100644 --- a/tests/PyzTest/Zed/Tax/Presentation/TaxRateCreateCest.php +++ b/tests/PyzTest/Zed/Tax/Presentation/TaxRateCreateCest.php @@ -28,7 +28,7 @@ class TaxRateCreateCest * * @return void */ - public function testCreateValidTaxRateShouldShowSuccessMessage(TaxPresentationTester $i) + public function testCreateValidTaxRateShouldShowSuccessMessage(TaxPresentationTester $i): void { $i->wantTo('Create valid tax rate.'); $i->expect('Tax rate is successfully created'); @@ -44,7 +44,7 @@ public function testCreateValidTaxRateShouldShowSuccessMessage(TaxPresentationTe * * @return void */ - public function testCreateInvalidTaxRateShouldShowErrorMessages(TaxPresentationTester $i) + public function testCreateInvalidTaxRateShouldShowErrorMessages(TaxPresentationTester $i): void { $i->wantTo('Create invalid tax rate'); $i->expect('Error messages are displayed. Tax rate is not created'); @@ -58,7 +58,7 @@ public function testCreateInvalidTaxRateShouldShowErrorMessages(TaxPresentationT * * @return void */ - public function testBackToListOfTaxRatesShouldOpenTaxRateListPageWithoutSaving(TaxPresentationTester $i) + public function testBackToListOfTaxRatesShouldOpenTaxRateListPageWithoutSaving(TaxPresentationTester $i): void { $i->wantTo('Create valid tax rate and back to list of tax rates'); $i->expect('List of tax rates is opened, tax rate is not created'); @@ -78,7 +78,7 @@ public function testBackToListOfTaxRatesShouldOpenTaxRateListPageWithoutSaving(T * * @return void */ - public function testCreateTaxRateWhichAlreadyExistsShouldShowErrorMessage(TaxPresentationTester $i) + public function testCreateTaxRateWhichAlreadyExistsShouldShowErrorMessage(TaxPresentationTester $i): void { $i->wantTo('Create tax rate which already exists'); $i->expect('Error message is displayed on attempt to create one and the same Tax Rate'); @@ -96,7 +96,7 @@ public function testCreateTaxRateWhichAlreadyExistsShouldShowErrorMessage(TaxPre * * @return void */ - public function testCreateAlreadyExistedTaxRateShouldShowErrorMessage(TaxPresentationTester $i) + public function testCreateAlreadyExistedTaxRateShouldShowErrorMessage(TaxPresentationTester $i): void { $i->wantTo('Create tax rate which already exists'); $i->expect('Error message is displayed on attempt to create one and the same Tax Rate'); diff --git a/tests/PyzTest/Zed/Tax/_support/PageObject/TaxRateListPage.php b/tests/PyzTest/Zed/Tax/_support/PageObject/TaxRateListPage.php index 29afec8fcc..c2d15d4a7a 100644 --- a/tests/PyzTest/Zed/Tax/_support/PageObject/TaxRateListPage.php +++ b/tests/PyzTest/Zed/Tax/_support/PageObject/TaxRateListPage.php @@ -23,10 +23,12 @@ class TaxRateListPage * @var string */ public const SELECTOR_SEARCH = 'input.form-control.input-sm'; + /** * @var string */ public const SELECTOR_DELETE = 'Delete'; + /** * @var string */ diff --git a/tests/PyzTest/Zed/Testify/_support/Helper/BootstrapHelper.php b/tests/PyzTest/Zed/Testify/_support/Helper/BootstrapHelper.php new file mode 100644 index 0000000000..3dd48c0872 --- /dev/null +++ b/tests/PyzTest/Zed/Testify/_support/Helper/BootstrapHelper.php @@ -0,0 +1,53 @@ +disableWhoopsErrorHandler(); + + $requestFactory = function (array $query = [], array $request = [], array $attributes = [], array $cookies = [], array $files = [], array $server = [], $content = null) { + $request = new Request($query, $request, $attributes, $cookies, $files, $server, $content); + $request->server->set('SERVER_NAME', 'localhost'); + + return $request; + }; + + Request::setFactory($requestFactory); + + $application = new ZedBootstrap(); + $this->client = new HttpKernelBrowser($application->boot()); + } + + /** + * The WhoopsErrorHandler converts E_USER_DEPRECATED into exception, we need to disable it for controller tests. + * + * @return void + */ + protected function disableWhoopsErrorHandler(): void + { + $this->getConfigHelper()->setConfig(ErrorHandlerConstants::IS_PRETTY_ERROR_HANDLER_ENABLED, false); + } +} diff --git a/tests/PyzTest/Zed/Testify/_support/Helper/LoginHelper.php b/tests/PyzTest/Zed/Testify/_support/Helper/LoginHelper.php new file mode 100644 index 0000000000..da3debd138 --- /dev/null +++ b/tests/PyzTest/Zed/Testify/_support/Helper/LoginHelper.php @@ -0,0 +1,38 @@ +getClient(); + + $i->amOnPage('/security-gui/login'); + + $i->fillField('#auth_username', $username); + $i->fillField('#auth_password', $password); + $i->click('Login'); + } + + /** + * @return \Codeception\Module|\Codeception\Lib\Framework + */ + protected function getClient() + { + return $this->getModule('\\' . BootstrapHelper::class); + } +} diff --git a/tests/PyzTest/Zed/Touch/Business/TouchTest.php b/tests/PyzTest/Zed/Touch/Business/TouchTest.php index 325ea494d5..286257d269 100644 --- a/tests/PyzTest/Zed/Touch/Business/TouchTest.php +++ b/tests/PyzTest/Zed/Touch/Business/TouchTest.php @@ -25,7 +25,7 @@ class TouchTest extends Unit /** * @return void */ - public function testDatabaseAccessWorks() + public function testDatabaseAccessWorks(): void { $query = SpyTouchQuery::create(); $query->count(); diff --git a/tests/_bootstrap.php b/tests/_bootstrap.php deleted file mode 100644 index 6b96f9b500..0000000000 --- a/tests/_bootstrap.php +++ /dev/null @@ -1,9 +0,0 @@ -