Test Failed
Branch master (73435b)
by Corrado
04:59
created
test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 	$check->setEmail("[email protected]");
10 10
 	$result = $check->validate();
11 11
 	var_dump($result);
12
-} catch (EmailCheckerException $ex) {
12
+}catch (EmailCheckerException $ex) {
13 13
 	echo $ex->getMessage().PHP_EOL;	
14 14
 	var_dump($ex->getDebug());
15 15
 }
Please login to merge, or discard this patch.
src/EmailChecker.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -163,7 +163,7 @@
 block discarded – undo
163 163
     *
164 164
     * @throws MxCheckerException if domain is not avaible
165 165
     */
166
-	private function checkDomain(){
166
+	private function checkDomain() {
167 167
 
168 168
 		return new MxChecker($this->getDomain());		 
169 169
 	}
Please login to merge, or discard this patch.
src/SmtpChecker.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 				$this->client = new Telnet($domain["target"], 25, $timeout);								
105 105
 				$this->domain = $domain;
106 106
 				break;
107
-			} catch (\Exception $ex) {							
107
+			}catch (\Exception $ex) {							
108 108
 				continue;
109 109
 			}
110 110
 		}
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
 	private function sayHello()
175 175
 	{
176 176
 		$host = $this->getDomainObj()->host;
177
-		try{				
177
+		try {				
178 178
 			$status = $this->commandExec(sprintf("HELO %s", $host));				
179 179
 			if (!in_array(self::SMTP_GENERIC_SUCCESS, $status)) {
180 180
 				$this->disconnect();
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
 	 */
196 196
 	private function setFrom()
197 197
 	{		
198
-		try{
198
+		try {
199 199
 			$status = $this->commandExec(sprintf("MAIL FROM:<%s>", $this->getSender()));				
200 200
 			if (!in_array(self::SMTP_GENERIC_SUCCESS, $status)) {
201 201
 				$this->disconnect();
@@ -236,12 +236,12 @@  discard block
 block discarded – undo
236 236
 		}				
237 237
 		foreach ($strout as $str) {
238 238
 			$this->debug[] = $str;
239
-			if(preg_match('/^[0-9]{3}/', $str, $match)) {				
239
+			if (preg_match('/^[0-9]{3}/', $str, $match)) {				
240 240
 				$status[] = current($match);
241 241
 			}
242 242
 		}
243
-		if(empty($status)) {			
244
-			throw new SmtpCheckerException("SMTP Status request Unknown, ". $output, $this->getDebug());			
243
+		if (empty($status)) {			
244
+			throw new SmtpCheckerException("SMTP Status request Unknown, ".$output, $this->getDebug());			
245 245
 		}
246 246
 		return $status;
247 247
 	}
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
 	 */
270 270
 	public function validate($email)
271 271
 	{
272
-		try{			
272
+		try {			
273 273
 			$command = sprintf("RCPT TO:<%s>", $email);
274 274
 			$exec = $this->client->exec($command);
275 275
 			$this->debug[] = $command;			
Please login to merge, or discard this patch.
src/MxChecker.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
 	 */
48 48
 	public function getRecordMx()
49 49
 	{
50
-        if(empty($this->recordMx)){
50
+        if (empty($this->recordMx)) {
51 51
         	throw new MxCheckerException("Record Mx not found");
52 52
         }
53 53
         $this->sortRecordByPriority();        	
Please login to merge, or discard this patch.