Skip to content

Commit bcab4e9

Browse files
committed
Update to PHP CS FIxer V3.18
1 parent 01eb2de commit bcab4e9

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

PhpCsFixer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@
230230
// A PHP file without end tag must always end with a single empty line feed.
231231
'single_blank_line_at_eof' => true,
232232
// There should be exactly one blank line before a namespace declaration.
233-
'single_blank_line_before_namespace' => true,
233+
'blank_lines_before_namespace' => ['max_line_breaks' => 2, 'min_line_breaks' => 2],
234234
// There MUST NOT be more than one property or constant declared per statement.
235235
'single_class_element_per_statement' => true,
236236
// There MUST be one use keyword per declaration.

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ composer require phpfui/phpunit-syntax-coverage
2121
Extend your unit tests from \PHPFUI\PHPUnitSyntaxCoverage\Extensions
2222
```php
2323
class UnitTest extends \PHPFUI\PHPUnitSyntaxCoverage\Extensions
24-
{
25-
public function testProjectSyntax()
26-
{
27-
$this->addSkipDirectory(__DIR__ . '/../App/Examples');
28-
$this->assertValidPHPDirectory(__DIR__ . '/../App', 'App directory has an error');
29-
$this->assertValidPHPFile(__FILE__, 'Unit Test file not valid');
30-
$this->assertValidPHP('<?php echo "hi";');
31-
}
32-
}
24+
{
25+
public function testProjectSyntax()
26+
{
27+
$this->addSkipDirectory(__DIR__ . '/../App/Examples');
28+
$this->assertValidPHPDirectory(__DIR__ . '/../App', 'App directory has an error');
29+
$this->assertValidPHPFile(__FILE__, 'Unit Test file not valid');
30+
$this->assertValidPHP('<?php echo "hi";');
31+
}
32+
}
3333
```
3434
You can use any of the following asserts:
3535
- assertValidPHP(string $code, string $message = '')
@@ -39,7 +39,7 @@ You can use any of the following asserts:
3939
## Directory Testing
4040
Instead of file by file testing, use **assertValidPHPDirectory** to test an entire directory. Any files added to the directory will be automatically tested.
4141
```php
42-
$this->assertValidPHPDirectory(__DIR__ . '/../App', 'App directory error');
42+
$this->assertValidPHPDirectory(__DIR__ . '/../App', 'App directory error');
4343
```
4444
The error message will include the offending file name and line number.
4545

0 commit comments

Comments
 (0)