diff --git a/README.md b/README.md
index 417fb59..9275d80 100644
--- a/README.md
+++ b/README.md
@@ -74,7 +74,7 @@ Alternatively, you may also directly use the highlight component in your markup.
```php
[
- 'enabled' => env('DOTOO_ENABLED', app()->isLocal()),
+ 'enabled' => env('MAGIC_TODO_ENABLED', app()->isLocal()),
'open' => 'TODO:',
'close' => 'ENDTODO',
];
diff --git a/config/magic-todo.php b/config/magic-todo.php
index e315438..a320151 100644
--- a/config/magic-todo.php
+++ b/config/magic-todo.php
@@ -1,7 +1,7 @@
env('DOTOO_ENABLED', app()->isLocal()),
+ 'enabled' => env('MAGIC_TODO_ENABLED', app()->isLocal()),
'open' => '|TODO',
'close' => '|ENDTODO',
];
diff --git a/phpunit.xml b/phpunit.xml
index 455622d..f9b9cc3 100644
--- a/phpunit.xml
+++ b/phpunit.xml
@@ -16,6 +16,6 @@
-
+
diff --git a/src/InjectAssets.php b/src/InjectAssets.php
index 32fc62d..f042995 100644
--- a/src/InjectAssets.php
+++ b/src/InjectAssets.php
@@ -26,7 +26,7 @@ public function __invoke(RequestHandled $handled)
}
// Skip if core was included before
- if (str_contains($html, '')) {
+ if (str_contains($html, '')) {
return;
}
@@ -39,10 +39,10 @@ public function __invoke(RequestHandled $handled)
$handled->response->setContent(
$this->injectAssets($html, <<< HTML
-
+
-
+
HTML)
);
diff --git a/tests/Feature/InjectsAssetsTest.php b/tests/Feature/InjectsAssetsTest.php
index f6aa105..ab325c5 100644
--- a/tests/Feature/InjectsAssetsTest.php
+++ b/tests/Feature/InjectsAssetsTest.php
@@ -5,7 +5,7 @@
$this->get('test-inject-in-response')
->assertOk()
- ->assertSee('', false);
+ ->assertSee('', false);
});
it('injects assets into html body when no head tag is present', function () {
@@ -13,7 +13,7 @@
$this->get('test-inject-in-response')
->assertOk()
- ->assertSee('', false);
+ ->assertSee('', false);
});
it('doesnt inject assets into responses without a closing html tag', function () {
@@ -21,5 +21,5 @@
$this->get('test-inject-in-response')
->assertOk()
- ->assertDontSee('', false);
+ ->assertDontSee('', false);
});