Skip to content

Move the production code from lib/ to src/ #236

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
coverage: none

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

unit-tests:
name: Unit tests
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
"codacy/coverage": "^1.4"
},
"autoload": {
"psr-4": { "Sabberworm\\CSS\\": "lib/Sabberworm/CSS/" }
"psr-4": { "Sabberworm\\CSS\\": "src/" }
},
"scripts": {
"ci": [
"@ci:static"
],
"ci:php:sniff": "@php ./.phive/phpcs.phar lib tests",
"ci:php:sniff": "@php ./.phive/phpcs.phar src tests",
"ci:php:stan": "@php ./.phive/phpstan.phar",
"ci:static": [
"@ci:php:sniff",
Expand All @@ -31,7 +31,7 @@
"fix:php": [
"@fix:php:sniff"
],
"fix:php:sniff": "@php ./.phive/phpcbf.phar lib tests",
"fix:php:sniff": "@php ./.phive/phpcbf.phar src tests",
"phpstan:baseline": "@php ./.phive/phpstan.phar --generate-baseline"
}
}
2 changes: 1 addition & 1 deletion phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ parameters:
-
message: "#^Access to an undefined property Sabberworm\\\\CSS\\\\Parsing\\\\ParserState\\:\\:\\$oParserHelper\\.$#"
count: 1
path: lib/Sabberworm/CSS/Parsing/ParserState.php
path: src/Parsing/ParserState.php

4 changes: 2 additions & 2 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ parameters:
level: 0

scanDirectories:
- %currentWorkingDirectory%/lib/
- %currentWorkingDirectory%/src/
- %currentWorkingDirectory%/tests/
paths:
- %currentWorkingDirectory%/lib/
- %currentWorkingDirectory%/src/
- %currentWorkingDirectory%/tests/
2 changes: 1 addition & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<filter>
<whitelist>
<directory suffix=".php">lib/Sabberworm/CSS</directory>
<directory suffix=".php">src</directory>
</whitelist>
</filter>
</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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.