Completed
Push — master ( 8e973a...811a95 )
by
unknown
03:40 queued 01:04
created
vendor-bin/php-scoper/vendor/thecodingmachine/safe/deprecated/libevent.php 1 patch
Indentation   +114 added lines, -114 removed lines patch added patch discarded remove patch
@@ -21,11 +21,11 @@  discard block
 block discarded – undo
21 21
  */
22 22
 function event_add($event, int $timeout = -1): void
23 23
 {
24
-    error_clear_last();
25
-    $result = \event_add($event, $timeout);
26
-    if ($result === false) {
27
-        throw LibeventException::createFromPhpError();
28
-    }
24
+	error_clear_last();
25
+	$result = \event_add($event, $timeout);
26
+	if ($result === false) {
27
+		throw LibeventException::createFromPhpError();
28
+	}
29 29
 }
30 30
 
31 31
 
@@ -39,11 +39,11 @@  discard block
 block discarded – undo
39 39
  */
40 40
 function event_base_loopbreak($event_base): void
41 41
 {
42
-    error_clear_last();
43
-    $result = \event_base_loopbreak($event_base);
44
-    if ($result === false) {
45
-        throw LibeventException::createFromPhpError();
46
-    }
42
+	error_clear_last();
43
+	$result = \event_base_loopbreak($event_base);
44
+	if ($result === false) {
45
+		throw LibeventException::createFromPhpError();
46
+	}
47 47
 }
48 48
 
49 49
 
@@ -58,11 +58,11 @@  discard block
 block discarded – undo
58 58
  */
59 59
 function event_base_loopexit($event_base, int $timeout = -1): void
60 60
 {
61
-    error_clear_last();
62
-    $result = \event_base_loopexit($event_base, $timeout);
63
-    if ($result === false) {
64
-        throw LibeventException::createFromPhpError();
65
-    }
61
+	error_clear_last();
62
+	$result = \event_base_loopexit($event_base, $timeout);
63
+	if ($result === false) {
64
+		throw LibeventException::createFromPhpError();
65
+	}
66 66
 }
67 67
 
68 68
 
@@ -77,12 +77,12 @@  discard block
 block discarded – undo
77 77
  */
78 78
 function event_base_new()
79 79
 {
80
-    error_clear_last();
81
-    $result = \event_base_new();
82
-    if ($result === false) {
83
-        throw LibeventException::createFromPhpError();
84
-    }
85
-    return $result;
80
+	error_clear_last();
81
+	$result = \event_base_new();
82
+	if ($result === false) {
83
+		throw LibeventException::createFromPhpError();
84
+	}
85
+	return $result;
86 86
 }
87 87
 
88 88
 
@@ -101,11 +101,11 @@  discard block
 block discarded – undo
101 101
  */
102 102
 function event_base_priority_init($event_base, int $npriorities): void
103 103
 {
104
-    error_clear_last();
105
-    $result = \event_base_priority_init($event_base, $npriorities);
106
-    if ($result === false) {
107
-        throw LibeventException::createFromPhpError();
108
-    }
104
+	error_clear_last();
105
+	$result = \event_base_priority_init($event_base, $npriorities);
106
+	if ($result === false) {
107
+		throw LibeventException::createFromPhpError();
108
+	}
109 109
 }
110 110
 
111 111
 
@@ -120,11 +120,11 @@  discard block
 block discarded – undo
120 120
  */
121 121
 function event_base_reinit($event_base): void
122 122
 {
123
-    error_clear_last();
124
-    $result = \event_base_reinit($event_base);
125
-    if ($result === false) {
126
-        throw LibeventException::createFromPhpError();
127
-    }
123
+	error_clear_last();
124
+	$result = \event_base_reinit($event_base);
125
+	if ($result === false) {
126
+		throw LibeventException::createFromPhpError();
127
+	}
128 128
 }
129 129
 
130 130
 
@@ -139,11 +139,11 @@  discard block
 block discarded – undo
139 139
  */
140 140
 function event_base_set($event, $event_base): void
141 141
 {
142
-    error_clear_last();
143
-    $result = \event_base_set($event, $event_base);
144
-    if ($result === false) {
145
-        throw LibeventException::createFromPhpError();
146
-    }
142
+	error_clear_last();
143
+	$result = \event_base_set($event, $event_base);
144
+	if ($result === false) {
145
+		throw LibeventException::createFromPhpError();
146
+	}
147 147
 }
