Completed
Push — master ( 6a3ea2...b97e84 )
by Maxence
13s
created
vendor-bin/php-scoper/vendor/thecodingmachine/safe/deprecated/mssql.php 1 patch
Indentation   +115 added lines, -115 removed lines patch added patch discarded remove patch
@@ -35,11 +35,11 @@  discard block
 block discarded – undo
35 35
  */
36 36
 function mssql_bind($stmt, string $param_name, &$var, int $type, bool $is_output = false, bool $is_null = false, int $maxlen = -1): void
37 37
 {
38
-    error_clear_last();
39
-    $result = \mssql_bind($stmt, $param_name, $var, $type, $is_output, $is_null, $maxlen);
40
-    if ($result === false) {
41
-        throw MssqlException::createFromPhpError();
42
-    }
38
+	error_clear_last();
39
+	$result = \mssql_bind($stmt, $param_name, $var, $type, $is_output, $is_null, $maxlen);
40
+	if ($result === false) {
41
+		throw MssqlException::createFromPhpError();
42
+	}
43 43
 }
44 44
 
45 45
 
@@ -62,15 +62,15 @@  discard block
 block discarded – undo
62 62
  */
63 63
 function mssql_close($link_identifier = null): void
64 64
 {
65
-    error_clear_last();
66
-    if ($link_identifier !== null) {
67
-        $result = \mssql_close($link_identifier);
68
-    } else {
69
-        $result = \mssql_close();
70
-    }
71
-    if ($result === false) {
72
-        throw MssqlException::createFromPhpError();
73
-    }
65
+	error_clear_last();
66
+	if ($link_identifier !== null) {
67
+		$result = \mssql_close($link_identifier);
68
+	} else {
69
+		$result = \mssql_close();
70
+	}
71
+	if ($result === false) {
72
+		throw MssqlException::createFromPhpError();
73
+	}
74 74
 }
75 75
 
76 76
 
@@ -99,22 +99,22 @@  discard block
 block discarded – undo
99 99
  */
100 100
 function mssql_connect(string $servername = null, string $username = null, string $password = null, bool $new_link = false)
101 101
 {
102
-    error_clear_last();
103
-    if ($new_link !== false) {
104
-        $result = \mssql_connect($servername, $username, $password, $new_link);
105
-    } elseif ($password !== null) {
106
-        $result = \mssql_connect($servername, $username, $password);
107
-    } elseif ($username !== null) {
108
-        $result = \mssql_connect($servername, $username);
109
-    } elseif ($servername !== null) {
110
-        $result = \mssql_connect($servername);
111
-    } else {
112
-        $result = \mssql_connect();
113
-    }
114
-    if ($result === false) {
115
-        throw MssqlException::createFromPhpError();
116
-    }
117
-    return $result;
102
+	error_clear_last();
103
+	if ($new_link !== false) {
104
+		$result = \mssql_connect($servername, $username, $password, $new_link);
105
+	} elseif ($password !== null) {
106
+		$result = \mssql_connect($servername, $username, $password);
107
+	} elseif ($username !== null) {
108
+		$result = \mssql_connect($servername, $username);
109
+	} elseif ($servername !== null) {
110
+		$result = \mssql_connect($servername);
111
+	} else {
112
+		$result = \mssql_connect();
113
+	}
114
+	if ($result === false) {
115
+		throw MssqlException::createFromPhpError();
116
+	}
117
+	return $result;
118 118
 }
119 119
 
120 120
 
@@ -132,11 +132,11 @@  discard block
 block discarded – undo
132 132
  */
133 133
 function mssql_data_seek($result_identifier, int $row_number): void
134 134
 {
135
-    error_clear_last();
136
-    $result = \mssql_data_seek($result_identifier, $row_number);
137
-    if ($result === false) {
138
-        throw MssqlException::createFromPhpError();
139
-    }
135
+	error_clear_last();
136
+	$result = \mssql_data_seek($result_identifier, $row_number);
137
+	if ($result === false) {
138
+		throw MssqlException::createFromPhpError();
139
+	}
140 140
 }
141 141
 
142 142
 
@@ -153,12 +153,12 @@  discard block
 block discarded – undo
153 153
  */
154 154
 function mssql_field_length($result, int $offset = -1): int
155 155
 {
156
-    error_clear_last();
157
-    $result = \mssql_field_length($result, $offset);
158
-    if ($result === false) {
159
-        throw MssqlException::createFromPhpError();
160
-    }
161
-    return $result;
156
+	error_clear_last();
157
+	$result = \mssql_field_length($result, $offset);
158
+	if ($result === false) {
159
+		throw MssqlException::createFromPhpError();
160
+	}
161
+	return $result;
162 162
 }
163 163
 
164 164
 
@@ -175,12 +175,12 @@  discard block
 block discarded – undo
175 175
  */
176 176
 function mssql_field_name($result, int $offset = -1): string
177 177
 {
178
-    error_clear_last();
179
-    $result = \mssql_field_name($result, $offset);
180
-    if ($result === false) {
181
-        throw MssqlException::createFromPhpError();
182
-    }
183
-    return $result;
178
+	error_clear_last();
179
+	$result = \mssql_field_name($result, $offset);
180
+	if ($result === false) {
181
+		throw MssqlException::createFromPhpError();
182
+	}
183
+	return $result;
184 184
 }
185 185
 
186 186
 
@@ -197,11 +197,11 @@  discard block
 block discarded – undo
197 197
  */
198 198
 function mssql_field_seek($result, int $field_offset): void
199 199
 {
200
-    error_clear_last();
201
-    $result = \mssql_field_seek($result, $field_offset);
202
-    if ($result === false) {
203
-        throw MssqlException::createFromPhpError();
204
-    }
200
+	error_clear_last();
201
+	$result = \mssql_field_seek($result, $field_offset);
202
+	if ($result === false) {
203
+		throw MssqlException::createFromPhpError();
204
+	}
205 205
 }
206 206
 
207 207
 
@@ -218,12 +218,12 @@  discard block
 block discarded – undo
218 218
  */
219 219
 function mssql_field_type($result, int $offset = -1): string
220 220
 {
221
-    error_clear_last();
222
-    $result = \mssql_field_type($result, $offset);
223
-    if ($result === false) {
224
-        throw MssqlException::createFromPhpError();
225
-    }
226
-    return $result;
221
+	error_clear_last();
222
+	$result = \mssql_field_type($result, $offset);
223
+	if ($result === false) {
224
+		throw MssqlException::createFromPhpError();
225
+	}
226
+	return $result;
227 227
 }
228 228
 
229 229
 
@@ -242,11 +242,11 @@  discard block
 block discarded – undo
242 242
  */
243 243
 function mssql_free_result($result): void
244 244
 {
245
-    error_clear_last();
246
-    $result = \mssql_free_result($result);
247
-    if ($result === false) {
248
-        throw MssqlException::createFromPhpError();
249
-    }
245
+	error_clear_last();
246
+	$result = \mssql_free_result($result);
247
+	if ($result === false) {
248
+		throw MssqlException::createFromPhpError();
249
+	}
250 250
 }
251 251
 
252 252
 
@@ -264,11 +264,11 @@  discard block
 block discarded – undo
264 264
  */
265 265
 function mssql_free_statement($stmt): void
266 266
 {
267
-    error_clear_last();
268
-    $result = \mssql_free_statement($stmt);
269
-    if ($result === false) {
270
-        throw MssqlException::createFromPhpError();
271
-    }
267
+	error_clear_last();
268
+	$result = \mssql_free_statement($stmt);
269
+	if ($result === false) {
270
+		throw MssqlException::createFromPhpError();
271
+	}
272 272
 }
273 273
 
274 274
 
@@ -286,16 +286,16 @@  discard block
 block discarded – undo
286 286
  */
287 287
 function mssql_init(string $sp_name, $link_identifier = null)
288 288
 {
289
-    error_clear_last();
290
-    if ($link_identifier !== null) {
291
-        $result = \mssql_init($sp_name, $link_identifier);
292
-    } else {
293
-        $result = \mssql_init($sp_name);
294
-    }
295
-    if ($result === false) {
296
-        throw MssqlException::createFromPhpError();
297
-    }
298
-    return $result;
289
+	error_clear_last();
290
+	if ($link_identifier !== null) {
291
+		$result = \mssql_init($sp_name, $link_identifier);
292
+	} else {
293
+		$result = \mssql_init($sp_name);
294
+	}
295
+	if ($result === false) {
296
+		throw MssqlException::createFromPhpError();
297
+	}
298
+	return $result;
299 299
 }
300 300
 
301 301
 
@@ -332,22 +332,22 @@  discard block
 block discarded – undo
332 332
  */
333 333
 function mssql_pconnect(string $servername = null, string $username = null, string $password = null, bool $new_link = false)
