Skip to content

Commit

Permalink
Updated dependencies and fixed formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
colintucker committed Jun 15, 2017
1 parent 4769359 commit bcbc1aa
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# SilverWare Countries Module

[![Latest Stable Version](https://poser.pugx.org/silverware/countries/v/stable)](https://packagist.org/packages/silverware/countries)
[![Latest Unstable Version](https://poser.pugx.org/silverware/countries/v/unstable)](https://packagist.org/packages/silverware/countries)
[![License](https://poser.pugx.org/silverware/countries/license)](https://packagist.org/packages/silverware/countries)

Provides a `CountryDropdownField` for use in [SilverStripe v4][silverstripe-framework] forms.

## Contents
Expand Down
2 changes: 1 addition & 1 deletion _config/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Name: silverware-countries
---

# Configure Invalid Countries:
# Configure Country Dropdown Field:

SilverWare\Countries\Forms\CountryDropdownField:
invalid_countries:
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
],
"require": {
"php": ">=5.6.0",
"silverstripe/framework": "^4.0@dev"
"silverstripe/framework": "^4@dev"
},
"autoload": {
"psr-4": {
Expand All @@ -31,7 +31,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "0.1.x-dev"
"dev-master": "1.0.x-dev"
},
"installer-name": "silverware-countries"
},
Expand Down
2 changes: 1 addition & 1 deletion src/Forms/CountryDropdownField.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public function getDefaultSource()
$source = i18n::getData()->getCountries();
$invalid = $this->config()->invalid_countries;

return array_filter($source, function($code) use ($invalid) {
return array_filter($source, function ($code) use ($invalid) {
return !in_array($code, $invalid);
}, ARRAY_FILTER_USE_KEY);
}
Expand Down

0 comments on commit bcbc1aa

Please sign in to comment.