Skip to content

Commit 6c1a256

Browse files
committed
CS fixes
1 parent 723d582 commit 6c1a256

File tree

9 files changed

+23
-33
lines changed

9 files changed

+23
-33
lines changed

src/Pdp/HttpAdapter/CurlHttpAdapter.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
* @copyright Copyright (c) 2014 Jeremy Kendall (http://about.me/jeremykendall)
99
* @license http://github.com/jeremykendall/php-domain-parser/blob/master/LICENSE MIT License
1010
*/
11-
1211
namespace Pdp\HttpAdapter;
1312

1413
/**

src/Pdp/HttpAdapter/HttpAdapterInterface.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
* @copyright Copyright (c) 2014 Jeremy Kendall (http://about.me/jeremykendall)
99
* @license http://github.com/jeremykendall/php-domain-parser/blob/master/LICENSE MIT License
1010
*/
11-
1211
namespace Pdp\HttpAdapter;
1312

1413
/**

src/Pdp/Parser.php

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
* @copyright Copyright (c) 2014 Jeremy Kendall (http://about.me/jeremykendall)
99
* @license http://github.com/jeremykendall/php-domain-parser/blob/master/LICENSE MIT License
1010
*/
11-
1211
namespace Pdp;
1312

1413
use Pdp\Uri\Url;
@@ -65,13 +64,13 @@ public function __construct(PublicSuffixList $publicSuffixList)
6564
public function parseUrl($url)
6665
{
6766
$elem = array(
68-
'scheme' => null,
69-
'user' => null,
70-
'pass' => null,
71-
'host' => null,
72-
'port' => null,
73-
'path' => null,
74-
'query' => null,
67+
'scheme' => null,
68+
'user' => null,
69+
'pass' => null,
70+
'host' => null,
71+
'port' => null,
72+
'path' => null,
73+
'query' => null,
7574
'fragment' => null,
7675
);
7776

src/Pdp/PublicSuffixList.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
* @copyright Copyright (c) 2014 Jeremy Kendall (http://about.me/jeremykendall)
99
* @license http://github.com/jeremykendall/php-domain-parser/blob/master/LICENSE MIT License
1010
*/
11-
1211
namespace Pdp;
1312

1413
/**

src/Pdp/PublicSuffixListManager.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,8 @@
88
* @copyright Copyright (c) 2014 Jeremy Kendall (http://about.me/jeremykendall)
99
* @license http://github.com/jeremykendall/php-domain-parser/blob/master/LICENSE MIT License
1010
*/
11-
1211
namespace Pdp;
1312

14-
use Pdp\HttpAdapter\HttpAdapterInterface;
15-
1613
/**
1714
* Public Suffix List Manager.
1815
*

src/Pdp/Uri/Url.php

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
* @copyright Copyright (c) 2014 Jeremy Kendall (http://about.me/jeremykendall)
99
* @license http://github.com/jeremykendall/php-domain-parser/blob/master/LICENSE MIT License
1010
*/
11-
1211
namespace Pdp\Uri;
1312

1413
use Pdp\Parser;
@@ -81,13 +80,13 @@ public function __construct(
8180
$query,
8281
$fragment
8382
) {
84-
$this->scheme = mb_strtolower($scheme, 'UTF-8');
85-
$this->user = $user;
86-
$this->pass = $pass;
87-
$this->host = $host;
88-
$this->port = $port;
89-
$this->path = $path;
90-
$this->query = $query;
83+
$this->scheme = mb_strtolower($scheme, 'UTF-8');
84+
$this->user = $user;
85+
$this->pass = $pass;
86+
$this->host = $host;
87+
$this->port = $port;
88+
$this->path = $path;
89+
$this->query = $query;
9190
$this->fragment = $fragment;
9291
}
9392

src/Pdp/Uri/Url/Host.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
* @copyright Copyright (c) 2014 Jeremy Kendall (http://about.me/jeremykendall)
99
* @license http://github.com/jeremykendall/php-domain-parser/blob/master/LICENSE MIT License
1010
*/
11-
1211
namespace Pdp\Uri\Url;
1312

1413
/**

src/pdp-parse-url.php

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,21 @@
88
* @copyright Copyright (c) 2014 Jeremy Kendall (http://about.me/jeremykendall)
99
* @license http://github.com/jeremykendall/php-domain-parser/blob/master/LICENSE MIT License
1010
*/
11-
1211
namespace {
1312
if (!function_exists('pdp_parse_url')) {
1413
/**
1514
* UTF-8 aware parse_url() replacement.
1615
*
1716
* Taken from php.net manual comments {@link http://php.net/manual/en/function.parse-url.php#114817}
1817
*
19-
* @param string $url The URL to parse
20-
* @param integer $component Specify one of PHP_URL_SCHEME, PHP_URL_HOST,
21-
* PHP_URL_PORT, PHP_URL_USER, PHP_URL_PASS, PHP_URL_PATH, PHP_URL_QUERY or
22-
* PHP_URL_FRAGMENT to retrieve just a specific URL component as a string
23-
* (except when PHP_URL_PORT is given, in which case the return value will
24-
* be an integer).
18+
* @param string $url The URL to parse
19+
* @param int $component Specify one of PHP_URL_SCHEME, PHP_URL_HOST,
20+
* PHP_URL_PORT, PHP_URL_USER, PHP_URL_PASS, PHP_URL_PATH, PHP_URL_QUERY or
21+
* PHP_URL_FRAGMENT to retrieve just a specific URL component as a string
22+
* (except when PHP_URL_PORT is given, in which case the return value will
23+
* be an integer).
2524
*
26-
* @return mixed See parse_url documentation {@link http://us1.php.net/parse_url}
25+
* @return mixed See parse_url documentation {@link http://us1.php.net/parse_url}
2726
*/
2827
function pdp_parse_url($url, $component = -1)
2928
{

tests/src/Pdp/Uri/UrlTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public function testIdnToAscii()
151151
}
152152

153153
/**
154-
* Scheme should not be URL encoded
154+
* Scheme should not be URL encoded.
155155
*
156156
* @group issue46
157157
* @group issue51
@@ -168,7 +168,7 @@ public function test__toStringDoesNotUrlEncodeScheme()
168168
}
169169

170170
/**
171-
* Scheme should be output in lowercase regardless of case of original arg
171+
* Scheme should be output in lowercase regardless of case of original arg.
172172
*
173173
* @group issue51
174174
*

0 commit comments

Comments
 (0)