Skip to content

Commit 3a962de

Browse files
committed
cs
1 parent 96e370b commit 3a962de

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/Dibi/Drivers/SqliteDriver.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,8 @@ public function registerAggregateFunction(
292292
callable $rowCallback,
293293
callable $agrCallback,
294294
int $numArgs = -1
295-
): void {
295+
): void
296+
{
296297
$this->connection->createAggregate($name, $rowCallback, $agrCallback, $numArgs);
297298
}
298299
}

src/Dibi/Translator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public function translate(array $args): string
109109
(\?) ## 11) placeholder
110110
)/xs
111111
XX
112-
,
112+
,
113113
[$this, 'cb'],
114114
substr($arg, $toSkip)
115115
);
@@ -448,7 +448,7 @@ public function formatValue($value, ?string $modifier): string
448448
:(\S*?:)([a-zA-Z0-9._]?)
449449
)/sx
450450
XX
451-
,
451+
,
452452
[$this, 'cb'],
453453
substr($value, $toSkip)
454454
);

src/Dibi/dibi.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ class dibi
4444
IDENTIFIER = 'n';
4545

4646
/** version */
47-
public const
48-
VERSION = '4.2.6';
47+
public const VERSION = '4.2.6';
4948

5049
/** sorting order */
5150
public const

tests/dibi/bootstrap.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function test(string $title, Closure $function): void
5151
/** Replaces [] with driver-specific quotes */
5252
function reformat($s)
5353
{
54-
global $config;
54+
$config = $GLOBALS['config'];
5555
if (is_array($s)) {
5656
if (isset($s[$config['system']])) {
5757
return $s[$config['system']];
@@ -72,7 +72,7 @@ function reformat($s)
7272

7373
function num($n)
7474
{
75-
global $config;
75+
$config = $GLOBALS['config'];
7676
if (substr($config['dsn'] ?? '', 0, 5) === 'odbc:') {
7777
$n = is_float($n) ? "$n.0" : (string) $n;
7878
}

0 commit comments

Comments
 (0)