Skip to content

Commit

Permalink
Tiny style fix/reset
Browse files Browse the repository at this point in the history
  • Loading branch information
czim committed Oct 24, 2019
1 parent 63acb1a commit 3518ed8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/AbstractNestedParser.php
Expand Up @@ -6,8 +6,8 @@
use Czim\NestedModelUpdater\Data\RelationInfo;
use Czim\NestedModelUpdater\Exceptions\NestedModelNotFoundException;
use Czim\NestedModelUpdater\Traits\TracksTemporaryIds;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletingScope;
use Illuminate\Support\Arr;
use Illuminate\Support\Facades\App;
Expand Down
10 changes: 5 additions & 5 deletions tests/BasicModelUpdaterTest.php
Expand Up @@ -488,7 +488,7 @@ function it_throws_an_exception_if_nested_relation_data_is_of_incorrect_type()
$post = $this->createPost();

$data = [
'genre' => (object)['incorrect' => 'data'],
'genre' => (object) ['incorrect' => 'data'],
];

$updater = new ModelUpdater(Post::class);
Expand Down Expand Up @@ -587,8 +587,8 @@ function it_rolls_back_changes_if_exception_is_thrown()
$post = $this->createPost();

$data = [
'title' => 'this should be',
'body' => 'rolled back',
'title' => 'this should be',
'body' => 'rolled back',
// comments is a HasMany relation, so the model is
// updated and persisted before this is parsed
'comments' => [
Expand Down Expand Up @@ -625,8 +625,8 @@ function it_can_be_configured_not_to_use_database_transactions()
$post = $this->createPost();

$data = [
'title' => 'this should be',
'body' => 'rolled back',
'title' => 'this should be',
'body' => 'rolled back',
// comments is a HasMany relation, so the model is
// updated and persisted before this is parsed
'comments' => [
Expand Down

0 comments on commit 3518ed8

Please sign in to comment.