Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor committed Oct 21, 2023
1 parent 8eb31e6 commit d9c0d22
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 12 deletions.
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,12 @@ indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true
eclint_block_comment_start = /*
eclint_block_comment = *
eclint_block_comment_end = */

[*.md]
indent_size = 2
trim_trailing_whitespace = false

[*.yml]
Expand Down
22 changes: 13 additions & 9 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
.editorconfig export-ignore
.gitattributes export-ignore
.gitignore export-ignore
.php-cs-fixer.php export-ignore
phpunit.xml export-ignore
tests export-ignore
git-hooks export-ignore
bin/add-git-hooks export-ignore
.github export-ignore
/bin/ export-ignore
/CHANGELOG.md export-ignore
/CONTRIBUTING.md export-ignore
/.editorconfig export-ignore
/.gitattributes export-ignore
/git-hooks/ export-ignore
/.github/ export-ignore
/.gitignore export-ignore
/.php-cs-fixer.php export-ignore
/phpstan.neon export-ignore
/phpunit.xml export-ignore
/tests/ export-ignore
/UPGRADE.md export-ignore
2 changes: 1 addition & 1 deletion UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
if the URL in question is a relative reference.
- If you're using any other class than the `Url` class directly in
your code, please take a look at the `CHANGELOG.md` entry for
v1.0.0.
v1.0.0.
2 changes: 1 addition & 1 deletion src/Host.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public function hasIdn(): bool
private function updateHost(): void
{
if ($this->domainNotEmpty()) {
$this->host = ($this->subdomain ? $this->subdomain . '.' : '') . $this->domain->__toString();
$this->host = ($this->subdomain ? $this->subdomain . '.' : '') . $this->domain->__toString();
} else {
$this->host = '';
}
Expand Down
2 changes: 1 addition & 1 deletion src/Lists/WebUpdater.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ protected function getOriginalContent(): string
$context = stream_context_create(['http' =>
[
'method' => 'GET',
'header' => [
'header' => [
'User-Agent: https://github.com/crwlrsoft/url/blob/master/src/Lists/WebUpdater.php',
]
]
Expand Down

0 comments on commit d9c0d22

Please sign in to comment.