Skip to content

Commit

Permalink
cs
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Oct 13, 2022
1 parent 96e370b commit 3a962de
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
3 changes: 2 additions & 1 deletion src/Dibi/Drivers/SqliteDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,8 @@ public function registerAggregateFunction(
callable $rowCallback,
callable $agrCallback,
int $numArgs = -1
): void {
): void
{
$this->connection->createAggregate($name, $rowCallback, $agrCallback, $numArgs);
}
}
4 changes: 2 additions & 2 deletions src/Dibi/Translator.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function translate(array $args): string
(\?) ## 11) placeholder
)/xs
XX
,
,
[$this, 'cb'],
substr($arg, $toSkip)
);
Expand Down Expand Up @@ -448,7 +448,7 @@ public function formatValue($value, ?string $modifier): string
:(\S*?:)([a-zA-Z0-9._]?)
)/sx
XX
,
,
[$this, 'cb'],
substr($value, $toSkip)
);
Expand Down
3 changes: 1 addition & 2 deletions src/Dibi/dibi.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ class dibi
IDENTIFIER = 'n';

/** version */
public const
VERSION = '4.2.6';
public const VERSION = '4.2.6';

/** sorting order */
public const
Expand Down
4 changes: 2 additions & 2 deletions tests/dibi/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function test(string $title, Closure $function): void
/** Replaces [] with driver-specific quotes */
function reformat($s)
{
global $config;
$config = $GLOBALS['config'];
if (is_array($s)) {
if (isset($s[$config['system']])) {
return $s[$config['system']];
Expand All @@ -72,7 +72,7 @@ function reformat($s)

function num($n)
{
global $config;
$config = $GLOBALS['config'];
if (substr($config['dsn'] ?? '', 0, 5) === 'odbc:') {
$n = is_float($n) ? "$n.0" : (string) $n;
}
Expand Down

0 comments on commit 3a962de

Please sign in to comment.