Skip to content

Commit a817bb9

Browse files
Moved code to src/ and tests to tests/
1 parent bdd93de commit a817bb9

File tree

122 files changed

+15
-18
lines changed

Some content is hidden

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

122 files changed

+15
-18
lines changed

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
* text=auto
22

3-
/test export-ignore
3+
/tests export-ignore
44
/vendor-bin export-ignore
55
/.gitattributes export-ignore
66
/.github export-ignore

README.md

Lines changed: 1 addition & 1 deletion

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@
4444
},
4545
"autoload": {
4646
"psr-4": {
47-
"Gitlab\\": "lib/Gitlab/"
47+
"Gitlab\\": "src/"
4848
}
4949
},
5050
"autoload-dev": {
5151
"psr-4": {
52-
"Gitlab\\Tests\\": "test/Gitlab/Tests/"
52+
"Gitlab\\Tests\\": "tests/"
5353
}
5454
},
5555
"config": {

phpstan-baseline.neon

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,35 +3,35 @@ parameters:
33
-
44
message: "#^Return type \\(Gitlab\\\\Model\\\\Issue\\) of method Gitlab\\\\Model\\\\Issue\\:\\:close\\(\\) should be covariant with return type \\(static\\(Gitlab\\\\Model\\\\Stateful\\)\\) of method Gitlab\\\\Model\\\\Stateful\\:\\:close\\(\\)$#"
55
count: 1
6-
path: lib/Gitlab/Model/Issue.php
6+
path: src/Model/Issue.php
77

88
-
99
message: "#^Return type \\(Gitlab\\\\Model\\\\Issue\\) of method Gitlab\\\\Model\\\\Issue\\:\\:open\\(\\) should be covariant with return type \\(static\\(Gitlab\\\\Model\\\\Stateful\\)\\) of method Gitlab\\\\Model\\\\Stateful\\:\\:open\\(\\)$#"
1010
count: 1
11-
path: lib/Gitlab/Model/Issue.php
11+
path: src/Model/Issue.php
1212

1313
-
1414
message: "#^Return type \\(Gitlab\\\\Model\\\\Issue\\) of method Gitlab\\\\Model\\\\Issue\\:\\:reopen\\(\\) should be covariant with return type \\(static\\(Gitlab\\\\Model\\\\Stateful\\)\\) of method Gitlab\\\\Model\\\\Stateful\\:\\:reopen\\(\\)$#"
1515
count: 1
16-
path: lib/Gitlab/Model/Issue.php
16+
path: src/Model/Issue.php
1717

1818
-
1919
message: "#^Return type \\(Gitlab\\\\Model\\\\MergeRequest\\) of method Gitlab\\\\Model\\\\MergeRequest\\:\\:close\\(\\) should be covariant with return type \\(static\\(Gitlab\\\\Model\\\\Stateful\\)\\) of method Gitlab\\\\Model\\\\Stateful\\:\\:close\\(\\)$#"
2020
count: 1
21-
path: lib/Gitlab/Model/MergeRequest.php
21+
path: src/Model/MergeRequest.php
2222

2323
-
2424
message: "#^Return type \\(Gitlab\\\\Model\\\\MergeRequest\\) of method Gitlab\\\\Model\\\\MergeRequest\\:\\:reopen\\(\\) should be covariant with return type \\(static\\(Gitlab\\\\Model\\\\Stateful\\)\\) of method Gitlab\\\\Model\\\\Stateful\\:\\:reopen\\(\\)$#"
2525
count: 1
26-
path: lib/Gitlab/Model/MergeRequest.php
26+
path: src/Model/MergeRequest.php
2727

2828
-
2929
message: "#^Return type \\(Gitlab\\\\Model\\\\MergeRequest\\) of method Gitlab\\\\Model\\\\MergeRequest\\:\\:open\\(\\) should be covariant with return type \\(static\\(Gitlab\\\\Model\\\\Stateful\\)\\) of method Gitlab\\\\Model\\\\Stateful\\:\\:open\\(\\)$#"
3030
count: 1
31-
path: lib/Gitlab/Model/MergeRequest.php
31+
path: src/Model/MergeRequest.php
3232

3333
-
3434
message: "#^Variable method call on Gitlab\\\\Api\\\\ApiInterface\\.$#"
3535
count: 1
36-
path: lib/Gitlab/ResultPager.php
36+
path: src/ResultPager.php
3737

phpstan.neon.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ parameters:
1616
level: max
1717
checkMissingIterableValueType: false
1818
paths:
19-
- lib
19+
- src
2020
ignoreErrors:
2121
- "#Anonymous function should have native return typehint#"
2222
- '#Only booleans are allowed in an if condition#'

phpunit.xml.dist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
>
1818
<testsuites>
1919
<testsuite name="Test Suite">
20-
<directory suffix="Test.php">./test</directory>
20+
<directory suffix="Test.php">./tests</directory>
2121
</testsuite>
2222
</testsuites>
2323
<filter>
2424
<whitelist processUncoveredFilesFromWhitelist="true">
25-
<directory suffix=".php">./lib</directory>
25+
<directory suffix=".php">./src</directory>
2626
</whitelist>
2727
</filter>
2828
</phpunit>

psalm-baseline.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<files psalm-version="3.12.2@7c7ebd068f8acaba211d4a2c707c4ba90874fa26">
3-
<file src="lib/Gitlab/HttpClient/Plugin/HistoryTrait.php">
4-
<UnrecognizedStatement occurrences="1"/>
5-
</file>
63
</files>

psalm.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
errorBaseline="psalm-baseline.xml"
99
>
1010
<projectFiles>
11-
<directory name="lib" />
11+
<directory name="src" />
1212
</projectFiles>
1313
</psalm>
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)