Skip to content

Commit

Permalink
fix: styles
Browse files Browse the repository at this point in the history
  • Loading branch information
MerkulovKA committed Sep 11, 2024
1 parent 5eb77b5 commit 7eb9dfe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions src/Storage/EntryModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,14 @@ protected function whereBatchId($query, EntryQueryOptions $options)
/**
* Scope the query for the given email.
*
* @param $query
* @param EntryQueryOptions $options
* @param \Illuminate\Database\Eloquent\Builder $query
* @param \Laravel\Telescope\Storage\EntryQueryOptions $options
* @return $this
*/
protected function whereEmail($query, EntryQueryOptions $options)
{
$query->when($options->email, function ($query, $email) {
return $query->where('content->user','like','%'.$email.'%');
return $query->where('content->user', 'like', '%'.$email.'%');
});

return $this;
Expand All @@ -127,14 +127,14 @@ protected function whereEmail($query, EntryQueryOptions $options)
/**
* Scope the query for the given status.
*
* @param $query
* @param EntryQueryOptions $options
* @param \Illuminate\Database\Eloquent\Builder $query
* @param \Laravel\Telescope\Storage\EntryQueryOptions $options
* @return $this
*/
protected function whereStatus($query, EntryQueryOptions $options)
{
$query->when($options->status, function ($query, $status) {
return $query->where('content->response_status','like','%'.$status.'%');
return $query->where('content->response_status', 'like' ,'%'.$status.'%');
});

return $this;
Expand Down
4 changes: 2 additions & 2 deletions src/Storage/EntryQueryOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public function batchId(?string $batchId)
/**
* Set the email that entries should belong to.
*
* @param string $email
* @param string $email
* @return $this
*/
public function email(?string $email)
Expand All @@ -121,7 +121,7 @@ public function email(?string $email)
/**
* Set the status that entries should belong to.
*
* @param string $status
* @param string $status
* @return $this
*/
public function status(?string $status)
Expand Down

0 comments on commit 7eb9dfe

Please sign in to comment.