PHP Coding Standards Fixer > fix coding standard

This commit is contained in:
Meritoo
2019-04-06 08:00:01 +02:00
parent 0f64705132
commit a13a629408
71 changed files with 812 additions and 1133 deletions

View File

@@ -90,9 +90,7 @@ class Uri
* $matches[2] - protocol version, e.g. 1.1
*/
/*
* Oops, cannot match protocol
*/
// Oops, cannot match protocol
if (0 === $matchCount) {
return '';
}
@@ -244,9 +242,7 @@ class Uri
$currentUrl = self::getServerNameOrIp(true);
$url = self::replenishProtocol($url);
/*
* Let's prepare pattern of current url
*/
// Let's prepare pattern of current url
$search = [
':',
'/',
@@ -274,9 +270,7 @@ class Uri
*/
public static function replenishProtocol($url, $protocol = '')
{
/*
* Let's trim the url
*/
// Let's trim the url
if (is_string($url)) {
$url = trim($url);
}
@@ -297,9 +291,7 @@ class Uri
return $url;
}
/*
* Protocol is not provided?
*/
// Protocol is not provided?
if (empty($protocol)) {
$protocol = self::getProtocolName();
}