From 819677c9025471c8951ead7905bcde2e3ed635c5 Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Wed, 24 Apr 2019 13:50:01 +0200 Subject: Use self references and fix class naming --- src/Application.php | 2 +- src/Models/LogEntry.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Application.php b/src/Application.php index 02518423..ac69c20a 100644 --- a/src/Application.php +++ b/src/Application.php @@ -50,7 +50,7 @@ class Application extends Container $this->instance(Container::class, $this); $this->instance(Application::class, $this); $this->instance(IlluminateContainer::class, $this); - $this->bind(ContainerInterface::class, Application::class); + $this->bind(ContainerInterface::class, self::class); } /** diff --git a/src/Models/LogEntry.php b/src/Models/LogEntry.php index 0018841a..db427eb9 100644 --- a/src/Models/LogEntry.php +++ b/src/Models/LogEntry.php @@ -40,7 +40,7 @@ class LogEntry extends BaseModel */ public static function filter($keyword = null) { - $query = LogEntry::query() + $query = self::query() ->select() ->orderByDesc('created_at') ->orderByDesc('id') -- cgit v1.2.3-70-g09d2