mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2024-12-22 21:22:40 +00:00
Whitespace fixes
This commit is contained in:
parent
71c7cd8fb1
commit
c59cdfef76
4 changed files with 5 additions and 5 deletions
|
@ -71,7 +71,7 @@ abstract class AbstractStatement implements Statement {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function bindValues(array $values): bool {
|
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);
|
$values = ValueInfo::flatten($values);
|
||||||
foreach ($values as $a => $value) {
|
foreach ($values as $a => $value) {
|
||||||
if (array_key_exists($a, $this->types)) {
|
if (array_key_exists($a, $this->types)) {
|
||||||
|
|
|
@ -642,7 +642,7 @@ class TestValueInfo extends \JKingWeb\Arsse\Test\AbstractTest {
|
||||||
|
|
||||||
public function testFlattenArray() {
|
public function testFlattenArray() {
|
||||||
$arr = [1, [2, 3, [4, 5]], 6, [[7, 8], 9, 10]];
|
$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));
|
$this->assertSame($exp, I::flatten($arr));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue