src/Manager/Plugins.php
Method launchPlugins
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function launchPlugins(?bool $protected = null): void
{
$this->getAllPlugins()->each(function (GenericPlugin $plugin) use ($protected) {
$start = round(microtime(true) * 1000);
$plugin->stats = [
File Plugins.php
has 255 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace Voyager\Admin\Manager;
use Composer\InstalledVersions;
Method addPlugin
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function addPlugin(string|GenericPlugin $plugin): void
{
$start = round(microtime(true) * 1000);
if (!$this->enabled_plugins) {
$this->loadEnabledPlugins();