File tree 2 files changed +4
-28
lines changed
2 files changed +4
-28
lines changed Original file line number Diff line number Diff line change 22
22
}
23
23
],
24
24
"require" : {
25
- "php" : " >=5.5.9"
25
+ "php" : " >=5.5.9" ,
26
+ "quickemailverification/quickemailverification" : " *"
26
27
},
27
28
"require-dev" : {
28
29
"phpunit/phpunit" : " 4.*" ,
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- namespace Unicodeveloper \Yearly ;
3
+ namespace Unicodeveloper \EmailValidator ;
4
4
5
5
use InvalidArgumentException ;
6
6
7
- class YearAfterYear
7
+ class EmailValidator
8
8
{
9
9
/**
10
10
* Gets the Current Year
@@ -16,29 +16,4 @@ public function current_year()
16
16
}
17
17
18
18
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
- }
44
19
}
You can’t perform that action at this time.
0 commit comments