Change joins with a collection to use collection joins
This commit is contained in:
@@ -394,7 +394,7 @@ class Message extends FTNBase
|
||||
{
|
||||
$return = '';
|
||||
|
||||
$return .= pack(join('',collect(self::header)->pluck(1)->toArray()),
|
||||
$return .= pack(collect(self::header)->pluck(1)->join(''),
|
||||
$this->ff,
|
||||
$this->tf,
|
||||
$this->fn,
|
||||
@@ -723,7 +723,7 @@ class Message extends FTNBase
|
||||
'flags' => 'required|numeric',
|
||||
'cost' => 'required|numeric',
|
||||
'echoarea' => 'nullable|max:'.self::AREATAG_LEN,
|
||||
'ozone' => ['required',$this->domain ? 'in:'.$x=join(',',$this->domain->zones->pluck('zone_id')->toArray()): ''],
|
||||
'ozone' => ['required',$this->domain ? 'in:'.$x=$this->domain->zones->pluck('zone_id')->join(','): ''],
|
||||
'dzone' => ['required',$this->domain ? 'in:'.$x : '']
|
||||
]);
|
||||
|
||||
|
@@ -269,7 +269,7 @@ class Packet extends FTNBase
|
||||
private function createHeader(): string
|
||||
{
|
||||
try {
|
||||
$a = pack(join('',collect(self::v2header)->pluck(1)->toArray()),
|
||||
$a = pack(collect(self::v2header)->pluck(1)->join(''),
|
||||
$this->ff,
|
||||
$this->tf,
|
||||
Arr::get($this->header,'y'),
|
||||
|
Reference in New Issue
Block a user