Skip to content

Commit cbc0f5d

Browse files
authored
Merge pull request #9 from factorio-item-browser/project-phoenix
2 parents 0f88c2f + e20d42c commit cbc0f5d

File tree

147 files changed

+1108
-684
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

147 files changed

+1108
-684
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/.idea
2-
/test/log
2+
/test/coverage
33
/vendor
44

55
/.phpunit.result.cache

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ language: php
33
matrix:
44
fast_finish: true
55
include:
6-
- php: '7.2'
76
- php: '7.3'
7+
- php: '7.4'
88

99
cache:
1010
directories:
@@ -15,8 +15,8 @@ install:
1515

1616
script:
1717
- vendor/bin/phpunit --testsuite=unit-test --coverage-clover=coverage.xml
18-
- vendor/bin/phpunit --testsuite=serializer-test
1918
- vendor/bin/coverage-check coverage.xml 100
19+
- vendor/bin/phpunit --testsuite=serializer-test
2020
- vendor/bin/phpcs -np --colors
2121
- vendor/bin/phpstan analyse --no-interaction
2222

CHANGELOG.md

Lines changed: 17 additions & 0 deletions

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1-
.PHONY: help bash test update
1+
.PHONY: help bash fix test update
22

33
help: ## Show this help.
44
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'
55

66
bash: ## Run the docker container and connect to it using bash.
77
docker run -it --rm -v $(shell pwd):/project bluepsyduck/php-fpm bash
88

9+
fix: ## Fixes the codestyle in the project.
10+
docker run -it --rm -v $(shell pwd):/project bluepsyduck/php-fpm composer phpcbf
11+
912
test: ## Test the project.
1013
docker run -it --rm -v $(shell pwd):/project bluepsyduck/php-fpm composer test
1114

README.md

Lines changed: 3 additions & 5 deletions

composer.json

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,21 @@
1212
}
1313
],
1414
"require": {
15-
"php": "^7.2",
15+
"php": "^7.3",
1616
"factorio-item-browser/common": "^1.0",
1717
"guzzlehttp/guzzle": "^6.3",
18-
"jms/serializer": "^2.1",
19-
"symfony/yaml": "^4.2",
20-
"zendframework/zend-servicemanager": "^3.0"
18+
"jms/serializer": "^3.2",
19+
"laminas/laminas-servicemanager": "^3.0",
20+
"symfony/yaml": "^4.2"
2121
},
2222
"require-dev": {
2323
"ext-json": "*",
2424
"bluepsyduck/test-helper": "^1.0",
25-
"phpstan/phpstan": "^0.11",
26-
"phpstan/phpstan-phpunit": "^0.11",
27-
"phpstan/phpstan-strict-rules": "^0.11",
25+
"phpstan/phpstan": "^0.12",
26+
"phpstan/phpstan-phpunit": "^0.12",
27+
"phpstan/phpstan-strict-rules": "^0.12",
2828
"phpunit/phpunit": "^8.0",
29-
"rregeer/phpunit-coverage-check": "^0.1",
29+
"rregeer/phpunit-coverage-check": "^0.3",
3030
"squizlabs/php_codesniffer": "^3.3"
3131
},
3232
"autoload": {
@@ -37,26 +37,20 @@
3737
"autoload-dev": {
3838
"psr-4": {
3939
"FactorioItemBrowserTest\\Api\\Client\\": "test/src/",
40-
"FactorioItemBrowserTestAsset\\Api\\Client\\": "test/asset/",
4140
"FactorioItemBrowserTestSerializer\\Api\\Client\\": "test/serializer/"
4241
}
4342
},
44-
"extra": {
45-
"zf": {
46-
"config-provider": "FactorioItemBrowser\\Api\\Client\\ConfigProvider"
47-
}
48-
},
4943
"scripts": {
50-
"coverage-check": "coverage-check test/log/clover.xml 100",
44+
"coverage-check": "coverage-check test/coverage/clover.xml 100",
5145
"phpcbf": "phpcbf -p --colors",
5246
"phpcs": "phpcs -p --colors",
5347
"phpstan": "phpstan analyse --no-interaction --ansi",
5448
"test-unit": "phpunit --testsuite unit-test --colors=always --coverage-html=test/coverage --coverage-clover=test/coverage/clover.xml",
5549
"test-serialize": "phpunit --testsuite serializer-test --colors=always",
5650
"test": [
5751
"@test-unit",
58-
"@test-serialize",
5952
"@coverage-check",
53+
"@test-serialize",
6054
"@phpcs",
6155
"@phpstan"
6256
]

config/api-client.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,14 @@
1818
ConfigKey::API_CLIENT => [
1919
ConfigKey::ENDPOINTS => [
2020
Endpoint\Auth\AuthEndpoint::class,
21+
Endpoint\Combination\CombinationExportEndpoint::class,
22+
Endpoint\Combination\CombinationStatusEndpoint::class,
2123
Endpoint\Generic\GenericDetailsEndpoint::class,
2224
Endpoint\Generic\GenericIconEndpoint::class,
2325
Endpoint\Item\ItemIngredientEndpoint::class,
2426
Endpoint\Item\ItemProductEndpoint::class,
2527
Endpoint\Item\ItemRandomEndpoint::class,
2628
Endpoint\Mod\ModListEndpoint::class,
27-
Endpoint\Mod\ModMetaEndpoint::class,
2829
Endpoint\Recipe\RecipeDetailsEndpoint::class,
2930
Endpoint\Recipe\RecipeMachinesEndpoint::class,
3031
Endpoint\Search\SearchQueryEndpoint::class,

config/dependencies.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace FactorioItemBrowser\Api\Client;
1313

1414
use FactorioItemBrowser\Api\Client\Constant\ServiceName;
15-
use Zend\ServiceManager\Factory\InvokableFactory;
15+
use Laminas\ServiceManager\Factory\InvokableFactory;
1616

1717
return [
1818
'dependencies' => [
@@ -22,13 +22,14 @@
2222
Client\Options::class => Client\OptionsFactory::class,
2323

2424
Endpoint\Auth\AuthEndpoint::class => InvokableFactory::class,
25+
Endpoint\Combination\CombinationExportEndpoint::class => InvokableFactory::class,
26+
Endpoint\Combination\CombinationStatusEndpoint::class => InvokableFactory::class,
2527
Endpoint\Generic\GenericDetailsEndpoint::class => InvokableFactory::class,
2628
Endpoint\Generic\GenericIconEndpoint::class => InvokableFactory::class,
2729
Endpoint\Item\ItemIngredientEndpoint::class => InvokableFactory::class,
2830
Endpoint\Item\ItemProductEndpoint::class => InvokableFactory::class,
2931
Endpoint\Item\ItemRandomEndpoint::class => InvokableFactory::class,
3032
Endpoint\Mod\ModListEndpoint::class => InvokableFactory::class,
31-
Endpoint\Mod\ModMetaEndpoint::class => InvokableFactory::class,
3233
Endpoint\Recipe\RecipeDetailsEndpoint::class => InvokableFactory::class,
3334
Endpoint\Recipe\RecipeMachinesEndpoint::class => InvokableFactory::class,
3435
Endpoint\Search\SearchQueryEndpoint::class => InvokableFactory::class,

0 commit comments

Comments
 (0)