mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-23 12:33:08 +00:00
Remove dead code and unused helper (#1183)
* Remove unnecessary check * Remove helper class
This commit is contained in:
@@ -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');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -120,10 +120,6 @@ class IdeHelperServiceProvider extends ServiceProvider implements DeferrableProv
|
|||||||
{
|
{
|
||||||
$resolver = new EngineResolver();
|
$resolver = new EngineResolver();
|
||||||
$resolver->register('php', function () {
|
$resolver->register('php', function () {
|
||||||
if (Helpers::isLaravel() && (int) Application::VERSION < 8) {
|
|
||||||
return new PhpEngine();
|
|
||||||
}
|
|
||||||
|
|
||||||
return new PhpEngine($this->app['files']);
|
return new PhpEngine($this->app['files']);
|
||||||
});
|
});
|
||||||
$finder = new FileViewFinder($this->app['files'], [__DIR__ . '/../resources/views']);
|
$finder = new FileViewFinder($this->app['files'], [__DIR__ . '/../resources/views']);
|
||||||
|
|||||||
Reference in New Issue
Block a user