Skip to content

Commit d1bca89

Browse files
committed
CS fixes.
1 parent 415b630 commit d1bca89

File tree

2 files changed

+19
-21
lines changed

2 files changed

+19
-21
lines changed

src/Pdp/Uri/Url.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ public function __construct(
9292
$this->fragment = $fragment;
9393
}
9494

95-
9695
/**
9796
* Gets schemeless url.
9897
*

src/Pdp/Uri/Url/Host.php

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,17 @@ class Host
3838
/**
3939
* Public constructor.
4040
*
41-
* @param string|null $subdomain Subdomain portion of host
41+
* @param string|null $subdomain Subdomain portion of host
4242
* @param string|null $registrableDomain Registrable domain portion of host
43-
* @param string|null $publicSuffix Public suffix portion of host
44-
* @param string $host OPTIONAL Entire host part
43+
* @param string|null $publicSuffix Public suffix portion of host
44+
* @param string $host OPTIONAL Entire host part
4545
*/
46-
public function __construct( $subdomain, $registrableDomain, $publicSuffix, $host = null )
46+
public function __construct($subdomain, $registrableDomain, $publicSuffix, $host = null)
4747
{
48-
$this->subdomain = $subdomain;
49-
$this->registrableDomain = $registrableDomain;
50-
$this->publicSuffix = $publicSuffix;
51-
$this->host = $host;
48+
$this->subdomain = $subdomain;
49+
$this->registrableDomain = $registrableDomain;
50+
$this->publicSuffix = $publicSuffix;
51+
$this->host = $host;
5252
}
5353

5454
/**
@@ -64,7 +64,7 @@ public function getSubdomain()
6464
/**
6565
* @param string $subdomain
6666
*/
67-
public function setSubdomain ( $subdomain )
67+
public function setSubdomain($subdomain)
6868
{
6969
$this->subdomain = $subdomain;
7070
}
@@ -80,7 +80,7 @@ public function getRegistrableDomain()
8080
/**
8181
* @param string $registrableDomain
8282
*/
83-
public function setRegistrableDomain( $registrableDomain )
83+
public function setRegistrableDomain($registrableDomain)
8484
{
8585
$this->registrableDomain = $registrableDomain;
8686
}
@@ -98,7 +98,7 @@ public function getPublicSuffix()
9898
/**
9999
* @param string $publicSuffix
100100
*/
101-
public function setPublicSuffix( $publicSuffix )
101+
public function setPublicSuffix($publicSuffix)
102102
{
103103
$this->publicSuffix = $publicSuffix;
104104
}
@@ -116,7 +116,7 @@ public function getHost()
116116
/**
117117
* @param string $host
118118
*/
119-
public function setHost( $host )
119+
public function setHost($host)
120120
{
121121
$this->host = $host;
122122
}
@@ -128,18 +128,17 @@ public function setHost( $host )
128128
*/
129129
public function __toString()
130130
{
131-
if( $this->host !== null )
132-
{
131+
if ($this->host !== null) {
133132
return $this->host;
134133
}
135134

136135
// retain only the elements that are not empty
137136
$str = array_filter(
138-
array( $this->subdomain, $this->registrableDomain ),
137+
array($this->subdomain, $this->registrableDomain),
139138
'strlen'
140139
);
141140

142-
return implode( '.', $str );
141+
return implode('.', $str);
143142
}
144143

145144
/**
@@ -150,10 +149,10 @@ public function __toString()
150149
public function toArray()
151150
{
152151
return array(
153-
'subdomain' => $this->subdomain,
154-
'registrableDomain' => $this->registrableDomain,
155-
'publicSuffix' => $this->publicSuffix,
156-
'host' => $this->host,
152+
'subdomain' => $this->subdomain,
153+
'registrableDomain' => $this->registrableDomain,
154+
'publicSuffix' => $this->publicSuffix,
155+
'host' => $this->host,
157156
);
158157
}
159158
}

0 commit comments

Comments
 (0)