Completed
Pull Request — master (#95)
by
unknown
05:12
created
lib/Fhp/Parser/MT940.php 1 patch
Switch Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -40,11 +40,11 @@  discard block
 block discarded – undo
40 40
 	public function parse($target)
41 41
 	{
42 42
 		switch ($target) {
43
-		case static::TARGET_ARRAY:
44
-			return $this->parseToArray();
45
-			break;
46
-		default:
47
-			throw new MT940Exception('Invalid parse type provided');
43
+		    case static::TARGET_ARRAY:
44
+			    return $this->parseToArray();
45
+			    break;
46
+		    default:
47
+			    throw new MT940Exception('Invalid parse type provided');
48 48
 		}
49 49
 	}
50 50
 
@@ -94,20 +94,20 @@  discard block
 block discarded – undo
94 94
 					preg_match('/^\d{6}(\d{4})?(C|D|RC|RD)[A-Z]?([^N]+)N/', $transaction, $matches);
95 95
 
96 96
 					switch($matches[2]) {
97
-					case 'C':
98
-						$currentTrx['credit_debit'] = static::CD_CREDIT;
99
-						break;
100
-					case 'D':
101
-						$currentTrx['credit_debit'] = static::CD_DEBIT;
102
-						break;
103
-					case 'RC':
104
-						$currentTrx['credit_debit'] = static::CD_CREDIT_CANCELLATION;
105
-						break;
106
-					case 'RD':
107
-						$currentTrx['credit_debit'] = static::CD_DEBIT_CANCELLATION;
108
-						break;
109
-					default:
110
-						throw new MT940Exception('c/d/rc/rd mark not found in: ' . $transaction);
97
+					    case 'C':
98
+						    $currentTrx['credit_debit'] = static::CD_CREDIT;
99
+						    break;
100
+					    case 'D':
101
+						    $currentTrx['credit_debit'] = static::CD_DEBIT;
102
+						    break;
103
+					    case 'RC':
104
+						    $currentTrx['credit_debit'] = static::CD_CREDIT_CANCELLATION;
105
+						    break;
106
+					    case 'RD':
107
+						    $currentTrx['credit_debit'] = static::CD_DEBIT_CANCELLATION;
108
+						    break;
109
+					    default:
110
+						    throw new MT940Exception('c/d/rc/rd mark not found in: ' . $transaction);
111 111
 					}
112 112
 
113 113
 					$amount = $matches[3];
Please login to merge, or discard this patch.