Completed
Push — master ( 8e973a...811a95 )
by
unknown
03:40 queued 01:04
created
vendor-bin/php-scoper/vendor/thecodingmachine/safe/generated/oci8.php 1 patch
Indentation   +233 added lines, -233 removed lines patch added patch discarded remove patch
@@ -103,11 +103,11 @@  discard block
 block discarded – undo
103 103
  */
104 104
 function oci_bind_array_by_name($statement, string $name, array &$var_array, int $max_table_length, int $max_item_length = -1, int $type = SQLT_AFC): void
105 105
 {
106
-    error_clear_last();
107
-    $result = \oci_bind_array_by_name($statement, $name, $var_array, $max_table_length, $max_item_length, $type);
108
-    if ($result === false) {
109
-        throw Oci8Exception::createFromPhpError();
110
-    }
106
+	error_clear_last();
107
+	$result = \oci_bind_array_by_name($statement, $name, $var_array, $max_table_length, $max_item_length, $type);
108
+	if ($result === false) {
109
+		throw Oci8Exception::createFromPhpError();
110
+	}
111 111
 }
112 112
 
113 113
 
@@ -309,11 +309,11 @@  discard block
 block discarded – undo
309 309
  */
310 310
 function oci_bind_by_name($statement, string $bv_name, &$variable, int $maxlength = -1, int $type = SQLT_CHR): void
311 311
 {
312
-    error_clear_last();
313
-    $result = \oci_bind_by_name($statement, $bv_name, $variable, $maxlength, $type);
314
-    if ($result === false) {
315
-        throw Oci8Exception::createFromPhpError();
316
-    }
312
+	error_clear_last();
313
+	$result = \oci_bind_by_name($statement, $bv_name, $variable, $maxlength, $type);
314
+	if ($result === false) {
315
+		throw Oci8Exception::createFromPhpError();
316
+	}
317 317
 }
318 318
 
319 319
 
@@ -327,11 +327,11 @@  discard block
 block discarded – undo
327 327
  */
328 328
 function oci_cancel($statement): void
329 329
 {
330
-    error_clear_last();
331
-    $result = \oci_cancel($statement);
332
-    if ($result === false) {
333
-        throw Oci8Exception::createFromPhpError();
334
-    }
330
+	error_clear_last();
331
+	$result = \oci_cancel($statement);
332
+	if ($result === false) {
333
+		throw Oci8Exception::createFromPhpError();
334
+	}
335 335
 }
336 336
 
337 337
 
@@ -352,11 +352,11 @@  discard block
 block discarded – undo
352 352
  */
353 353
 function oci_close($connection): void
354 354
 {
355
-    error_clear_last();
356
-    $result = \oci_close($connection);
357
-    if ($result === false) {
358
-        throw Oci8Exception::createFromPhpError();
359
-    }
355
+	error_clear_last();
356
+	$result = \oci_close($connection);
357
+	if ($result === false) {
358
+		throw Oci8Exception::createFromPhpError();
359
+	}
360 360
 }
361 361
 
362 362
 
@@ -384,11 +384,11 @@  discard block
 block discarded – undo
384 384
  */
385 385
 function oci_commit($connection): void
386 386
 {
387
-    error_clear_last();
388
-    $result = \oci_commit($connection);
389
-    if ($result === false) {
390
-        throw Oci8Exception::createFromPhpError();
391
-    }
387
+	error_clear_last();
388
+	$result = \oci_commit($connection);
389
+	if ($result === false) {
390
+		throw Oci8Exception::createFromPhpError();
391
+	}
392 392
 }
393 393
 
394 394
 
@@ -491,20 +491,20 @@  discard block
 block discarded – undo
491 491
  */
492 492
 function oci_connect(string $username, string $password, string $connection_string = null, string $character_set = null, int $session_mode = null)
493 493
 {
494
-    error_clear_last();
495
-    if ($session_mode !== null) {
496
-        $result = \oci_connect($username, $password, $connection_string, $character_set, $session_mode);
497
-    } elseif ($character_set !== null) {
498
-        $result = \oci_connect($username, $password, $connection_string, $character_set);
499
-    } elseif ($connection_string !== null) {
500
-        $result = \oci_connect($username, $password, $connection_string);
501
-    } else {
502
-        $result = \oci_connect($username, $password);
503
-    }
504
-    if ($result === false) {
505
-        throw Oci8Exception::createFromPhpError();
506
-    }
507
-    return $result;
494
+	error_clear_last();
495
+	if ($session_mode !== null) {
496
+		$result = \oci_connect($username, $password, $connection_string, $character_set, $session_mode);
497
+	} elseif ($character_set !== null) {
498
+		$result = \oci_connect($username, $password, $connection_string, $character_set);
499
+	} elseif ($connection_string !== null) {
500
+		$result = \oci_connect($username, $password, $connection_string);
501
+	} else {
502
+		$result = \oci_connect($username, $password);
503
+	}
504
+	if ($result === false) {
505
+		throw Oci8Exception::createFromPhpError();
506
+	}
507
+	return $result;
508 508
 }
509 509
 
510 510
 
@@ -536,11 +536,11 @@  discard block
 block discarded – undo
536 536
  */
537 537
 function oci_define_by_name($statement, string $column_name, &$variable, int $type = SQLT_CHR): void
538 538
 {
539
-    error_clear_last();
540
-    $result = \oci_define_by_name($statement, $column_name, $variable, $type);
541
-    if ($result === false) {
542
-        throw Oci8Exception::createFromPhpError();
543
-    }
539
+	error_clear_last();
540
+	$result = \oci_define_by_name($statement, $column_name, $variable, $type);
541
+	if ($result === false) {
542
+		throw Oci8Exception::createFromPhpError();
543
+	}
544 544
 }
545 545
 
546 546
 
@@ -623,11 +623,11 @@  discard block
 block discarded – undo
623 623
  */
624 624
 function oci_execute($statement, int $mode = OCI_COMMIT_ON_SUCCESS): void
625 625
 {
626
-    error_clear_last();
627
-    $result = \oci_execute($statement, $mode);
628
-    if ($result === false) {
629
-        throw Oci8Exception::createFromPhpError();
630
-    }
626
+	error_clear_last();
627
+	$result = \oci_execute($statement, $mode);
628
+	if ($result === false) {
629
+		throw Oci8Exception::createFromPhpError();
630
+	}
631 631
 }
632 632
 
633 633
 
@@ -725,12 +725,12 @@  discard block
 block discarded – undo
725 725
  */
726 726
 function oci_fetch_all($statement, ?array &$output, int $skip = 0, int $maxrows = -1, int $flags = OCI_FETCHSTATEMENT_BY_COLUMN + OCI_ASSOC): int
727 727
 {
728
-    error_clear_last();
729
-    $result = \oci_fetch_all($statement, $output, $skip, $maxrows, $flags);
730
-    if ($result === false) {
731
-        throw Oci8Exception::createFromPhpError();
732
-    }
733
-    return $result;
728
+	error_clear_last();
729
+	$result = \oci_fetch_all($statement, $output, $skip, $maxrows, $flags);
730
+	if ($result === false) {
731
+		throw Oci8Exception::createFromPhpError();
732
+	}
733
+	return $result;
734 734
 }
735 735
 
736 736
 
@@ -745,12 +745,12 @@  discard block
 block discarded – undo
745 745
  */
746 746
 function oci_field_name($statement, $field): string
747 747
 {
748
-    error_clear_last();
749
-    $result = \oci_field_name($statement, $field);
750
-    if ($result === false) {
751
-        throw Oci8Exception::createFromPhpError();
752
-    }
753
-    return $result;
748
+	error_clear_last();
749
+	$result = \oci_field_name($statement, $field);
750
+	if ($result === false) {
751
+		throw Oci8Exception::createFromPhpError();
752
+	}
753
+	return $result;
754 754
 }
755 755
 
756 756
 
@@ -769,12 +769,12 @@  discard block
 block discarded – undo
769 769
  */
770 770
 function oci_field_precision($statement, $field): int
771 771
 {
772
-    error_clear_last();
773
-    $result = \oci_field_precision($statement, $field);
774
-    if ($result === false) {
775
-        throw Oci8Exception::createFromPhpError();
776
-    }
777
-    return $result;
772
+	error_clear_last();
773
+	$result = \oci_field_precision($statement, $field);
774
+	if ($result === false) {
775
+		throw Oci8Exception::createFromPhpError();
776
+	}
777
+	return $result;
778 778
 }
779 779
 
780 780
 
@@ -793,12 +793,12 @@  discard block
 block discarded – undo
793 793
  */
794 794
 function oci_field_scale($statement, $field): int
795 795
 {
796
-    error_clear_last();
797
-    $result = \oci_field_scale($statement, $field);
798
-    if ($result === false) {
799
-        throw Oci8Exception::createFromPhpError();
800
-    }
801
-    return $result;
796
+	error_clear_last();
797
+	$result = \oci_field_scale($statement, $field);
798
+	if ($result === false) {
799
+		throw Oci8Exception::createFromPhpError();
800
+	}
801
+	return $result;
802 802
 }
803 803
 
804 804
 
@@ -813,12 +813,12 @@  discard block
 block discarded – undo
813 813
  */
814 814
 function oci_field_size($statement, $field): int
815 815
 {
816
-    error_clear_last();
817
-    $result = \oci_field_size($statement, $field);
818
-    if ($result === false) {
819
-        throw Oci8Exception::createFromPhpError();
820
-    }
821
-    return $result;
816
+	error_clear_last();
817
+	$result = \oci_field_size($statement, $field);
818
+	if ($result === false) {
819
+		throw Oci8Exception::createFromPhpError();
820
+	}
821
+	return $result;
822 822
 }
823 823
 
824 824
 
@@ -835,12 +835,12 @@  discard block
 block discarded – undo
835 835
  */
836 836
 function oci_field_type_raw($statement, $field): int
837 837
 {
838
-    error_clear_last();
839
-    $result = \oci_field_type_raw($statement, $field);
840
-    if ($result === false) {
841
-        throw Oci8Exception::createFromPhpError();
842
-    }
843
-    return $result;
838
+	error_clear_last();
839
+	$result = \oci_field_type_raw($statement, $field);
840
+	if ($result === false) {
841
+		throw Oci8Exception::createFromPhpError();
842
+	}
843
+	return $result;
844 844
 }
845 845
 
846 846
 
@@ -855,12 +855,12 @@  discard block
 block discarded – undo
855 855
  */
856 856
 function oci_field_type($statement, $field)
857 857
 {
858
-    error_clear_last();
859
-    $result = \oci_field_type($statement, $field);
860
-    if ($result === false) {
861
-        throw Oci8Exception::createFromPhpError();
862
-    }
863
-    return $result;
858
+	error_clear_last();
859
+	$result = \oci_field_type($statement, $field);
860
+	if ($result === false) {
861
+		throw Oci8Exception::createFromPhpError();
862
+	}
863
+	return $result;
864 864
 }
865 865
 
866 866
 
@@ -873,11 +873,11 @@  discard block
 block discarded – undo
873 873
  */
874 874
 function oci_free_descriptor($descriptor): void
875 875
 {
876
-    error_clear_last();
877
-    $result = \oci_free_descriptor($descriptor);
878
-    if ($result === false) {
879
-        throw Oci8Exception::createFromPhpError();
880
-    }
876
+	error_clear_last();
877
+	$result = \oci_free_descriptor($descriptor);
878
+	if ($result === false) {
879
+		throw Oci8Exception::createFromPhpError();
880
+	}
881 881
 }
882 882
 
883 883
 
@@ -892,11 +892,11 @@  discard block
 block discarded – undo
892 892
  */
893 893
 function oci_free_statement($statement): void
894 894
 {
895
-    error_clear_last();
896
-    $result = \oci_free_statement($statement);
897
-    if ($result === false) {
898
-        throw Oci8Exception::createFromPhpError();
899
-    }
895
+	error_clear_last();
896
+	$result = \oci_free_statement($statement);
897
+	if ($result === false) {
898
+		throw Oci8Exception::createFromPhpError();
899
+	}
900 900
 }
901 901
 
902 902
 
@@ -914,12 +914,12 @@  discard block
 block discarded – undo
914 914
  */
915 915
 function oci_new_collection($connection, string $tdo, string $schema = null)
916 916
 {
917
-    error_clear_last();
918
-    $result = \oci_new_collection($connection, $tdo, $schema);
919
-    if ($result === false) {
920
-        throw Oci8Exception::createFromPhpError();
921
-    }
922
-    return $result;
917
+	error_clear_last();
918
+	$result = \oci_new_collection($connection, $tdo, $schema);
919
+	if ($result === false) {
920
+		throw Oci8Exception::createFromPhpError();
921
+	}
922
+	return $result;
923 923
 }
924 924
 
925 925
 
@@ -1013,20 +1013,20 @@  discard block
 block discarded – undo
1013 1013
  */
1014 1014
 function oci_new_connect(string $username, string $password, string $connection_string = null, string $character_set = null, int $session_mode = null)
1015 1015
 {
1016
-    error_clear_last();
1017
-    if ($session_mode !== null) {
1018
-        $result = \oci_new_connect($username, $password, $connection_string, $character_set, $session_mode);
1019
-    } elseif ($character_set !== null) {
1020
-        $result = \oci_new_connect($username, $password, $connection_string, $character_set);
1021
-    } elseif ($connection_string !== null) {
1022
-        $result = \oci_new_connect($username, $password, $connection_string);
1023
-    } else {
1024
-        $result = \oci_new_connect($username, $password);
1025
-    }
1026
-    if ($result === false) {
1027
-        throw Oci8Exception::createFromPhpError();
1028
-    }
1029
-    return $result;
1016
+	error_clear_last();
1017
+	if ($session_mode !== null) {
1018
+		$result = \oci_new_connect($username, $password, $connection_string, $character_set, $session_mode);
1019
+	} elseif ($character_set !== null) {
1020
+		$result = \oci_new_connect($username, $password, $connection_string, $character_set);
1021
+	} elseif ($connection_string !== null) {
1022
+		$result = \oci_new_connect($username, $password, $connection_string);
1023
+	} else {
1024
+		$result = \oci_new_connect($username, $password);
1025
+	}
1026
+	if ($result === false) {
1027
+		throw Oci8Exception::createFromPhpError();
1028
+	}
1029
+	return $result;
1030 1030
 }
1031 1031
 
1032 1032
 
@@ -1041,12 +1041,12 @@  discard block
 block discarded – undo
1041 1041
  */
1042 1042
 function oci_new_cursor($connection)
1043 1043
 {
1044
-    error_clear_last();
1045
-    $result = \oci_new_cursor($connection);
1046
-    if ($result === false) {
1047
-        throw Oci8Exception::createFromPhpError();
1048
-    }
1049
-    return $result;
1044
+	error_clear_last();
1045
+	$result = \oci_new_cursor($connection);
1046
+	if ($result === false) {
1047
+		throw Oci8Exception::createFromPhpError();
1048
+	}
1049
+	return $result;
1050 1050
 }
1051 1051
 
1052 1052
 
@@ -1064,12 +1064,12 @@  discard block
 block discarded – undo
1064 1064
  */
1065 1065
 function oci_new_descriptor($connection, int $type = OCI_DTYPE_LOB)
1066 1066
 {
1067
-    error_clear_last();
1068
-    $result = \oci_new_descriptor($connection, $type);
1069
-    if ($result === false) {
1070
-        throw Oci8Exception::createFromPhpError();
1071
-    }
1072
-    return $result;
1067
+	error_clear_last();
1068
+	$result = \oci_new_descriptor($connection, $type);
1069
+	if ($result === false) {
1070
+		throw Oci8Exception::createFromPhpError();
1071
+	}
1072
+	return $result;
1073 1073
 }
1074 1074
 
1075 1075
 
@@ -1083,12 +1083,12 @@  discard block
 block discarded – undo
1083 1083
  */
1084 1084
 function oci_num_fields($statement): int