334 334
 {
335
-    error_clear_last();
336
-    if ($new_link !== false) {
337
-        $result = \mssql_pconnect($servername, $username, $password, $new_link);
338
-    } elseif ($password !== null) {
339
-        $result = \mssql_pconnect($servername, $username, $password);
340
-    } elseif ($username !== null) {
341
-        $result = \mssql_pconnect($servername, $username);
342
-    } elseif ($servername !== null) {
343
-        $result = \mssql_pconnect($servername);
344
-    } else {
345
-        $result = \mssql_pconnect();
346
-    }
347
-    if ($result === false) {
348
-        throw MssqlException::createFromPhpError();
349
-    }
350
-    return $result;
335
+	error_clear_last();
336
+	if ($new_link !== false) {
337
+		$result = \mssql_pconnect($servername, $username, $password, $new_link);
338
+	} elseif ($password !== null) {
339
+		$result = \mssql_pconnect($servername, $username, $password);
340
+	} elseif ($username !== null) {
341
+		$result = \mssql_pconnect($servername, $username);
342
+	} elseif ($servername !== null) {
343
+		$result = \mssql_pconnect($servername);
344
+	} else {
345
+		$result = \mssql_pconnect();
346
+	}
347
+	if ($result === false) {
348
+		throw MssqlException::createFromPhpError();
349
+	}
350
+	return $result;
351 351
 }
352 352
 
353 353
 
@@ -372,18 +372,18 @@  discard block
 block discarded – undo
372 372
  */
373 373
 function mssql_query(string $query, $link_identifier = null, int $batch_size = 0)
374 374
 {
375
-    error_clear_last();
376
-    if ($batch_size !== 0) {
377
-        $result = \mssql_query($query, $link_identifier, $batch_size);
378
-    } elseif ($link_identifier !== null) {
379
-        $result = \mssql_query($query, $link_identifier);
380
-    } else {
381
-        $result = \mssql_query($query);
382
-    }
383
-    if ($result === false) {
384
-        throw MssqlException::createFromPhpError();
385
-    }
386
-    return $result;
375
+	error_clear_last();
376
+	if ($batch_size !== 0) {
377
+		$result = \mssql_query($query, $link_identifier, $batch_size);
378
+	} elseif ($link_identifier !== null) {
379
+		$result = \mssql_query($query, $link_identifier);
380
+	} else {
381
+		$result = \mssql_query($query);
382
+	}
383
+	if ($result === false) {
384
+		throw MssqlException::createFromPhpError();
385
+	}
386
+	return $result;
387 387
 }
388 388
 
389 389
 
@@ -414,13 +414,13 @@  discard block
 block discarded – undo
414 414
  */
415 415
 function mssql_select_db(string $database_name, $link_identifier = null): void
416 416
 {
417
-    error_clear_last();
418
-    if ($link_identifier !== null) {
419
-        $result = \mssql_select_db($database_name, $link_identifier);
420
-    } else {
421
-        $result = \mssql_select_db($database_name);
422
-    }
423
-    if ($result === false) {
424
-        throw MssqlException::createFromPhpError();
425
-    }
417
+	error_clear_last();
418
+	if ($link_identifier !== null) {
419
+		$result = \mssql_select_db($database_name, $link_identifier);
420
+	} else {
421
+		$result = \mssql_select_db($database_name);
422
+	}
423
+	if ($result === false) {
424
+		throw MssqlException::createFromPhpError();
425
+	}
426 426
 }
Please login to merge, or discard this patch.
vendor/thecodingmachine/safe/deprecated/Exceptions/StatsException.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -3,9 +3,9 @@
 block discarded – undo
3 3
 
4 4
 class StatsException extends \ErrorException implements SafeExceptionInterface
5 5
 {
6
-    public static function createFromPhpError(): self
7
-    {
8
-        $error = error_get_last();
9
-        return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
10
-    }
6
+	public static function createFromPhpError(): self
7
+	{
8
+		$error = error_get_last();
9
+		return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
10
+	}
11 11
 }
Please login to merge, or discard this patch.
vendor/thecodingmachine/safe/deprecated/Exceptions/MssqlException.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -3,9 +3,9 @@
 block discarded – undo
3 3
 
4 4
 class MssqlException extends \ErrorException implements SafeExceptionInterface
5 5
 {
6
-    public static function createFromPhpError(): self
7
-    {
8
-        $error = error_get_last();
9
-        return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
10
-    }
6
+	public static function createFromPhpError(): self
7
+	{
8
+		$error = error_get_last();
9
+		return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
10
+	}
11 11
 }
Please login to merge, or discard this patch.
vendor/thecodingmachine/safe/deprecated/Exceptions/ApcException.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -3,9 +3,9 @@
 block discarded – undo
3 3
 
4 4
 class ApcException extends \ErrorException implements SafeExceptionInterface
5 5
 {
6
-    public static function createFromPhpError(): self
7
-    {
8
-        $error = error_get_last();
9
-        return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
10
-    }
6
+	public static function createFromPhpError(): self
7
+	{
8
+		$error = error_get_last();
9
+		return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
10
+	}
11 11
 }
Please login to merge, or discard this patch.
vendor/thecodingmachine/safe/deprecated/Exceptions/LibeventException.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -3,9 +3,9 @@
 block discarded – undo
