From bd5c9c090cbeb765493ff29b1bedbfeda691c99a Mon Sep 17 00:00:00 2001 From: Robbie Averill Date: Mon, 27 Nov 2017 13:52:49 +1300 Subject: [PATCH] NEW Rename code to src, remove changelog and extraneous codecov file --- .codecov.yml | 1 - .scrutinizer.yml | 2 +- .travis.yml | 2 +- changelog.md | 23 ------------------- composer.json | 2 +- phpunit.xml.dist | 2 +- {code => src}/IFramePage.php | 0 {code => src}/IFramePageController.php | 0 .../IFrame/Layout/IFramePage.ss | 0 9 files changed, 4 insertions(+), 28 deletions(-) delete mode 100644 .codecov.yml delete mode 100644 changelog.md rename {code => src}/IFramePage.php (100%) rename {code => src}/IFramePageController.php (100%) rename templates/{Silverstripe => SilverStripe}/IFrame/Layout/IFramePage.ss (100%) diff --git a/.codecov.yml b/.codecov.yml deleted file mode 100644 index 69cb760..0000000 --- a/.codecov.yml +++ /dev/null @@ -1 +0,0 @@ -comment: false diff --git a/.scrutinizer.yml b/.scrutinizer.yml index 4625fbf..051ef9a 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -12,4 +12,4 @@ checks: duplication: true filter: - paths: [code/*, tests/*] + paths: [src/*, tests/*] diff --git a/.travis.yml b/.travis.yml index e5a9263..79e0ae8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,7 +29,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 code/ tests/ *.php; fi + - if [[ $PHPCS_TEST ]]; then vendor/bin/phpcs src/ tests/ *.php; fi after_success: - if [[ $PHPUNIT_COVERAGE_TEST ]]; then bash <(curl -s https://codecov.io/bash) -f coverage.xml; fi diff --git a/changelog.md b/changelog.md deleted file mode 100644 index 7e0ac04..0000000 --- a/changelog.md +++ /dev/null @@ -1,23 +0,0 @@ -# Changelog - -All notable changes to this project will be documented in this file. - -This project adheres to [Semantic Versioning](http://semver.org/). - -## [1.0.10] - -* Update translations -* FIX: getCMSField still works if the Metadata field has been removed by another module - -## [1.0.9] - -* Alias dev-master as 1.0 -* Update license year -* Add code of conduct -* Update documentation for userguide -* Update translations - -## [1.0.8] - -* Changelog added. -* Update translations diff --git a/composer.json b/composer.json index 8fbb328..72589fb 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,7 @@ }, "autoload": { "psr-4": { - "SilverStripe\\IFrame\\": "code/", + "SilverStripe\\IFrame\\": "src/", "SilverStripe\\IFrame\\Tests\\": "tests/" } }, diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 50a2f92..b543ea6 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -4,7 +4,7 @@ - code/ + src/ tests/ diff --git a/code/IFramePage.php b/src/IFramePage.php similarity index 100% rename from code/IFramePage.php rename to src/IFramePage.php diff --git a/code/IFramePageController.php b/src/IFramePageController.php similarity index 100% rename from code/IFramePageController.php rename to src/IFramePageController.php diff --git a/templates/Silverstripe/IFrame/Layout/IFramePage.ss b/templates/SilverStripe/IFrame/Layout/IFramePage.ss similarity index 100% rename from templates/Silverstripe/IFrame/Layout/IFramePage.ss rename to templates/SilverStripe/IFrame/Layout/IFramePage.ss