1085 1085
 {
1086
-    error_clear_last();
1087
-    $result = \oci_num_fields($statement);
1088
-    if ($result === false) {
1089
-        throw Oci8Exception::createFromPhpError();
1090
-    }
1091
-    return $result;
1086
+	error_clear_last();
1087
+	$result = \oci_num_fields($statement);
1088
+	if ($result === false) {
1089
+		throw Oci8Exception::createFromPhpError();
1090
+	}
1091
+	return $result;
1092 1092
 }
1093 1093
 
1094 1094
 
@@ -1102,12 +1102,12 @@  discard block
 block discarded – undo
1102 1102
  */
1103 1103
 function oci_num_rows($statement): int
1104 1104
 {
1105
-    error_clear_last();
1106
-    $result = \oci_num_rows($statement);
1107
-    if ($result === false) {
1108
-        throw Oci8Exception::createFromPhpError();
1109
-    }
1110
-    return $result;
1105
+	error_clear_last();
1106
+	$result = \oci_num_rows($statement);
1107
+	if ($result === false) {
1108
+		throw Oci8Exception::createFromPhpError();
1109
+	}
1110
+	return $result;
1111 1111
 }
1112 1112
 
1113 1113
 
@@ -1135,12 +1135,12 @@  discard block
 block discarded – undo
1135 1135
  */
1136 1136
 function oci_parse($connection, string $sql_text)
1137 1137
 {
1138
-    error_clear_last();
1139
-    $result = \oci_parse($connection, $sql_text);
1140
-    if ($result === false) {
1141
-        throw Oci8Exception::createFromPhpError();
1142
-    }
1143
-    return $result;
1138
+	error_clear_last();
1139
+	$result = \oci_parse($connection, $sql_text);
1140
+	if ($result === false) {
1141
+		throw Oci8Exception::createFromPhpError();
1142
+	}
1143
+	return $result;
1144 1144
 }
1145 1145
 
1146 1146
 
@@ -1234,20 +1234,20 @@  discard block
 block discarded – undo
1234 1234
  */
1235 1235
 function oci_pconnect(string $username, string $password, string $connection_string = null, string $character_set = null, int $session_mode = null)
1236 1236
 {
1237
-    error_clear_last();
1238
-    if ($session_mode !== null) {
1239
-        $result = \oci_pconnect($username, $password, $connection_string, $character_set, $session_mode);
1240
-    } elseif ($character_set !== null) {
1241
-        $result = \oci_pconnect($username, $password, $connection_string, $character_set);
1242
-    } elseif ($connection_string !== null) {
1243
-        $result = \oci_pconnect($username, $password, $connection_string);
1244
-    } else {
1245
-        $result = \oci_pconnect($username, $password);
1246
-    }
1247
-    if ($result === false) {
1248
-        throw Oci8Exception::createFromPhpError();
1249
-    }
1250
-    return $result;
1237
+	error_clear_last();
1238
+	if ($session_mode !== null) {
1239
+		$result = \oci_pconnect($username, $password, $connection_string, $character_set, $session_mode);
1240
+	} elseif ($character_set !== null) {
1241
+		$result = \oci_pconnect($username, $password, $connection_string, $character_set);
1242
+	} elseif ($connection_string !== null) {
1243
+		$result = \oci_pconnect($username, $password, $connection_string);
1244
+	} else {
1245
+		$result = \oci_pconnect($username, $password);
1246
+	}
1247
+	if ($result === false) {
1248
+		throw Oci8Exception::createFromPhpError();
1249
+	}
1250
+	return $result;
1251 1251
 }
1252 1252
 
1253 1253
 
@@ -1271,12 +1271,12 @@  discard block
 block discarded – undo
1271 1271
  */
1272 1272
 function oci_result($statement, $field): string
1273 1273
 {
1274
-    error_clear_last();
1275
-    $result = \oci_result($statement, $field);
1276
-    if ($result === false) {
1277
-        throw Oci8Exception::createFromPhpError();
1278
-    }
1279
-    return $result;
1274
+	error_clear_last();
1275
+	$result = \oci_result($statement, $field);
1276
+	if ($result === false) {
1277
+		throw Oci8Exception::createFromPhpError();
1278
+	}
1279
+	return $result;
1280 1280
 }
1281 1281
 
1282 1282
 
@@ -1305,11 +1305,11 @@  discard block
 block discarded – undo
1305 1305
  */
1306 1306
 function oci_rollback($connection): void
1307 1307
 {
1308
-    error_clear_last();
1309
-    $result = \oci_rollback($connection);
1310
-    if ($result === false) {
1311
-        throw Oci8Exception::createFromPhpError();
1312
-    }
1308
+	error_clear_last();
1309
+	$result = \oci_rollback($connection);
1310
+	if ($result === false) {
1311
+		throw Oci8Exception::createFromPhpError();
1312
+	}
1313 1313
 }
1314 1314
 
1315 1315
 
@@ -1323,12 +1323,12 @@  discard block
 block discarded – undo
1323 1323
  */
1324 1324
 function oci_server_version($connection): string
1325 1325
 {
1326
-    error_clear_last();
1327
-    $result = \oci_server_version($connection);
1328
-    if ($result === false) {
1329
-        throw Oci8Exception::createFromPhpError();
1330
-    }
1331
-    return $result;
1326
+	error_clear_last();
1327
+	$result = \oci_server_version($connection);
1328
+	if ($result === false) {
1329
+		throw Oci8Exception::createFromPhpError();
1330
+	}
1331
+	return $result;
1332 1332
 }
1333 1333
 
1334 1334
 
@@ -1355,11 +1355,11 @@  discard block
 block discarded – undo
1355 1355
  */
1356 1356
 function oci_set_action($connection, string $action_name): void
1357 1357
 {
1358
-    error_clear_last();
1359
-    $result = \oci_set_action($connection, $action_name);
1360
-    if ($result === false) {
1361
-        throw Oci8Exception::createFromPhpError();
1362
-    }
1358
+	error_clear_last();
1359
+	$result = \oci_set_action($connection, $action_name);
1360
+	if ($result === false) {
1361
+		throw Oci8Exception::createFromPhpError();
1362
+	}
1363 1363
 }
1364 1364
 
1365 1365
 
@@ -1397,11 +1397,11 @@  discard block
 block discarded – undo
1397 1397
  */
1398 1398
 function oci_set_call_timeout($connection, int $time_out): void
1399 1399
 {
1400
-    error_clear_last();
1401
-    $result = \oci_set_call_timeout($connection, $time_out);
1402
-    if ($result === false) {
1403
-        throw Oci8Exception::createFromPhpError();
1404
-    }
1400
+	error_clear_last();
1401
+	$result = \oci_set_call_timeout($connection, $time_out);
1402
+	if ($result === false) {
1403
+		throw Oci8Exception::createFromPhpError();
1404
+	}
1405 1405
 }
1406 1406
 
1407 1407
 
@@ -1432,11 +1432,11 @@  discard block
 block discarded – undo
1432 1432
  */
1433 1433
 function oci_set_client_identifier($connection, string $client_identifier): void
1434 1434
 {
1435
-    error_clear_last();
1436
-    $result = \oci_set_client_identifier($connection, $client_identifier);
1437
-    if ($result === false) {
1438
-        throw Oci8Exception::createFromPhpError();
1439
-    }
1435
+	error_clear_last();
1436
+	$result = \oci_set_client_identifier($connection, $client_identifier);
1437
+	if ($result === false) {
1438
+		throw Oci8Exception::createFromPhpError();
1439
+	}
1440 1440
 }
1441 1441
 
1442 1442
 
@@ -1461,11 +1461,11 @@  discard block
 block discarded – undo
1461 1461
  */
1462 1462
 function oci_set_client_info($connection, string $client_info): void
1463 1463
 {
1464
-    error_clear_last();
1465
-    $result = \oci_set_client_info($connection, $client_info);
1466
-    if ($result === false) {
1467
-        throw Oci8Exception::createFromPhpError();
1468
-    }
1464
+	error_clear_last();
1465
+	$result = \oci_set_client_info($connection, $client_info);
1466
+	if ($result === false) {
1467
+		throw Oci8Exception::createFromPhpError();
1468
+	}
1469 1469
 }
1470 1470
 
1471 1471
 
@@ -1491,11 +1491,11 @@  discard block
 block discarded – undo
1491 1491
  */
1492 1492
 function oci_set_db_operation($connection, string $dbop): void
1493 1493
 {
1494
-    error_clear_last();
1495
-    $result = \oci_set_db_operation($connection, $dbop);
1496
-    if ($result === false) {
1497
-        throw Oci8Exception::createFromPhpError();
1498
-    }
1494
+	error_clear_last();
1495
+	$result = \oci_set_db_operation($connection, $dbop);
1496
+	if ($result === false) {
1497
+		throw Oci8Exception::createFromPhpError();
1498
+	}
1499 1499
 }
1500 1500
 
1501 1501
 
@@ -1525,11 +1525,11 @@  discard block
 block discarded – undo
1525 1525
  */
1526 1526
 function oci_set_edition(string $edition): void
1527 1527
 {
1528
-    error_clear_last();
1529
-    $result = \oci_set_edition($edition);
1530
-    if ($result === false) {
1531
-        throw Oci8Exception::createFromPhpError();
1532
-    }
1528
+	error_clear_last();
1529
+	$result = \oci_set_edition($edition);
1530
+	if ($result === false) {
1531
+		throw Oci8Exception::createFromPhpError();
1532
+	}
1533 1533
 }
1534 1534
 
1535 1535
 
@@ -1556,11 +1556,11 @@  discard block
 block discarded – undo
1556 1556
  */
1557 1557
 function oci_set_module_name($connection, string $module_name): void
1558 1558
 {
1559
-    error_clear_last();
1560
-    $result = \oci_set_module_name($connection, $module_name);
1561
-    if ($result === false) {
1562
-        throw Oci8Exception::createFromPhpError();
1563
-    }
1559
+	error_clear_last();
1560
+	$result = \oci_set_module_name($connection, $module_name);
1561
+	if ($result === false) {
1562
+		throw Oci8Exception::createFromPhpError();
1563
+	}
1564 1564
 }
1565 1565
 
1566 1566
 
@@ -1620,11 +1620,11 @@  discard block
 block discarded – undo
1620 1620
  */
1621 1621
 function oci_set_prefetch($statement, int $rows): void
1622 1622
 {
1623
-    error_clear_last();
1624
-    $result = \oci_set_prefetch($statement, $rows);
1625
-    if ($result === false) {
1626
-        throw Oci8Exception::createFromPhpError();
1627
-    }
1623
+	error_clear_last();
1624
+	$result = \oci_set_prefetch($statement, $rows);
1625
+	if ($result === false) {
1626
+		throw Oci8Exception::createFromPhpError();
1627
+	}
1628 1628
 }
1629 1629
 
1630 1630
 
@@ -1692,12 +1692,12 @@  discard block
 block discarded – undo
1692 1692
  */
1693 1693
 function oci_statement_type($statement): string
1694 1694
 {
1695
-    error_clear_last();
1696
-    $result = \oci_statement_type($statement);
1697
-    if ($result === false) {
1698
-        throw Oci8Exception::createFromPhpError();
1699
-    }
1700
-    return $result;
1695
+	error_clear_last();
1696
+	$result = \oci_statement_type($statement);
1697
+	if ($result === false) {
1698
+		throw Oci8Exception::createFromPhpError();
1699
+	}
1700
+	return $result;
1701 1701
 }
1702 1702
 
1703 1703
 
@@ -1713,9 +1713,9 @@  discard block
 block discarded – undo
1713 1713
  */
1714 1714
 function oci_unregister_taf_callback($connection): void
1715 1715
 {
1716
-    error_clear_last();
1717
-    $result = \oci_unregister_taf_callback($connection);
1718
-    if ($result === false) {
1719
-        throw Oci8Exception::createFromPhpError();
1720
-    }
1716
+	error_clear_last();
1717
+	$result = \oci_unregister_taf_callback($connection);
1718
+	if ($result === false) {
1719
+		throw Oci8Exception::createFromPhpError();
1720
+	}
1721 1721
 }
Please login to merge, or discard this patch.
vendor-bin/php-scoper/vendor/thecodingmachine/safe/generated/solr.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -13,10 +13,10 @@
 block discarded – undo
13 13
  */
14 14
 function solr_get_version(): string
15 15
 {
16
-    error_clear_last();
17
-    $result = \solr_get_version();
18
-    if ($result === false) {
19
-        throw SolrException::createFromPhpError();
20
-    }
21
-    return $result;
16
+	error_clear_last();
17
+	$result = \solr_get_version();
18
+	if ($result === false) {
19
+		throw SolrException::createFromPhpError();
20
+	}
21
+	return $result;
22 22
 }
Please login to merge, or discard this patch.
vendor-bin/php-scoper/vendor/thecodingmachine/safe/generated/info.php 1 patch
Indentation   +90 added lines, -90 removed lines patch added patch discarded remove patch
@@ -15,11 +15,11 @@  discard block
 block discarded – undo
15 15
  */
16 16
 function cli_set_process_title(string $title): void
17 17
 {
18
-    error_clear_last();
19
-    $result = \cli_set_process_title($title);
20
-    if ($result === false) {
21
-        throw InfoException::createFromPhpError();
22
-    }
18
+	error_clear_last();
19
+	$result = \cli_set_process_title($title);
20
+	if ($result === false) {
21
+		throw InfoException::createFromPhpError();
22
+	}
23 23
 }
24 24
 
25 25
 
@@ -79,11 +79,11 @@  discard block
 block discarded – undo
79 79
  */
80 80
 function dl(string $library): void
81 81
 {
82
-    error_clear_last();
83
-    $result = \dl($library);
84
-    if ($result === false) {
85
-        throw InfoException::createFromPhpError();
86
-    }
82
+	error_clear_last();
83
+	$result = \dl($library);
84
+	if ($result === false) {
85
+		throw InfoException::createFromPhpError();
86
+	}
87 87
 }
88 88
 
89 89
 
@@ -101,12 +101,12 @@  discard block
 block discarded – undo
101 101
  */
102 102
 function getlastmod(): int
103 103
 {
104
-    error_clear_last();
105
-    $result = \getlastmod();
106
-    if ($result === false) {
107
-        throw InfoException::createFromPhpError();
108
-    }
109
-    return $result;
104
+	error_clear_last();
105
+	$result = \getlastmod();
106
+	if ($result === false) {
107
+		throw InfoException::createFromPhpError();
108
+	}
109
+	return $result;
110 110
 }
111 111
 
112 112
 
@@ -119,12 +119,12 @@  discard block
 block discarded – undo
119 119
  */
120 120
 function getmygid(): int
121 121
 {
122
-    error_clear_last();
123
-    $result = \getmygid();
124
-    if ($result === false) {
125
-        throw InfoException::createFromPhpError();
126
-    }
127
-    return $result;
122
+	error_clear_last();
123
+	$result = \getmygid();
124
+	if ($result === false) {
125
+		throw InfoException::createFromPhpError();
126
+	}
127
+	return $result;
128 128
 }
129 129
 
130 130
 
@@ -137,12 +137,12 @@  discard block
 block discarded – undo
137 137
  */
138 138
 function getmyinode(): int
139 139
 {
140
-    error_clear_last();
141
-    $result = \getmyinode();
142
-    if ($result === false) {
143
-        throw InfoException::createFromPhpError();
144
-    }
145
-    return $result;
140
+	error_clear_last();
141
+	$result = \getmyinode();
142
+	if ($result === false) {
143
+		throw InfoException::createFromPhpError();
144
+	}
145
+	return $result;
146 146
 }
147 147
 
148 148
 
@@ -155,12 +155,12 @@  discard block
 block discarded – undo
155 155
  */
156 156
 function getmypid(): int
157 157
 {
158
-    error_clear_last();
159
-    $result = \getmypid();
160
-    if ($result === false) {
161
-        throw InfoException::createFromPhpError();
162
-    }
163
-    return $result;
158
+	error_clear_last();
159
+	$result = \getmypid();
160
+	if ($result === false) {
161
+		throw InfoException::createFromPhpError();
162
+	}
163
+	return $result;
164 164
 }
165 165
 
166 166
 
@@ -173,12 +173,12 @@  discard block
 block discarded – undo
