Skip to content
This repository was archived by the owner on Aug 24, 2022. It is now read-only.

Commit 5dabaff

Browse files
authored
Automatically regenerate the files
1 parent 10d7cf0 commit 5dabaff

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+2024
-2381
lines changed

generated/Exceptions/MysqlndMsException.php

Lines changed: 0 additions & 11 deletions
This file was deleted.

generated/Exceptions/MysqlndQcException.php

Lines changed: 0 additions & 11 deletions
This file was deleted.

generated/Exceptions/IngresiiException.php renamed to generated/Exceptions/SodiumException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
namespace Safe\Exceptions;
33

4-
class IngresiiException extends \ErrorException implements SafeExceptionInterface
4+
class SodiumException extends \ErrorException implements SafeExceptionInterface
55
{
66
public static function createFromPhpError(): self
77
{

generated/apache.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,3 +197,4 @@ function virtual(string $uri): void
197197
throw ApacheException::createFromPhpError();
198198
}
199199
}
200+

generated/apcu.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,4 @@ function apcu_sma_info(bool $limited = false): array
110110
}
111111
return $result;
112112
}
113+

generated/array.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ function array_replace_recursive(array $array, array ...$replacements): array
8888
error_clear_last();
8989
if ($replacements !== []) {
9090
$result = \array_replace_recursive($array, ...$replacements);
91-
} else {
91+
}else {
9292
$result = \array_replace_recursive($array);
9393
}
9494
if ($result === null) {
@@ -123,7 +123,7 @@ function array_replace(array $array, array ...$replacements): array
123123
error_clear_last();
124124
if ($replacements !== []) {
125125
$result = \array_replace($array, ...$replacements);
126-
} else {
126+
}else {
127127
$result = \array_replace($array);
128128
}
129129
if ($result === null) {
@@ -155,12 +155,12 @@ function array_replace(array $array, array ...$replacements): array
155155
* @throws ArrayException
156156
*
157157
*/
158-
function array_walk_recursive(array &$array, callable $callback, $userdata = null): void
158+
function array_walk_recursive(array &$array, callable $callback, $userdata = null): void
159159
{
160160
error_clear_last();
161161
if ($userdata !== null) {
162162
$result = \array_walk_recursive($array, $callback, $userdata);
163-
} else {
163+
}else {
164164
$result = \array_walk_recursive($array, $callback);
165165
}
166166
if ($result === false) {
@@ -170,7 +170,7 @@ function array_walk_recursive(array &$array, callable $callback, $userdata = nul
170170

171171

172172
/**
173-
* This function sorts an array such that array indices maintain their
173+
* This function sorts an array in descending order such that array indices maintain their
174174
* correlation with the array elements they are associated with.
175175
*
176176
* This is used mainly when sorting associative arrays where the actual
@@ -228,7 +228,7 @@ function arsort(array &$array, int $flags = SORT_REGULAR): void
228228

229229

230230
/**
231-
* This function sorts an array such that array indices maintain
231+
* This function sorts an array in ascending order such that array indices maintain
232232
* their correlation with the array elements they are associated
233233
* with. This is used mainly when sorting associative arrays where
234234
* the actual element order is significant.
@@ -285,7 +285,7 @@ function asort(array &$array, int $flags = SORT_REGULAR): void
285285

286286

287287
/**
288-
* Sorts an array by key in reverse order, maintaining key to data
288+
* Sorts an array by key in descending order, maintaining key to data
289289
* correlations. This is useful mainly for associative arrays.
290290
*
291291
* @param array $array The input array.
@@ -340,7 +340,7 @@ function krsort(array &$array, int $flags = SORT_REGULAR): void
340340

341341

342342
/**
343-
* Sorts an array by key, maintaining key to data correlations. This is
343+
* Sorts an array by key in ascending order, maintaining key to data correlations. This is
344344
* useful mainly for associative arrays.
345345
*
346346
* @param array $array The input array.
@@ -438,7 +438,7 @@ function natsort(array &$array): void
438438

439439

440440
/**
441-
* This function sorts an array in reverse order (highest to lowest).
441+
* This function sorts an array by value in descending order.
442442
*
443443
* @param array $array The input array.
444444
* @param int $flags The optional second parameter flags
@@ -511,8 +511,7 @@ function shuffle(array &$array): void
511511

512512

513513
/**
514-
* This function sorts an array. Elements will be arranged from
515-
* lowest to highest when this function has completed.
514+
* This function sorts an array by value in ascending order.
516515
*
517516
* @param array $array The input array.
518517
* @param int $flags The optional second parameter flags
@@ -634,3 +633,4 @@ function usort(array &$array, callable $callback): void
634633
throw ArrayException::createFromPhpError();
635634
}
636635
}
636+

generated/bzip2.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* @throws Bzip2Exception
1313
*
1414
*/
15-
function bzclose($bz): void
15+
function bzclose( $bz): void
1616
{
1717
error_clear_last();
1818
$result = \bzclose($bz);
@@ -32,7 +32,7 @@ function bzclose($bz): void
3232
* @throws Bzip2Exception
3333
*
3434
*/
35-
function bzflush($bz): void
35+
function bzflush( $bz): void
3636
{
3737
error_clear_last();
3838
$result = \bzflush($bz);
@@ -57,7 +57,7 @@ function bzflush($bz): void
5757
* @throws Bzip2Exception
5858
*
5959
*/
60-
function bzread($bz, int $length = 1024): string
60+
function bzread( $bz, int $length = 1024): string
6161
{
6262
error_clear_last();
6363
$result = \bzread($bz, $length);
@@ -82,16 +82,17 @@ function bzread($bz, int $length = 1024): string
8282
* @throws Bzip2Exception
8383
*
8484
*/
85-
function bzwrite($bz, string $data, int $length = null): int
85+
function bzwrite( $bz, string $data, int $length = null): int
8686
{
8787
error_clear_last();
8888
if ($length !== null) {
8989
$result = \bzwrite($bz, $data, $length);
90-
} else {
90+
}else {
9191
$result = \bzwrite($bz, $data);
9292
}
9393
if ($result === false) {
9494
throw Bzip2Exception::createFromPhpError();
9595
}
9696
return $result;
9797
}
98+

generated/calendar.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,12 @@ function unixtojd(int $timestamp = null): int
4242
error_clear_last();
4343
if ($timestamp !== null) {
4444
$result = \unixtojd($timestamp);
45-
} else {
45+
}else {
4646
$result = \unixtojd();
4747
}
4848
if ($result === false) {
4949
throw CalendarException::createFromPhpError();
5050
}
5151
return $result;
5252
}
53+

generated/classobj.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,21 @@
66

77
/**
88
* Creates an alias named alias
9-
* based on the user defined class original.
9+
* based on the user defined class class.
1010
* The aliased class is exactly the same as the original class.
1111
*
12-
* @param string $original The original class.
12+
* @param string $class The original class.
1313
* @param string $alias The alias name for the class.
1414
* @param bool $autoload Whether to autoload if the original class is not found.
1515
* @throws ClassobjException
1616
*
1717
*/
18-
function class_alias(string $original, string $alias, bool $autoload = true): void
18+
function class_alias(string $class, string $alias, bool $autoload = true): void
1919
{
2020
error_clear_last();
21-
$result = \class_alias($original, $alias, $autoload);
21+
$result = \class_alias($class, $alias, $autoload);
2222
if ($result === false) {
2323
throw ClassobjException::createFromPhpError();
2424
}
2525
}
26+

generated/com.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ function com_create_guid(): string
4747
* @throws ComException
4848
*
4949
*/
50-
function com_event_sink(object $variant, object $sink_object, $sink_interface = null): void
50+
function com_event_sink(object $variant, object $sink_object, $sink_interface = null): void
5151
{
5252
error_clear_last();
5353
if ($sink_interface !== null) {
5454
$result = \com_event_sink($variant, $sink_object, $sink_interface);
55-
} else {
55+
}else {
5656
$result = \com_event_sink($variant, $sink_object);
5757
}
5858
if ($result === false) {
@@ -145,7 +145,7 @@ function com_print_typeinfo(object $variant, string $dispatch_interface = null,
145145
$result = \com_print_typeinfo($variant, $dispatch_interface, $display_sink);
146146
} elseif ($dispatch_interface !== null) {
147147
$result = \com_print_typeinfo($variant, $dispatch_interface);
148-
} else {
148+
}else {
149149
$result = \com_print_typeinfo($variant);
150150
}
151151
if ($result === false) {
@@ -185,7 +185,7 @@ function variant_date_to_timestamp(object $variant): int
185185
* @throws ComException
186186
*
187187
*/
188-
function variant_round($value, int $decimals)
188+
function variant_round( $value, int $decimals)
189189
{
190190
error_clear_last();
191191
$result = \variant_round($value, $decimals);
@@ -194,3 +194,4 @@ function variant_round($value, int $decimals)
194194
}
195195
return $result;
196196
}
197+

0 commit comments

Comments
 (0)