Skip to content

Commit b7de0d7

Browse files
authored
Merge pull request MyIntervals#236 from oliverklee/cleanup/src-structure
Move the production code from `lib/` to `src/`
2 parents c0f26fc + 9e2107e commit b7de0d7

Some content is hidden

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

43 files changed

+8
-8
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
coverage: none
2828

2929
- name: PHP Lint
30-
run: find lib tests -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l
30+
run: find src tests -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l
3131

3232
unit-tests:
3333
name: Unit tests

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
"codacy/coverage": "^1.4"
1717
},
1818
"autoload": {
19-
"psr-4": { "Sabberworm\\CSS\\": "lib/Sabberworm/CSS/" }
19+
"psr-4": { "Sabberworm\\CSS\\": "src/" }
2020
},
2121
"scripts": {
2222
"ci": [
2323
"@ci:static"
2424
],
25-
"ci:php:sniff": "@php ./.phive/phpcs.phar lib tests",
25+
"ci:php:sniff": "@php ./.phive/phpcs.phar src tests",
2626
"ci:php:stan": "@php ./.phive/phpstan.phar",
2727
"ci:static": [
2828
"@ci:php:sniff",
@@ -31,7 +31,7 @@
3131
"fix:php": [
3232
"@fix:php:sniff"
3333
],
34-
"fix:php:sniff": "@php ./.phive/phpcbf.phar lib tests",
34+
"fix:php:sniff": "@php ./.phive/phpcbf.phar src tests",
3535
"phpstan:baseline": "@php ./.phive/phpstan.phar --generate-baseline"
3636
}
3737
}

phpstan-baseline.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ parameters:
88
-
99
message: "#^Access to an undefined property Sabberworm\\\\CSS\\\\Parsing\\\\ParserState\\:\\:\\$oParserHelper\\.$#"
1010
count: 1
11-
path: lib/Sabberworm/CSS/Parsing/ParserState.php
11+
path: src/Parsing/ParserState.php
1212

1313
-
1414
message: "#^Class Sabberworm\\\\CSS\\\\Value\\\\Size constructor invoked with 5 parameters, 1\\-4 required\\.$#"

phpstan.neon.dist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ parameters:
99
level: 1
1010

1111
scanDirectories:
12-
- %currentWorkingDirectory%/lib/
12+
- %currentWorkingDirectory%/src/
1313
- %currentWorkingDirectory%/tests/
1414
paths:
15-
- %currentWorkingDirectory%/lib/
15+
- %currentWorkingDirectory%/src/
1616
- %currentWorkingDirectory%/tests/

phpunit.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
<filter>
1111
<whitelist>
12-
<directory suffix=".php">lib/Sabberworm/CSS</directory>
12+
<directory suffix=".php">src</directory>
1313
</whitelist>
1414
</filter>
1515
</phpunit>
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.

0 commit comments

Comments
 (0)