173 173
  */
174 174
 function getmyuid(): int
175 175
 {
176
-    error_clear_last();
177
-    $result = \getmyuid();
178
-    if ($result === false) {
179
-        throw InfoException::createFromPhpError();
180
-    }
181
-    return $result;
176
+	error_clear_last();
177
+	$result = \getmyuid();
178
+	if ($result === false) {
179
+		throw InfoException::createFromPhpError();
180
+	}
181
+	return $result;
182 182
 }
183 183
 
184 184
 
@@ -194,18 +194,18 @@  discard block
 block discarded – undo
194 194
  */
195 195
 function getopt(string $options, array $longopts = null, ?int &$optind = null): array
196 196
 {
197
-    error_clear_last();
198
-    if ($optind !== null) {
199
-        $result = \getopt($options, $longopts, $optind);
200
-    } elseif ($longopts !== null) {
201
-        $result = \getopt($options, $longopts);
202
-    } else {
203
-        $result = \getopt($options);
204
-    }
205
-    if ($result === false) {
206
-        throw InfoException::createFromPhpError();
207
-    }
208
-    return $result;
197
+	error_clear_last();
198
+	if ($optind !== null) {
199
+		$result = \getopt($options, $longopts, $optind);
200
+	} elseif ($longopts !== null) {
201
+		$result = \getopt($options, $longopts);
202
+	} else {
203
+		$result = \getopt($options);
204
+	}
205
+	if ($result === false) {
206
+		throw InfoException::createFromPhpError();
207
+	}
208
+	return $result;
209 209
 }
210 210
 
211 211
 
@@ -221,12 +221,12 @@  discard block
 block discarded – undo
221 221
  */
222 222
 function ini_get(string $varname): string
223 223
 {
224
-    error_clear_last();
225
-    $result = \ini_get($varname);
226
-    if ($result === false) {
227
-        throw InfoException::createFromPhpError();
228
-    }
229
-    return $result;
224
+	error_clear_last();
225
+	$result = \ini_get($varname);
226
+	if ($result === false) {
227
+		throw InfoException::createFromPhpError();
228
+	}
229
+	return $result;
230 230
 }
231 231
 
232 232
 
@@ -245,12 +245,12 @@  discard block
 block discarded – undo
245 245
  */
246 246
 function ini_set(string $varname, $newvalue): string
247 247
 {
248
-    error_clear_last();
249
-    $result = \ini_set($varname, $newvalue);
250
-    if ($result === false) {
251
-        throw InfoException::createFromPhpError();
252
-    }
253
-    return $result;
248
+	error_clear_last();
249
+	$result = \ini_set($varname, $newvalue);
250
+	if ($result === false) {
251
+		throw InfoException::createFromPhpError();
252
+	}
253
+	return $result;
254 254
 }
255 255
 
256 256
 
@@ -325,11 +325,11 @@  discard block
 block discarded – undo
325 325
  */
326 326
 function phpcredits(int $flag = CREDITS_ALL): void
327 327
 {
328
-    error_clear_last();
329
-    $result = \phpcredits($flag);
330
-    if ($result === false) {
331
-        throw InfoException::createFromPhpError();
332
-    }
328
+	error_clear_last();
329
+	$result = \phpcredits($flag);
330
+	if ($result === false) {
331
+		throw InfoException::createFromPhpError();
332
+	}
333 333
 }
334 334
 
335 335
 
@@ -435,11 +435,11 @@  discard block
 block discarded – undo
435 435
  */
436 436
 function phpinfo(int $what = INFO_ALL): void
437 437
 {
438
-    error_clear_last();
439
-    $result = \phpinfo($what);
440
-    if ($result === false) {
441
-        throw InfoException::createFromPhpError();
442
-    }
438
+	error_clear_last();
439
+	$result = \phpinfo($what);
440
+	if ($result === false) {
441
+		throw InfoException::createFromPhpError();
442
+	}
443 443
 }
444 444
 
445 445
 
@@ -455,11 +455,11 @@  discard block
 block discarded – undo
455 455
  */
456 456
 function putenv(string $setting): void
457 457
 {
458
-    error_clear_last();
459
-    $result = \putenv($setting);
460
-    if ($result === false) {
461
-        throw InfoException::createFromPhpError();
462
-    }
458
+	error_clear_last();
459
+	$result = \putenv($setting);
460
+	if ($result === false) {
461
+		throw InfoException::createFromPhpError();
462
+	}
463 463
 }
464 464
 
465 465
 
@@ -475,12 +475,12 @@  discard block
 block discarded – undo
475 475
  */
476 476
 function set_include_path(string $new_include_path): string
477 477
 {
478
-    error_clear_last();
479
-    $result = \set_include_path($new_include_path);
480
-    if ($result === false) {
481
-        throw InfoException::createFromPhpError();
482
-    }
483
-    return $result;
478
+	error_clear_last();
479
+	$result = \set_include_path($new_include_path);
480
+	if ($result === false) {
481
+		throw InfoException::createFromPhpError();
482
+	}
483
+	return $result;
484 484
 }
485 485
 
486 486
 
@@ -503,9 +503,9 @@  discard block
 block discarded – undo
503 503
  */
504 504
 function set_time_limit(int $seconds): void
505 505
 {
506
-    error_clear_last();
507
-    $result = \set_time_limit($seconds);
508
-    if ($result === false) {
509
-        throw InfoException::createFromPhpError();
510
-    }
506
+	error_clear_last();
507
+	$result = \set_time_limit($seconds);
508
+	if ($result === false) {
509
+		throw InfoException::createFromPhpError();
510
+	}
511 511
 }
Please login to merge, or discard this patch.
vendor-bin/php-scoper/vendor/thecodingmachine/safe/generated/ibase.php 1 patch
Indentation   +179 added lines, -179 removed lines patch added patch discarded remove patch
@@ -14,11 +14,11 @@  discard block
 block discarded – undo
14 14
  */
15 15
 function fbird_blob_cancel($blob_handle): void
16 16
 {
17
-    error_clear_last();
18
-    $result = \fbird_blob_cancel($blob_handle);
19
-    if ($result === false) {
20
-        throw IbaseException::createFromPhpError();
21
-    }
17
+	error_clear_last();
18
+	$result = \fbird_blob_cancel($blob_handle);
19
+	if ($result === false) {
20
+		throw IbaseException::createFromPhpError();
21
+	}
22 22
 }
23 23
 
24 24
 
@@ -36,19 +36,19 @@  discard block
 block discarded – undo
36 36
  */
37 37
 function ibase_add_user($service_handle, string $user_name, string $password, string $first_name = null, string $middle_name = null, string $last_name = null): void
38 38
 {
39
-    error_clear_last();
40
-    if ($last_name !== null) {
41
-        $result = \ibase_add_user($service_handle, $user_name, $password, $first_name, $middle_name, $last_name);
42
-    } elseif ($middle_name !== null) {
43
-        $result = \ibase_add_user($service_handle, $user_name, $password, $first_name, $middle_name);
44
-    } elseif ($first_name !== null) {
45
-        $result = \ibase_add_user($service_handle, $user_name, $password, $first_name);
46
-    } else {
47
-        $result = \ibase_add_user($service_handle, $user_name, $password);
48
-    }
49
-    if ($result === false) {
50
-        throw IbaseException::createFromPhpError();
51
-    }
39
+	error_clear_last();
40
+	if ($last_name !== null) {
41
+		$result = \ibase_add_user($service_handle, $user_name, $password, $first_name, $middle_name, $last_name);
42
+	} elseif ($middle_name !== null) {
43
+		$result = \ibase_add_user($service_handle, $user_name, $password, $first_name, $middle_name);
44
+	} elseif ($first_name !== null) {
45
+		$result = \ibase_add_user($service_handle, $user_name, $password, $first_name);
46
+	} else {
47
+		$result = \ibase_add_user($service_handle, $user_name, $password);
48
+	}
49
+	if ($result === false) {
50
+		throw IbaseException::createFromPhpError();
51
+	}
52 52
 }
53 53
 
54 54
 
@@ -81,12 +81,12 @@  discard block
 block discarded – undo
81 81
  */
82 82
 function ibase_backup($service_handle, string $source_db, string $dest_file, int $options = 0, bool $verbose = false)
83 83
 {
84
-    error_clear_last();
85
-    $result = \ibase_backup($service_handle, $source_db, $dest_file, $options, $verbose);
86
-    if ($result === false) {
87
-        throw IbaseException::createFromPhpError();
88
-    }
89
-    return $result;
84
+	error_clear_last();
85
+	$result = \ibase_backup($service_handle, $source_db, $dest_file, $options, $verbose);
86
+	if ($result === false) {
87
+		throw IbaseException::createFromPhpError();
88
+	}
89
+	return $result;
90 90
 }
91 91
 
92 92
 
@@ -100,11 +100,11 @@  discard block
 block discarded – undo
100 100
  */
101 101
 function ibase_blob_cancel($blob_handle): void
102 102
 {
103
-    error_clear_last();
104
-    $result = \ibase_blob_cancel($blob_handle);
105
-    if ($result === false) {
106
-        throw IbaseException::createFromPhpError();
107
-    }
103
+	error_clear_last();
104
+	$result = \ibase_blob_cancel($blob_handle);
105
+	if ($result === false) {
106
+		throw IbaseException::createFromPhpError();
107
+	}
108 108
 }
109 109
 
110 110
 
@@ -121,12 +121,12 @@  discard block
 block discarded – undo
121 121
  */
122 122
 function ibase_blob_create($link_identifier = null)
123 123
 {
124
-    error_clear_last();
125
-    $result = \ibase_blob_create($link_identifier);
126
-    if ($result === false) {
127
-        throw IbaseException::createFromPhpError();
128
-    }
129
-    return $result;
124
+	error_clear_last();
125
+	$result = \ibase_blob_create($link_identifier);
126
+	if ($result === false) {
127
+		throw IbaseException::createFromPhpError();
128
+	}
129
+	return $result;
130 130
 }
131 131
 
132 132
 
@@ -142,12 +142,12 @@  discard block
 block discarded – undo
142 142
  */
143 143
 function ibase_blob_get($blob_handle, int $len): string
144 144
 {
145
-    error_clear_last();
146
-    $result = \ibase_blob_get($blob_handle, $len);
147
-    if ($result === false) {
148
-        throw IbaseException::createFromPhpError();
149
-    }
150
-    return $result;
145
+	error_clear_last();
146
+	$result = \ibase_blob_get($blob_handle, $len);
147
+	if ($result === false) {
148
+		throw IbaseException::createFromPhpError();
149
+	}
150
+	return $result;
151 151
 }
152 152
 
153 153
 
@@ -165,11 +165,11 @@  discard block
 block discarded – undo
165 165
  */
166 166
 function ibase_close($connection_id = null): void
167 167
 {
168
-    error_clear_last();
169
-    $result = \ibase_close($connection_id);
170
-    if ($result === false) {
171
-        throw IbaseException::createFromPhpError();
172
-    }
168
+	error_clear_last();
169
+	$result = \ibase_close($connection_id);
170
+	if ($result === false) {
171
+		throw IbaseException::createFromPhpError();
172
+	}
173 173
 }
174 174
 
175 175
 
@@ -188,11 +188,11 @@  discard block
 block discarded – undo
188 188
  */
189 189
 function ibase_commit_ret($link_or_trans_identifier = null): void
190 190
 {
191
-    error_clear_last();
192
-    $result = \ibase_commit_ret($link_or_trans_identifier);
193
-    if ($result === false) {
194
-        throw IbaseException::createFromPhpError();
195
-    }
191
+	error_clear_last();
192
+	$result = \ibase_commit_ret($link_or_trans_identifier);
193
+	if ($result === false) {
194
+		throw IbaseException::createFromPhpError();
195
+	}
196 196
 }
197 197
 
198 198
 
@@ -209,11 +209,11 @@  discard block
 block discarded – undo
209 209
  */
210 210
 function ibase_commit($link_or_trans_identifier = null): void
211 211
 {
212
-    error_clear_last();
213
-    $result = \ibase_commit($link_or_trans_identifier);
214
-    if ($result === false) {
215
-        throw IbaseException::createFromPhpError();
216
-    }
212
+	error_clear_last();
213
+	$result = \ibase_commit($link_or_trans_identifier);
214
+	if ($result === false) {
215
+		throw IbaseException::createFromPhpError();
216
+	}
217 217
 }
218 218
 
219 219
 
@@ -252,30 +252,30 @@  discard block
 block discarded – undo
252 252
  */
253 253
 function ibase_connect(string $database = null, string $username = null, string $password = null, string $charset = null, int $buffers = null, int $dialect = null, string $role = null, int $sync = null)
254 254
 {
255
-    error_clear_last();
256
-    if ($sync !== null) {
257
-        $result = \ibase_connect($database, $username, $password, $charset, $buffers, $dialect, $role, $sync);
258
-    } elseif ($role !== null) {
259
-        $result = \ibase_connect($database, $username, $password, $charset, $buffers, $dialect, $role);
260
-    } elseif ($dialect !== null) {
261
-        $result = \ibase_connect($database, $username, $password, $charset, $buffers, $dialect);
262
-    } elseif ($buffers !== null) {
263
-        $result = \ibase_connect($database, $username, $password, $charset, $buffers);
264
-    } elseif ($charset !== null) {
265
-        $result = \ibase_connect($database, $username, $password, $charset);
266
-    } elseif ($password !== null) {
267
-        $result = \ibase_connect($database, $username, $password);
268
-    } elseif ($username !== null) {
269
-        $result = \ibase_connect($database, $username);
270
-    } elseif ($database !== null) {
271
-        $result = \ibase_connect($database);
272
-    } else {
273
-        $result = \ibase_connect();
274
-    }
275
-    if ($result === false) {
276
-        throw IbaseException::createFromPhpError();
277
-    }
278
-    return $result;
255
+	error_clear_last();
256
+	if ($sync !== null) {
257
+		$result = \ibase_connect($database, $username, $password, $charset, $buffers, $dialect, $role, $sync);
258
+	} elseif ($role !== null) {
259
+		$result = \ibase_connect($database, $username, $password, $charset, $buffers, $dialect, $role);
260
+	} elseif ($dialect !== null) {
261
+		$result = \ibase_connect($database, $username, $password, $charset, $buffers, $dialect);
262
+	} elseif ($buffers !== null) {
263
+		$result = \ibase_connect($database, $username, $password, $charset, $buffers);
264
+	} elseif ($charset !== null) {
265
+		$result = \ibase_connect($database, $username, $password, $charset);
266
+	} elseif ($password !== null) {
267
+		$result = \ibase_connect($database, $username, $password);
268
+	} elseif ($username !== null) {
269
+		$result = \ibase_connect($database, $username);
270
+	} elseif ($database !== null) {
271
+		$result = \ibase_connect($database);
272
+	} else {
273
+		$result = \ibase_connect();
274
+	}
275
+	if ($result === false) {
276
+		throw IbaseException::createFromPhpError();
277
+	}
278
+	return $result;
279 279
 }
280 280
 
281 281
 
@@ -289,11 +289,11 @@  discard block
 block discarded – undo
289 289
  */
290 290
 function ibase_delete_user($service_handle, string $user_name): void
291 291
 {
292
-    error_clear_last();
293
-    $result = \ibase_delete_user($service_handle, $user_name);
294
-    if ($result === false) {
295
-        throw IbaseException::createFromPhpError();
296
-    }
292
+	error_clear_last();
293
+	$result = \ibase_delete_user($service_handle, $user_name);
294
+	if ($result === false) {
295
+		throw IbaseException::createFromPhpError();
296
+	}
297 297
 }
298 298
 
299 299
 
@@ -308,11 +308,11 @@  discard block
 block discarded – undo
308 308
  */
309 309
 function ibase_drop_db($connection = null): void
310 310
 {
311
-    error_clear_last();
312
-    $result = \ibase_drop_db($connection);
313
-    if ($result === false) {
314
-        throw IbaseException::createFromPhpError();
315
-    }
311
+	error_clear_last();
312
+	$result = \ibase_drop_db($connection);
313
+	if ($result === false) {
314
+		throw IbaseException::createFromPhpError();
315
+	}
316 316
 }
