summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2019-04-24 13:50:01 +0200
committermsquare <msquare@notrademark.de>2019-04-25 18:17:19 +0200
commit819677c9025471c8951ead7905bcde2e3ed635c5 (patch)
treee65e94e621930431c89b511f6ac33db1b45e7386
parent8da8805f5d7fcdf822757c6892c619237fd40188 (diff)
Use self references and fix class naming
-rw-r--r--src/Application.php2
-rw-r--r--src/Models/LogEntry.php2
-rw-r--r--tests/Unit/Container/ServiceProviderTest.php4
3 files changed, 4 insertions, 4 deletions
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')
diff --git a/tests/Unit/Container/ServiceProviderTest.php b/tests/Unit/Container/ServiceProviderTest.php
index b817e3bb..14b631c0 100644
--- a/tests/Unit/Container/ServiceProviderTest.php
+++ b/tests/Unit/Container/ServiceProviderTest.php
@@ -4,9 +4,9 @@ namespace Engelsystem\Test\Unit\Container;
use Engelsystem\Container\ServiceProvider;
use Engelsystem\Test\Unit\Container\Stub\ServiceProviderImplementation;
-use Engelsystem\Test\Unit\ServiceProviderTest;
+use Engelsystem\Test\Unit\ServiceProviderTest as ServiceProviderTestCase;
-class ConfigServiceProviderTest extends ServiceProviderTest
+class ServiceProviderTest extends ServiceProviderTestCase
{
/**
* @covers \Engelsystem\Container\ServiceProvider::__construct