Skip to content

Commit

Permalink
Simplify uri-components package structure
Browse files Browse the repository at this point in the history
  • Loading branch information
nyamsprod committed Nov 25, 2022
1 parent 7557c66 commit 56cec2c
Show file tree
Hide file tree
Showing 48 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

$finder = PhpCsFixer\Finder::create()
->in(__DIR__.'/uri/src')
->in(__DIR__.'/components/src')
->in(__DIR__.'/components')
->in(__DIR__.'/interfaces');

$config = new PhpCsFixer\Config();
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion components/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
},
"autoload": {
"psr-4": {
"League\\Uri\\": "src"
"League\\Uri\\": ""
}
},
"extra": {
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
},
"autoload": {
"psr-4": {
"League\\Uri\\": ["uri/src", "components/src", "interfaces"]
"League\\Uri\\": ["uri/src", "components", "interfaces"]
}
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion phpbench.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "vendor/phpbench/phpbench/phpbench.schema.json",
"runner.bootstrap": "vendor/autoload.php",
"runner.path": ["uri/src", "components/src"],
"runner.path": ["uri/src", "components"],
"runner.file_pattern": "*Bench.php",
"runner.php_disable_ini": true
}
12 changes: 6 additions & 6 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@ includes:
parameters:
paths:
- uri/src
- components/src
- components
- interfaces
ignoreErrors:
- '#Parameter \#1 \$pairs of static method League\\Uri\\Components\\Query::createFromPairs\(\) expects iterable.*#'
- '#^Call to deprecated method withContent\(\) of#'
- message: '#Parameter \#2 \$value of method League\\Uri\\Contracts\\QueryInterface::appendTo\(\) expects string\|null, int given\.#'
path: components/src/Components/QueryTest.php
path: components/Components/QueryTest.php
- message: '#Cannot cast mixed to string.#'
path: components/src/IPv4Calculators/BCMathCalculator.php
path: components/IPv4Calculators/BCMathCalculator.php
- message: '#Cannot cast mixed to string.#'
path: components/src/IPv4Calculators/NativeCalculator.php
path: components/IPv4Calculators/NativeCalculator.php
- message: '#function gmp_(.*)? expects (GMP|int)#'
path: components/src/IPv4Calculators/GMPCalculator.php
path: components/IPv4Calculators/GMPCalculator.php
- message : "#Strict comparison using === between '' and non-empty-string will always evaluate to false.#"
path: components/src/QueryString.php
path: components/QueryString.php
reportUnmatchedIgnoredErrors: true
checkMissingIterableValueType: false
8 changes: 4 additions & 4 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
<coverage>
<include>
<directory suffix=".php">uri/src</directory>
<directory suffix=".php">components/src</directory>
<directory suffix=".php">components</directory>
<directory suffix=".php">interfaces</directory>
</include>
<exclude>
<directory suffix="Bench.php">uri/src</directory>
<directory suffix="Test.php">uri/src</directory>
<directory suffix="Bench.php">components/src</directory>
<directory suffix="Test.php">components/src</directory>
<directory suffix="Bench.php">components</directory>
<directory suffix="Test.php">components</directory>
<directory suffix="Bench.php">interfaces</directory>
<directory suffix="Test.php">interfaces</directory>
</exclude>
Expand All @@ -35,7 +35,7 @@
<testsuites>
<testsuite name="URI Test Suite">
<directory suffix="Test.php">uri/src</directory>
<directory suffix="Test.php">components/src</directory>
<directory suffix="Test.php">components</directory>
<directory suffix="Test.php">interfaces</directory>
</testsuite>
</testsuites>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes

0 comments on commit 56cec2c

Please sign in to comment.