diff --git a/composer.json b/composer.json index 7b42b081..022c2960 100644 --- a/composer.json +++ b/composer.json @@ -29,7 +29,7 @@ }, "autoload": { "psr-4": { - "Ray\\Compiler\\": ["src", "src-deprecated"] + "Ray\\Compiler\\": ["src", "src-compile", "src-deprecated"] }, "files": [ "src-function/prototype.php", @@ -49,12 +49,12 @@ "tests": ["@cs", "@sa", "@test"], "coverage": ["php -dzend_extension=xdebug.so -dxdebug.mode=coverage ./vendor/bin/phpunit --coverage-text --coverage-html=build/coverage"], "pcov": ["php -dextension=pcov.so -d pcov.enabled=1 ./vendor/bin/phpunit --coverage-text --coverage-html=build/coverage --coverage-clover=coverage.xml"], - "cs": ["phpcs --standard=./phpcs.xml src tests"], - "cs-fix": ["phpcbf src src-function tests"], + "cs": ["phpcs --standard=./phpcs.xml src src-compile tests"], + "cs-fix": ["phpcbf src src-compile src-function tests"], "clean": ["phpstan clear-result-cache", "psalm --clear-cache", "rm -rf tests/tmp/*.php"], "sa": ["psalm --show-info=false", "phpstan analyse -c phpstan.neon --no-progress"], - "metrics": ["@test", "phpmetrics --report-html=build/metrics --exclude=Exception --log-junit=build/junit.xml --junit=build/junit.xml src"], - "phpmd": ["phpmd src text ./phpmd.xml"], + "metrics": ["@test", "phpmetrics --report-html=build/metrics --exclude=Exception --log-junit=build/junit.xml --junit=build/junit.xml src src-compile"], + "phpmd": ["phpmd src,src-compile text ./phpmd.xml"], "build": ["@cs", "@sa", "@pcov", "@metrics"] }, "extra": { diff --git a/phpcs.xml b/phpcs.xml index 5e697a32..047f1abc 100755 --- a/phpcs.xml +++ b/phpcs.xml @@ -16,6 +16,7 @@ src + src-compile src-function tests */tests/tmp/* diff --git a/phpstan.neon b/phpstan.neon index 35484ec6..81231f6e 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -2,6 +2,7 @@ parameters: level: 8 paths: - src + - src-compile - tests excludePaths: - tests/tmp/* diff --git a/psalm.xml b/psalm.xml index 94bf1636..69a35bf0 100644 --- a/psalm.xml +++ b/psalm.xml @@ -8,6 +8,7 @@ > + diff --git a/src/Annotation/Compile.php b/src-compile/Annotation/Compile.php similarity index 100% rename from src/Annotation/Compile.php rename to src-compile/Annotation/Compile.php diff --git a/src/CompileVisitor.php b/src-compile/CompileVisitor.php similarity index 100% rename from src/CompileVisitor.php rename to src-compile/CompileVisitor.php diff --git a/src/Compiler.php b/src-compile/Compiler.php similarity index 100% rename from src/Compiler.php rename to src-compile/Compiler.php diff --git a/src/CompilerModule.php b/src-compile/CompilerModule.php similarity index 100% rename from src/CompilerModule.php rename to src-compile/CompilerModule.php diff --git a/src/DiCompileModule.php b/src-compile/DiCompileModule.php similarity index 100% rename from src/DiCompileModule.php rename to src-compile/DiCompileModule.php diff --git a/src/Exception/CompileLockFailed.php b/src-compile/Exception/CompileLockFailed.php similarity index 100% rename from src/Exception/CompileLockFailed.php rename to src-compile/Exception/CompileLockFailed.php diff --git a/src/Exception/FileNotWritable.php b/src-compile/Exception/FileNotWritable.php similarity index 100% rename from src/Exception/FileNotWritable.php rename to src-compile/Exception/FileNotWritable.php diff --git a/src/Exception/InvalidInstance.php b/src-compile/Exception/InvalidInstance.php similarity index 100% rename from src/Exception/InvalidInstance.php rename to src-compile/Exception/InvalidInstance.php diff --git a/src/FilePutContents.php b/src-compile/FilePutContents.php similarity index 100% rename from src/FilePutContents.php rename to src-compile/FilePutContents.php diff --git a/src/InjectorFactory.php b/src-compile/InjectorFactory.php similarity index 100% rename from src/InjectorFactory.php rename to src-compile/InjectorFactory.php diff --git a/src/InstanceScript.php b/src-compile/InstanceScript.php similarity index 100% rename from src/InstanceScript.php rename to src-compile/InstanceScript.php diff --git a/src/LazyModuleInterface.php b/src-compile/LazyModuleInterface.php similarity index 100% rename from src/LazyModuleInterface.php rename to src-compile/LazyModuleInterface.php diff --git a/src/OverrideLazyModule.php b/src-compile/OverrideLazyModule.php similarity index 100% rename from src/OverrideLazyModule.php rename to src-compile/OverrideLazyModule.php diff --git a/src/Scripts.php b/src-compile/Scripts.php similarity index 100% rename from src/Scripts.php rename to src-compile/Scripts.php