Skip to content

Commit 9785070

Browse files
committed
improve code quality
1 parent 24a9984 commit 9785070

Some content is hidden

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

65 files changed

+1184
-630
lines changed

composer.json

+13-7
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
{
22
"name": "doganoo/php-algorithms",
3-
"type": "library",
43
"description": "A collection of common algorithms implemented in PHP. The collection is based on \"Cracking the Coding Interview\" by Gayle Laakmann McDowell",
4+
"license": "MIT",
5+
"type": "library",
56
"keywords": [
67
"algorithms",
78
"data structures"
89
],
9-
"homepage": "https://www.dogan-ucar.de/phpalgorithms-2/",
10-
"license": "MIT",
1110
"authors": [
1211
{
1312
"name": "Dogan Ucar",
1413
"email": "[email protected]",
1514
"homepage": "https://www.dogan-ucar.de"
1615
}
1716
],
17+
"homepage": "https://www.dogan-ucar.de/phpalgorithms-2/",
1818
"require": {
1919
"php": ">=7.4",
2020
"ext-json": "*",
21-
"ext-pdo": "*",
2221
"doganoo/php-util": "0.5.*"
2322
},
2423
"require-dev": {
2524
"ergebnis/composer-normalize": "^2.9",
2625
"phpcompatibility/php-compatibility": "^9.3",
2726
"phpstan/phpstan": "^0.12.54",
2827
"phpunit/phpunit": "6.5",
28+
"roave/security-advisories": "dev-latest",
2929
"squizlabs/php_codesniffer": "^3.5"
3030
},
3131
"autoload": {
@@ -34,11 +34,17 @@
3434
"doganoo\\PHPAlgorithmsTest\\": "tests/"
3535
}
3636
},
37+
"config": {
38+
"allow-plugins": {
39+
"ergebnis/composer-normalize": true
40+
}
41+
},
3742
"scripts": {
38-
"run-test": "vendor/bin/phpunit tests",
39-
"phpstan": "vendor/bin/phpstan analyse --level=8 --memory-limit=2G src tests",
4043
"post-install-cmd": "\"vendor/bin/phpcs\" --config-set installed_paths vendor/phpcompatibility/php-compatibility",
4144
"post-update-cmd": "\"vendor/bin/phpcs\" --config-set installed_paths vendor/phpcompatibility/php-compatibility",
42-
"php-compatibility": "./vendor/bin/phpcs -p . --standard=PHPCompatibility --runtime-set testVersion 7.4-8.0 --extensions=php --ignore=vendor/"
45+
"add-php-compatibility": "\"vendor/bin/phpcs\" --config-set installed_paths vendor/phpcompatibility/php-compatibility",
46+
"php-compatibility": "./vendor/bin/phpcs -p . --standard=PHPCompatibility --runtime-set testVersion 7.4-8.1 --extensions=php --ignore=vendor/",
47+
"phpstan": "vendor/bin/phpstan analyse --level=8 --memory-limit=2G src tests",
48+
"test": "vendor/bin/phpunit tests"
4349
}
4450
}

0 commit comments

Comments
 (0)