mirror of
https://github.com/silverstripe/silverstripe-spamprotection.git
synced 2024-10-22 14:05:59 +02:00
Merge pull request #63 from creative-commoners/pulls/3.0/upgrade-upgrade-upgrade
FIX Check and make updates for SS4 compatibility
This commit is contained in:
commit
059191d91e
@ -25,7 +25,7 @@ before_script:
|
|||||||
script:
|
script:
|
||||||
- if [[ $PHPUNIT_TEST ]]; then vendor/bin/phpunit; fi
|
- if [[ $PHPUNIT_TEST ]]; then vendor/bin/phpunit; fi
|
||||||
- if [[ $PHPUNIT_COVERAGE_TEST ]]; then phpdbg -qrr vendor/bin/phpunit --coverage-clover=coverage.xml; fi
|
- if [[ $PHPUNIT_COVERAGE_TEST ]]; then phpdbg -qrr vendor/bin/phpunit --coverage-clover=coverage.xml; fi
|
||||||
- if [[ $PHPCS_TEST ]]; then vendor/bin/phpcs --standard=vendor/silverstripe/framework/phpcs.xml.dist code/ tests/ ; fi
|
- if [[ $PHPCS_TEST ]]; then vendor/bin/phpcs code/ tests/ ; fi
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- if [[ $PHPUNIT_COVERAGE_TEST ]]; then bash <(curl -s https://codecov.io/bash) -f coverage.xml; fi
|
- if [[ $PHPUNIT_COVERAGE_TEST ]]; then bash <(curl -s https://codecov.io/bash) -f coverage.xml; fi
|
||||||
|
13
README.md
13
README.md
@ -1,6 +1,7 @@
|
|||||||
# SpamProtection Module
|
# SpamProtection Module
|
||||||
|
|
||||||
[![Build Status](https://secure.travis-ci.org/silverstripe/silverstripe-spamprotection.png?branch=master)](http://travis-ci.org/silverstripe/silverstripe-spamprotection)
|
[![Build Status](https://travis-ci.org/silverstripe/silverstripe-spamprotection.svg?)](https://travis-ci.org/silverstripe/silverstripe-spamprotection)
|
||||||
|
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/silverstripe/silverstripe-spamprotection/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/silverstripe/silverstripe-spamprotection/?branch=master)
|
||||||
[![Code Coverage](https://codecov.io/gh/silverstripe/silverstripe-spamprotection/branch/master/graph/badge.svg)](https://codecov.io/gh/silverstripe/silverstripe-spamprotection)
|
[![Code Coverage](https://codecov.io/gh/silverstripe/silverstripe-spamprotection/branch/master/graph/badge.svg)](https://codecov.io/gh/silverstripe/silverstripe-spamprotection)
|
||||||
|
|
||||||
## Maintainer Contact
|
## Maintainer Contact
|
||||||
@ -13,7 +14,13 @@
|
|||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
SilverStripe 4.0 or greater
|
SilverStripe 4.0+
|
||||||
|
|
||||||
|
**Note:** For SilverStripe 3.x, please use the [2.x release line](https://github.com/silverstripe/silverstripe-spamprotection/tree/2.0).
|
||||||
|
|
||||||
|
## Install
|
||||||
|
|
||||||
|
To install run `composer require silverstripe/spamprotection`.
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
@ -41,7 +48,7 @@ spam protection hooks with that protector.
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
---
|
---
|
||||||
name: spamprotection
|
name: mycustomspamprotection
|
||||||
---
|
---
|
||||||
SilverStripe\SpamProtection\Extension\FormSpamProtectionExtension:
|
SilverStripe\SpamProtection\Extension\FormSpamProtectionExtension:
|
||||||
default_spam_protector: MollomSpamProtector
|
default_spam_protector: MollomSpamProtector
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
fi:
|
fi:
|
||||||
EditableSpamProtectionField:
|
SilverStripe\SpamProtection\EditableSpamProtectionField:
|
||||||
PLURALNAME: 'Roskapostisuojauksen kentät'
|
PLURALNAME: 'Roskapostisuojauksen kentät'
|
||||||
SINGULARNAME: 'Roskapostisuojauksen kenttä'
|
SINGULARNAME: 'Roskapostisuojauksen kenttä'
|
||||||
SPAMFIELDMAPPING: 'Roskapostikentän kuvaus'
|
SPAMFIELDMAPPING: 'Roskapostikentän kuvaus'
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
fi_FI:
|
fi_FI:
|
||||||
EditableSpamProtectionField:
|
SilverStripe\SpamProtection\EditableSpamProtectionField:
|
||||||
PLURALNAME: 'Roskapostisuotimen kentät'
|
PLURALNAME: 'Roskapostisuotimen kentät'
|
||||||
SINGULARNAME: 'Roskapostisuotimen kenttä'
|
SINGULARNAME: 'Roskapostisuotimen kenttä'
|
||||||
SPAMFIELDMAPPING: 'Roskapostikentän kuvaus'
|
SPAMFIELDMAPPING: 'Roskapostikentän kuvaus'
|
||||||
|
10
phpcs.xml.dist
Normal file
10
phpcs.xml.dist
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<ruleset name="SilverStripe">
|
||||||
|
<description>CodeSniffer ruleset for SilverStripe coding conventions.</description>
|
||||||
|
|
||||||
|
<rule ref="PSR2" >
|
||||||
|
<!-- Current exclusions -->
|
||||||
|
<exclude name="PSR1.Methods.CamelCapsMethodName" />
|
||||||
|
<exclude name="PSR1.Files.SideEffects.FoundWithSymbols" />
|
||||||
|
</rule>
|
||||||
|
</ruleset>
|
Loading…
Reference in New Issue
Block a user