Remove dead code and unused helper (#1183)

* Remove unnecessary check

* Remove helper class
This commit is contained in:
netpok
2021-03-17 12:21:59 +01:00
committed by GitHub
parent f7f7e9e65a
commit 244e936b74
2 changed files with 0 additions and 17 deletions
-13
View File
@@ -1,13 +0,0 @@
<?php
declare(strict_types=1);
namespace Barryvdh\LaravelIdeHelper;
class Helpers
{
public static function isLaravel(): bool
{
return class_exists('Illuminate\Foundation\Application');
}
}
-4
View File
@@ -120,10 +120,6 @@ class IdeHelperServiceProvider extends ServiceProvider implements DeferrableProv
{
$resolver = new EngineResolver();
$resolver->register('php', function () {
if (Helpers::isLaravel() && (int) Application::VERSION < 8) {
return new PhpEngine();
}
return new PhpEngine($this->app['files']);
});
$finder = new FileViewFinder($this->app['files'], [__DIR__ . '/../resources/views']);