New algorithm for calculating packet name, EMSI/BINKP inbound processing tested, Netmail rejection and intransit processing
This commit is contained in:
@@ -19,7 +19,7 @@ abstract class Process
|
||||
/**
|
||||
* This function will format text to static::MSG_WIDTH, as well as adding the logo.
|
||||
*/
|
||||
protected static function format_msg(string $text): string
|
||||
public static function format_msg(string $text,array $logo = []): string
|
||||
{
|
||||
$msg = utf8_decode(join("\r",static::msg_header()))."\r";
|
||||
$c = 0;
|
||||
@@ -29,8 +29,8 @@ abstract class Process
|
||||
$ll = '';
|
||||
|
||||
// Add our logo
|
||||
if ($c<count(static::$logo)) {
|
||||
$line = utf8_decode(Arr::get(static::$logo,$c++));
|
||||
if ($c<count($logo)) {
|
||||
$line = utf8_decode(Arr::get($logo,$c++));
|
||||
$ll = $line.' ';
|
||||
}
|
||||
|
||||
@@ -60,8 +60,8 @@ abstract class Process
|
||||
}
|
||||
|
||||
// In case our text is shorter than the loo
|
||||
for ($c; $c<count(static::$logo);$c++)
|
||||
$msg .= utf8_decode(Arr::get(static::$logo,$c))."\r";
|
||||
for ($c; $c<count($logo);$c++)
|
||||
$msg .= utf8_decode(Arr::get($logo,$c))."\r";
|
||||
|
||||
return $msg;
|
||||
}
|
||||
|
Reference in New Issue
Block a user