317 317
 
318 318
 
@@ -328,11 +328,11 @@  discard block
 block discarded – undo
328 328
  */
329 329
 function ibase_free_event_handler($event): void
330 330
 {
331
-    error_clear_last();
332
-    $result = \ibase_free_event_handler($event);
333
-    if ($result === false) {
334
-        throw IbaseException::createFromPhpError();
335
-    }
331
+	error_clear_last();
332
+	$result = \ibase_free_event_handler($event);
333
+	if ($result === false) {
334
+		throw IbaseException::createFromPhpError();
335
+	}
336 336
 }
337 337
 
338 338
 
@@ -345,11 +345,11 @@  discard block
 block discarded – undo
345 345
  */
346 346
 function ibase_free_query($query): void
347 347
 {
348
-    error_clear_last();
349
-    $result = \ibase_free_query($query);
350
-    if ($result === false) {
351
-        throw IbaseException::createFromPhpError();
352
-    }
348
+	error_clear_last();
349
+	$result = \ibase_free_query($query);
350
+	if ($result === false) {
351
+		throw IbaseException::createFromPhpError();
352
+	}
353 353
 }
354 354
 
355 355
 
@@ -363,11 +363,11 @@  discard block
 block discarded – undo
363 363
  */
364 364
 function ibase_free_result($result_identifier): void
365 365
 {
366
-    error_clear_last();
367
-    $result = \ibase_free_result($result_identifier);
368
-    if ($result === false) {
369
-        throw IbaseException::createFromPhpError();
370
-    }
366
+	error_clear_last();
367
+	$result = \ibase_free_result($result_identifier);
368
+	if ($result === false) {
369
+		throw IbaseException::createFromPhpError();
370
+	}
371 371
 }
372 372
 
373 373
 
@@ -383,11 +383,11 @@  discard block
 block discarded – undo
383 383
  */
384 384
 function ibase_maintain_db($service_handle, string $db, int $action, int $argument = 0): void
385 385
 {
386
-    error_clear_last();
387
-    $result = \ibase_maintain_db($service_handle, $db, $action, $argument);
388
-    if ($result === false) {
389
-        throw IbaseException::createFromPhpError();
390
-    }
386
+	error_clear_last();
387
+	$result = \ibase_maintain_db($service_handle, $db, $action, $argument);
388
+	if ($result === false) {
389
+		throw IbaseException::createFromPhpError();
390
+	}
391 391
 }
392 392
 
393 393
 
@@ -405,19 +405,19 @@  discard block
 block discarded – undo
405 405
  */
406 406
 function ibase_modify_user($service_handle, string $user_name, string $password, string $first_name = null, string $middle_name = null, string $last_name = null): void
407 407
 {
408
-    error_clear_last();
409
-    if ($last_name !== null) {
410
-        $result = \ibase_modify_user($service_handle, $user_name, $password, $first_name, $middle_name, $last_name);
411
-    } elseif ($middle_name !== null) {
412
-        $result = \ibase_modify_user($service_handle, $user_name, $password, $first_name, $middle_name);
413
-    } elseif ($first_name !== null) {
414
-        $result = \ibase_modify_user($service_handle, $user_name, $password, $first_name);
415
-    } else {
416
-        $result = \ibase_modify_user($service_handle, $user_name, $password);
417
-    }
418
-    if ($result === false) {
419
-        throw IbaseException::createFromPhpError();
420
-    }
408
+	error_clear_last();
409
+	if ($last_name !== null) {
410
+		$result = \ibase_modify_user($service_handle, $user_name, $password, $first_name, $middle_name, $last_name);
411
+	} elseif ($middle_name !== null) {
412
+		$result = \ibase_modify_user($service_handle, $user_name, $password, $first_name, $middle_name);
413
+	} elseif ($first_name !== null) {
414
+		$result = \ibase_modify_user($service_handle, $user_name, $password, $first_name);
415
+	} else {
416
+		$result = \ibase_modify_user($service_handle, $user_name, $password);
417
+	}
418
+	if ($result === false) {
419
+		throw IbaseException::createFromPhpError();
420
+	}
421 421
 }
422 422
 
423 423
 
@@ -432,11 +432,11 @@  discard block
 block discarded – undo
432 432
  */
433 433
 function ibase_name_result($result, string $name): void
434 434
 {
435
-    error_clear_last();
436
-    $result = \ibase_name_result($result, $name);
437
-    if ($result === false) {
438
-        throw IbaseException::createFromPhpError();
439
-    }
435
+	error_clear_last();
436
+	$result = \ibase_name_result($result, $name);
437
+	if ($result === false) {
438
+		throw IbaseException::createFromPhpError();
439
+	}
440 440
 }
441 441
 
442 442
 
@@ -482,30 +482,30 @@  discard block
 block discarded – undo
482 482
  */
483 483
 function ibase_pconnect(string $database = null, string $username = null, string $password = null, string $charset = null, int $buffers = null, int $dialect = null, string $role = null, int $sync = null)
484 484
 {
485
-    error_clear_last();
486
-    if ($sync !== null) {
487
-        $result = \ibase_pconnect($database, $username, $password, $charset, $buffers, $dialect, $role, $sync);
488
-    } elseif ($role !== null) {
489
-        $result = \ibase_pconnect($database, $username, $password, $charset, $buffers, $dialect, $role);
490
-    } elseif ($dialect !== null) {
491
-        $result = \ibase_pconnect($database, $username, $password, $charset, $buffers, $dialect);
492
-    } elseif ($buffers !== null) {
493
-        $result = \ibase_pconnect($database, $username, $password, $charset, $buffers);
494
-    } elseif ($charset !== null) {
495
-        $result = \ibase_pconnect($database, $username, $password, $charset);
496
-    } elseif ($password !== null) {
497
-        $result = \ibase_pconnect($database, $username, $password);
498
-    } elseif ($username !== null) {
499
-        $result = \ibase_pconnect($database, $username);
500
-    } elseif ($database !== null) {
501
-        $result = \ibase_pconnect($database);
502
-    } else {
503
-        $result = \ibase_pconnect();
504
-    }
505
-    if ($result === false) {
506
-        throw IbaseException::createFromPhpError();
507
-    }
508
-    return $result;
485
+	error_clear_last();
486
+	if ($sync !== null) {
487
+		$result = \ibase_pconnect($database, $username, $password, $charset, $buffers, $dialect, $role, $sync);
488
+	} elseif ($role !== null) {
489
+		$result = \ibase_pconnect($database, $username, $password, $charset, $buffers, $dialect, $role);
490
+	} elseif ($dialect !== null) {
491
+		$result = \ibase_pconnect($database, $username, $password, $charset, $buffers, $dialect);
492
+	} elseif ($buffers !== null) {
493
+		$result = \ibase_pconnect($database, $username, $password, $charset, $buffers);
494
+	} elseif ($charset !== null) {
495
+		$result = \ibase_pconnect($database, $username, $password, $charset);
496
+	} elseif ($password !== null) {
497
+		$result = \ibase_pconnect($database, $username, $password);
498
+	} elseif ($username !== null) {
499
+		$result = \ibase_pconnect($database, $username);
500
+	} elseif ($database !== null) {
501
+		$result = \ibase_pconnect($database);
502
+	} else {
503
+		$result = \ibase_pconnect();
504
+	}
505
+	if ($result === false) {
506
+		throw IbaseException::createFromPhpError();
507
+	}
508
+	return $result;
509 509
 }
510 510
 
511 511
 
@@ -541,12 +541,12 @@  discard block
 block discarded – undo
541 541
  */
542 542
 function ibase_restore($service_handle, string $source_file, string $dest_db, int $options = 0, bool $verbose = false)
543 543
 {
544
-    error_clear_last();
545
-    $result = \ibase_restore($service_handle, $source_file, $dest_db, $options, $verbose);
546
-    if ($result === false) {
547
-        throw IbaseException::createFromPhpError();
548
-    }
549
-    return $result;
544
+	error_clear_last();
545
+	$result = \ibase_restore($service_handle, $source_file, $dest_db, $options, $verbose);
546
+	if ($result === false) {
547
+		throw IbaseException::createFromPhpError();
548
+	}
549
+	return $result;
550 550
 }
551 551
 
552 552
 
@@ -565,11 +565,11 @@  discard block
 block discarded – undo
565 565
  */
566 566
 function ibase_rollback_ret($link_or_trans_identifier = null): void
567 567
 {
568
-    error_clear_last();
569
-    $result = \ibase_rollback_ret($link_or_trans_identifier);
570
-    if ($result === false) {
571
-        throw IbaseException::createFromPhpError();
572
-    }
568
+	error_clear_last();
569
+	$result = \ibase_rollback_ret($link_or_trans_identifier);
570
+	if ($result === false) {
571
+		throw IbaseException::createFromPhpError();
572
+	}
573 573
 }
574 574
 
575 575
 
@@ -586,11 +586,11 @@  discard block
 block discarded – undo
586 586
  */
587 587
 function ibase_rollback($link_or_trans_identifier = null): void
588 588
 {
589
-    error_clear_last();
590
-    $result = \ibase_rollback($link_or_trans_identifier);
591
-    if ($result === false) {
592
-        throw IbaseException::createFromPhpError();
593
-    }
589
+	error_clear_last();
590
+	$result = \ibase_rollback($link_or_trans_identifier);
591
+	if ($result === false) {
592
+		throw IbaseException::createFromPhpError();
593
+	}
594 594
 }
595 595
 
596 596
 
@@ -607,12 +607,12 @@  discard block
 block discarded – undo
607 607
  */
608 608
 function ibase_service_attach(string $host, string $dba_username, string $dba_password)
609 609
 {
610
-    error_clear_last();
611
-    $result = \ibase_service_attach($host, $dba_username, $dba_password);
612
-    if ($result === false) {
613
-        throw IbaseException::createFromPhpError();
614
-    }
615
-    return $result;
610
+	error_clear_last();
611
+	$result = \ibase_service_attach($host, $dba_username, $dba_password);
612
+	if ($result === false) {
613
+		throw IbaseException::createFromPhpError();
614
+	}
615
+	return $result;
616 616
 }
617 617
 
618 618
 
@@ -625,9 +625,9 @@  discard block
 block discarded – undo
625 625
  */
626 626
 function ibase_service_detach($service_handle): void
627 627
 {
628
-    error_clear_last();
629
-    $result = \ibase_service_detach($service_handle);
630
-    if ($result === false) {
631
-        throw IbaseException::createFromPhpError();
632
-    }
628
+	error_clear_last();
629
+	$result = \ibase_service_detach($service_handle);
630
+	if ($result === false) {
631
+		throw IbaseException::createFromPhpError();
632
+	}
633 633
 }
Please login to merge, or discard this patch.
vendor-bin/php-scoper/vendor/thecodingmachine/safe/generated/libxml.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -14,12 +14,12 @@  discard block
 block discarded – undo
14 14
  */
15 15
 function libxml_get_last_error(): \LibXMLError
16 16
 {
17
-    error_clear_last();
18
-    $result = \libxml_get_last_error();
19
-    if ($result === false) {
20
-        throw LibxmlException::createFromPhpError();
21
-    }
22
-    return $result;
17
+	error_clear_last();
18
+	$result = \libxml_get_last_error();
19
+	if ($result === false) {
20
+		throw LibxmlException::createFromPhpError();
21
+	}
22
+	return $result;
23 23
 }
24 24
 
25 25
 
@@ -35,9 +35,9 @@  discard block
 block discarded – undo
35 35
  */
36 36
 function libxml_set_external_entity_loader(callable $resolver_function): void
37 37
 {
38
-    error_clear_last();
39
-    $result = \libxml_set_external_entity_loader($resolver_function);
40
-    if ($result === false) {
41
-        throw LibxmlException::createFromPhpError();
42
-    }
38
+	error_clear_last();
39
+	$result = \libxml_set_external_entity_loader($resolver_function);
40
+	if ($result === false) {
41
+		throw LibxmlException::createFromPhpError();
42
+	}
43 43
 }
Please login to merge, or discard this patch.
vendor-bin/php-scoper/vendor/thecodingmachine/safe/generated/hash.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -33,12 +33,12 @@  discard block
 block discarded – undo
33 33
  */
34 34
 function hash_hkdf(string $algo, string $ikm, int $length = 0, string $info = '', string $salt = ''): string
35 35
 {
36
-    error_clear_last();
37
-    $result = \hash_hkdf($algo, $ikm, $length, $info, $salt);
38
-    if ($result === false) {
39
-        throw HashException::createFromPhpError();
40
-    }
41
-    return $result;
36
+	error_clear_last();
37
+	$result = \hash_hkdf($algo, $ikm, $length, $info, $salt);
38
+	if ($result === false) {
39
+		throw HashException::createFromPhpError();
40
+	}
41
+	return $result;
42 42
 }
43 43
 
44 44
 
@@ -53,9 +53,9 @@  discard block
 block discarded – undo
53 53
  */
54 54
 function hash_update_file(\HashContext $hcontext, string $filename, ?\HashContext $scontext = null): void
55 55
 {
56
-    error_clear_last();
57
-    $result = \hash_update_file($hcontext, $filename, $scontext);
58
-    if ($result === false) {
59
-        throw HashException::createFromPhpError();
60
-    }
56
+	error_clear_last();
57
+	$result = \hash_update_file($hcontext, $filename, $scontext);
58
+	if ($result === false) {
59
+		throw HashException::createFromPhpError();
60
+	}
61 61
 }
Please login to merge, or discard this patch.
vendor-bin/php-scoper/vendor/thecodingmachine/safe/generated/mysql.php 1 patch
Indentation   +190 added lines, -190 removed lines patch added patch discarded remove patch
@@ -28,11 +28,11 @@  discard block
 block discarded – undo
28 28
  */
29 29
 function mysql_close($link_identifier = null): void
30 30
 {
31
-    error_clear_last();
32
-    $result = \mysql_close($link_identifier);
33
-    if ($result === false) {
34
-        throw MysqlException::createFromPhpError();
35
-    }
31
+	error_clear_last();
32
+	$result = \mysql_close($link_identifier);
33
+	if ($result === false) {
34
+		throw MysqlException::createFromPhpError();
35
+	}
36 36
 }
37 37
 
38 38
 
@@ -75,24 +75,24 @@  discard block
 block discarded – undo
75 75
  */
76 76
 function mysql_connect(string $server = null, string $username = null, string $password = null, bool $new_link = false, int $client_flags = 0)
77 77
 {
78
-    error_clear_last();
79
-    if ($client_flags !== 0) {
80
-        $result = \mysql_connect($server, $username, $password, $new_link, $client_flags);
81
-    } elseif ($new_link !== false) {
82
-        $result = \mysql_connect($server, $username, $password, $new_link);
83
-    } elseif ($password !== null) {
84
-        $result = \mysql_connect($server, $username, $password);
85
-    } elseif ($username !== null) {
86
-        $result = \mysql_connect($server, $username);
87
-    } elseif ($server !== null) {
88
-        $result = \mysql_connect($server);
89
-    } else {
90
-        $result = \mysql_connect();
91
-    }
92
-    if ($result === false) {
93
-        throw MysqlException::createFromPhpError();
94
-    }
95
-    return $result;
78
+	error_clear_last();
79
+	if ($client_flags !== 0) {
80
+		$result = \mysql_connect($server, $username, $password, $new_link, $client_flags);
81
+	} elseif ($new_link !== false) {
82
+		$result = \mysql_connect($server, $username, $password, $new_link);
83
+	} elseif ($password !== null) {
84
+		$result = \mysql_connect($server, $username, $password);
85
+	} elseif ($username !== null) {
86
+		$result = \mysql_connect($server, $username);
87
+	} elseif ($server !== null) {
88
+		$result = \mysql_connect($server);
89
+	} else {
90
+		$result = \mysql_connect();
91
+	}
92
+	if ($result === false) {
93
+		throw MysqlException::createFromPhpError();
94
+	}
95
+	return $result;
96 96
 }
97 97
 
98 98
 
@@ -113,11 +113,11 @@  discard block
 block discarded – undo
