for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Helldar\LaravelLangPublisher\Concerns;
use Helldar\LaravelLangPublisher\Facades\Path;
trait Keyable
{
protected function key(string $filename): string
return $this->isJson($filename) ? 'json' : Path::filename($filename);
isJson()
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
return $this->/** @scrutinizer ignore-call */ isJson($filename) ? 'json' : Path::filename($filename);
}