File LncFiles.php
has 267 lines of code (exceeds 250 allowed). Consider refactoring.
<?php
declare(strict_types=1);
namespace Bnomei;
Function registerAllTemplates
has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
public function registerAllTemplates(): array
{
$this->files = $this->load();
$anyPartialNeedsUpdate = false;
Method scan
has 26 lines of code (exceeds 25 allowed). Consider refactoring.
public function scan(): array
{
$files = [];
$dirs = [
[$this->option('dir-templates'), false],
Function scan
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
public function scan(): array
{
$files = [];
$dirs = [
[$this->option('dir-templates'), false],
Function precompiledTemplate
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
public function precompiledTemplate($name): string
{
foreach ($this->files as $lncFile) {
if ($lncFile->partial() === false && $lncFile->name() === $name) {
$php = $lncFile->php();
Function __construct
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
public function __construct(array $options = [])
{
$defaults = [
'debug' => option('debug'),
'compile-flags' => option('bnomei.handlebars.compile-flags'),
There are no issues that match your filters.