for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Zvermafia\Larastate\Traits;
use function trans;
trait LocaleValuesTrait
{
use LocaleKeysTrait;
/**
* Get a localization for the given state and its value.
*
* @param string $state_name
* @param mixed $state_value
* @return string
*/
private function getLocale(string $state_name, $state_value): string
return trans($this->getLocaleKey($state_name, $state_value));
trans
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
return /** @scrutinizer ignore-call */ trans($this->getLocaleKey($state_name, $state_value));
}
* Get a localizations for the given state.
* @return array
private function getLocales(string $state_name): array
return trans($this->getLocalesKey($state_name));
return /** @scrutinizer ignore-call */ trans($this->getLocalesKey($state_name));