113 113
  */
114 114
 function mysql_create_db(string $database_name, $link_identifier = null): void
115 115
 {
116
-    error_clear_last();
117
-    $result = \mysql_create_db($database_name, $link_identifier);
118
-    if ($result === false) {
119
-        throw MysqlException::createFromPhpError();
120
-    }
116
+	error_clear_last();
117
+	$result = \mysql_create_db($database_name, $link_identifier);
118
+	if ($result === false) {
119
+		throw MysqlException::createFromPhpError();
120
+	}
121 121
 }
122 122
 
123 123
 
@@ -144,11 +144,11 @@  discard block
 block discarded – undo
144 144
  */
145 145
 function mysql_data_seek($result, int $row_number): void
146 146
 {
147
-    error_clear_last();
148
-    $result = \mysql_data_seek($result, $row_number);
149
-    if ($result === false) {
150
-        throw MysqlException::createFromPhpError();
151
-    }
147
+	error_clear_last();
148
+	$result = \mysql_data_seek($result, $row_number);
149
+	if ($result === false) {
150
+		throw MysqlException::createFromPhpError();
151
+	}
152 152
 }
153 153
 
154 154
 
@@ -167,12 +167,12 @@  discard block
 block discarded – undo
167 167
  */
168 168
 function mysql_db_name($result, int $row, $field = null): string
169 169
 {
170
-    error_clear_last();
171
-    $result = \mysql_db_name($result, $row, $field);
172
-    if ($result === false) {
173
-        throw MysqlException::createFromPhpError();
174
-    }
175
-    return $result;
170
+	error_clear_last();
171
+	$result = \mysql_db_name($result, $row, $field);
172
+	if ($result === false) {
173
+		throw MysqlException::createFromPhpError();
174
+	}
175
+	return $result;
176 176
 }
177 177
 
178 178
 
@@ -198,12 +198,12 @@  discard block
 block discarded – undo
198 198
  */
199 199
 function mysql_db_query(string $database, string $query, $link_identifier = null)
200 200
 {
201
-    error_clear_last();
202
-    $result = \mysql_db_query($database, $query, $link_identifier);
203
-    if ($result === false) {
204
-        throw MysqlException::createFromPhpError();
205
-    }
206
-    return $result;
201
+	error_clear_last();
202
+	$result = \mysql_db_query($database, $query, $link_identifier);
203
+	if ($result === false) {
204
+		throw MysqlException::createFromPhpError();
205
+	}
206
+	return $result;
207 207
 }
208 208
 
209 209
 
@@ -226,11 +226,11 @@  discard block
 block discarded – undo
226 226
  */
227 227
 function mysql_drop_db(string $database_name, $link_identifier = null): void
228 228
 {
229
-    error_clear_last();
230
-    $result = \mysql_drop_db($database_name, $link_identifier);
231
-    if ($result === false) {
232
-        throw MysqlException::createFromPhpError();
233
-    }
229
+	error_clear_last();
230
+	$result = \mysql_drop_db($database_name, $link_identifier);
231
+	if ($result === false) {
232
+		throw MysqlException::createFromPhpError();
233
+	}
234 234
 }
235 235
 
236 236
 
@@ -255,12 +255,12 @@  discard block
 block discarded – undo
255 255
  */
256 256
 function mysql_fetch_lengths($result): array
257 257
 {
258
-    error_clear_last();
259
-    $result = \mysql_fetch_lengths($result);
260
-    if ($result === false) {
261
-        throw MysqlException::createFromPhpError();
262
-    }
263
-    return $result;
258
+	error_clear_last();
259
+	$result = \mysql_fetch_lengths($result);
260
+	if ($result === false) {
261
+		throw MysqlException::createFromPhpError();
262
+	}
263
+	return $result;
264 264
 }
265 265
 
266 266
 
@@ -291,12 +291,12 @@  discard block
 block discarded – undo
291 291
  */
292 292
 function mysql_field_flags($result, int $field_offset): string
293 293
 {
294
-    error_clear_last();
295
-    $result = \mysql_field_flags($result, $field_offset);
296
-    if ($result === false) {
297
-        throw MysqlException::createFromPhpError();
298
-    }
299
-    return $result;
294
+	error_clear_last();
295
+	$result = \mysql_field_flags($result, $field_offset);
296
+	if ($result === false) {
297
+		throw MysqlException::createFromPhpError();
298
+	}
299
+	return $result;
300 300
 }
301 301
 
302 302
 
@@ -317,12 +317,12 @@  discard block
 block discarded – undo
317 317
  */
318 318
 function mysql_field_len($result, int $field_offset): int
319 319
 {
320
-    error_clear_last();
321
-    $result = \mysql_field_len($result, $field_offset);
322
-    if ($result === false) {
323
-        throw MysqlException::createFromPhpError();
324
-    }
325
-    return $result;
320
+	error_clear_last();
321
+	$result = \mysql_field_len($result, $field_offset);
322
+	if ($result === false) {
323
+		throw MysqlException::createFromPhpError();
324
+	}
325
+	return $result;
326 326
 }
327 327
 
328 328
 
@@ -343,12 +343,12 @@  discard block
 block discarded – undo
343 343
  */
344 344
 function mysql_field_name($result, int $field_offset): string
345 345
 {
346
-    error_clear_last();
347
-    $result = \mysql_field_name($result, $field_offset);
348
-    if ($result === false) {
349
-        throw MysqlException::createFromPhpError();
350
-    }
351
-    return $result;
346
+	error_clear_last();
347
+	$result = \mysql_field_name($result, $field_offset);
348
+	if ($result === false) {
349
+		throw MysqlException::createFromPhpError();
350
+	}
351
+	return $result;
352 352
 }
353 353
 
354 354
 
@@ -370,11 +370,11 @@  discard block
 block discarded – undo
370 370
  */
371 371
 function mysql_field_seek($result, int $field_offset): void
372 372
 {
373
-    error_clear_last();
374
-    $result = \mysql_field_seek($result, $field_offset);
375
-    if ($result === false) {
376
-        throw MysqlException::createFromPhpError();
377
-    }
373
+	error_clear_last();
374
+	$result = \mysql_field_seek($result, $field_offset);
375
+	if ($result === false) {
376
+		throw MysqlException::createFromPhpError();
377
+	}
378 378
 }
379 379
 
380 380
 
@@ -395,11 +395,11 @@  discard block
 block discarded – undo
395 395
  */
396 396
 function mysql_free_result($result): void
397 397
 {
398
-    error_clear_last();
399
-    $result = \mysql_free_result($result);
400
-    if ($result === false) {
401
-        throw MysqlException::createFromPhpError();
402
-    }
398
+	error_clear_last();
399
+	$result = \mysql_free_result($result);
400
+	if ($result === false) {
401
+		throw MysqlException::createFromPhpError();
402
+	}
403 403
 }
404 404
 
405 405
 
@@ -420,12 +420,12 @@  discard block
 block discarded – undo
420 420
  */
421 421
 function mysql_get_host_info($link_identifier = null): string
422 422
 {
423
-    error_clear_last();
424
-    $result = \mysql_get_host_info($link_identifier);
425
-    if ($result === false) {
426
-        throw MysqlException::createFromPhpError();
427
-    }
428
-    return $result;
423
+	error_clear_last();
424
+	$result = \mysql_get_host_info($link_identifier);
425
+	if ($result === false) {
426
+		throw MysqlException::createFromPhpError();
427
+	}
428
+	return $result;
429 429
 }
430 430
 
431 431
 
@@ -444,12 +444,12 @@  discard block
 block discarded – undo
444 444
  */
445 445
 function mysql_get_proto_info($link_identifier = null): int
446 446
 {
447
-    error_clear_last();
448
-    $result = \mysql_get_proto_info($link_identifier);
449
-    if ($result === false) {
450
-        throw MysqlException::createFromPhpError();
451
-    }
452
-    return $result;
447
+	error_clear_last();
448
+	$result = \mysql_get_proto_info($link_identifier);
449
+	if ($result === false) {
450
+		throw MysqlException::createFromPhpError();
451
+	}
452
+	return $result;
453 453
 }
454 454
 
455 455
 
@@ -468,12 +468,12 @@  discard block
 block discarded – undo
468 468
  */
469 469
 function mysql_get_server_info($link_identifier = null): string
470 470
 {
471
-    error_clear_last();
472
-    $result = \mysql_get_server_info($link_identifier);
473
-    if ($result === false) {
474
-        throw MysqlException::createFromPhpError();
475
-    }
476
-    return $result;
471
+	error_clear_last();
472
+	$result = \mysql_get_server_info($link_identifier);
473
+	if ($result === false) {
474
+		throw MysqlException::createFromPhpError();
475
+	}
476
+	return $result;
477 477
 }
478 478
 
479 479
 
@@ -494,12 +494,12 @@  discard block
 block discarded – undo
494 494
  */
495 495
 function mysql_info($link_identifier = null): string
496 496
 {
497
-    error_clear_last();
498
-    $result = \mysql_info($link_identifier);
499
-    if ($result === false) {
500
-        throw MysqlException::createFromPhpError();
501
-    }
502
-    return $result;
497
+	error_clear_last();
498
+	$result = \mysql_info($link_identifier);
499
+	if ($result === false) {
500
+		throw MysqlException::createFromPhpError();
501
+	}
502
+	return $result;
503 503
 }
504 504
 
505 505
 
@@ -521,12 +521,12 @@  discard block
 block discarded – undo
521 521
  */
522 522
 function mysql_list_dbs($link_identifier = null)
523 523
 {
524
-    error_clear_last();
525
-    $result = \mysql_list_dbs($link_identifier);
526
-    if ($result === false) {
527
-        throw MysqlException::createFromPhpError();
528
-    }
529
-    return $result;
524
+	error_clear_last();
525
+	$result = \mysql_list_dbs($link_identifier);
526
+	if ($result === false) {
527
+		throw MysqlException::createFromPhpError();
528
+	}
529
+	return $result;
530 530
 }
531 531
 
532 532
 
@@ -556,12 +556,12 @@  discard block
 block discarded – undo
556 556
  */
557 557
 function mysql_list_fields(string $database_name, string $table_name, $link_identifier = null)
558 558
 {
559
-    error_clear_last();
560
-    $result = \mysql_list_fields($database_name, $table_name, $link_identifier);
561
-    if ($result === false) {
562
-        throw MysqlException::createFromPhpError();
563
-    }
564
-    return $result;
559
+	error_clear_last();
560
+	$result = \mysql_list_fields($database_name, $table_name, $link_identifier);
561
+	if ($result === false) {
562
+		throw MysqlException::createFromPhpError();
563
+	}
564
+	return $result;
565 565
 }
566 566
 
567 567
 
@@ -580,12 +580,12 @@  discard block
 block discarded – undo
580 580
  */
581 581
 function mysql_list_processes($link_identifier = null)
582 582
 {
583
-    error_clear_last();
584
-    $result = \mysql_list_processes($link_identifier);
585
-    if ($result === false) {
586
-        throw MysqlException::createFromPhpError();
587
-    }
588
-    return $result;
583
+	error_clear_last();
584
+	$result = \mysql_list_processes($link_identifier);
585
+	if ($result === false) {
586
+		throw MysqlException::createFromPhpError();
587
+	}
588
+	return $result;
589 589
 }
590 590
 
591 591
 
@@ -613,12 +613,12 @@  discard block
 block discarded – undo
613 613
  */
614 614
 function mysql_list_tables(string $database, $link_identifier = null)
615 615
 {
616
-    error_clear_last();
617
-    $result = \mysql_list_tables($database, $link_identifier);
618
-    if ($result === false) {
619
-        throw MysqlException::createFromPhpError();
620
-    }
621
-    return $result;
616
+	error_clear_last();
617
+	$result = \mysql_list_tables($database, $link_identifier);
618
+	if ($result === false) {
619
+		throw MysqlException::createFromPhpError();
620
+	}
621
+	return $result;
622 622
 }
623 623
 
624 624
 
@@ -635,12 +635,12 @@  discard block
 block discarded – undo
635 635
  */
636 636
 function mysql_num_fields($result): int
637 637
 {
638
-    error_clear_last();
639
-    $result = \mysql_num_fields($result);
640
-    if ($result === false) {
641
-        throw MysqlException::createFromPhpError();
642
-    }
643
-    return $result;
638
+	error_clear_last();
639
+	$result = \mysql_num_fields($result);
640
+	if ($result === false) {
641
+		throw MysqlException::createFromPhpError();
642
+	}
643
+	return $result;
644 644
 }
645 645
 
646 646
 
@@ -659,12 +659,12 @@  discard block
 block discarded – undo
659 659
  */
660 660
 function mysql_num_rows($result): int
661 661
 {
662
-    error_clear_last();
663
-    $result = \mysql_num_rows($result);
664
-    if ($result === false) {
665
-        throw MysqlException::createFromPhpError();
666
-    }
667
-    return $result;
662
+	error_clear_last();
663
+	$result = \mysql_num_rows($result);
664
+	if ($result === false) {
665
+		throw MysqlException::createFromPhpError();
666
+	}
667
+	return $result;
668 668
 }
669 669
 
670 670
 
@@ -709,12 +709,12 @@  discard block
 block discarded – undo
709 709
  */
710 710
 function mysql_query(string $query, $link_identifier = null)
711 711
 {
712
-    error_clear_last();
713
-    $result = \mysql_query($query, $link_identifier);
714
-    if ($result === false) {
715
-        throw MysqlException::createFromPhpError();
716
-    }
717
-    return $result;
712
+	error_clear_last();
713
+	$result = \mysql_query($query, $link_identifier);
714
+	if ($result === false) {
715
+		throw MysqlException::createFromPhpError();
716
+	}
717
+	return $result;
718 718
 }
719 719
 
720 720
 
@@ -746,12 +746,12 @@  discard block
 block discarded – undo
746 746
  */
747 747
 function mysql_real_escape_string(string $unescaped_string, $link_identifier = null): string
748 748
 {
749
-    error_clear_last();
750
-    $result = \mysql_real_escape_string($unescaped_string, $link_identifier);
751
-    if ($result === false) {
752
-        throw MysqlException::createFromPhpError();
753
-    }
754
-    return $result;
749
+	error_clear_last();
750
+	$result = \mysql_real_escape_string($unescaped_string, $link_identifier);
751
+	if ($result === false) {
752
+		throw MysqlException::createFromPhpError();
753
+	}
754
+	return $result;
755 755
 }
756 756
 
757 757
 
@@ -783,12 +783,12 @@  discard block
 block discarded – undo
783 783
  */
784 784
 function mysql_result($result, int $row, $field = 0): string
785 785
 {
786
-    error_clear_last();
787
-    $result = \mysql_result($result, $row, $field);
788
-    if ($result === false) {
789
-        throw MysqlException::createFromPhpError();
790
-    }
791
-    return $result;
786
+	error_clear_last();
787
+	$result = \mysql_result($result, $row, $field);
788
+	if ($result === false) {
789
+		throw MysqlException::createFromPhpError();
790
+	}
791
+	return $result;
792 792
 }
793 793
 
794 794
 
@@ -809,11 +809,11 @@  discard block
 block discarded – undo
809 809
  */
810 810
 function mysql_select_db(string $database_name, $link_identifier = null): void
811 811
 {
812
-    error_clear_last();
813
-    $result = \mysql_select_db($database_name, $link_identifier);
814
-    if ($result === false) {
815
-        throw MysqlException::createFromPhpError();
816
-    }
812
+	error_clear_last();
813
+	$result = \mysql_select_db($database_name, $link_identifier);
814
+	if ($result === false) {
815
+		throw MysqlException::createFromPhpError();
816
+	}
817 817
 }
818 818
 
819 819
 
@@ -832,11 +832,11 @@  discard block
 block discarded – undo
832 832
  */
833 833
 function mysql_set_charset(string $charset, $link_identifier = null): void
834 834
 {
835
-    error_clear_last();
836
-    $result = \mysql_set_charset($charset, $link_identifier);
837
-    if ($result === false) {
838
-        throw MysqlException::createFromPhpError();
839
-    }
835
+	error_clear_last();
836
+	$result = \mysql_set_charset($charset, $link_identifier);
837
+	if ($result === false) {
838
+		throw MysqlException::createFromPhpError();
839
+	}
840 840
 }
