diff --git a/src/Storage/EntryModel.php b/src/Storage/EntryModel.php index ade1553d9..792414c9a 100644 --- a/src/Storage/EntryModel.php +++ b/src/Storage/EntryModel.php @@ -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; @@ -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; diff --git a/src/Storage/EntryQueryOptions.php b/src/Storage/EntryQueryOptions.php index a7e749fc1..6ebe54e4e 100644 --- a/src/Storage/EntryQueryOptions.php +++ b/src/Storage/EntryQueryOptions.php @@ -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) @@ -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)