Skip to content

Commit 51e9106

Browse files
taylorotwellStyleCIBot
authored andcommitted
Apply fixes from StyleCI
1 parent bc92a96 commit 51e9106

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Illuminate/Database/Eloquent/Concerns/QueriesRelationships.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -366,12 +366,12 @@ public function whereRelation($relation, $column, $operator = null, $value = nul
366366

367367
return $this->when(
368368
$relations->count() == 1,
369-
function($query) use ($relations, $column, $operator, $value) {
369+
function ($query) use ($relations, $column, $operator, $value) {
370370
$query->whereHas($relations->first(), function ($query) use ($column, $operator, $value) {
371371
$query->where($column, $operator, $value);
372372
});
373373
},
374-
function($query) use ($relations, $column, $operator, $value) {
374+
function ($query) use ($relations, $column, $operator, $value) {
375375
$query->whereHas($relations->first(), function ($query) use ($relations, $column, $operator, $value) {
376376
$relations->shift();
377377

@@ -393,15 +393,15 @@ function($query) use ($relations, $column, $operator, $value) {
393393
public function orWhereRelation($relation, $column, $operator = null, $value = null)
394394
{
395395
$relations = collect(explode('.', $relation));
396-
396+
397397
return $this->when(
398398
$relations->count() == 1,
399-
function($query) use ($relations, $column, $operator, $value) {
399+
function ($query) use ($relations, $column, $operator, $value) {
400400
$query->orWhereHas($relations->first(), function ($query) use ($column, $operator, $value) {
401401
$query->where($column, $operator, $value);
402402
});
403403
},
404-
function($query) use ($relations, $column, $operator, $value) {
404+
function ($query) use ($relations, $column, $operator, $value) {
405405
$query->orWhereHas($relations->first(), function ($query) use ($relations, $column, $operator, $value) {
406406
$relations->shift();
407407

0 commit comments

Comments
 (0)