Completed
Pull Request — master (#122)
by Issei
02:25
created
EmailValidator/EmailLexer.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -181,6 +181,9 @@  discard block
 block discarded – undo
181 181
         return  self::GENERIC;
182 182
     }
183 183
 
184
+    /**
185
+     * @param string $value
186
+     */
184 187
     protected function isValid($value)
185 188
     {
186 189
         if (isset($this->charValue[$value])) {
@@ -191,7 +194,7 @@  discard block
 block discarded – undo
191 194
     }
192 195
 
193 196
     /**
194
-     * @param $value
197
+     * @param string $value
195 198
      * @return bool
196 199
      */
197 200
     protected function isNullType($value)
@@ -204,7 +207,7 @@  discard block
 block discarded – undo
204 207
     }
205 208
 
206 209
     /**
207
-     * @param $value
210
+     * @param string $value
208 211
      * @return bool
209 212
      */
210 213
     protected function isUTF8Invalid($value)
Please login to merge, or discard this patch.
Tests/EmailValidator/EmailLexerTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -63,6 +63,9 @@
 block discarded – undo
63 63
         return $chars;
64 64
     }
65 65
 
66
+    /**
67
+     * @param integer $code_point
68
+     */
66 69
     protected function utf8Chr($code_point)
67 70
     {
68 71
 
Please login to merge, or discard this patch.
EmailValidator/Validation/MultipleValidationWithAnd.php 2 patches
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -56,6 +56,7 @@  discard block
 block discarded – undo
56 56
 
57 57
     /**
58 58
      * {@inheritdoc}
59
+     * @param string $email
59 60
      */
60 61
     public function isValid($email, EmailLexer $emailLexer)
61 62
     {
@@ -76,6 +77,9 @@  discard block
 block discarded – undo
76 77
         return $result;
77 78
     }
78 79
 
80
+    /**
81
+     * @param boolean $result
82
+     */
79 83
     private function shouldStop($result)
80 84
     {
81 85
         return !$result && $this->mode;
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace Egulias\EmailValidator\Validation;
4 4
 
5 5
 use Egulias\EmailValidator\EmailLexer;
6
-use Egulias\EmailValidator\Exception\InvalidEmail;
7 6
 use Egulias\EmailValidator\Validation\Exception\EmptyValidationList;
8 7
 
9 8
 class MultipleValidationWithAnd implements EmailValidation
Please login to merge, or discard this patch.