3 3
 
4 4
 class LibeventException extends \ErrorException implements SafeExceptionInterface
5 5
 {
6
-    public static function createFromPhpError(): self
7
-    {
8
-        $error = error_get_last();
9
-        return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
10
-    }
6
+	public static function createFromPhpError(): self
7
+	{
8
+		$error = error_get_last();
9
+		return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
10
+	}
11 11
 }
Please login to merge, or discard this patch.
vendor-bin/php-scoper/vendor/thecodingmachine/safe/deprecated/stats.php 1 patch
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -15,12 +15,12 @@  discard block
 block discarded – undo
15 15
  */
16 16
 function stats_covariance(array $a, array $b): float
17 17
 {
18
-    error_clear_last();
19
-    $result = \stats_covariance($a, $b);
20
-    if ($result === false) {
21
-        throw StatsException::createFromPhpError();
22
-    }
23
-    return $result;
18
+	error_clear_last();
19
+	$result = \stats_covariance($a, $b);
20
+	if ($result === false) {
21
+		throw StatsException::createFromPhpError();
22
+	}
23
+	return $result;
24 24
 }
25 25
 
26 26
 
@@ -37,12 +37,12 @@  discard block
 block discarded – undo
37 37
  */
38 38
 function stats_standard_deviation(array $a, bool $sample = false): float
39 39
 {
40
-    error_clear_last();
41
-    $result = \stats_standard_deviation($a, $sample);
42
-    if ($result === false) {
43
-        throw StatsException::createFromPhpError();
44
-    }
45
-    return $result;
40
+	error_clear_last();
41
+	$result = \stats_standard_deviation($a, $sample);
42
+	if ($result === false) {
43
+		throw StatsException::createFromPhpError();
44
+	}
45
+	return $result;
46 46
 }
47 47
 
48 48
 
@@ -57,12 +57,12 @@  discard block
 block discarded – undo
57 57
  */
58 58
 function stats_stat_correlation(array $arr1, array $arr2): float
59 59
 {
60
-    error_clear_last();
61
-    $result = \stats_stat_correlation($arr1, $arr2);
62
-    if ($result === false) {
63
-        throw StatsException::createFromPhpError();
64
-    }
65
-    return $result;
60
+	error_clear_last();
61
+	$result = \stats_stat_correlation($arr1, $arr2);
62
+	if ($result === false) {
63
+		throw StatsException::createFromPhpError();
64
+	}
65
+	return $result;
66 66
 }
67 67
 
68 68
 
@@ -77,12 +77,12 @@  discard block
 block discarded – undo
77 77
  */
78 78
 function stats_stat_innerproduct(array $arr1, array $arr2): float
79 79
 {
80
-    error_clear_last();
81
-    $result = \stats_stat_innerproduct($arr1, $arr2);
82
-    if ($result === false) {
83
-        throw StatsException::createFromPhpError();
84
-    }
85
-    return $result;
80
+	error_clear_last();
81
+	$result = \stats_stat_innerproduct($arr1, $arr2);
82
+	if ($result === false) {
83
+		throw StatsException::createFromPhpError();
84
+	}
85
+	return $result;
86 86
 }
87 87
 
88 88
 
@@ -99,10 +99,10 @@  discard block
 block discarded – undo
99 99
  */
100 100
 function stats_variance(array $a, bool $sample = false): float
101 101
 {
102
-    error_clear_last();
103
-    $result = \stats_variance($a, $sample);
104
-    if ($result === false) {
105
-        throw StatsException::createFromPhpError();
106
-    }
107
-    return $result;
102
+	error_clear_last();
103
+	$result = \stats_variance($a, $sample);
104
+	if ($result === false) {
105
+		throw StatsException::createFromPhpError();
106
+	}
107
+	return $result;
108 108
 }
Please login to merge, or discard this patch.
vendor-bin/php-scoper/vendor/thecodingmachine/safe/generated/classobj.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -17,9 +17,9 @@
 block discarded – undo
17 17
  */
18 18
 function class_alias(string $original, string $alias, bool $autoload = true): void
19 19
 {
20
-    error_clear_last();
21
-    $result = \class_alias($original, $alias, $autoload);
22
-    if ($result === false) {
23
-        throw ClassobjException::createFromPhpError();
24
-    }
20
+	error_clear_last();
21
+	$result = \class_alias($original, $alias, $autoload);
22
+	if ($result === false) {
23
+		throw ClassobjException::createFromPhpError();
24
+	}
25 25
 }
Please login to merge, or discard this patch.
vendor-bin/php-scoper/vendor/thecodingmachine/safe/generated/stream.php 1 patch
Indentation   +139 added lines, -139 removed lines patch added patch discarded remove patch
@@ -17,11 +17,11 @@  discard block
 block discarded – undo
