. */ namespace SP\Modules\Cli\Commands; use RuntimeException; /** * */ final class Validators { public static function valueNotEmpty( ?string $value, ?string $message ): string { if (empty($value)) { throw new RuntimeException($message ?? __u('Value cannot be blank')); } return $value; } }