Skip to content
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

refactor: move source code to src directory #102

Open
wants to merge 4 commits into
base: PSG-5559-use-enums
Choose a base branch
from
Open
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
4 changes: 2 additions & 2 deletions .github/workflows/on-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
php-version: '8.1'
tools: phpcs, cs2pr
- name: Lint
run: phpcs -q --standard=PSR12 --report=checkstyle custom | cs2pr
run: phpcs -q --standard=PSR12 --report=checkstyle src | cs2pr
format:
name: Format
runs-on: ubuntu-latest
Expand All @@ -45,4 +45,4 @@ jobs:
- name: Install dependencies
run: composer install
- name: Test
run: ./vendor/bin/phpunit custom/test/
run: ./vendor/bin/phpunit tests/
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
}
],
"scripts": {
"lint": "./vendor/bin/phpcs --standard=PSR12 --report=full custom",
"phpcs-fix": "./vendor/bin/phpcbf --standard=PSR12 custom",
"lint": "./vendor/bin/phpcs --standard=PSR12 --report=full src",
"phpcs-fix": "./vendor/bin/phpcbf --standard=PSR12 src",
"format": "./vendor/bin/php-cs-fixer fix --allow-risky=yes --rules=@PSR12"
},
"require": {
Expand All @@ -53,12 +53,12 @@
"OpenAPI\\Client\\": [
"generated/lib/"
],
"Passage\\Client\\": "custom/lib/"
"Passage\\Client\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Passage\\Client\\Test\\": "custom/test/"
"Passage\\Client\\Test\\": "tests/"
}
}
}
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.
4 changes: 2 additions & 2 deletions custom/test/AuthTest.php → tests/AuthTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ public function setUp(): void
{
parent::setUp();

include __DIR__ . '/../../vendor/autoload.php';
Dotenv::createUnsafeImmutable(__DIR__ . '/../../')->safeLoad();
include __DIR__ . '/../vendor/autoload.php';
Dotenv::createUnsafeImmutable(__DIR__ . '/..')->safeLoad();

$this->appId = getenv('APP_ID');
$this->apiKey = getenv('API_KEY');
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions custom/test/UserTest.php → tests/UserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ public function setUp(): void
{
parent::setUp();

include __DIR__ . '/../../vendor/autoload.php';
Dotenv::createUnsafeImmutable(__DIR__ . '/../../')->safeLoad();
include __DIR__ . '/../vendor/autoload.php';
Dotenv::createUnsafeImmutable(__DIR__ . '/..')->safeLoad();

$this->appId = getenv('APP_ID');
$this->apiKey = getenv('API_KEY');
Expand Down
Loading