It seems like pathSource() must be provided by classes using this trait. How about adding it as abstract method to this trait?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
24
/** @scrutinizer ignore-call */
25
$path = $this->pathSource($package, $locale);
Loading history...
25
26
16
return $this->files[$package] = File::names($path, static function ($filename) {
27
16
return ! Str::contains($filename, 'inline');
28
16
});
29
}
30
31
16
protected function filesLength(): int
32
{
33
16
$this->log('Getting the maximum length of a filenames...');
34
35
16
if ($this->files_length > 0) {
36
16
return $this->files_length;
37
}
38
39
16
$this->log('Calculating the maximum length of a filenames...');
It seems like packages() must be provided by classes using this trait. How about adding it as abstract method to this trait?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
43
foreach ($this->/** @scrutinizer ignore-call */ packages() as $package) {
It seems like plugins() must be provided by classes using this trait. How about adding it as abstract method to this trait?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
46
foreach ($this->/** @scrutinizer ignore-call */ plugins() as $plugin) {