for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace LaraGeoData\Console\Commands;
use Illuminate\Support\Str;
trait HasSuffixOption
{
/**
* Get formatted suffix.
*
* @return string|null
*/
protected function getSuffix(): ?string
$suffix = $this->option('suffix');
option()
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
/** @scrutinizer ignore-call */
if ($suffix) {
$suffix = Str::snake($suffix);
}
return $suffix;