841 841
 
842 842
 
@@ -860,12 +860,12 @@  discard block
 block discarded – undo
860 860
  */
861 861
 function mysql_tablename($result, int $i): string
862 862
 {
863
-    error_clear_last();
864
-    $result = \mysql_tablename($result, $i);
865
-    if ($result === false) {
866
-        throw MysqlException::createFromPhpError();
867
-    }
868
-    return $result;
863
+	error_clear_last();
864
+	$result = \mysql_tablename($result, $i);
865
+	if ($result === false) {
866
+		throw MysqlException::createFromPhpError();
867
+	}
868
+	return $result;
869 869
 }
870 870
 
871 871
 
@@ -886,12 +886,12 @@  discard block
 block discarded – undo
886 886
  */
887 887
 function mysql_thread_id($link_identifier = null): int
888 888
 {
889
-    error_clear_last();
890
-    $result = \mysql_thread_id($link_identifier);
891
-    if ($result === false) {
892
-        throw MysqlException::createFromPhpError();
893
-    }
894
-    return $result;
889
+	error_clear_last();
890
+	$result = \mysql_thread_id($link_identifier);
891
+	if ($result === false) {
892
+		throw MysqlException::createFromPhpError();
893
+	}
894
+	return $result;
895 895
 }
896 896
 
897 897
 
@@ -929,10 +929,10 @@  discard block
 block discarded – undo
929 929
  */
930 930
 function mysql_unbuffered_query(string $query, $link_identifier = null)
931 931
 {
932
-    error_clear_last();
933
-    $result = \mysql_unbuffered_query($query, $link_identifier);
934
-    if ($result === false) {
935
-        throw MysqlException::createFromPhpError();
936
-    }
937
-    return $result;
932
+	error_clear_last();
933
+	$result = \mysql_unbuffered_query($query, $link_identifier);
934
+	if ($result === false) {
935
+		throw MysqlException::createFromPhpError();
936
+	}
937
+	return $result;
938 938
 }
Please login to merge, or discard this patch.
vendor-bin/php-scoper/vendor/thecodingmachine/safe/generated/ldap.php 1 patch
Indentation   +265 added lines, -265 removed lines patch added patch discarded remove patch
@@ -17,12 +17,12 @@  discard block
 block discarded – undo
17 17
  */
18 18
 function ldap_add_ext($link_identifier, string $dn, array $entry, array $serverctrls = null)
19 19
 {
20
-    error_clear_last();
21
-    $result = \ldap_add_ext($link_identifier, $dn, $entry, $serverctrls);
22
-    if ($result === false) {
23
-        throw LdapException::createFromPhpError();
24
-    }
25
-    return $result;
20
+	error_clear_last();
21
+	$result = \ldap_add_ext($link_identifier, $dn, $entry, $serverctrls);
22
+	if ($result === false) {
23
+		throw LdapException::createFromPhpError();
24
+	}
25
+	return $result;
26 26
 }
27 27
 
28 28
 
@@ -47,11 +47,11 @@  discard block
 block discarded – undo
47 47
  */
48 48
 function ldap_add($link_identifier, string $dn, array $entry, array $serverctrls = null): void
49 49
 {
50
-    error_clear_last();
51
-    $result = \ldap_add($link_identifier, $dn, $entry, $serverctrls);
52
-    if ($result === false) {
53
-        throw LdapException::createFromPhpError();
54
-    }
50
+	error_clear_last();
51
+	$result = \ldap_add($link_identifier, $dn, $entry, $serverctrls);
52
+	if ($result === false) {
53
+		throw LdapException::createFromPhpError();
54
+	}
55 55
 }
56 56
 
57 57
 
@@ -68,12 +68,12 @@  discard block
 block discarded – undo
68 68
  */
69 69
 function ldap_bind_ext($link_identifier, ?string $bind_rdn = null, ?string $bind_password = null, array $serverctrls = null)
70 70
 {
71
-    error_clear_last();
72
-    $result = \ldap_bind_ext($link_identifier, $bind_rdn, $bind_password, $serverctrls);
73
-    if ($result === false) {
74
-        throw LdapException::createFromPhpError();
75
-    }
76
-    return $result;
71
+	error_clear_last();
72
+	$result = \ldap_bind_ext($link_identifier, $bind_rdn, $bind_password, $serverctrls);
73
+	if ($result === false) {
74
+		throw LdapException::createFromPhpError();
75
+	}
76
+	return $result;
77 77
 }
78 78
 
79 79
 
@@ -88,11 +88,11 @@  discard block
 block discarded – undo
88 88
  */
89 89
 function ldap_bind($link_identifier, ?string $bind_rdn = null, ?string $bind_password = null): void
90 90
 {
91
-    error_clear_last();
92
-    $result = \ldap_bind($link_identifier, $bind_rdn, $bind_password);
93
-    if ($result === false) {
94
-        throw LdapException::createFromPhpError();
95
-    }
91
+	error_clear_last();
92
+	$result = \ldap_bind($link_identifier, $bind_rdn, $bind_password);
93
+	if ($result === false) {
94
+		throw LdapException::createFromPhpError();
95
+	}
96 96
 }
97 97
 
98 98
 
@@ -108,11 +108,11 @@  discard block
 block discarded – undo
108 108
  */
109 109
 function ldap_control_paged_result_response($link, $result, ?string &$cookie = null, ?int &$estimated = null): void
110 110
 {
111
-    error_clear_last();
112
-    $result = \ldap_control_paged_result_response($link, $result, $cookie, $estimated);
113
-    if ($result === false) {
114
-        throw LdapException::createFromPhpError();
115
-    }
111
+	error_clear_last();
112
+	$result = \ldap_control_paged_result_response($link, $result, $cookie, $estimated);
113
+	if ($result === false) {
114
+		throw LdapException::createFromPhpError();
115
+	}
116 116
 }
117 117
 
118 118
 
@@ -131,11 +131,11 @@  discard block
 block discarded – undo
131 131
  */
132 132
 function ldap_control_paged_result($link, int $pagesize, bool $iscritical = false, string $cookie = ""): void
133 133
 {
134
-    error_clear_last();
135
-    $result = \ldap_control_paged_result($link, $pagesize, $iscritical, $cookie);
136
-    if ($result === false) {
137
-        throw LdapException::createFromPhpError();
138
-    }
134
+	error_clear_last();
135
+	$result = \ldap_control_paged_result($link, $pagesize, $iscritical, $cookie);
136
+	if ($result === false) {
137
+		throw LdapException::createFromPhpError();
138
+	}
139 139
 }
140 140
 
141 141
 
@@ -151,12 +151,12 @@  discard block
 block discarded – undo
151 151
  */
152 152
 function ldap_count_entries($link_identifier, $result_identifier): int
153 153
 {
154
-    error_clear_last();
155
-    $result = \ldap_count_entries($link_identifier, $result_identifier);
156
-    if ($result === false) {
157
-        throw LdapException::createFromPhpError();
158
-    }
159
-    return $result;
154
+	error_clear_last();
155
+	$result = \ldap_count_entries($link_identifier, $result_identifier);
156
+	if ($result === false) {
157
+		throw LdapException::createFromPhpError();
158
+	}
159
+	return $result;
160 160
 }
161 161
 
162 162
 
@@ -172,12 +172,12 @@  discard block
 block discarded – undo
172 172
  */
173 173
 function ldap_delete_ext($link_identifier, string $dn, array $serverctrls = null)
174 174
 {
175
-    error_clear_last();
176
-    $result = \ldap_delete_ext($link_identifier, $dn, $serverctrls);
177
-    if ($result === false) {
178
-        throw LdapException::createFromPhpError();
179
-    }
180
-    return $result;
175
+	error_clear_last();
176
+	$result = \ldap_delete_ext($link_identifier, $dn, $serverctrls);
177
+	if ($result === false) {
178
+		throw LdapException::createFromPhpError();
179
+	}
180
+	return $result;
181 181
 }
182 182
 
183 183
 
@@ -192,11 +192,11 @@  discard block
 block discarded – undo
192 192
  */
193 193
 function ldap_delete($link_identifier, string $dn, array $serverctrls = null): void
194 194
 {
195
-    error_clear_last();
196
-    $result = \ldap_delete($link_identifier, $dn, $serverctrls);
197
-    if ($result === false) {
198
-        throw LdapException::createFromPhpError();
199
-    }
195
+	error_clear_last();
196
+	$result = \ldap_delete($link_identifier, $dn, $serverctrls);
197
+	if ($result === false) {
198
+		throw LdapException::createFromPhpError();
199
+	}
200 200
 }
201 201
 
202 202
 
@@ -217,12 +217,12 @@  discard block
 block discarded – undo
217 217
  */
218 218
 function ldap_exop_passwd($link, string $user = "", string $oldpw = "", string $newpw = "", array &$serverctrls = null)
219 219
 {
220
-    error_clear_last();
221
-    $result = \ldap_exop_passwd($link, $user, $oldpw, $newpw, $serverctrls);
222
-    if ($result === false) {
223
-        throw LdapException::createFromPhpError();
224
-    }
225
-    return $result;
220
+	error_clear_last();
221
+	$result = \ldap_exop_passwd($link, $user, $oldpw, $newpw, $serverctrls);
222
+	if ($result === false) {
223
+		throw LdapException::createFromPhpError();
224
+	}
225
+	return $result;
226 226
 }
227 227
 
228 228
 
@@ -236,12 +236,12 @@  discard block
 block discarded – undo
236 236
  */
237 237
 function ldap_exop_whoami($link): string
238 238
 {
239
-    error_clear_last();
240
-    $result = \ldap_exop_whoami($link);
241
-    if ($result === false) {
242
-        throw LdapException::createFromPhpError();
243
-    }
244
-    return $result;
239
+	error_clear_last();
240
+	$result = \ldap_exop_whoami($link);
241
+	if ($result === false) {
242
+		throw LdapException::createFromPhpError();
243
+	}
244
+	return $result;
245 245
 }
246 246
 
247 247
 
@@ -265,12 +265,12 @@  discard block
 block discarded – undo
265 265
  */
266 266
 function ldap_exop($link, string $reqoid, string $reqdata = null, ?array $serverctrls = null, ?string &$retdata = null, ?string &$retoid = null)
267 267
 {
268
-    error_clear_last();
269
-    $result = \ldap_exop($link, $reqoid, $reqdata, $serverctrls, $retdata, $retoid);
270
-    if ($result === false) {
271
-        throw LdapException::createFromPhpError();
272
-    }
273
-    return $result;
268
+	error_clear_last();
269
+	$result = \ldap_exop($link, $reqoid, $reqdata, $serverctrls, $retdata, $retoid);
270
+	if ($result === false) {
271
+		throw LdapException::createFromPhpError();
272
+	}
273
+	return $result;
274 274
 }
275 275
 
276 276
 
@@ -293,12 +293,12 @@  discard block
 block discarded – undo
293 293
  */
294 294
 function ldap_explode_dn(string $dn, int $with_attrib): array
295 295
 {
296
-    error_clear_last();
297
-    $result = \ldap_explode_dn($dn, $with_attrib);
298
-    if ($result === false) {
299
-        throw LdapException::createFromPhpError();
300
-    }
301
-    return $result;
296
+	error_clear_last();
297
+	$result = \ldap_explode_dn($dn, $with_attrib);
298
+	if ($result === false) {
299
+		throw LdapException::createFromPhpError();
300
+	}
301
+	return $result;
302 302
 }
303 303
 
304 304
 
@@ -318,12 +318,12 @@  discard block
 block discarded – undo
318 318
  */
319 319
 function ldap_first_attribute($link_identifier, $result_entry_identifier): string
320 320
 {
321
-    error_clear_last();
322
-    $result = \ldap_first_attribute($link_identifier, $result_entry_identifier);
323
-    if ($result === false) {
324
-        throw LdapException::createFromPhpError();
325
-    }
326
-    return $result;
321
+	error_clear_last();
322
+	$result = \ldap_first_attribute($link_identifier, $result_entry_identifier);
323
+	if ($result === false) {
324
+		throw LdapException::createFromPhpError();
325
+	}
326
+	return $result;
327 327
 }
328 328
 
329 329
 
@@ -345,12 +345,12 @@  discard block
 block discarded – undo
345 345
  */
346 346
 function ldap_first_entry($link_identifier, $result_identifier)
347 347
 {
348
-    error_clear_last();
349
-    $result = \ldap_first_entry($link_identifier, $result_identifier);
350
-    if ($result === false) {
351
-        throw LdapException::createFromPhpError();
352
-    }
353
-    return $result;
348
+	error_clear_last();
349
+	$result = \ldap_first_entry($link_identifier, $result_identifier);
350
+	if ($result === false) {
351
+		throw LdapException::createFromPhpError();
352
+	}
353
+	return $result;
354 354
 }
355 355
 
356 356
 
@@ -369,11 +369,11 @@  discard block
 block discarded – undo
369 369
  */
370 370
 function ldap_free_result($result_identifier): void
371 371
 {
372
-    error_clear_last();
373
-    $result = \ldap_free_result($result_identifier);
374
-    if ($result === false) {
375
-        throw LdapException::createFromPhpError();
376
-    }
372
+	error_clear_last();
373
+	$result = \ldap_free_result($result_identifier);
374
+	if ($result === false) {
375
+		throw LdapException::createFromPhpError();
376
+	}
377 377
 }
378 378
 
379 379
 
@@ -401,12 +401,12 @@  discard block
 block discarded – undo
401 401
  */
402 402
 function ldap_get_attributes($link_identifier, $result_entry_identifier): array
403 403
 {
404
-    error_clear_last();
405
-    $result = \ldap_get_attributes($link_identifier, $result_entry_identifier);
406
-    if ($result === false) {
407
-        throw LdapException::createFromPhpError();
408
-    }
409
-    return $result;
404
+	error_clear_last();
405
+	$result = \ldap_get_attributes($link_identifier, $result_entry_identifier);
406
+	if ($result === false) {
407
+		throw LdapException::createFromPhpError();
408
+	}
409
+	return $result;
410 410
 }
411 411
 
412 412
 
@@ -421,12 +421,12 @@  discard block
 block discarded – undo
421 421
  */
422 422
 function ldap_get_dn($link_identifier, $result_entry_identifier): string
423 423
 {
424
-    error_clear_last();
425
-    $result = \ldap_get_dn($link_identifier, $result_entry_identifier);
426
-    if ($result === false) {
427
-        throw LdapException::createFromPhpError();
428
-    }
429
-    return $result;
424
+	error_clear_last();
425
+	$result = \ldap_get_dn($link_identifier, $result_entry_identifier);
426
+	if ($result === false) {
427
+		throw LdapException::createFromPhpError();
428
+	}
429
+	return $result;
430 430
 }
431 431
 
432 432
 
@@ -453,12 +453,12 @@  discard block
 block discarded – undo
453 453
  */
454 454
 function ldap_get_entries($link_identifier, $result_identifier): array
455 455
 {
456
-    error_clear_last();
457
-    $result = \ldap_get_entries($link_identifier, $result_identifier);
458
-    if ($result === false) {
459
-        throw LdapException::createFromPhpError();
460
-    }
461
-    return $result;
456
+	error_clear_last();
457
+	$result = \ldap_get_entries($link_identifier, $result_identifier);
458
+	if ($result === false) {
459
+		throw LdapException::createFromPhpError();
460
+	}
461
+	return $result;
462 462
 }
463 463
 
464 464
 
@@ -646,11 +646,11 @@  discard block
 block discarded – undo
646 646
  */
647 647
 function ldap_get_option($link_identifier, int $option, &$retval): void
648 648
 {
649
-    error_clear_last();
650
-    $result = \ldap_get_option($link_identifier, $option, $retval);
651
-    if ($result === false) {
652
-        throw LdapException::createFromPhpError();
653
-    }
649
+	error_clear_last();
650
+	$result = \ldap_get_option($link_identifier, $option, $retval);
651
+	if ($result === false) {
652
+		throw LdapException::createFromPhpError();
653
+	}
654 654
 }
