Skip to content

Commit 84ed09d

Browse files
committed
Sort methods
1 parent 108b738 commit 84ed09d

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

src/Message.php

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -104,29 +104,6 @@ public function hasHead(): bool
104104
return ! empty($this->head);
105105
}
106106

107-
/**
108-
* Fetch the headers from the server.
109-
*/
110-
protected function fetchHead(): ?string
111-
{
112-
$response = $this->folder
113-
->mailbox()
114-
->connection()
115-
->bodyHeader($this->uid);
116-
117-
if ($response->isEmpty()) {
118-
return null;
119-
}
120-
121-
$data = $response->first()->tokenAt(3);
122-
123-
if (! $data instanceof ListData) {
124-
return null;
125-
}
126-
127-
return $data->lookup('[HEADER]')?->value;
128-
}
129-
130107
/**
131108
* Get the message's raw body.
132109
*/
@@ -607,6 +584,29 @@ public function isEmpty(): bool
607584
return ! $this->hasHead() && ! $this->hasBody();
608585
}
609586

587+
/**
588+
* Fetch the headers from the server.
589+
*/
590+
protected function fetchHead(): ?string
591+
{
592+
$response = $this->folder
593+
->mailbox()
594+
->connection()
595+
->bodyHeader($this->uid);
596+
597+
if ($response->isEmpty()) {
598+
return null;
599+
}
600+
601+
$data = $response->first()->tokenAt(3);
602+
603+
if (! $data instanceof ListData) {
604+
return null;
605+
}
606+
607+
return $data->lookup('[HEADER]')?->value;
608+
}
609+
610610
/**
611611
* Fetch the body structure data from the server.
612612
*/

0 commit comments

Comments
 (0)