Browse Source

Whitespace fixes

rpm
J. King 5 years ago
parent
commit
c59cdfef76
  1. 2
      lib/Db/AbstractStatement.php
  2. 2
      tests/cases/Misc/TestValueInfo.php

2
lib/Db/AbstractStatement.php

@ -71,7 +71,7 @@ abstract class AbstractStatement implements Statement {
}
protected function bindValues(array $values): bool {
// recursively flatten any arrays, which may be provided for SET or IN() clauses
// recursively flatten any arrays, which may be provided for SET or IN() clauses
$values = ValueInfo::flatten($values);
foreach ($values as $a => $value) {
if (array_key_exists($a, $this->types)) {

2
tests/cases/Misc/TestValueInfo.php

@ -642,7 +642,7 @@ class TestValueInfo extends \JKingWeb\Arsse\Test\AbstractTest {
public function testFlattenArray() {
$arr = [1, [2, 3, [4, 5]], 6, [[7, 8], 9, 10]];
$exp = range(1,10);
$exp = range(1, 10);
$this->assertSame($exp, I::flatten($arr));
}
}

Loading…
Cancel
Save