Skip to content

Commit d96edd7

Browse files
committed
Replace EOL character with PHP_EOL const.
Update validation message.
1 parent e28e648 commit d96edd7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/RestrictedServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
class RestrictedServiceProvider extends ServiceProvider
1717
{
18-
protected $message = 'That :attribute is taken. Please try another!';
18+
protected $message = 'That :attribute is not available. Please try another!';
1919
protected $fileName;
2020

2121
/**
@@ -70,7 +70,7 @@ public function getRestrictedUsernames()
7070
$path = $this->fileName;
7171
if(file_exists($path)){
7272
$content = file_get_contents($path);
73-
return collect(explode("\r\n", $content))
73+
return collect(explode(PHP_EOL, $content))
7474
->map(function($value){
7575
return preg_replace("/\s/", "", $value);
7676
});

0 commit comments

Comments
 (0)