Rename "code" to "src" for PSR-4 consistency

This commit is contained in:
Robbie Averill 2017-09-07 15:42:12 +12:00 committed by Will Rossiter
parent 83077ff78f
commit 94755775ba
26 changed files with 4 additions and 4 deletions

View File

@ -6,4 +6,4 @@ checks:
duplication: true
filter:
paths: [code/*, tests/*]
paths: [src/*, tests/*]

View File

@ -47,7 +47,7 @@ before_script:
script:
- if [[ $PHPUNIT_TEST ]]; then vendor/bin/phpunit; fi
- if [[ $PHPUNIT_COVERAGE_TEST ]]; then phpdbg -qrr vendor/bin/phpunit --coverage-clover=coverage.xml; fi
- if [[ $PHPCS_TEST ]]; then vendor/bin/phpcs --standard=framework/phpcs.xml.dist code/ tests/ ; fi
- if [[ $PHPCS_TEST ]]; then vendor/bin/phpcs --standard=framework/phpcs.xml.dist src/ tests/ ; fi
- if [[ $BEHAT_TEST ]]; then vendor/bin/behat @subsites; fi
after_success:

View File

@ -27,7 +27,7 @@
},
"autoload": {
"psr-4": {
"SilverStripe\\Subsites\\": "code/",
"SilverStripe\\Subsites\\": "src/",
"SilverStripe\\Subsites\\Tests\\": "tests/php/"
}
},

View File

@ -5,7 +5,7 @@
<filter>
<whitelist addUncoveredFilesFromWhitelist="true">
<directory suffix=".php">code/</directory>
<directory suffix=".php">src/</directory>
<exclude>
<directory suffix=".php">tests/</directory>
</exclude>