Skip to content

Commit 58a5a0c

Browse files
run composer fix-style
1 parent 42d39d2 commit 58a5a0c

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

src/Console/ModelsCommand.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -761,11 +761,13 @@ public function setMethod($name, $type = '', $arguments = [], $comment = '')
761761
}
762762
}
763763

764-
public function unsetMethod($name) {
764+
public function unsetMethod($name)
765+
{
765766
unset($this->methods[strtolower($name)]);
766767
}
767768

768-
public function getMethodType(Model $model, string $classType) {
769+
public function getMethodType(Model $model, string $classType)
770+
{
769771
$modelName = $this->getClassNameInDestinationFile($model, get_class($model));
770772
$builder = $this->getClassNameInDestinationFile($model, $classType);
771773
return $builder . '|' . $modelName;

tests/Console/ModelsCommand/ModelHooks/Hooks/UnsetMethod.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
use Barryvdh\LaravelIdeHelper\Console\ModelsCommand;
88
use Barryvdh\LaravelIdeHelper\Contracts\ModelHookInterface;
9-
use Illuminate\Database\Eloquent\Builder;
109
use Illuminate\Database\Eloquent\Model;
1110

1211
class UnsetMethod implements ModelHookInterface

tests/Console/ModelsCommand/ModelHooks/Test.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
use Barryvdh\LaravelIdeHelper\Console\ModelsCommand;
88
use Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\AbstractModelsCommand;
9-
use Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\ModelHooks\Hooks\CustomProperty;
109
use Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\ModelHooks\Hooks\CustomMethod;
10+
use Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\ModelHooks\Hooks\CustomProperty;
1111
use Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\ModelHooks\Hooks\UnsetMethod;
1212
use Illuminate\Filesystem\Filesystem;
1313
use Mockery;
@@ -27,7 +27,7 @@ protected function getEnvironmentSetUp($app)
2727
'model_hooks' => [
2828
CustomProperty::class,
2929
CustomMethod::class,
30-
UnsetMethod::class
30+
UnsetMethod::class,
3131
],
3232
]);
3333
}

0 commit comments

Comments
 (0)