Function controller
has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
public function controller($file_extensions, $file)
{
if (!is_array($file_extensions)) {
$file_extensions = [$file_extensions];
Function loadFile
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
public function loadFile($file_name, $extension, $full_path = '')
{
if (array_has(config('rev-manifest', []), $file_name) || (!empty($full_path) && file_exists($full_path))) {
if (env('APP_ASSET_INLINE', false)) {
if (!isset($this->loaded_inline[$full_path])) {
Method controller
has 35 lines of code (exceeds 25 allowed). Consider refactoring.
public function controller($file_extensions, $file)
{
if (!is_array($file_extensions)) {
$file_extensions = [$file_extensions];
Function elixir
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
public function elixir($file)
{
if (substr($file, 0, 4) === 'http') {
return $file;
}
Avoid too many return
statements within this method.
return '';
Avoid too many return
statements within this method.
return '/assets/'.$file;
Function loadContainer
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
private static function loadContainer($class_settings, $config = [])
{
if (is_array($class_settings)) {
$asset_name = array_shift($class_settings);
} else {