Passed
Push — dev ( f9f86c...a16fdd )
by Salim
03:51
created
src/models/FTP_Reader.php 1 patch
Braces   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -77,10 +77,10 @@  discard block
 block discarded – undo
77 77
 			$isAvailable=$this->isSearchedFileAvailable($fileArray);
78 78
 			if ($isAvailable) {
79 79
 				return array($this->ftpFileName);
80
-			}else {
80
+			} else {
81 81
 				throw new Exception('Target File Not Found');
82 82
 			}
83
-		}else {
83
+		} else {
84 84
 			return $fileArray;
85 85
 		}
86 86
 	}
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
 		if ($this->ftpIsSftp) {
113 113
 
114 114
 			$filesArray=$this->getSftp();
115
-		}else {
115
+		} else {
116 116
 			$filesArray=$this->getFtp();
117 117
 			//$ftpConnect = ftp_ssl_connect ($this->ftpHost, $this->ftpPort) or die("Can't Connect to Server ".$this->ftpHost);
118 118
 
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
 
137 137
 			return $sftp;
138 138
 
139
-		}else {
139
+		} else {
140 140
 
141 141
 			if (!$ftpConnect=ftp_connect($this->ftpHost, $this->ftpPort)) {
142 142
 				throw new Exception('Cant Connect to Server'.$this->ftpHost);
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
 
170 170
 			return $result;
171 171
 
172
-		}else {      
172
+		} else {      
173 173
 
174 174
 			$ftp=$this->connectAndGoToFolder();
175 175
 
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
 		$fileArray=array_filter($fileArray, function($file) {
192 192
 			if ($file == '.' || $file == '..') {
193 193
 				return false;
194
-			}else {
194
+			} else {
195 195
 				return true;
196 196
 			}
197 197
 		});
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
 		$fileArray=array_filter($fileArray, function($file) {
231 231
 			if ($file == '.' || $file == '..') {
232 232
 				return false;
233
-			}else {
233
+			} else {
234 234
 				return true;
235 235
 			}
236 236
 		});
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
 			if ($i == 0) {
275 275
 				//First line is column definition
276 276
 				$titles=$columns;
277
-			}else {
277
+			} else {
278 278
 				$patient=[];
279 279
 				//For each column associate data into an associative array
280 280
 				for ($j=0; $j < sizeof($columns); $j++) {
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
 			$email->setSubject('Auto Import Failed');
296 296
 			$email->addAminEmails();
297 297
 			$email->sendEmail();
298
-		}catch (Exception $e) {
298
+		} catch (Exception $e) {
299 299
 			echo('sendEmailException');
300 300
 			echo($e->getMessage());
301 301
 		}
Please login to merge, or discard this patch.