17 17
  */
18 18
 function stream_context_set_params($stream_or_context, array $params): void
19 19
 {
20
-    error_clear_last();
21
-    $result = \stream_context_set_params($stream_or_context, $params);
22
-    if ($result === false) {
23
-        throw StreamException::createFromPhpError();
24
-    }
20
+	error_clear_last();
21
+	$result = \stream_context_set_params($stream_or_context, $params);
22
+	if ($result === false) {
23
+		throw StreamException::createFromPhpError();
24
+	}
25 25
 }
26 26
 
27 27
 
@@ -43,12 +43,12 @@  discard block
 block discarded – undo
43 43
  */
44 44
 function stream_copy_to_stream($source, $dest, int $maxlength = -1, int $offset = 0): int
45 45
 {
46
-    error_clear_last();
47
-    $result = \stream_copy_to_stream($source, $dest, $maxlength, $offset);
48
-    if ($result === false) {
49
-        throw StreamException::createFromPhpError();
50
-    }
51
-    return $result;
46
+	error_clear_last();
47
+	$result = \stream_copy_to_stream($source, $dest, $maxlength, $offset);
48
+	if ($result === false) {
49
+		throw StreamException::createFromPhpError();
50
+	}
51
+	return $result;
52 52
 }
53 53
 
54 54
 
@@ -85,18 +85,18 @@  discard block
 block discarded – undo
85 85
  */
86 86
 function stream_filter_append($stream, string $filtername, int $read_write = null, $params = null)
87 87
 {
88
-    error_clear_last();
89
-    if ($params !== null) {
90
-        $result = \stream_filter_append($stream, $filtername, $read_write, $params);
91
-    } elseif ($read_write !== null) {
92
-        $result = \stream_filter_append($stream, $filtername, $read_write);
93
-    } else {
94
-        $result = \stream_filter_append($stream, $filtername);
95
-    }
96
-    if ($result === false) {
97
-        throw StreamException::createFromPhpError();
98
-    }
99
-    return $result;
88
+	error_clear_last();
89
+	if ($params !== null) {
90
+		$result = \stream_filter_append($stream, $filtername, $read_write, $params);
91
+	} elseif ($read_write !== null) {
92
+		$result = \stream_filter_append($stream, $filtername, $read_write);
93
+	} else {
94
+		$result = \stream_filter_append($stream, $filtername);
95
+	}
96
+	if ($result === false) {
97
+		throw StreamException::createFromPhpError();
98
+	}
99
+	return $result;
100 100
 }
101 101
 
102 102
 
@@ -134,18 +134,18 @@  discard block
 block discarded – undo
134 134
  */
135 135
 function stream_filter_prepend($stream, string $filtername, int $read_write = null, $params = null)
136 136
 {
137
-    error_clear_last();
138
-    if ($params !== null) {
139
-        $result = \stream_filter_prepend($stream, $filtername, $read_write, $params);
140
-    } elseif ($read_write !== null) {
141
-        $result = \stream_filter_prepend($stream, $filtername, $read_write);
142
-    } else {
143
-        $result = \stream_filter_prepend($stream, $filtername);
144
-    }
145
-    if ($result === false) {
146
-        throw StreamException::createFromPhpError();
147
-    }
148
-    return $result;
137
+	error_clear_last();
138
+	if ($params !== null) {
139
+		$result = \stream_filter_prepend($stream, $filtername, $read_write, $params);
140
+	} elseif ($read_write !== null) {
141
+		$result = \stream_filter_prepend($stream, $filtername, $read_write);
142
+	} else {
143
+		$result = \stream_filter_prepend($stream, $filtername);
144
+	}
145
+	if ($result === false) {
146
+		throw StreamException::createFromPhpError();
147
+	}
148
+	return $result;
149 149
 }
150 150
 
151 151
 
@@ -169,11 +169,11 @@  discard block
 block discarded – undo
169 169
  */
170 170
 function stream_filter_register(string $filtername, string $classname): void
171 171
 {
172
-    error_clear_last();
173
-    $result = \stream_filter_register($filtername, $classname);
174
-    if ($result === false) {
175
-        throw StreamException::createFromPhpError();
176
-    }
172
+	error_clear_last();
173
+	$result = \stream_filter_register($filtername, $classname);
174
+	if ($result === false) {
175
+		throw StreamException::createFromPhpError();
176
+	}
177 177
 }
178 178
 
179 179
 
@@ -190,11 +190,11 @@  discard block
 block discarded – undo
190 190
  */
191 191
 function stream_filter_remove($stream_filter): void
