Passed
Push — master ( 675a0a...e75eaf )
by Patryk
01:50
created
src/ConverterCurrency.php 1 patch
Braces   +15 added lines, -7 removed lines patch added patch discarded remove patch
@@ -192,18 +192,26 @@
 block discarded – undo
192 192
 		if(strlen($data)==2){
193 193
 			if(array_key_exists($data, $base)) {
194 194
 				foreach($base as $key => $value){
195
-					if($key==$data) $output = $value;
195
+					if($key==$data) {
196
+						$output = $value;
197
+					}
196 198
 				}
197
-				if(empty($output)) $output = false;
198
-			}else{
199
+				if(empty($output)) {
200
+					$output = false;
201
+				}
202
+			} else{
199 203
 				$output = false;
200 204
 			}
201
-		}else if(strlen($data)==3){
205
+		} else if(strlen($data)==3){
202 206
 			foreach($base as $key => $value){
203
-				if($value==$data) $output = $value;
207
+				if($value==$data) {
208
+					$output = $value;
209
+				}
210
+			}
211
+			if(empty($output)) {
212
+				$output = false;
204 213
 			}
205
-			if(empty($output)) $output = false;
206
-		}else{
214
+		} else{
207 215
 			$output = false;
208 216
 		}
209 217
 		return $output;
Please login to merge, or discard this patch.