148 148
 
149 149
 
@@ -158,11 +158,11 @@  discard block
 block discarded – undo
158 158
  */
159 159
 function event_buffer_base_set($bevent, $event_base): void
160 160
 {
161
-    error_clear_last();
162
-    $result = \event_buffer_base_set($bevent, $event_base);
163
-    if ($result === false) {
164
-        throw LibeventException::createFromPhpError();
165
-    }
161
+	error_clear_last();
162
+	$result = \event_buffer_base_set($bevent, $event_base);
163
+	if ($result === false) {
164
+		throw LibeventException::createFromPhpError();
165
+	}
166 166
 }
167 167
 
168 168
 
@@ -177,11 +177,11 @@  discard block
 block discarded – undo
177 177
  */
178 178
 function event_buffer_disable($bevent, int $events): void
179 179
 {
180
-    error_clear_last();
181
-    $result = \event_buffer_disable($bevent, $events);
182
-    if ($result === false) {
183
-        throw LibeventException::createFromPhpError();
184
-    }
180
+	error_clear_last();
181
+	$result = \event_buffer_disable($bevent, $events);
182
+	if ($result === false) {
183
+		throw LibeventException::createFromPhpError();
184
+	}
185 185
 }
186 186
 
187 187
 
@@ -196,11 +196,11 @@  discard block
 block discarded – undo
196 196
  */
197 197
 function event_buffer_enable($bevent, int $events): void
198 198
 {
199
-    error_clear_last();
200
-    $result = \event_buffer_enable($bevent, $events);
201
-    if ($result === false) {
202
-        throw LibeventException::createFromPhpError();
203
-    }
199
+	error_clear_last();
200
+	$result = \event_buffer_enable($bevent, $events);
201
+	if ($result === false) {
202
+		throw LibeventException::createFromPhpError();
203
+	}
204 204
 }
205 205
 
206 206
 
@@ -225,16 +225,16 @@  discard block
 block discarded – undo
225 225
  */
226 226
 function event_buffer_new($stream, $readcb, $writecb, $errorcb, $arg = null)
227 227
 {
228
-    error_clear_last();
229
-    if ($arg !== null) {
230
-        $result = \event_buffer_new($stream, $readcb, $writecb, $errorcb, $arg);
231
-    } else {
232
-        $result = \event_buffer_new($stream, $readcb, $writecb, $errorcb);
233
-    }
234
-    if ($result === false) {
235
-        throw LibeventException::createFromPhpError();
236
-    }
237
-    return $result;
228
+	error_clear_last();
229
+	if ($arg !== null) {
230
+		$result = \event_buffer_new($stream, $readcb, $writecb, $errorcb, $arg);
231
+	} else {
232
+		$result = \event_buffer_new($stream, $readcb, $writecb, $errorcb);
233
+	}
234
+	if ($result === false) {
235
+		throw LibeventException::createFromPhpError();
236
+	}
237
+	return $result;
238 238
 }
239 239
 
240 240
 
@@ -249,11 +249,11 @@  discard block
 block discarded – undo
249 249
  */
250 250
 function event_buffer_priority_set($bevent, int $priority): void
251 251
 {
252
-    error_clear_last();
253
-    $result = \event_buffer_priority_set($bevent, $priority);
254
-    if ($result === false) {
255
-        throw LibeventException::createFromPhpError();
256
-    }
252
+	error_clear_last();
253
+	$result = \event_buffer_priority_set($bevent, $priority);
254
+	if ($result === false) {
255
+		throw LibeventException::createFromPhpError();
256
+	}
257 257
 }
258 258
 
259 259
 
@@ -273,15 +273,15 @@  discard block
 block discarded – undo
273 273
  */
274 274
 function event_buffer_set_callback($event, $readcb, $writecb, $errorcb, $arg = null): void
275 275
 {
276
-    error_clear_last();
277
-    if ($arg !== null) {
278
-        $result = \event_buffer_set_callback($event, $readcb, $writecb, $errorcb, $arg);
279
-    } else {
280
-        $result = \event_buffer_set_callback($event, $readcb, $writecb, $errorcb);
281
-    }
282
-    if ($result === false) {
283
-        throw LibeventException::createFromPhpError();
284
-    }
276
+	error_clear_last();
277
+	if ($arg !== null) {
278
+		$result = \event_buffer_set_callback($event, $readcb, $writecb, $errorcb, $arg);
279
+	} else {
280
+		$result = \event_buffer_set_callback($event, $readcb, $writecb, $errorcb);
281
+	}
282
+	if ($result === false) {
283
+		throw LibeventException::createFromPhpError();
284
+	}
285 285
 }
