Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Commit 7ef7ceb

Browse files
committed
CS fixes
- Use `::class` notation whenever possible. - Removed parentheses around ternary condition; not necessary. - Removed excessive whitespace. - Use relative namespaces when possible. - Updated return typehint
1 parent 968ecb4 commit 7ef7ceb

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/Headers.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -473,14 +473,12 @@ public function forceLoading()
473473
* Create Header object from header line
474474
*
475475
* @param string $headerLine
476-
* @return \Zend\Mail\Header\HeaderInterface
476+
* @return Header\HeaderInterface|Header\HeaderInterface[]
477477
*/
478478
public function loadHeader($headerLine)
479479
{
480-
list($name, ) = \Zend\Mail\Header\GenericHeader::splitHeaderLine($headerLine);
481-
482-
$class = ($this->getPluginClassLoader()->load($name)) ?: 'Zend\Mail\Header\GenericHeader';
483-
480+
list($name, ) = Header\GenericHeader::splitHeaderLine($headerLine);
481+
$class = $this->getPluginClassLoader()->load($name) ?: Header\GenericHeader::class;
484482
return $class::fromString($headerLine);
485483
}
486484

0 commit comments

Comments
 (0)