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

Api 1065 restructure core folder structure #190

Merged
merged 2 commits into from
Dec 25, 2023
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/phpmd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ jobs:
coverage: none
tools: phpmd
- name: Run PHPMD
run: phpmd . github ruleset.xml --exclude 'Tests/*,vendor/*'
run: phpmd . github ruleset.xml --exclude 'tests/*,vendor/*'
8 changes: 5 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,16 @@
},
"autoload": {
"psr-4": {
"Apiato\\Core\\": ""
"Apiato\\Core\\": "src/"
},
"files": [
"Helpers/helpers.php"
"src/Helpers/helpers.php"
]
},
"autoload-dev": {
"psr-4": {}
"psr-4": {
"Apiato\\Core\\Tests\\": "tests/"
}
},
"extra": {
"laravel": {
Expand Down
13 changes: 6 additions & 7 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" bootstrap="vendor/autoload.php" colors="true">
<testsuites>
<testsuite name="Unit">
<directory>./Tests</directory>
<directory>./tests</directory>
</testsuite>
</testsuites>
<coverage ignoreDeprecatedCodeUnits="true" pathCoverage="true"/>
Expand All @@ -14,7 +14,7 @@
<directory suffix=".php">./</directory>
</include>
<exclude>
<directory suffix=".php">./Tests</directory>
<directory suffix=".php">./tests</directory>
<directory suffix=".php">./vendor</directory>
</exclude>
</source>
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.
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ protected function getStubContent(): string
// Check if the custom file exists
if (!$this->fileSystem->exists($file)) {
// It does not exist - so take the default file!
$path = __DIR__ . '/' . self::STUB_PATH;
$path = __DIR__ . 'GeneratorCommand.php/' . self::STUB_PATH;
$file = str_replace('*', $this->stubName, $path);
}

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.
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 testbench.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ providers:
- Spatie\Fractal\FractalServiceProvider
- Apiato\Core\Generator\GeneratorsServiceProvider
migrations:
- Tests/Infrastructure/Migrations/2022_10_12_000000_testbench_update_users_table.php
- tests/Infrastructure/Migrations/2022_10_12_000000_testbench_update_users_table.php
workbench:
- install: true
File renamed without changes.
File renamed without changes.