Skip to content

Commit 4a5e1f2

Browse files
Add quickemailverification to composer.json
1 parent 2c740a0 commit 4a5e1f2

File tree

2 files changed

+4
-28
lines changed

2 files changed

+4
-28
lines changed

composer.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
}
2323
],
2424
"require": {
25-
"php" : ">=5.5.9"
25+
"php" : ">=5.5.9",
26+
"quickemailverification/quickemailverification": "*"
2627
},
2728
"require-dev": {
2829
"phpunit/phpunit" : "4.*",

src/EmailValidator.php

+2-27
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
22

3-
namespace Unicodeveloper\Yearly;
3+
namespace Unicodeveloper\EmailValidator;
44

55
use InvalidArgumentException;
66

7-
class YearAfterYear
7+
class EmailValidator
88
{
99
/**
1010
* Gets the Current Year
@@ -16,29 +16,4 @@ public function current_year()
1616
}
1717

1818

19-
20-
/**
21-
* returns a range of years when provided a start year
22-
* @param integer $start_year
23-
* @param string $separator
24-
* @return string
25-
* @throws \InvalidArgumentException
26-
*/
27-
public function year_range($start_year = 0, $separator = ' - ')
28-
{
29-
30-
if(! is_numeric($start_year)){
31-
throw new InvalidArgumentException("Invalid Argument Format passed . It should be a number");
32-
}
33-
34-
if( $start_year < 0){
35-
throw new InvalidArgumentException("Invalid Argument passed {$start_year} . It shouldn't be a negative value");
36-
}
37-
38-
if( $start_year == 0){
39-
return $this->current_year();
40-
}
41-
42-
return ($start_year == $this->current_year()) ? $this->current_year() : $start_year . $separator . $this->current_year();
43-
}
4419
}

0 commit comments

Comments
 (0)