diff --git a/src/Rules/RepetitiveCharacters.php b/src/Rules/RepetitiveCharacters.php index bb3d8c2..e50e250 100644 --- a/src/Rules/RepetitiveCharacters.php +++ b/src/Rules/RepetitiveCharacters.php @@ -21,7 +21,7 @@ class RepetitiveCharacters implements Rule */ public function __construct() { - $this->passwords = explode(PHP_EOL, file_get_contents(self::PASSWORDS_FILE)); + $this->passwords = explode("\n", file_get_contents(self::PASSWORDS_FILE)); } /** diff --git a/src/Rules/SequentialCharacters.php b/src/Rules/SequentialCharacters.php index 9be2f4a..7ffa04a 100644 --- a/src/Rules/SequentialCharacters.php +++ b/src/Rules/SequentialCharacters.php @@ -21,7 +21,7 @@ class SequentialCharacters implements Rule */ public function __construct() { - $this->passwords = explode(PHP_EOL, file_get_contents(self::PASSWORDS_FILE)); + $this->passwords = explode("\n", file_get_contents(self::PASSWORDS_FILE)); } /**