Skip to content

Commit

Permalink
Move /app to /src (#1487)
Browse files Browse the repository at this point in the history
* move /app to /src

* misc
  • Loading branch information
TomasVotruba authored Sep 8, 2024
1 parent 580d9fd commit d967274
Show file tree
Hide file tree
Showing 27 changed files with 7 additions and 13 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
},
"autoload": {
"psr-4": {
"App\\": "app"
"App\\": "src"
},
"files": [
"app/functions.php"
"src/functions.php"
]
},
"autoload-dev": {
Expand Down
2 changes: 1 addition & 1 deletion ecs.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Symplify\EasyCodingStandard\Config\ECSConfig;

return ECSConfig::configure()
->withPaths([__DIR__ . '/config', __DIR__ . '/app', __DIR__ . '/tests'])
->withPaths([__DIR__ . '/config', __DIR__ . '/src', __DIR__ . '/tests'])
->withRootFiles()
->withPreparedSets(psr12: true, common: true, strict: true)
->withRules([LineLengthFixer::class]);
12 changes: 3 additions & 9 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,17 @@ parameters:
errorFormat: symplify

paths:
- app
- src
- config
- tests

excludePaths:
- config/filesystems.php
- rector.php
- ecs.php

level: 8

ignoreErrors:
# invalid types
- '#Parameter \#2 \$font of method Imagine\\Draw\\DrawerInterface\:\:text\(\) expects Imagine\\Image\\AbstractFont, Imagine\\Image\\FontInterface given#'

# false postive on non-empty collection
-
message: '#Cannot call method getDate\(\) on App\\ValueObject\\FuelPurchase\|null#'
path: app/ValueObject/CarReport.php

# will be solved most likely once Larastan is updated to Laravel 11 conventions
- '#Call to an undefined method Illuminate\\Contracts\\(.*?)|Illuminate\\#'
2 changes: 1 addition & 1 deletion rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Rector\TypeDeclaration\Rector\StmtsAwareInterface\DeclareStrictTypesRector;

return RectorConfig::configure()
->withPaths([__DIR__ . '/app', __DIR__ . '/bootstrap/app.php', __DIR__ . '/config', __DIR__ . '/tests'])
->withPaths([__DIR__ . '/src', __DIR__ . '/bootstrap/app.php', __DIR__ . '/config', __DIR__ . '/tests'])
->withImportNames(removeUnusedImports: true)
->withRules([DeclareStrictTypesRector::class])
->withPreparedSets(
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.

0 comments on commit d967274

Please sign in to comment.