Completed
Pull Request — master (#51)
by
unknown
39s
created
src/Envelopes/ValidatorV1.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1129,7 +1129,7 @@  discard block
 block discarded – undo
1129 1129
                                 $key,
1130 1130
                                 $value === null ? 'null' : gettype($value)
1131 1131
                             );
1132
-                        } elseif (strlen($value) > (int)$matches[1]) {
1132
+                        } elseif (strlen($value) > (int) $matches[1]) {
1133 1133
                             $details[] = sprintf(
1134 1134
                                 'Received %d bytes of %s allowed for string key "%s" - value is too long',
1135 1135
                                 strlen($value),
@@ -1231,7 +1231,7 @@  discard block
 block discarded – undo
1231 1231
     {
1232 1232
         $details = array();
1233 1233
         if (!empty($cardPan)) {
1234
-            $numberStr = (string)$cardPan;
1234
+            $numberStr = (string) $cardPan;
1235 1235
 
1236 1236
             $length = strlen($numberStr);
1237 1237
             if ($length < 14) {
@@ -1260,7 +1260,7 @@  discard block
 block discarded – undo
1260 1260
             $alt = false;
1261 1261
 
1262 1262
             for ($i = $length - 1; $i >= 0; $i--) {
1263
-                $n = (int)$numberStr[$i];
1263
+                $n = (int) $numberStr[$i];
1264 1264
                 if ($alt) {
1265 1265
                     $n *= 2;
1266 1266
                     if ($n > 9) {
Please login to merge, or discard this patch.