Skip to content

Commit a993c2a

Browse files
authored
Fix coding style via PHP_CS and PHP-CS-Fixer (#227)
1 parent 9e8363e commit a993c2a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Functional/Matching.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function matching(array $conditions)
4141
}
4242

4343

44-
if (PHP_VERSION_ID < 80000 && !function_exists('Functional\match')) {
44+
if (PHP_VERSION_ID < 80000 && !\function_exists('Functional\match')) {
4545
eval(<<<'ALIAS'
4646
namespace Functional;
4747

tests/Functional/IntersperseTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ public function test()
2020
{
2121
$array = ['a', 'b', 'c'];
2222
$traversable = new ArrayIterator($array);
23-
23+
2424
$expected = ['a', '-', 'b', '-', 'c'];
25-
25+
2626
$this->assertSame($expected, intersperse($array, '-'));
2727
$this->assertSame($expected, intersperse($traversable, '-'));
2828
}
@@ -32,12 +32,12 @@ public function testEmptyCollection()
3232
$this->assertSame([], intersperse([], '-'));
3333
$this->assertSame([], intersperse(new ArrayIterator([]), '-'));
3434
}
35-
35+
3636
public function testIntersperseWithArray()
3737
{
3838
$this->assertSame(['a', ['-'], 'b'], intersperse(['a', 'b'], ['-']));
3939
}
40-
40+
4141
public function testPassNoCollection()
4242
{
4343
$this->expectArgumentError(

0 commit comments

Comments
 (0)