192 192
 {
193
-    error_clear_last();
194
-    $result = \stream_filter_remove($stream_filter);
195
-    if ($result === false) {
196
-        throw StreamException::createFromPhpError();
197
-    }
193
+	error_clear_last();
194
+	$result = \stream_filter_remove($stream_filter);
195
+	if ($result === false) {
196
+		throw StreamException::createFromPhpError();
197
+	}
198 198
 }
199 199
 
200 200
 
@@ -216,12 +216,12 @@  discard block
 block discarded – undo
216 216
  */
217 217
 function stream_get_contents($handle, int $maxlength = -1, int $offset = -1): string
218 218
 {
219
-    error_clear_last();
220
-    $result = \stream_get_contents($handle, $maxlength, $offset);
221
-    if ($result === false) {
222
-        throw StreamException::createFromPhpError();
223
-    }
224
-    return $result;
219
+	error_clear_last();
220
+	$result = \stream_get_contents($handle, $maxlength, $offset);
221
+	if ($result === false) {
222
+		throw StreamException::createFromPhpError();
223
+	}
224
+	return $result;
225 225
 }
226 226
 
227 227
 
@@ -235,11 +235,11 @@  discard block
 block discarded – undo
235 235
  */
236 236
 function stream_isatty($stream): void
237 237
 {
238
-    error_clear_last();
239
-    $result = \stream_isatty($stream);
240
-    if ($result === false) {
241
-        throw StreamException::createFromPhpError();
242
-    }
238
+	error_clear_last();
239
+	$result = \stream_isatty($stream);
240
+	if ($result === false) {
241
+		throw StreamException::createFromPhpError();
242
+	}
243 243
 }
244 244
 
245 245
 
@@ -253,12 +253,12 @@  discard block
 block discarded – undo
253 253
  */
254 254
 function stream_resolve_include_path(string $filename): string
255 255
 {
256
-    error_clear_last();
257
-    $result = \stream_resolve_include_path($filename);
258
-    if ($result === false) {
259
-        throw StreamException::createFromPhpError();
260
-    }
261
-    return $result;
256
+	error_clear_last();
257
+	$result = \stream_resolve_include_path($filename);
258
+	if ($result === false) {
259
+		throw StreamException::createFromPhpError();
260
+	}
261
+	return $result;
262 262
 }
263 263
 
264 264
 
@@ -282,11 +282,11 @@  discard block
 block discarded – undo
282 282
  */
283 283
 function stream_set_blocking($stream, bool $mode): void
284 284
 {
285
-    error_clear_last();
286
-    $result = \stream_set_blocking($stream, $mode);
287
-    if ($result === false) {
288
-        throw StreamException::createFromPhpError();
289
-    }
285
+	error_clear_last();
286
+	$result = \stream_set_blocking($stream, $mode);
287
+	if ($result === false) {
288
+		throw StreamException::createFromPhpError();
289
+	}
290 290
 }
291 291
 
292 292
 
@@ -307,11 +307,11 @@  discard block
 block discarded – undo
307 307
  */
308 308
 function stream_set_timeout($stream, int $seconds, int $microseconds = 0): void
309 309
 {
310
-    error_clear_last();
311
-    $result = \stream_set_timeout($stream, $seconds, $microseconds);
312
-    if ($result === false) {
313
-        throw StreamException::createFromPhpError();
314
-    }
310
+	error_clear_last();
311
+	$result = \stream_set_timeout($stream, $seconds, $microseconds);
312
+	if ($result === false) {
313
+		throw StreamException::createFromPhpError();
314
+	}
315 315
 }
316 316
 
317 317
 
@@ -333,18 +333,18 @@  discard block
 block discarded – undo
333 333
  */
334 334
 function stream_socket_accept($server_socket, float $timeout = null, ?string &$peername = null)
335 335
 {
336
-    error_clear_last();
337
-    if ($peername !== null) {
338
-        $result = \stream_socket_accept($server_socket, $timeout, $peername);
339
-    } elseif ($timeout !== null) {
340
-        $result = \stream_socket_accept($server_socket, $timeout);
341
-    } else {
342
-        $result = \stream_socket_accept($server_socket);
343
-    }
344
-    if ($result === false) {
345
-        throw StreamException::createFromPhpError();
346
-    }
347
-    return $result;
336
+	error_clear_last();
337
+	if ($peername !== null) {
338
+		$result = \stream_socket_accept($server_socket, $timeout, $peername);
339
+	} elseif ($timeout !== null) {
340
+		$result = \stream_socket_accept($server_socket, $timeout);
341
+	} else {
342
+		$result = \stream_socket_accept($server_socket);
343
+	}
344
+	if ($result === false) {
345
+		throw StreamException::createFromPhpError();
346
+	}
347
+	return $result;
348 348
 }
349 349
 
350 350
 
@@ -399,20 +399,20 @@  discard block
 block discarded – undo
399 399
  */
400 400
 function stream_socket_client(string $remote_socket, int &$errno = null, string &$errstr = null, float $timeout = null, int $flags = STREAM_CLIENT_CONNECT, $context = null)
401 401
 {
402
-    error_clear_last();
403
-    if ($context !== null) {
404
-        $result = \stream_socket_client($remote_socket, $errno, $errstr, $timeout, $flags, $context);
405
-    } elseif ($flags !== STREAM_CLIENT_CONNECT) {
406
-        $result = \stream_socket_client($remote_socket, $errno, $errstr, $timeout, $flags);
407
-    } elseif ($timeout !== null) {
408
-        $result = \stream_socket_client($remote_socket, $errno, $errstr, $timeout);
409
-    } else {
410
-        $result = \stream_socket_client($remote_socket, $errno, $errstr);
411
-    }
412
-    if ($result === false) {
413
-        throw StreamException::createFromPhpError();
414
-    }
415
-    return $result;
402
+	error_clear_last();
403
+	if ($context !== null) {
404
+		$result = \stream_socket_client($remote_socket, $errno, $errstr, $timeout, $flags, $context);
405
+	} elseif ($flags !== STREAM_CLIENT_CONNECT) {
406
+		$result = \stream_socket_client($remote_socket, $errno, $errstr, $timeout, $flags);
407
+	} elseif ($timeout !== null) {
408
+		$result = \stream_socket_client($remote_socket, $errno, $errstr, $timeout);
409
+	} else {
410
+		$result = \stream_socket_client($remote_socket, $errno, $errstr);
411
+	}
412
+	if ($result === false) {
413
+		throw StreamException::createFromPhpError();
414
+	}
415
+	return $result;
416 416
 }
417 417
 
418 418
 
@@ -441,12 +441,12 @@  discard block
 block discarded – undo
441 441
  */
442 442
 function stream_socket_pair(int $domain, int $type, int $protocol): iterable
443 443
 {
444
-    error_clear_last();
445
-    $result = \stream_socket_pair($domain, $type, $protocol);
446
-    if ($result === false) {
447
-        throw StreamException::createFromPhpError();
448
-    }
449
-    return $result;
444
+	error_clear_last();
445
+	$result = \stream_socket_pair($domain, $type, $protocol);
446
+	if ($result === false) {
447
+		throw StreamException::createFromPhpError();
448
+	}
449
+	return $result;
450 450
 }
451 451
 
452 452
 
@@ -494,16 +494,16 @@  discard block
 block discarded – undo
494 494
  */
495 495
 function stream_socket_server(string $local_socket, int &$errno = null, string &$errstr = null, int $flags = STREAM_SERVER_BIND | STREAM_SERVER_LISTEN, $context = null)
496 496
 {
497
-    error_clear_last();
498
-    if ($context !== null) {
499
-        $result = \stream_socket_server($local_socket, $errno, $errstr, $flags, $context);
500
-    } else {
501
-        $result = \stream_socket_server($local_socket, $errno, $errstr, $flags);
502
-    }
503
-    if ($result === false) {
504
-        throw StreamException::createFromPhpError();
505
-    }
506
-    return $result;
497
+	error_clear_last();
498
+	if ($context !== null) {
499
+		$result = \stream_socket_server($local_socket, $errno, $errstr, $flags, $context);
500
+	} else {
501
+		$result = \stream_socket_server($local_socket, $errno, $errstr, $flags);
502
+	}
503
+	if ($result === false) {
504
+		throw StreamException::createFromPhpError();
505
+	}
506
+	return $result;
507 507
 }
508 508
 
509 509
 
@@ -522,11 +522,11 @@  discard block
 block discarded – undo
522 522
  */
523 523
 function stream_socket_shutdown($stream, int $how): void
524 524
 {
525
-    error_clear_last();
526
-    $result = \stream_socket_shutdown($stream, $how);
527
-    if ($result === false) {
528
-        throw StreamException::createFromPhpError();
529
-    }
525
+	error_clear_last();
526
+	$result = \stream_socket_shutdown($stream, $how);
527
+	if ($result === false) {
528
+		throw StreamException::createFromPhpError();
529
+	}
530 530
 }
531 531
 
532 532
 
@@ -540,11 +540,11 @@  discard block
 block discarded – undo
540 540
  */
541 541
 function stream_supports_lock($stream): void
542 542
 {
543
-    error_clear_last();
544
-    $result = \stream_supports_lock($stream);
545
-    if ($result === false) {
546
-        throw StreamException::createFromPhpError();
547
-    }
543
+	error_clear_last();
544
+	$result = \stream_supports_lock($stream);
545
+	if ($result === false) {
546
+		throw StreamException::createFromPhpError();
547
+	}
548 548
 }
549 549
 
550 550
 
@@ -563,11 +563,11 @@  discard block
 block discarded – undo
563 563
  */
564 564
 function stream_wrapper_register(string $protocol, string $classname, int $flags = 0): void
565 565
 {
566
-    error_clear_last();
567
-    $result = \stream_wrapper_register($protocol, $classname, $flags);
568
-    if ($result === false) {
569
-        throw StreamException::createFromPhpError();
570
-    }
566
+	error_clear_last();
567
+	$result = \stream_wrapper_register($protocol, $classname, $flags);
568
+	if ($result === false) {
569
+		throw StreamException::createFromPhpError();
570
+	}
571 571
 }
572 572
 
573 573
 
@@ -581,11 +581,11 @@  discard block
 block discarded – undo
581 581
  */
582 582
 function stream_wrapper_restore(string $protocol): void
583 583
 {
584
-    error_clear_last();
585
-    $result = \stream_wrapper_restore($protocol);
586
-    if ($result === false) {
587
-        throw StreamException::createFromPhpError();
588
-    }
584
+	error_clear_last();
585
+	$result = \stream_wrapper_restore($protocol);
586
+	if ($result === false) {
587
+		throw StreamException::createFromPhpError();
588
+	}
589 589
 }
590 590
 
591 591
 
@@ -601,9 +601,9 @@  discard block
 block discarded – undo
601 601
  */
602 602
 function stream_wrapper_unregister(string $protocol): void
603 603
 {
604
-    error_clear_last();
605
-    $result = \stream_wrapper_unregister($protocol);
606
-    if ($result === false) {
607
-        throw StreamException::createFromPhpError();
608
-    }
604
+	error_clear_last();
605
+	$result = \stream_wrapper_unregister($protocol);
606
+	if ($result === false) {
607
+		throw StreamException::createFromPhpError();
608
+	}
609 609
 }
Please login to merge, or discard this patch.
vendor-bin/php-scoper/vendor/thecodingmachine/safe/generated/gmp.php 1 patch
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -15,12 +15,12 @@  discard block
 block discarded – undo
15 15
  */
16 16
 function gmp_binomial($n, int $k): \GMP
17 17
 {
18
-    error_clear_last();
19
-    $result = \gmp_binomial($n, $k);
20
-    if ($result === false) {
21
-        throw GmpException::createFromPhpError();
22
-    }
23
-    return $result;
18
+	error_clear_last();
19
+	$result = \gmp_binomial($n, $k);
20
+	if ($result === false) {
21
+		throw GmpException::createFromPhpError();
22
+	}
23
+	return $result;
24 24
 }
25 25
 
26 26
 
@@ -36,12 +36,12 @@  discard block
 block discarded – undo
36 36
  */
37 37
 function gmp_export($gmpnumber, int $word_size = 1, int $options = GMP_MSW_FIRST | GMP_NATIVE_ENDIAN): string
38 38
 {
39
-    error_clear_last();
40
-    $result = \gmp_export($gmpnumber, $word_size, $options);
41
-    if ($result === false) {
42
-        throw GmpException::createFromPhpError();
43
-    }
44
-    return $result;
39
+	error_clear_last();
40
+	$result = \gmp_export($gmpnumber, $word_size, $options);
41
+	if ($result === false) {
42
+		throw GmpException::createFromPhpError();
43
+	}
44
+	return $result;
45 45
 }
46 46
 
47 47
 
@@ -57,12 +57,12 @@  discard block
 block discarded – undo
57 57
  */
58 58
 function gmp_import(string $data, int $word_size = 1, int $options = GMP_MSW_FIRST | GMP_NATIVE_ENDIAN): \GMP
59 59
 {
60
-    error_clear_last();
61
-    $result = \gmp_import($data, $word_size, $options);
62
-    if ($result === false) {
63
-        throw GmpException::createFromPhpError();
64
-    }
65
-    return $result;
60
+	error_clear_last();
61
+	$result = \gmp_import($data, $word_size, $options);
62
+	if ($result === false) {
63
+		throw GmpException::createFromPhpError();
64
+	}
65
+	return $result;
66 66
 }
67 67
 
68 68
 
@@ -79,9 +79,9 @@  discard block
 block discarded – undo
79 79
  */
80 80
 function gmp_random_seed($seed): void
81 81
 {
82
-    error_clear_last();
83
-    $result = \gmp_random_seed($seed);
84
-    if ($result === false) {
85
-        throw GmpException::createFromPhpError();
86
-    }
82
+	error_clear_last();
83
+	$result = \gmp_random_seed($seed);
84
+	if ($result === false) {
85
+		throw GmpException::createFromPhpError();
86
+	}
87 87
 }
Please login to merge, or discard this patch.