Skip to content

Commit

Permalink
Add strict_types.
Browse files Browse the repository at this point in the history
Change docker container to dev.
Add php-cs-fixer to composer.
Fix PSR-4 autoload config.
Fix composer name.
  • Loading branch information
herbertroth committed Jan 15, 2024
1 parent 77f4a90 commit 3c1522f
Show file tree
Hide file tree
Showing 43 changed files with 48 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,5 @@ package-lock.json
/.env
/.htaccess
/auth.json
/config.json
/config.json
/composer.phar
7 changes: 4 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "pimcore/x-template-name-bundle-x",
"name": "pimcore/generic-data-index-bundle",
"license": "Pimcore Enterprise License (PEL)",
"type": "pimcore-bundle",
"description": "Pimcore xTemplate Bundlex",
Expand Down Expand Up @@ -34,11 +34,12 @@
"phpunit/phpunit": "10.2.7",
"nyholm/psr7": "^1",
"symfony/phpunit-bridge": "^6",
"fakerphp/faker": "^1.23"
"fakerphp/faker": "^1.23",
"friendsofphp/php-cs-fixer": "^3.4"
},
"autoload": {
"psr-4": {
"Pimcore\\Bundle\\xTemplateBundlex\\": "src/",
"Pimcore\\Bundle\\GenericDataIndexBundle\\": "src/",
"Pimcore\\": "core-extension/Pimcore/"
}
},
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3.0'
services:
php-x-template-bundle-x:
image: pimcore/pimcore:php8.2-debug-latest
php-generic-data-index-bundle:
image: pimcore/pimcore:php8.2-debug-dev
environment:
PHP_IDE_CONFIG: serverName=localhost
volumes:
Expand Down
1 change: 1 addition & 0 deletions src/Command/Update/IndexUpdateCommand.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);

/**
* Pimcore
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);

/**
* Pimcore
Expand Down
1 change: 1 addition & 0 deletions src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);

/**
* Pimcore
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);

/**
* Pimcore
Expand Down
1 change: 1 addition & 0 deletions src/Entity/IndexQueue.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);

/**
* Pimcore
Expand Down
1 change: 1 addition & 0 deletions src/Enum/DependencyInjection/CompilerPassTag.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);

/**
* Pimcore
Expand Down
1 change: 1 addition & 0 deletions src/Enum/SearchIndex/ElementType.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);

/**
* Pimcore
Expand Down
1 change: 1 addition & 0 deletions src/Enum/SearchIndex/FieldCategory.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);

/**
* Pimcore
Expand Down
1 change: 1 addition & 0 deletions src/Enum/SearchIndex/FieldCategory/SystemField.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);

/**
* Pimcore
Expand Down
1 change: 1 addition & 0 deletions src/Enum/SearchIndex/IndexQueueOperation.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);

/**
* Pimcore
Expand Down
1 change: 1 addition & 0 deletions src/Enum/SearchIndex/OpenSearch/AttributeType.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);

/**
* Pimcore
Expand Down
1 change: 1 addition & 0 deletions src/Message/IndexUpdateQueueMessage.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);

/**
* Pimcore
Expand Down
1 change: 1 addition & 0 deletions src/MessageHandler/IndexUpdateQueueHandler.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);

/**
* Pimcore
Expand Down
1 change: 1 addition & 0 deletions src/PimcoreGenericDataIndexBundle.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);

/**
* Pimcore
Expand Down
1 change: 1 addition & 0 deletions src/Service/DataObject/SelectOptionsService.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);

/**
* Pimcore
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);

/**
* Pimcore
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);

/**
* Pimcore
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);

/**
* Pimcore
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);

/**
* Pimcore
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);

/**
* Pimcore
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);

/**
* Pimcore
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);

/**
* Pimcore
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);

/**
* Pimcore
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);

/**
* Pimcore
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);

/**
* Pimcore
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);

/**
* Pimcore
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);

/**
* Pimcore
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);

/**
* Pimcore
Expand Down
1 change: 1 addition & 0 deletions src/Service/SearchIndex/IndexQueueService.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);

/**
* Pimcore
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);

/**
* Pimcore
Expand Down
1 change: 1 addition & 0 deletions src/Service/SearchIndex/IndexService/AssetIndexService.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);

/**
* Pimcore
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);

/**
* Pimcore
Expand Down
1 change: 1 addition & 0 deletions src/Service/SearchIndex/IndexServiceInterface.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);

/**
* Pimcore
Expand Down
1 change: 1 addition & 0 deletions src/Service/SearchIndex/IndexUpdateService.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);

/**
* Pimcore
Expand Down
1 change: 1 addition & 0 deletions src/Service/SearchIndex/LanguageService.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);

/**
* Pimcore
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);

/**
* Pimcore
Expand Down
1 change: 1 addition & 0 deletions src/Service/SearchIndex/OpenSearch/OpenSearchService.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);

/**
* Pimcore
Expand Down
1 change: 1 addition & 0 deletions src/Service/SearchIndex/SearchIndexConfigService.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);

/**
* Pimcore
Expand Down
1 change: 1 addition & 0 deletions src/Service/Workflow/WorkflowService.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);

/**
* Pimcore
Expand Down
1 change: 1 addition & 0 deletions src/Traits/LoggerAwareTrait.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);

/**
* Pimcore
Expand Down

0 comments on commit 3c1522f

Please sign in to comment.