From 8551843b04122dfe9a8a8deb045df71d3704385a Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 11 Mar 2020 21:30:20 +0000 Subject: [PATCH] Move src and tests directories --- .php_cs.dist | 2 +- composer.json | 4 ++-- phpstan.neon | 2 +- {app/src => src}/Asset/TwigExtension/EncoreExtension.php | 0 {app/src => src}/Talk/TwigExtension/TalksExtension.php | 0 .../Talk/TwigExtension/RetrievingEventsTest.php | 0 .../Talk/TwigExtension/RetrievingTalksTest.php | 0 7 files changed, 4 insertions(+), 4 deletions(-) rename {app/src => src}/Asset/TwigExtension/EncoreExtension.php (100%) rename {app/src => src}/Talk/TwigExtension/TalksExtension.php (100%) rename {app/tests => tests}/Talk/TwigExtension/RetrievingEventsTest.php (100%) rename {app/tests => tests}/Talk/TwigExtension/RetrievingTalksTest.php (100%) diff --git a/.php_cs.dist b/.php_cs.dist index f0f8c35f..218c1a41 100644 --- a/.php_cs.dist +++ b/.php_cs.dist @@ -4,7 +4,7 @@ use PhpCsFixer\Config; use Symfony\Component\Finder\Finder; $finder = new Finder(); -$finder->files()->in('app/src')->in('app/tests'); +$finder->files()->in(['src', 'tests']); return Config::create() ->setRules([ diff --git a/composer.json b/composer.json index 57887629..31be5f89 100644 --- a/composer.json +++ b/composer.json @@ -55,12 +55,12 @@ }, "autoload": { "psr-4": { - "App\\": "app/src" + "App\\": "src" } }, "autoload-dev": { "psr-4": { - "App\\Tests\\": "app/tests" + "App\\Tests\\": "tests" } } } diff --git a/phpstan.neon b/phpstan.neon index 505ac39a..866b55f5 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -1,6 +1,6 @@ parameters: level: 7 paths: - - app/src + - src includes: - vendor/phpstan/phpstan-deprecation-rules/rules.neon diff --git a/app/src/Asset/TwigExtension/EncoreExtension.php b/src/Asset/TwigExtension/EncoreExtension.php similarity index 100% rename from app/src/Asset/TwigExtension/EncoreExtension.php rename to src/Asset/TwigExtension/EncoreExtension.php diff --git a/app/src/Talk/TwigExtension/TalksExtension.php b/src/Talk/TwigExtension/TalksExtension.php similarity index 100% rename from app/src/Talk/TwigExtension/TalksExtension.php rename to src/Talk/TwigExtension/TalksExtension.php diff --git a/app/tests/Talk/TwigExtension/RetrievingEventsTest.php b/tests/Talk/TwigExtension/RetrievingEventsTest.php similarity index 100% rename from app/tests/Talk/TwigExtension/RetrievingEventsTest.php rename to tests/Talk/TwigExtension/RetrievingEventsTest.php diff --git a/app/tests/Talk/TwigExtension/RetrievingTalksTest.php b/tests/Talk/TwigExtension/RetrievingTalksTest.php similarity index 100% rename from app/tests/Talk/TwigExtension/RetrievingTalksTest.php rename to tests/Talk/TwigExtension/RetrievingTalksTest.php