mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-17 17:47:13 +00:00
[PHPCS] Extend to check/fix all source code and turn GHA into auto-commit fixer (#1003)
* phpcs: enable also for config, resources and tests
* composer fix-style
* vendor/bin/phpunit -d --update-snapshots
* gha: instead of checking the style, fix and auto-commit it 💪
This commit is contained in:
@@ -41,7 +41,7 @@ class ExampleTest extends TestCase
|
||||
*/';
|
||||
$this->assertSame($output, $method->getDocComment(''));
|
||||
$this->assertSame('setName', $method->getName());
|
||||
$this->assertSame('\\'.ExampleClass::class, $method->getDeclaringClass());
|
||||
$this->assertSame('\\' . ExampleClass::class, $method->getDeclaringClass());
|
||||
$this->assertSame('$last, $first, ...$middle', $method->getParams(true));
|
||||
$this->assertSame(['$last', '$first', '...$middle'], $method->getParams(false));
|
||||
$this->assertSame('$last, $first = \'Barry\', ...$middle', $method->getParamsWithDefault(true));
|
||||
@@ -68,7 +68,7 @@ class ExampleTest extends TestCase
|
||||
*/';
|
||||
$this->assertSame($output, $method->getDocComment(''));
|
||||
$this->assertSame('with', $method->getName());
|
||||
$this->assertSame('\\'.Builder::class, $method->getDeclaringClass());
|
||||
$this->assertSame('\\' . Builder::class, $method->getDeclaringClass());
|
||||
$this->assertSame('$relations', $method->getParams(true));
|
||||
$this->assertSame(['$relations'], $method->getParams(false));
|
||||
$this->assertSame('$relations', $method->getParamsWithDefault(true));
|
||||
|
||||
Reference in New Issue
Block a user