Skip to content

Commit

Permalink
Merge pull request #4 from voku/analysis-zYa1R0
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
voku committed Dec 3, 2017
2 parents 9e39483 + 2f7aa02 commit 9cce270
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Purl/AbstractPart.php
Expand Up @@ -224,7 +224,7 @@ public function offsetGet($key): bool
*
* @return AbstractPart
*/
public function offsetSet($key, $value): AbstractPart
public function offsetSet($key, $value): self
{
return $this->set($key, $value);
}
Expand Down
6 changes: 3 additions & 3 deletions src/Purl/Url.php
Expand Up @@ -86,7 +86,7 @@ public function __construct($url = null, ParserInterface $parser = null)
*
* @return Url
*/
public static function parse($url): Url
public static function parse($url): self
{
return new self($url);
}
Expand Down Expand Up @@ -116,7 +116,7 @@ public static function extract($string): array
*
* @return Url
*/
public static function fromCurrent(): Url
public static function fromCurrent(): self
{
$scheme = (
(!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off')
Expand Down Expand Up @@ -197,7 +197,7 @@ public function setParser(ParserInterface $parser)
*
* @return Url
*/
public function join($url): Url
public function join($url): self
{
$this->initialize();
$parts = $this->getParser()->parseUrl($url);
Expand Down

0 comments on commit 9cce270

Please sign in to comment.