[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:
Markus Podar
2020-08-10 10:22:48 +02:00
committed by GitHub
parent 4b459d3e82
commit ba95d18ef5
74 changed files with 249 additions and 119 deletions
@@ -5,4 +5,4 @@ namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\LaravelCustomCas
class CastedProperty
{
}
}
@@ -22,4 +22,4 @@ class CustomCasterWithDocblockReturn implements CastsAttributes
{
// TODO: Implement set() method.
}
}
}
@@ -22,4 +22,4 @@ class CustomCasterWithNullablePrimitiveReturn implements CastsAttributes
{
// TODO: Implement set() method.
}
}
}
@@ -22,4 +22,4 @@ class CustomCasterWithPrimitiveDocblockReturn implements CastsAttributes
{
// TODO: Implement set() method.
}
}
}
@@ -22,4 +22,4 @@ class CustomCasterWithPrimitiveReturn implements CastsAttributes
{
// TODO: Implement set() method.
}
}
}
@@ -21,4 +21,4 @@ class CustomCasterWithReturnType implements CastsAttributes
{
// TODO: Implement set() method.
}
}
}
@@ -18,4 +18,4 @@ class CustomCasterWithoutReturnType implements CastsAttributes
{
// TODO: Implement set() method.
}
}
}
@@ -1,4 +1,6 @@
<?php declare(strict_types=1);
<?php
declare(strict_types=1);
namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\LaravelCustomCasts\Models;
@@ -1,4 +1,6 @@
<?php declare(strict_types=1);
<?php
declare(strict_types=1);
namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\LaravelCustomCasts;
@@ -39,7 +41,7 @@ class Test extends AbstractModelsCommand
$mockFilesystem = Mockery::mock(Filesystem::class);
$mockFilesystem
->shouldReceive('get')
->andReturn(file_get_contents(__DIR__.'/Models/CustomCast.php'))
->andReturn(file_get_contents(__DIR__ . '/Models/CustomCast.php'))
->once();
$mockFilesystem
->shouldReceive('put')
@@ -1,4 +1,6 @@
<?php declare(strict_types=1);
<?php
declare(strict_types=1);
namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\LaravelCustomCasts\Models;