Skip to content

Commit cc0e9ec

Browse files
committed
Fix CS
1 parent 3b32938 commit cc0e9ec

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/ScalarValues.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class ScalarValues
1818
public static function containsOnlyScalarValues(array $array): bool
1919
{
2020
foreach ($array as $child) {
21-
if (!is_scalar($child)) {
21+
if (!\is_scalar($child)) {
2222
return false;
2323
}
2424
}
@@ -29,7 +29,7 @@ public static function containsOnlyScalarValues(array $array): bool
2929
public static function filterScalarValues(array $array): array
3030
{
3131
return array_filter($array, function ($child) {
32-
return is_scalar($child);
32+
return \is_scalar($child);
3333
});
3434
}
3535
}

tests/ScalarValuesTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ public function testContainsOnlyScalarValues($input, $expected): void
3131

3232
public function getTestContainsOnlyScalarValuesProdiver(): array
3333
{
34-
//Colonne 1: Input
35-
//Colonne 2: Expected result
34+
// Colonne 1: Input
35+
// Colonne 2: Expected result
3636

3737
return [
3838
[[], true],
@@ -81,8 +81,8 @@ public function testFilterScalarValues($input, $expected): void
8181

8282
public function getTestFilterScalarValuesProdiver(): array
8383
{
84-
//Colonne 1: Input
85-
//Colonne 2: Expected result
84+
// Colonne 1: Input
85+
// Colonne 2: Expected result
8686

8787
return [
8888
[[], []],

0 commit comments

Comments
 (0)