286 286
 
287 287
 
@@ -299,11 +299,11 @@  discard block
 block discarded – undo
299 299
  */
300 300
 function event_buffer_write($bevent, string $data, int $data_size = -1): void
301 301
 {
302
-    error_clear_last();
303
-    $result = \event_buffer_write($bevent, $data, $data_size);
304
-    if ($result === false) {
305
-        throw LibeventException::createFromPhpError();
306
-    }
302
+	error_clear_last();
303
+	$result = \event_buffer_write($bevent, $data, $data_size);
304
+	if ($result === false) {
305
+		throw LibeventException::createFromPhpError();
306
+	}
307 307
 }
308 308
 
309 309
 
@@ -316,11 +316,11 @@  discard block
 block discarded – undo
316 316
  */
317 317
 function event_del($event): void
318 318
 {
319
-    error_clear_last();
320
-    $result = \event_del($event);
321
-    if ($result === false) {
322
-        throw LibeventException::createFromPhpError();
323
-    }
319
+	error_clear_last();
320
+	$result = \event_del($event);
321
+	if ($result === false) {
322
+		throw LibeventException::createFromPhpError();
323
+	}
324 324
 }
325 325
 
326 326
 
@@ -333,12 +333,12 @@  discard block
 block discarded – undo
333 333
  */
334 334
 function event_new()
335 335
 {
336
-    error_clear_last();
337
-    $result = \event_new();
338
-    if ($result === false) {
339
-        throw LibeventException::createFromPhpError();
340
-    }
341
-    return $result;
336
+	error_clear_last();
337
+	$result = \event_new();
338
+	if ($result === false) {
339
+		throw LibeventException::createFromPhpError();
340
+	}
341
+	return $result;
342 342
 }
343 343
 
344 344
 
@@ -354,11 +354,11 @@  discard block
 block discarded – undo
354 354
  */
355 355
 function event_priority_set($event, int $priority): void
356 356
 {
357
-    error_clear_last();
358
-    $result = \event_priority_set($event, $priority);
359
-    if ($result === false) {
360
-        throw LibeventException::createFromPhpError();
361
-    }
357
+	error_clear_last();
358
+	$result = \event_priority_set($event, $priority);
359
+	if ($result === false) {
360
+		throw LibeventException::createFromPhpError();
361
+	}
362 362
 }
363 363
 
364 364
 
@@ -425,15 +425,15 @@  discard block
 block discarded – undo
425 425
  */
426 426
 function event_set($event, $fd, int $events, $callback, $arg = null): void
427 427
 {
428
-    error_clear_last();
429
-    if ($arg !== null) {
430
-        $result = \event_set($event, $fd, $events, $callback, $arg);
431
-    } else {
432
-        $result = \event_set($event, $fd, $events, $callback);
433
-    }
434
-    if ($result === false) {
435
-        throw LibeventException::createFromPhpError();
436
-    }
428
+	error_clear_last();
429
+	if ($arg !== null) {
430
+		$result = \event_set($event, $fd, $events, $callback, $arg);
431
+	} else {
432
+		$result = \event_set($event, $fd, $events, $callback);
433
+	}
434
+	if ($result === false) {
435
+		throw LibeventException::createFromPhpError();
436
+	}
437 437
 }
438 438
 
439 439
 
@@ -484,13 +484,13 @@  discard block
 block discarded – undo
484 484
  */
485 485
 function event_timer_set($event, callable $callback, $arg = null): void
486 486
 {
487
-    error_clear_last();
488
-    if ($arg !== null) {
489
-        $result = \event_timer_set($event, $callback, $arg);
490
-    } else {
491
-        $result = \event_timer_set($event, $callback);
492
-    }
493
-    if ($result === false) {
494
-        throw LibeventException::createFromPhpError();
495
-    }
487
+	error_clear_last();
488
+	if ($arg !== null) {
489
+		$result = \event_timer_set($event, $callback, $arg);
490
+	} else {
491
+		$result = \event_timer_set($event, $callback);
492
+	}
493
+	if ($result === false) {
494
+		throw LibeventException::createFromPhpError();
495
+	}
496 496
 }
Please login to merge, or discard this patch.
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.