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

@@ -271,7 +271,7 @@ class Regex
eval(sprintf('$isEqual = %s%s;', $value, $filterExpression));
/* @var bool $isEqual */
/** @var bool $isEqual */
$remove = !$isEqual;
}
@@ -317,6 +317,7 @@ class Regex
$effect = $effect && $matched;
} elseif ($matched) {
$effect = $matched;
break;
}
}
@@ -458,14 +459,10 @@ class Regex
return false;
}
/*
* I have to escape all slashes (directory separators): "/" -> "\/"
*/
// I have to escape all slashes (directory separators): "/" -> "\/"
$prepared = preg_quote($path, '/');
/*
* Slash at the ending is optional
*/
// Slash at the ending is optional
if (self::endsWith($path, '/')) {
$prepared .= '?';
}
@@ -775,7 +772,7 @@ class Regex
* (default behaviour). Otherwise - not.
* @throws IncorrectColorHexLengthException
* @throws InvalidColorHexValueException
* @return string|bool
* @return bool|string
*/
public static function getValidColorHexValue($color, $throwException = true)
{
@@ -986,7 +983,7 @@ class Regex
* Returns slug for given value
*
* @param string $value Value that should be transformed to slug
* @return string|bool
* @return bool|string
*/
public static function createSlug($value)
{