655 655
 
656 656
 
@@ -672,12 +672,12 @@  discard block
 block discarded – undo
672 672
  */
673 673
 function ldap_get_values_len($link_identifier, $result_entry_identifier, string $attribute): array
674 674
 {
675
-    error_clear_last();
676
-    $result = \ldap_get_values_len($link_identifier, $result_entry_identifier, $attribute);
677
-    if ($result === false) {
678
-        throw LdapException::createFromPhpError();
679
-    }
680
-    return $result;
675
+	error_clear_last();
676
+	$result = \ldap_get_values_len($link_identifier, $result_entry_identifier, $attribute);
677
+	if ($result === false) {
678
+		throw LdapException::createFromPhpError();
679
+	}
680
+	return $result;
681 681
 }
682 682
 
683 683
 
@@ -716,12 +716,12 @@  discard block
 block discarded – undo
716 716
  */
717 717
 function ldap_get_values($link_identifier, $result_entry_identifier, string $attribute): array
718 718
 {
719
-    error_clear_last();
720
-    $result = \ldap_get_values($link_identifier, $result_entry_identifier, $attribute);
721
-    if ($result === false) {
722
-        throw LdapException::createFromPhpError();
723
-    }
724
-    return $result;
719
+	error_clear_last();
720
+	$result = \ldap_get_values($link_identifier, $result_entry_identifier, $attribute);
721
+	if ($result === false) {
722
+		throw LdapException::createFromPhpError();
723
+	}
724
+	return $result;
725 725
 }
726 726
 
727 727
 
@@ -800,26 +800,26 @@  discard block
 block discarded – undo
800 800
  */
801 801
 function ldap_list($link_identifier, string $base_dn, string $filter, array $attributes = null, int $attrsonly = 0, int $sizelimit = -1, int $timelimit = -1, int $deref = LDAP_DEREF_NEVER, array $serverctrls = null)
802 802
 {
803
-    error_clear_last();
804
-    if ($serverctrls !== null) {
805
-        $result = \ldap_list($link_identifier, $base_dn, $filter, $attributes, $attrsonly, $sizelimit, $timelimit, $deref, $serverctrls);
806
-    } elseif ($deref !== LDAP_DEREF_NEVER) {
807
-        $result = \ldap_list($link_identifier, $base_dn, $filter, $attributes, $attrsonly, $sizelimit, $timelimit, $deref);
808
-    } elseif ($timelimit !== -1) {
809
-        $result = \ldap_list($link_identifier, $base_dn, $filter, $attributes, $attrsonly, $sizelimit, $timelimit);
810
-    } elseif ($sizelimit !== -1) {
811
-        $result = \ldap_list($link_identifier, $base_dn, $filter, $attributes, $attrsonly, $sizelimit);
812
-    } elseif ($attrsonly !== 0) {
813
-        $result = \ldap_list($link_identifier, $base_dn, $filter, $attributes, $attrsonly);
814
-    } elseif ($attributes !== null) {
815
-        $result = \ldap_list($link_identifier, $base_dn, $filter, $attributes);
816
-    } else {
817
-        $result = \ldap_list($link_identifier, $base_dn, $filter);
818
-    }
819
-    if ($result === false) {
820
-        throw LdapException::createFromPhpError();
821
-    }
822
-    return $result;
803
+	error_clear_last();
804
+	if ($serverctrls !== null) {
805
+		$result = \ldap_list($link_identifier, $base_dn, $filter, $attributes, $attrsonly, $sizelimit, $timelimit, $deref, $serverctrls);
806
+	} elseif ($deref !== LDAP_DEREF_NEVER) {
807
+		$result = \ldap_list($link_identifier, $base_dn, $filter, $attributes, $attrsonly, $sizelimit, $timelimit, $deref);
808
+	} elseif ($timelimit !== -1) {
809
+		$result = \ldap_list($link_identifier, $base_dn, $filter, $attributes, $attrsonly, $sizelimit, $timelimit);
810
+	} elseif ($sizelimit !== -1) {
811
+		$result = \ldap_list($link_identifier, $base_dn, $filter, $attributes, $attrsonly, $sizelimit);
812
+	} elseif ($attrsonly !== 0) {
813
+		$result = \ldap_list($link_identifier, $base_dn, $filter, $attributes, $attrsonly);
814
+	} elseif ($attributes !== null) {
815
+		$result = \ldap_list($link_identifier, $base_dn, $filter, $attributes);
816
+	} else {
817
+		$result = \ldap_list($link_identifier, $base_dn, $filter);
818
+	}
819
+	if ($result === false) {
820
+		throw LdapException::createFromPhpError();
821
+	}
822
+	return $result;
823 823
 }
824 824
 
825 825
 
@@ -836,12 +836,12 @@  discard block
 block discarded – undo
836 836
  */
837 837
 function ldap_mod_add_ext($link_identifier, string $dn, array $entry, array $serverctrls = null)
838 838
 {
839
-    error_clear_last();
840
-    $result = \ldap_mod_add_ext($link_identifier, $dn, $entry, $serverctrls);
841
-    if ($result === false) {
842
-        throw LdapException::createFromPhpError();
843
-    }
844
-    return $result;
839
+	error_clear_last();
840
+	$result = \ldap_mod_add_ext($link_identifier, $dn, $entry, $serverctrls);
841
+	if ($result === false) {
842
+		throw LdapException::createFromPhpError();
843
+	}
844
+	return $result;
845 845
 }
846 846
 
847 847
 
@@ -858,11 +858,11 @@  discard block
 block discarded – undo
858 858
  */
859 859
 function ldap_mod_add($link_identifier, string $dn, array $entry, array $serverctrls = null): void
860 860
 {
861
-    error_clear_last();
862
-    $result = \ldap_mod_add($link_identifier, $dn, $entry, $serverctrls);
863
-    if ($result === false) {
864
-        throw LdapException::createFromPhpError();
865
-    }
861
+	error_clear_last();
862
+	$result = \ldap_mod_add($link_identifier, $dn, $entry, $serverctrls);
863
+	if ($result === false) {
864
+		throw LdapException::createFromPhpError();
865
+	}
866 866
 }
867 867
 
868 868
 
@@ -879,12 +879,12 @@  discard block
 block discarded – undo
879 879
  */
880 880
 function ldap_mod_del_ext($link_identifier, string $dn, array $entry, array $serverctrls = null)
881 881
 {
882
-    error_clear_last();
883
-    $result = \ldap_mod_del_ext($link_identifier, $dn, $entry, $serverctrls);
884
-    if ($result === false) {
885
-        throw LdapException::createFromPhpError();
886
-    }
887
-    return $result;
882
+	error_clear_last();
883
+	$result = \ldap_mod_del_ext($link_identifier, $dn, $entry, $serverctrls);
884
+	if ($result === false) {
885
+		throw LdapException::createFromPhpError();
886
+	}
887
+	return $result;
888 888
 }
889 889
 
890 890
 
@@ -902,11 +902,11 @@  discard block
 block discarded – undo
902 902
  */
903 903
 function ldap_mod_del($link_identifier, string $dn, array $entry, array $serverctrls = null): void
904 904
 {
905
-    error_clear_last();
906
-    $result = \ldap_mod_del($link_identifier, $dn, $entry, $serverctrls);
907
-    if ($result === false) {
908
-        throw LdapException::createFromPhpError();
909
-    }
905
+	error_clear_last();
906
+	$result = \ldap_mod_del($link_identifier, $dn, $entry, $serverctrls);
907
+	if ($result === false) {
908
+		throw LdapException::createFromPhpError();
909
+	}
910 910
 }
911 911
 
912 912
 
@@ -923,12 +923,12 @@  discard block
 block discarded – undo
923 923
  */
924 924
 function ldap_mod_replace_ext($link_identifier, string $dn, array $entry, array $serverctrls = null)
925 925
 {
926
-    error_clear_last();
927
-    $result = \ldap_mod_replace_ext($link_identifier, $dn, $entry, $serverctrls);
928
-    if ($result === false) {
929
-        throw LdapException::createFromPhpError();
930
-    }
931
-    return $result;
926
+	error_clear_last();
927
+	$result = \ldap_mod_replace_ext($link_identifier, $dn, $entry, $serverctrls);
928
+	if ($result === false) {
929
+		throw LdapException::createFromPhpError();
930
+	}
931
+	return $result;
932 932
 }
933 933
 
934 934
 
@@ -945,11 +945,11 @@  discard block
 block discarded – undo
945 945
  */
946 946
 function ldap_mod_replace($link_identifier, string $dn, array $entry, array $serverctrls = null): void
947 947
 {
948
-    error_clear_last();
949
-    $result = \ldap_mod_replace($link_identifier, $dn, $entry, $serverctrls);
950
-    if ($result === false) {
951
-        throw LdapException::createFromPhpError();
952
-    }
948
+	error_clear_last();
949
+	$result = \ldap_mod_replace($link_identifier, $dn, $entry, $serverctrls);
950
+	if ($result === false) {
951
+		throw LdapException::createFromPhpError();
952
+	}
953 953
 }
954 954
 
955 955
 
@@ -1040,11 +1040,11 @@  discard block
 block discarded – undo
1040 1040
  */
1041 1041
 function ldap_modify_batch($link_identifier, string $dn, array $entry, array $serverctrls = null): void
1042 1042
 {
1043
-    error_clear_last();
1044
-    $result = \ldap_modify_batch($link_identifier, $dn, $entry, $serverctrls);
1045
-    if ($result === false) {
1046
-        throw LdapException::createFromPhpError();
1047
-    }
1043
+	error_clear_last();
1044
+	$result = \ldap_modify_batch($link_identifier, $dn, $entry, $serverctrls);
1045
+	if ($result === false) {
1046
+		throw LdapException::createFromPhpError();
1047
+	}
1048 1048
 }
1049 1049
 
1050 1050
 
@@ -1063,12 +1063,12 @@  discard block
 block discarded – undo
1063 1063
  */
1064 1064
 function ldap_next_attribute($link_identifier, $result_entry_identifier): string
1065 1065
 {
1066
-    error_clear_last();
1067
-    $result = \ldap_next_attribute($link_identifier, $result_entry_identifier);
1068
-    if ($result === false) {
1069
-        throw LdapException::createFromPhpError();
1070
-    }
1071
-    return $result;
1066
+	error_clear_last();
1067
+	$result = \ldap_next_attribute($link_identifier, $result_entry_identifier);
1068
+	if ($result === false) {
1069
+		throw LdapException::createFromPhpError();
1070
+	}
1071
+	return $result;
1072 1072
 }
1073 1073
 
1074 1074
 
@@ -1084,11 +1084,11 @@  discard block
 block discarded – undo
1084 1084
  */
1085 1085
 function ldap_parse_exop($link, $result, ?string &$retdata = null, ?string &$retoid = null): void
1086 1086
 {
1087
-    error_clear_last();
1088
-    $result = \ldap_parse_exop($link, $result, $retdata, $retoid);
1089
-    if ($result === false) {
1090
-        throw LdapException::createFromPhpError();
1091
-    }
1087
+	error_clear_last();
1088
+	$result = \ldap_parse_exop($link, $result, $retdata, $retoid);
1089
+	if ($result === false) {
1090
+		throw LdapException::createFromPhpError();
1091
+	}
1092 1092
 }
1093 1093
 
1094 1094
 
@@ -1113,11 +1113,11 @@  discard block
 block discarded – undo
1113 1113
  */
1114 1114
 function ldap_parse_result($link, $result, ?int &$errcode, ?string &$matcheddn = null, ?string &$errmsg = null, ?array &$referrals = null, ?array &$serverctrls = null): void
1115 1115
 {
1116
-    error_clear_last();
1117
-    $result = \ldap_parse_result($link, $result, $errcode, $matcheddn, $errmsg, $referrals, $serverctrls);
1118
-    if ($result === false) {
1119
-        throw LdapException::createFromPhpError();
1120
-    }
1116
+	error_clear_last();
1117
+	$result = \ldap_parse_result($link, $result, $errcode, $matcheddn, $errmsg, $referrals, $serverctrls);
1118
+	if ($result === false) {
1119
+		throw LdapException::createFromPhpError();
1120
+	}
1121 1121
 }
1122 1122
 
1123 1123
 
@@ -1195,26 +1195,26 @@  discard block
 block discarded – undo
1195 1195
  */
1196 1196
 function ldap_read($link_identifier, string $base_dn, string $filter, array $attributes = null, int $attrsonly = 0, int $sizelimit = -1, int $timelimit = -1, int $deref = LDAP_DEREF_NEVER, array $serverctrls = null)
1197 1197
 {
1198
-    error_clear_last();
1199
-    if ($serverctrls !== null) {
1200
-        $result = \ldap_read($link_identifier, $base_dn, $filter, $attributes, $attrsonly, $sizelimit, $timelimit, $deref, $serverctrls);
1201
-    } elseif ($deref !== LDAP_DEREF_NEVER) {
1202
-        $result = \ldap_read($link_identifier, $base_dn, $filter, $attributes, $attrsonly, $sizelimit, $timelimit, $deref);
1203
-    } elseif ($timelimit !== -1) {
1204
-        $result = \ldap_read($link_identifier, $base_dn, $filter, $attributes, $attrsonly, $sizelimit, $timelimit);
1205
-    } elseif ($sizelimit !== -1) {
1206
-        $result = \ldap_read($link_identifier, $base_dn, $filter, $attributes, $attrsonly, $sizelimit);
1207
-    } elseif ($attrsonly !== 0) {
1208
-        $result = \ldap_read($link_identifier, $base_dn, $filter, $attributes, $attrsonly);
1209
-    } elseif ($attributes !== null) {
1210
-        $result = \ldap_read($link_identifier, $base_dn, $filter, $attributes);
1211
-    } else {
1212
-        $result = \ldap_read($link_identifier, $base_dn, $filter);
1213
-    }
1214
-    if ($result === false) {
1215
-        throw LdapException::createFromPhpError();
1216
-    }
1217
-    return $result;
1198
+	error_clear_last();
1199
+	if ($serverctrls !== null) {
1200
+		$result = \ldap_read($link_identifier, $base_dn, $filter, $attributes, $attrsonly, $sizelimit, $timelimit, $deref, $serverctrls);
1201
+	} elseif ($deref !== LDAP_DEREF_NEVER) {
1202
+		$result = \ldap_read($link_identifier, $base_dn, $filter, $attributes, $attrsonly, $sizelimit, $timelimit, $deref);
1203
+	} elseif ($timelimit !== -1) {
1204
+		$result = \ldap_read($link_identifier, $base_dn, $filter, $attributes, $attrsonly, $sizelimit, $timelimit);
1205
+	} elseif ($sizelimit !== -1) {
1206
+		$result = \ldap_read($link_identifier, $base_dn, $filter, $attributes, $attrsonly, $sizelimit);
1207
+	} elseif ($attrsonly !== 0) {
1208
+		$result = \ldap_read($link_identifier, $base_dn, $filter, $attributes, $attrsonly);
1209
+	} elseif ($attributes !== null) {
1210
+		$result = \ldap_read($link_identifier, $base_dn, $filter, $attributes);
1211
+	} else {
1212
+		$result = \ldap_read($link_identifier, $base_dn, $filter);
1213
+	}
1214
+	if ($result === false) {
1215
+		throw LdapException::createFromPhpError();
1216
+	}
1217
+	return $result;
1218 1218
 }
1219 1219
 
1220 1220
 
@@ -1233,12 +1233,12 @@  discard block
 block discarded – undo
1233 1233
  */
1234 1234
 function ldap_rename_ext($link_identifier, string $dn, string $newrdn, string $newparent, bool $deleteoldrdn, array $serverctrls = null)
