for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ByTIC\Assets\Assets\Traits;
use ByTIC\Assets\Assets\EntryPoint;
/**
* Trait HasEntriesTrait
* @package ByTIC\Assets\Assets\Traits
*/
trait HasEntriesTrait
{
* All of the instantiated asset containers.
*
* @var array
protected $entries = [];
* @param string $entry
* @return EntryPoint
public static function entry(string $entry = '_default')
$entry
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public static function entry(/** @scrutinizer ignore-unused */ string $entry = '_default')
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
return static::instance()->getEntry();
}
public function getEntry(string $entry = '_default')
if (!isset($this->entries[$entry])) {
$this->entries[$entry] = new EntryPoint();
return $this->entries[$entry];
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.