Skip to content

Commit

Permalink
phpcs fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ronb-lendesk committed Mar 21, 2022
1 parent 4b2fb46 commit f1d1fb1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 18 deletions.
3 changes: 2 additions & 1 deletion src/Fakes/FakeMetaCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ protected function registerClassAutoloadExceptions(): callable
// autoloader when it is done, and we certainly do not want to throw exceptions when we are simply checking if
// a certain class exists. We are instead changing this to be a noop.

return function () {};
return function () {
};
}
}
7 changes: 1 addition & 6 deletions src/Fakes/FakeModelsCommand210.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,7 @@
use Barryvdh\LaravelIdeHelper\Console\ModelsCommand;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Filesystem\Filesystem;
use Illuminate\Support\Str;
use Psalm\LaravelPlugin\Handlers\Eloquent\Schema\SchemaAggregator;
use function config;
use function get_class;
use function implode;
use function in_array;

class FakeModelsCommand210 extends ModelsCommand
{
Expand All @@ -30,7 +25,7 @@ public function __construct(Filesystem $files, SchemaAggregator $schema)
*
* @param Model $model
*/
public function getPropertiesFromTable($model) : void
public function getPropertiesFromTable($model): void
{
$this->getProperties($model);
}
Expand Down
11 changes: 3 additions & 8 deletions src/Fakes/FakeModelsCommand291.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,18 @@
use Barryvdh\LaravelIdeHelper\Console\ModelsCommand;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Filesystem\Filesystem;
use Illuminate\Support\Str;
use Psalm\LaravelPlugin\Handlers\Eloquent\Schema\SchemaAggregator;
use function config;
use function get_class;
use function implode;
use function in_array;

class FakeModelsCommand291 extends ModelsCommand
{
use FakeModelsCommandLogic;

/** @var SchemaAggregator */
private $schema;

/** @var array<class-string> */
private $model_classes = [];

use FakeModelsCommandLogic;

public function __construct(Filesystem $files, SchemaAggregator $schema)
{
parent::__construct($files);
Expand All @@ -33,7 +28,7 @@ public function __construct(Filesystem $files, SchemaAggregator $schema)
*
* @param Model $model
*/
protected function getPropertiesFromTable($model) : void
protected function getPropertiesFromTable($model): void
{
$this->getProperties($model);
}
Expand Down
7 changes: 4 additions & 3 deletions src/Providers/FakeModelsCommandProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
use Psalm\LaravelPlugin\Fakes\FakeModelsCommand210;
use Psalm\LaravelPlugin\Fakes\FakeModelsCommand291;
use Psalm\LaravelPlugin\Handlers\Eloquent\Schema\SchemaAggregator;
use function \version_compare;
use function \assert;
use function \is_string;

use function version_compare;
use function assert;
use function is_string;

class FakeModelsCommandProvider
{
Expand Down

0 comments on commit f1d1fb1

Please sign in to comment.