Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
alariva committed Nov 21, 2019
1 parent 4309d8f commit 8e9a532
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
language: php

php:
- '7.1'
- '7.2'
- '7.3'
- '7.4snapshot'

env:
matrix:
Expand Down
9 changes: 5 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@
],
"minimum-stability": "stable",
"require": {
"laravel/framework": "^5.6 || ^5.5 || ^5.4 || ^5.3 || ^5.2 || ^5.1",
"illuminate/support": "^5.6 || ^5.5 || ^5.4 || ^5.3 || ^5.2 || ^5.1"
"php": "^7.2 || ^8.0",
"laravel/framework": "~5.8 || ~6.0",
"illuminate/support": "~5.8 || ~6.0"
},
"require-dev": {
"phpunit/phpunit": "^7.3",
"orchestra/testbench": "^3.6",
"phpunit/phpunit": "~7.5 || ~8.0",
"orchestra/testbench": "~3.9 ||~4.0",
"mockery/mockery": "^1.1"
},
"autoload": {
Expand Down
3 changes: 2 additions & 1 deletion src/Alariva/EmailDomainBlacklist/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use Alariva\EmailDomainBlacklist\Updater;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Str;

class Validator
{
Expand Down Expand Up @@ -81,7 +82,7 @@ public function validate($attribute, $value, $parameters)
{
$this->refresh();

$domain = str_after(strtolower($value), '@');
$domain = Str::after(strtolower($value), '@');

return !in_array($domain, $this->domains);
}
Expand Down
4 changes: 2 additions & 2 deletions tests/ConsoleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ class ConsoleTest extends BaseTestCase

protected $commandTester;

protected $stubPath = __DIR__.'/stubs/source.json';
protected $stubPath = __DIR__ . '/stubs/source.json';

public function setUp()
protected function setUp() : void
{
parent::setUp();

Expand Down

0 comments on commit 8e9a532

Please sign in to comment.