Skip to content

Commit df9580c

Browse files
committed
app dir => src dir
1 parent 88b5668 commit df9580c

19 files changed

+14
-14
lines changed

.php_cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ declare(strict_types=1);
55
$finder = PhpCsFixer\Finder::create()
66
->files()
77
->name('*.php')
8-
->in(__DIR__ . '/app')
8+
->in(__DIR__ . '/src')
99
->in(__DIR__ . '/tests')
1010
;
1111

bin/console

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../app/console.php
1+
../src/console.php

composer.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828
"phploc/phploc": "^5.0|^6.0.2",
2929
"phpstan/extension-installer": "^1.0.4",
3030
"phpstan/phpstan": "^0.12.28",
31-
"phpunit/phpunit": "^8.5.5|^9.2.2"
31+
"phpunit/phpunit": "^8.5.8|^9.3.7"
3232
},
3333
"autoload": {
34-
"psr-4": { "App\\": "app/" }
34+
"psr-4": { "App\\": "src/" }
3535
},
3636
"autoload-dev": {
3737
"psr-4": { "App\\Tests\\": "tests/" }
@@ -62,11 +62,11 @@
6262
],
6363
"test:cs": "mkdir -p build && vendor/bin/php-cs-fixer fix --dry-run --stop-on-violation --cache-file=build/phpcs.cache",
6464
"test:infection": "vendor/bin/infection --threads=$(nproc) --min-msi=100 --verbose --coverage=build/phpunit",
65-
"test:insights": "mkdir -p build && bash -c 'vendor/bin/phpinsights analyse app -v --no-interaction --min-quality=97 --disable-security-check | tee build/phpinsights.log; if [ ${PIPESTATUS[0]} -ne \"0\" ]; then exit 1; fi'",
65+
"test:insights": "mkdir -p build && bash -c 'vendor/bin/phpinsights analyse src -v --no-interaction --min-quality=97 --disable-security-check | tee build/phpinsights.log; if [ ${PIPESTATUS[0]} -ne \"0\" ]; then exit 1; fi'",
6666
"test:integration": "vendor/bin/phpunit --testsuite=Integration --cache-result-file=build/phpunit/result.cache",
67-
"test:lint": "mkdir -p build && find app tests -name '*.php' -print0 | xargs -0 -n1 -P$(nproc) php -l | tee build/phplint.log",
68-
"test:loc": "mkdir -p build && vendor/bin/phploc app --verbose | tee build/phploc.log",
69-
"test:static-analysis": "mkdir -p build && bash -c 'vendor/bin/phpstan analyse app --no-progress --level=7 --error-format=junit | tee build/phpstan.junit.xml; if [ ${PIPESTATUS[0]} -ne \"0\" ]; then exit 1; fi'",
67+
"test:lint": "mkdir -p build && find src tests -name '*.php' -print0 | xargs -0 -n1 -P$(nproc) php -l | tee build/phplint.log",
68+
"test:loc": "mkdir -p build && vendor/bin/phploc src --verbose | tee build/phploc.log",
69+
"test:static-analysis": "mkdir -p build && bash -c 'vendor/bin/phpstan analyse src --no-progress --level=7 --error-format=junit | tee build/phpstan.junit.xml; if [ ${PIPESTATUS[0]} -ne \"0\" ]; then exit 1; fi'",
7070
"test:unit": "phpdbg -qrr vendor/bin/phpunit --testsuite=Unit --coverage-text --coverage-clover=build/phpunit/clover.xml --coverage-html=build/phpunit/coverage-html --coverage-xml=build/phpunit/coverage-xml --log-junit=build/phpunit/junit.xml --cache-result-file=build/phpunit/result.cache"
7171
}
7272
}

infection.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"source": {
33
"directories": [
4-
"app"
4+
"src"
55
]
66
},
77
"timeout": 10,

phpunit.xml

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
</extensions>
2323
<filter>
2424
<whitelist>
25-
<directory>./app</directory>
25+
<directory>./src</directory>
2626
<exclude>
27-
<file>./app/console.php</file>
28-
<file>./app/container.php</file>
29-
<file>./app/web.php</file>
27+
<file>./src/console.php</file>
28+
<file>./src/container.php</file>
29+
<file>./src/web.php</file>
3030
</exclude>
3131
</whitelist>
3232
</filter>

public/index.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
use Slim\Psr7\Factory\ServerRequestFactory;
66

77
/** @var Chubbyphp\Framework\Application $web */
8-
$web = (require __DIR__ . '/../app/web.php')(getenv('APP_ENV'));
8+
$web = (require __DIR__ . '/../src/web.php')(getenv('APP_ENV'));
99
$web->emit($web->handle((new ServerRequestFactory())->createFromGlobals()));

app/console.php src/console.php

File renamed without changes.
File renamed without changes.

app/web.php src/web.php

File renamed without changes.

0 commit comments

Comments
 (0)