Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
cbl committed May 19, 2021
1 parent d7f9523 commit 3baf475
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Database/Eloquent/Relations/HasOne.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ public function match(array $models, Collection $results, $relation)
*/
public function getRelationExistenceQuery(Builder $query, Builder $parentQuery, $columns = ['*'])
{
if($this->isOneOfMany()) {
if ($this->isOneOfMany()) {
$this->mergeJoinsTo($query);
}

return parent::getRelationExistenceQuery($query, $parentQuery, $columns);
}

Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Database/Eloquent/Relations/MorphOne.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function match(array $models, Collection $results, $relation)
*/
public function getRelationExistenceQuery(Builder $query, Builder $parentQuery, $columns = ['*'])
{
if($this->isOneOfMany()) {
if ($this->isOneOfMany()) {
$this->mergeJoinsTo($query);
}

Expand Down
4 changes: 2 additions & 2 deletions tests/Database/DatabaseEloquentMorphOneOfManyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public function testWithExistsWithConstraintsInJoinSubSelect()

$product->states()->create([
'state' => 'draft',
'type' => 'foo'
'type' => 'foo',
]);
$product = MorphOneOfManyTestProduct::withExists('current_foo_state')->first();
$this->assertTrue($product->current_foo_state_exists);
Expand Down Expand Up @@ -183,7 +183,7 @@ public function current_foo_state()
{
return $this->morphOne(MorphOneOfManyTestState::class, 'stateful')->ofMany(
['id' => 'max'],
function($q) {
function ($q) {
$q->where('type', 'foo');
}
);
Expand Down

0 comments on commit 3baf475

Please sign in to comment.