From 6d2ec29d32b4c16da98ed0b474de23d784da64c1 Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Wed, 13 Sep 2023 06:49:00 +1200 Subject: [PATCH] MNT: move code from code/ to src as --- composer.json | 2 +- phpunit.xml.dist | 2 +- {code => src}/EditableSpamProtectionField.php | 0 {code => src}/Extension/CommentSpamProtection.php | 0 {code => src}/Extension/FormSpamProtectionExtension.php | 0 {code => src}/SpamProtector.php | 0 6 files changed, 2 insertions(+), 2 deletions(-) rename {code => src}/EditableSpamProtectionField.php (100%) rename {code => src}/Extension/CommentSpamProtection.php (100%) rename {code => src}/Extension/FormSpamProtectionExtension.php (100%) rename {code => src}/SpamProtector.php (100%) diff --git a/composer.json b/composer.json index 13d1072..dc2a08f 100644 --- a/composer.json +++ b/composer.json @@ -33,7 +33,7 @@ }, "autoload": { "psr-4": { - "SilverStripe\\SpamProtection\\": "code/", + "SilverStripe\\SpamProtection\\": "src/", "SilverStripe\\SpamProtection\\Tests\\": "tests/" } }, diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 794aa0f..57c7cdd 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -8,7 +8,7 @@ - code/ + src/ tests/ diff --git a/code/EditableSpamProtectionField.php b/src/EditableSpamProtectionField.php similarity index 100% rename from code/EditableSpamProtectionField.php rename to src/EditableSpamProtectionField.php diff --git a/code/Extension/CommentSpamProtection.php b/src/Extension/CommentSpamProtection.php similarity index 100% rename from code/Extension/CommentSpamProtection.php rename to src/Extension/CommentSpamProtection.php diff --git a/code/Extension/FormSpamProtectionExtension.php b/src/Extension/FormSpamProtectionExtension.php similarity index 100% rename from code/Extension/FormSpamProtectionExtension.php rename to src/Extension/FormSpamProtectionExtension.php diff --git a/code/SpamProtector.php b/src/SpamProtector.php similarity index 100% rename from code/SpamProtector.php rename to src/SpamProtector.php