1235 1235
 {
1236
-    error_clear_last();
1237
-    $result = \ldap_rename_ext($link_identifier, $dn, $newrdn, $newparent, $deleteoldrdn, $serverctrls);
1238
-    if ($result === false) {
1239
-        throw LdapException::createFromPhpError();
1240
-    }
1241
-    return $result;
1236
+	error_clear_last();
1237
+	$result = \ldap_rename_ext($link_identifier, $dn, $newrdn, $newparent, $deleteoldrdn, $serverctrls);
1238
+	if ($result === false) {
1239
+		throw LdapException::createFromPhpError();
1240
+	}
1241
+	return $result;
1242 1242
 }
1243 1243
 
1244 1244
 
@@ -1257,11 +1257,11 @@  discard block
 block discarded – undo
1257 1257
  */
1258 1258
 function ldap_rename($link_identifier, string $dn, string $newrdn, string $newparent, bool $deleteoldrdn, array $serverctrls = null): void
1259 1259
 {
1260
-    error_clear_last();
1261
-    $result = \ldap_rename($link_identifier, $dn, $newrdn, $newparent, $deleteoldrdn, $serverctrls);
1262
-    if ($result === false) {
1263
-        throw LdapException::createFromPhpError();
1264
-    }
1260
+	error_clear_last();
1261
+	$result = \ldap_rename($link_identifier, $dn, $newrdn, $newparent, $deleteoldrdn, $serverctrls);
1262
+	if ($result === false) {
1263
+		throw LdapException::createFromPhpError();
1264
+	}
1265 1265
 }
1266 1266
 
1267 1267
 
@@ -1281,11 +1281,11 @@  discard block
 block discarded – undo
1281 1281
  */
1282 1282
 function ldap_sasl_bind($link, string $binddn = null, string $password = null, string $sasl_mech = null, string $sasl_realm = null, string $sasl_authc_id = null, string $sasl_authz_id = null, string $props = null): void
1283 1283
 {
1284
-    error_clear_last();
1285
-    $result = \ldap_sasl_bind($link, $binddn, $password, $sasl_mech, $sasl_realm, $sasl_authc_id, $sasl_authz_id, $props);
1286
-    if ($result === false) {
1287
-        throw LdapException::createFromPhpError();
1288
-    }
1284
+	error_clear_last();
1285
+	$result = \ldap_sasl_bind($link, $binddn, $password, $sasl_mech, $sasl_realm, $sasl_authc_id, $sasl_authz_id, $props);
1286
+	if ($result === false) {
1287
+		throw LdapException::createFromPhpError();
1288
+	}
1289 1289
 }
1290 1290
 
1291 1291
 
@@ -1377,26 +1377,26 @@  discard block
 block discarded – undo
1377 1377
  */
1378 1378
 function ldap_search($link_identifier, string $base_dn, string $filter, array $attributes = null, int $attrsonly = 0, int $sizelimit = -1, int $timelimit = -1, int $deref = LDAP_DEREF_NEVER, array $serverctrls = null)
1379 1379
 {
1380
-    error_clear_last();
1381
-    if ($serverctrls !== null) {
1382
-        $result = \ldap_search($link_identifier, $base_dn, $filter, $attributes, $attrsonly, $sizelimit, $timelimit, $deref, $serverctrls);
1383
-    } elseif ($deref !== LDAP_DEREF_NEVER) {
1384
-        $result = \ldap_search($link_identifier, $base_dn, $filter, $attributes, $attrsonly, $sizelimit, $timelimit, $deref);
1385
-    } elseif ($timelimit !== -1) {
1386
-        $result = \ldap_search($link_identifier, $base_dn, $filter, $attributes, $attrsonly, $sizelimit, $timelimit);
1387
-    } elseif ($sizelimit !== -1) {
1388
-        $result = \ldap_search($link_identifier, $base_dn, $filter, $attributes, $attrsonly, $sizelimit);
1389
-    } elseif ($attrsonly !== 0) {
1390
-        $result = \ldap_search($link_identifier, $base_dn, $filter, $attributes, $attrsonly);
1391
-    } elseif ($attributes !== null) {
1392
-        $result = \ldap_search($link_identifier, $base_dn, $filter, $attributes);
1393
-    } else {
1394
-        $result = \ldap_search($link_identifier, $base_dn, $filter);
1395
-    }
1396
-    if ($result === false) {
1397
-        throw LdapException::createFromPhpError();
1398
-    }
1399
-    return $result;
1380
+	error_clear_last();
1381
+	if ($serverctrls !== null) {
1382
+		$result = \ldap_search($link_identifier, $base_dn, $filter, $attributes, $attrsonly, $sizelimit, $timelimit, $deref, $serverctrls);
1383
+	} elseif ($deref !== LDAP_DEREF_NEVER) {
1384
+		$result = \ldap_search($link_identifier, $base_dn, $filter, $attributes, $attrsonly, $sizelimit, $timelimit, $deref);
1385
+	} elseif ($timelimit !== -1) {
1386
+		$result = \ldap_search($link_identifier, $base_dn, $filter, $attributes, $attrsonly, $sizelimit, $timelimit);
1387
+	} elseif ($sizelimit !== -1) {
1388
+		$result = \ldap_search($link_identifier, $base_dn, $filter, $attributes, $attrsonly, $sizelimit);
1389
+	} elseif ($attrsonly !== 0) {
1390
+		$result = \ldap_search($link_identifier, $base_dn, $filter, $attributes, $attrsonly);
1391
+	} elseif ($attributes !== null) {
1392
+		$result = \ldap_search($link_identifier, $base_dn, $filter, $attributes);
1393
+	} else {
1394
+		$result = \ldap_search($link_identifier, $base_dn, $filter);
1395
+	}
1396
+	if ($result === false) {
1397
+		throw LdapException::createFromPhpError();
1398
+	}
1399
+	return $result;
1400 1400
 }
1401 1401
 
1402 1402
 
@@ -1578,11 +1578,11 @@  discard block
 block discarded – undo
1578 1578
  */
1579 1579
 function ldap_set_option($link_identifier, int $option, $newval): void
1580 1580
 {
1581
-    error_clear_last();
1582
-    $result = \ldap_set_option($link_identifier, $option, $newval);
1583
-    if ($result === false) {
1584
-        throw LdapException::createFromPhpError();
1585
-    }
1581
+	error_clear_last();
1582
+	$result = \ldap_set_option($link_identifier, $option, $newval);
1583
+	if ($result === false) {
1584
+		throw LdapException::createFromPhpError();
1585
+	}
1586 1586
 }
1587 1587
 
1588 1588
 
@@ -1595,9 +1595,9 @@  discard block
 block discarded – undo
1595 1595
  */
1596 1596
 function ldap_unbind($link_identifier): void
1597 1597
 {
1598
-    error_clear_last();
1599
-    $result = \ldap_unbind($link_identifier);
1600
-    if ($result === false) {
1601
-        throw LdapException::createFromPhpError();
1602
-    }
1598
+	error_clear_last();
1599
+	$result = \ldap_unbind($link_identifier);
1600
+	if ($result === false) {
1601
+		throw LdapException::createFromPhpError();
1602
+	}
1603 1603
 }
Please login to merge, or discard this patch.
vendor-bin/php-scoper/vendor/thecodingmachine/safe/generated/ingres-ii.php 1 patch
Indentation   +90 added lines, -90 removed lines patch added patch discarded remove patch
@@ -29,11 +29,11 @@  discard block
 block discarded – undo
29 29
  */
30 30
 function ingres_autocommit($link): void
31 31
 {
32
-    error_clear_last();
33
-    $result = \ingres_autocommit($link);
34
-    if ($result === false) {
35
-        throw IngresiiException::createFromPhpError();
36
-    }
32
+	error_clear_last();
33
+	$result = \ingres_autocommit($link);
34
+	if ($result === false) {
35
+		throw IngresiiException::createFromPhpError();
36
+	}
37 37
 }
38 38
 
39 39
 
@@ -51,11 +51,11 @@  discard block
 block discarded – undo
51 51
  */
52 52
 function ingres_close($link): void
53 53
 {
54
-    error_clear_last();
55
-    $result = \ingres_close($link);
56
-    if ($result === false) {
57
-        throw IngresiiException::createFromPhpError();
58
-    }
54
+	error_clear_last();
55
+	$result = \ingres_close($link);
56
+	if ($result === false) {
57
+		throw IngresiiException::createFromPhpError();
58
+	}
59 59
 }
60 60
 
61 61
 
@@ -80,11 +80,11 @@  discard block
 block discarded – undo
80 80
  */
81 81
 function ingres_commit($link): void
82 82
 {
83
-    error_clear_last();
84
-    $result = \ingres_commit($link);
85
-    if ($result === false) {
86
-        throw IngresiiException::createFromPhpError();
87
-    }
83
+	error_clear_last();
84
+	$result = \ingres_commit($link);
85
+	if ($result === false) {
86
+		throw IngresiiException::createFromPhpError();
87
+	}
88 88
 }
89 89
 
90 90
 
@@ -334,22 +334,22 @@  discard block
 block discarded – undo
334 334
  */
335 335
 function ingres_connect(string $database = null, string $username = null, string $password = null, array $options = null)
336 336
 {
337
-    error_clear_last();
338
-    if ($options !== null) {
339
-        $result = \ingres_connect($database, $username, $password, $options);
340
-    } elseif ($password !== null) {
341
-        $result = \ingres_connect($database, $username, $password);
342
-    } elseif ($username !== null) {
343
-        $result = \ingres_connect($database, $username);
344
-    } elseif ($database !== null) {
345
-        $result = \ingres_connect($database);
346
-    } else {
347
-        $result = \ingres_connect();
348
-    }
349
-    if ($result === false) {
350
-        throw IngresiiException::createFromPhpError();
351
-    }
352
-    return $result;
337
+	error_clear_last();
338
+	if ($options !== null) {
339
+		$result = \ingres_connect($database, $username, $password, $options);
340
+	} elseif ($password !== null) {
341
+		$result = \ingres_connect($database, $username, $password);
342
+	} elseif ($username !== null) {
343
+		$result = \ingres_connect($database, $username);
344
+	} elseif ($database !== null) {
345
+		$result = \ingres_connect($database);
346
+	} else {
347
+		$result = \ingres_connect();
348
+	}
349
+	if ($result === false) {
350
+		throw IngresiiException::createFromPhpError();
351
+	}
352
+	return $result;
353 353
 }
354 354
 
355 355
 
@@ -366,17 +366,17 @@  discard block
 block discarded – undo
366 366
  */
367 367
 function ingres_execute($result, array $params = null, string $types = null): void
368 368
 {
369
-    error_clear_last();
370
-    if ($types !== null) {
371
-        $result = \ingres_execute($result, $params, $types);
372
-    } elseif ($params !== null) {
373
-        $result = \ingres_execute($result, $params);
374
-    } else {
375
-        $result = \ingres_execute($result);
376
-    }
377
-    if ($result === false) {
378
-        throw IngresiiException::createFromPhpError();
379
-    }
369
+	error_clear_last();
370
+	if ($types !== null) {
371
+		$result = \ingres_execute($result, $params, $types);
372
+	} elseif ($params !== null) {
373
+		$result = \ingres_execute($result, $params);
374
+	} else {
375
+		$result = \ingres_execute($result);
376
+	}
377
+	if ($result === false) {
378
+		throw IngresiiException::createFromPhpError();
379
+	}
380 380
 }
381 381
 
382 382
 
@@ -407,12 +407,12 @@  discard block
 block discarded – undo
407 407
  */
408 408
 function ingres_field_name($result, int $index): string
409 409
 {
410
-    error_clear_last();
411
-    $result = \ingres_field_name($result, $index);
412
-    if ($result === false) {
413
-        throw IngresiiException::createFromPhpError();
414
-    }
415
-    return $result;
410
+	error_clear_last();
411
+	$result = \ingres_field_name($result, $index);
412
+	if ($result === false) {
413
+		throw IngresiiException::createFromPhpError();
414
+	}
415
+	return $result;
416 416
 }
417 417
 
418 418
 
@@ -451,12 +451,12 @@  discard block
 block discarded – undo
451 451
  */
452 452
 function ingres_field_type($result, int $index): string
453 453
 {
454
-    error_clear_last();
455
-    $result = \ingres_field_type($result, $index);
456
-    if ($result === false) {
457
-        throw IngresiiException::createFromPhpError();
458
-    }
459
-    return $result;
454
+	error_clear_last();
455
+	$result = \ingres_field_type($result, $index);
456
+	if ($result === false) {
457
+		throw IngresiiException::createFromPhpError();
458
+	}
459
+	return $result;
460 460
 }
461 461
 
462 462
 
@@ -469,11 +469,11 @@  discard block
 block discarded – undo
469 469
  */
470 470
 function ingres_free_result($result): void
471 471
 {
472
-    error_clear_last();
473
-    $result = \ingres_free_result($result);
474
-    if ($result === false) {
475
-        throw IngresiiException::createFromPhpError();
476
-    }
472
+	error_clear_last();
473
+	$result = \ingres_free_result($result);
474
+	if ($result === false) {
475
+		throw IngresiiException::createFromPhpError();
476
+	}
477 477
 }
478 478
 
479 479
 
@@ -505,22 +505,22 @@  discard block
 block discarded – undo
505 505
  */
506 506
 function ingres_pconnect(string $database = null, string $username = null, string $password = null, array $options = null)
507 507
 {
508
-    error_clear_last();
509
-    if ($options !== null) {
510
-        $result = \ingres_pconnect($database, $username, $password, $options);
511
-    } elseif ($password !== null) {
512
-        $result = \ingres_pconnect($database, $username, $password);
513
-    } elseif ($username !== null) {
514
-        $result = \ingres_pconnect($database, $username);
515
-    } elseif ($database !== null) {
516
-        $result = \ingres_pconnect($database);
517
-    } else {
518
-        $result = \ingres_pconnect();
519
-    }
520
-    if ($result === false) {
521
-        throw IngresiiException::createFromPhpError();
522
-    }
523
-    return $result;
508
+	error_clear_last();
509
+	if ($options !== null) {
510
+		$result = \ingres_pconnect($database, $username, $password, $options);
511
+	} elseif ($password !== null) {
512
+		$result = \ingres_pconnect($database, $username, $password);
513
+	} elseif ($username !== null) {
514
+		$result = \ingres_pconnect($database, $username);
515
+	} elseif ($database !== null) {
516
+		$result = \ingres_pconnect($database);
517
+	} else {
518
+		$result = \ingres_pconnect();
519
+	}
520
+	if ($result === false) {
521
+		throw IngresiiException::createFromPhpError();
522
+	}
523
+	return $result;
524 524
 }
525 525
 
526 526
 
@@ -541,11 +541,11 @@  discard block
 block discarded – undo
541 541
  */
542 542
 function ingres_result_seek($result, int $position): void
543 543
 {
544
-    error_clear_last();
545
-    $result = \ingres_result_seek($result, $position);
546
-    if ($result === false) {
547
-        throw IngresiiException::createFromPhpError();
548
-    }
544
+	error_clear_last();
545
+	$result = \ingres_result_seek($result, $position);
546
+	if ($result === false) {
547
+		throw IngresiiException::createFromPhpError();
548
+	}
549 549
 }
550 550
 
551 551
 
@@ -563,11 +563,11 @@  discard block
 block discarded – undo
563 563
  */
564 564
 function ingres_rollback($link): void
565 565
 {
566
-    error_clear_last();
567
-    $result = \ingres_rollback($link);
568
-    if ($result === false) {
569
-        throw IngresiiException::createFromPhpError();
570
-    }
566
+	error_clear_last();
567
+	$result = \ingres_rollback($link);
568
+	if ($result === false) {
569
+		throw IngresiiException::createFromPhpError();
570
+	}
571 571
 }
572 572
 
573 573
 
@@ -712,9 +712,9 @@  discard block
 block discarded – undo
712 712
  */
713 713
 function ingres_set_environment($link, array $options): void
714 714
 {
715
-    error_clear_last();
716
-    $result = \ingres_set_environment($link, $options);
717
-    if ($result === false) {
718
-        throw IngresiiException::createFromPhpError();
719
-    }
715
+	error_clear_last();
716
+	$result = \ingres_set_environment($link, $options);
717
+	if ($result === false) {
718
+		throw IngresiiException::createFromPhpError();
719
+	}
720 720
 }
Please login to merge, or discard this patch.