Skip to content

Commit

Permalink
Apply fixes from StyleCI (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhemphill authored Mar 22, 2024
1 parent 0cb37f9 commit cbe8d71
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
4 changes: 2 additions & 2 deletions tests/IntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ protected function getEnvironmentSetUp($app)
{
$app['config']->set('database.default', 'sqlite');
$app['config']->set('database.connections.sqlite', [
'driver' => 'sqlite',
'driver' => 'sqlite',
'database' => ':memory:',
'prefix' => '',
'prefix' => '',
]);
}

Expand Down
9 changes: 3 additions & 6 deletions tests/PresenterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ class PresenterTest extends IntegrationTest
public function can_get_the_original_model()
{
$user = factory(User::class)->create();
$presenter = new class($user) extends Presenter
{
$presenter = new class($user) extends Presenter {
};
$this->assertSame($user, $presenter->getModel());
}
Expand All @@ -45,8 +44,7 @@ public function middleName()
public function delegates_undefined_method_calls_to_the_underlying_model_instance()
{
$user = factory(User::class)->create();
$presenter = new class($user) extends Presenter
{
$presenter = new class($user) extends Presenter {
};
$this->assertEquals('Hello from the Model!', $presenter->sayHello());
}
Expand Down Expand Up @@ -219,8 +217,7 @@ public function fullName()
}
};

$presenter = new class($notAModel) extends Presenter
{
$presenter = new class($notAModel) extends Presenter {
};

$this->assertEquals('david', $presenter->name);
Expand Down

0 comments on commit cbe8d71

Please sign in to comment.