hnhdigital-os/laravel-resources-loader

View on GitHub
src/Assets/PasswordComplexifyInput.php

Summary

Maintainability
A
0 mins
Test Coverage

Showing 2 of 2 total issues

The method __construct has a boolean flag argument $version, which is a certain sign of a Single Responsibility Principle violation.
Open

public function __construct($version = false)

The method __construct uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

} else {
$version = Resource::version(class_basename(__CLASS__), $version);
Resource::add('https://cdnjs.cloudflare.com/ajax/libs/jquery.complexify.js/'.$version.'/jquery.complexify.min.js');
Resource::add('https://cdnjs.cloudflare.com/ajax/libs/jquery.complexify.js/'.$version.'/jquery.complexify.banlist.js');
Resource::add('vendor/complexify.css');

There are no issues that match your filters.

Category
Status